-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcard.py
More file actions
107 lines (76 loc) · 2.94 KB
/
card.py
File metadata and controls
107 lines (76 loc) · 2.94 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["Card", "BillingAddress", "DigitalWallet"]
class BillingAddress(BaseModel):
city: Optional[str] = None
"""The city of the billing address."""
line1: Optional[str] = None
"""The first line of the billing address."""
line2: Optional[str] = None
"""The second line of the billing address."""
postal_code: Optional[str] = None
"""The postal code of the billing address."""
state: Optional[str] = None
"""The US state of the billing address."""
class DigitalWallet(BaseModel):
digital_card_profile_id: Optional[str] = None
"""The digital card profile assigned to this digital card.
Card profiles may also be assigned at the program level.
"""
email: Optional[str] = None
"""
An email address that can be used to verify the cardholder via one-time passcode
over email.
"""
phone: Optional[str] = None
"""
A phone number that can be used to verify the cardholder via one-time passcode
over SMS.
"""
class Card(BaseModel):
id: str
"""The card identifier."""
account_id: str
"""The identifier for the account this card belongs to."""
billing_address: BillingAddress
"""The Card's billing address."""
created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the Card was created.
"""
description: Optional[str] = None
"""The card's description for display purposes."""
digital_wallet: Optional[DigitalWallet] = None
"""
The contact information used in the two-factor steps for digital wallet card
creation. At least one field must be present to complete the digital wallet
steps.
"""
entity_id: Optional[str] = None
"""The identifier for the entity associated with this card."""
expiration_month: int
"""The month the card expires in M format (e.g., August is 8)."""
expiration_year: int
"""The year the card expires in YYYY format (e.g., 2025)."""
idempotency_key: Optional[str] = None
"""The idempotency key you chose for this object.
This value is unique across Increase and is used to ensure that a request is
only processed once. Learn more about
[idempotency](https://increase.com/documentation/idempotency-keys).
"""
last4: str
"""The last 4 digits of the Card's Primary Account Number."""
status: Literal["active", "disabled", "canceled"]
"""This indicates if payments can be made with the card.
- `active` - The card is active.
- `disabled` - The card is temporarily disabled.
- `canceled` - The card is permanently canceled.
"""
type: Literal["card"]
"""A constant representing the object's type.
For this resource it will always be `card`.
"""