|
1 | 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
2 | 2 |
|
| 3 | +from typing import Optional |
| 4 | + |
3 | 5 | from ..._models import BaseModel |
4 | 6 |
|
5 | 7 | __all__ = ["VgsCardInput"] |
6 | 8 |
|
7 | 9 |
|
8 | 10 | class VgsCardInput(BaseModel): |
9 | | - """The card's aliases in the customer's VGS vault, its expiry and last four digits. |
| 11 | + """The card supplied to a purchase, as aliases in the customer's VGS vault. |
10 | 12 |
|
11 | | - Write-only: stored encrypted and never returned in the item, its events or logs. A repeated PUT with the same key must send the same card. |
| 13 | + With card_mode full it is a whole card: a persistent alias of its number, a freshly collected volatile alias of its security code, its expiry and its last four digits. With card_mode cvc_only it is a CVC alias alone, because the merchant holds the rest on file. pan_alias, exp_month, exp_year and last4 are required with card_mode full and rejected with card_mode cvc_only. Write-only: stored encrypted and never returned in the item, its events or logs. A repeated PUT with the same key must send the same card. |
12 | 14 | """ |
13 | 15 |
|
14 | 16 | cvc_alias: str |
15 | 17 | """A volatile alias of a freshly collected security code in the customer's vault. |
16 | 18 |
|
17 | | - It must still exist when authorize runs. |
| 19 | + It must still exist when authorize runs. Required in both modes. |
18 | 20 | """ |
19 | 21 |
|
20 | | - exp_month: int |
| 22 | + exp_month: Optional[int] = None |
| 23 | + """Required with card_mode full, rejected with card_mode cvc_only.""" |
| 24 | + |
| 25 | + exp_year: Optional[int] = None |
| 26 | + """Required with card_mode full, rejected with card_mode cvc_only.""" |
21 | 27 |
|
22 | | - exp_year: int |
| 28 | + last4: Optional[str] = None |
| 29 | + """The card number's last four digits, checked against the revealed alias. |
23 | 30 |
|
24 | | - last4: str |
25 | | - """The card number's last four digits, checked against the revealed alias.""" |
| 31 | + Required with card_mode full, rejected with card_mode cvc_only. |
| 32 | + """ |
26 | 33 |
|
27 | | - pan_alias: str |
28 | | - """A persistent alias of the card number in the customer's vault.""" |
| 34 | + pan_alias: Optional[str] = None |
| 35 | + """A persistent alias of the card number in the customer's vault. |
| 36 | +
|
| 37 | + Required with card_mode full, rejected with card_mode cvc_only. |
| 38 | + """ |
0 commit comments