Skip to content

Commit 814e522

Browse files
fix: generate VGS card aliases in the TypeScript SDK
Stainless-Generated-From: e643e6fed1a674ca8e2152a21478b9203d883aad
1 parent d3eb44c commit 814e522

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

‎src/kernel/types/vaults/vgs_card_input.py‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,18 @@ class VgsCardInput(BaseModel):
1111
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.
1212
"""
1313

14-
pass
14+
cvc_alias: str
15+
"""A volatile alias of a freshly collected security code in the customer's vault.
16+
17+
It must still exist when authorize runs.
18+
"""
19+
20+
exp_month: int
21+
22+
exp_year: int
23+
24+
last4: str
25+
"""The card number's last four digits, checked against the revealed alias."""
26+
27+
pan_alias: str
28+
"""A persistent alias of the card number in the customer's vault."""

‎src/kernel/types/vaults/vgs_card_vault_item_spec.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from typing_extensions import Literal
45

56
from ..._models import BaseModel
7+
from .vgs_card_input import VgsCardInput
68

79
__all__ = ["VgsCardVaultItemSpec"]
810

@@ -32,3 +34,6 @@ class VgsCardVaultItemSpec(BaseModel):
3234

3335
wallet: str
3436
"""Key of the VGS wallet item whose configuration reads the aliases."""
37+
38+
card: Optional[VgsCardInput] = None
39+
"""Required when creating the card. Never returned."""

‎src/kernel/types/vaults/vgs_card_vault_item_spec_param.py‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ class VgsCardVaultItemSpecParam(TypedDict, total=False):
1818
amount: Required[int]
1919
"""Integer amount in minor currency units (at most 1000000)."""
2020

21-
card: Required[VgsCardInputParam]
22-
"""The card's aliases in the customer's VGS vault, its expiry and last four digits.
23-
24-
Write-only: stored encrypted and never returned in the item, its events or logs.
25-
A repeated PUT with the same key must send the same card.
26-
"""
27-
2821
currency: Required[str]
2922
"""ISO 4217 code.
3023
@@ -41,3 +34,6 @@ class VgsCardVaultItemSpecParam(TypedDict, total=False):
4134

4235
wallet: Required[str]
4336
"""Key of the VGS wallet item whose configuration reads the aliases."""
37+
38+
card: VgsCardInputParam
39+
"""Required when creating the card. Never returned."""

0 commit comments

Comments
 (0)