Skip to content

Commit f59f588

Browse files
fix: generate VGS card aliases in the TypeScript SDK
Stainless-Generated-From: faed5338095403e786b5a25846f928a9aa96c2ef
1 parent 83e0781 commit f59f588

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

‎src/resources/vaults/items.ts‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3922,7 +3922,27 @@ export interface VaultWebmcpBinding {
39223922
* Write-only: stored encrypted and never returned in the item, its events or logs.
39233923
* A repeated PUT with the same key must send the same card.
39243924
*/
3925-
export interface VgsCardInput {}
3925+
export interface VgsCardInput {
3926+
/**
3927+
* A volatile alias of a freshly collected security code in the customer's vault.
3928+
* It must still exist when authorize runs.
3929+
*/
3930+
cvc_alias: string;
3931+
3932+
exp_month: number;
3933+
3934+
exp_year: number;
3935+
3936+
/**
3937+
* The card number's last four digits, checked against the revealed alias.
3938+
*/
3939+
last4: string;
3940+
3941+
/**
3942+
* A persistent alias of the card number in the customer's vault.
3943+
*/
3944+
pan_alias: string;
3945+
}
39263946

39273947
/**
39283948
* A ready VGS card supports fill, then submit checkout, until expires_at. Kernel
@@ -4008,6 +4028,11 @@ export interface VgsCardVaultItemSpec {
40084028
* Key of the VGS wallet item whose configuration reads the aliases.
40094029
*/
40104030
wallet: string;
4031+
4032+
/**
4033+
* Required when creating the card. Never returned.
4034+
*/
4035+
card?: VgsCardInput;
40114036
}
40124037

40134038
export interface VgsWalletState {

0 commit comments

Comments
 (0)