forked from lithic-com/lithic-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.py
More file actions
35 lines (19 loc) · 871 Bytes
/
payment.py
File metadata and controls
35 lines (19 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from typing_extensions import Literal
from .._models import BaseModel
from .financial_transaction import FinancialTransaction
__all__ = ["Payment", "PaymentMethodAttributes"]
class PaymentMethodAttributes(BaseModel):
sec_code: Literal["CCD", "PPD", "WEB"]
company_id: Optional[str] = None
receipt_routing_number: Optional[str] = None
retries: Optional[int] = None
return_reason_code: Optional[str] = None
class Payment(FinancialTransaction):
direction: Literal["CREDIT", "DEBIT"]
method: Literal["ACH_NEXT_DAY", "ACH_SAME_DAY"]
method_attributes: PaymentMethodAttributes
source: Literal["CUSTOMER", "LITHIC"]
external_bank_account_token: Optional[str] = None
user_defined_id: Optional[str] = None