Skip to content

Commit 8f33af9

Browse files
committed
Build SDK
Stainless-Generated-From: 41c6af475e8c72f1b3f96e69ed8f37355d3de557
1 parent 208bef1 commit 8f33af9

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎src/kernel/pagination.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def has_next_page(self) -> bool:
114114
if has_more is not None and has_more is False:
115115
return False
116116

117-
return super().has_next_page()
117+
return self.next_page_info() is not None
118118

119119
@override
120120
def next_page_info(self) -> Optional[PageInfo]:
@@ -165,7 +165,7 @@ def has_next_page(self) -> bool:
165165
if has_more is not None and has_more is False:
166166
return False
167167

168-
return super().has_next_page()
168+
return self.next_page_info() is not None
169169

170170
@override
171171
def next_page_info(self) -> Optional[PageInfo]:

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ class KernelCardState(BaseModel):
4343
"requested", "pending_authorization", "ready", "consumed", "expired", "declined", "recovery_required"
4444
]
4545
"""
46-
pending_authorization on a Visa purchase waits for the cardholder to approve it
47-
through the spend_approval action; an unused link expires after 30 minutes.
46+
pending_authorization waits for cardholder approval on Visa purchases or fresh
47+
security-code collection on alias-mode purchases through the spend_approval
48+
action; an unused link expires after 30 minutes. Alias-mode cards become ready
49+
after collection and expire at the temporary security-code alias deadline, by
50+
default five minutes later. An expired alias purchase requires a new card.
4851
recovery_required means verification, approving the purchase or issuing the
4952
one-time code has an unresolved outcome. A server-classified initial attestation
5053
failure before intent dispatch may advertise restart_verification to prepare a

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class KernelCardVaultItemSpec(BaseModel):
1212
"""One live purchase with a Kernel-enrolled card.
1313
14-
Authorization obtains an agentic network token number, expiry and one-time 3-digit code. They are stored encrypted for the fill operation, which types them only on merchant_url's origin; the merchant's own checkout submits the payment. The one-time code is valid until the item's expires_at; fill and submit checkout before then. Mastercard purchases need no cardholder approval. A Visa purchase returns a spend_approval action: the cardholder approves it with a Visa passkey, and Kernel registers a Visa intent for one transaction up to the amount before issuing the code. For supported cards whose network cannot be enrolled for agentic tokens, authorize prepares checkout details without issuing a one-time code. The card can be filled into one checkout before its expires_at, one hour after authorization. Fill types those details on merchant_url's origin. The amount, merchant_url and merchant_country are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead.
14+
Authorization obtains an agentic network token number, expiry and one-time 3-digit code. They are stored encrypted for the fill operation, which types them only on merchant_url's origin; the merchant's own checkout submits the payment. The one-time code is valid until the item's expires_at; fill and submit checkout before then. Mastercard purchases need no cardholder approval. A Visa purchase returns a spend_approval action: the cardholder approves it with a Visa passkey, and Kernel registers a Visa intent for one transaction up to the amount before issuing the code. For supported cards whose network cannot be enrolled for agentic tokens, authorize returns pending_authorization with a spend_approval action to collect a fresh security code in a hosted field. Once collected, the card is ready and can be filled before its expires_at, by default five minutes after collection. An expired card requires a new purchase. Fill types those details on merchant_url's origin. The amount, merchant_url and merchant_country are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead.
1515
"""
1616

1717
amount: int

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class KernelCardVaultItemSpecParam(TypedDict, total=False):
1111
"""One live purchase with a Kernel-enrolled card.
1212
13-
Authorization obtains an agentic network token number, expiry and one-time 3-digit code. They are stored encrypted for the fill operation, which types them only on merchant_url's origin; the merchant's own checkout submits the payment. The one-time code is valid until the item's expires_at; fill and submit checkout before then. Mastercard purchases need no cardholder approval. A Visa purchase returns a spend_approval action: the cardholder approves it with a Visa passkey, and Kernel registers a Visa intent for one transaction up to the amount before issuing the code. For supported cards whose network cannot be enrolled for agentic tokens, authorize prepares checkout details without issuing a one-time code. The card can be filled into one checkout before its expires_at, one hour after authorization. Fill types those details on merchant_url's origin. The amount, merchant_url and merchant_country are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead.
13+
Authorization obtains an agentic network token number, expiry and one-time 3-digit code. They are stored encrypted for the fill operation, which types them only on merchant_url's origin; the merchant's own checkout submits the payment. The one-time code is valid until the item's expires_at; fill and submit checkout before then. Mastercard purchases need no cardholder approval. A Visa purchase returns a spend_approval action: the cardholder approves it with a Visa passkey, and Kernel registers a Visa intent for one transaction up to the amount before issuing the code. For supported cards whose network cannot be enrolled for agentic tokens, authorize returns pending_authorization with a spend_approval action to collect a fresh security code in a hosted field. Once collected, the card is ready and can be filled before its expires_at, by default five minutes after collection. An expired card requires a new purchase. Fill types those details on merchant_url's origin. The amount, merchant_url and merchant_country are recorded but do not restrict payment requests sent by the browser. Card updates are not supported; delete and create a new item instead.
1414
"""
1515

1616
amount: Required[int]

0 commit comments

Comments
 (0)