Skip to content

Commit da49f00

Browse files
feat: Connect Kernel wallets once the card is stored, with best-effort network tokens
Stainless-Generated-From: e1a019f24061298df8d1360397d091fa2b480e1e
1 parent 761b766 commit da49f00

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ class KernelWalletState(BaseModel):
1414
status: Literal["pending_authorization", "connected", "reconnect_required", "degraded"]
1515
"""pending_authorization asks the cardholder to use the card_enrollment action.
1616
17-
connected is ready for supported purchases. reconnect_required asks the
18-
cardholder to use a new card_enrollment action after an uncertain enrollment was
19-
safely removed. degraded means the enrollment outcome is unknown and the wallet
20-
must be deleted before adding another card.
17+
connected means the card is stored; it can pay once payment_methods reports
18+
capabilities.single_use_card.eligible. reconnect_required asks the cardholder to
19+
use a new card_enrollment action after an uncertain enrollment was safely
20+
removed. degraded means the enrollment outcome is unknown and the wallet must be
21+
deleted before adding another card.
2122
"""
2223

2324
status_reason: Optional[str] = None

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99

1010
class KernelWalletVaultItemSpec(BaseModel):
11-
"""
12-
One card Kernel enrolls for Visa or Mastercard agentic network tokens using Kernel-managed credentials. Creation returns a card_enrollment action: the cardholder enters the card and their email on a Kernel-hosted page, then Kernel enrolls the securely stored card. The card number never reaches Kernel. The connected wallet's payment_methods expansion lists the enrolled card. Visa cards can be enrolled, but Visa purchases are not yet supported: authorize returns 400.
11+
"""One card stored with Kernel-managed credentials.
12+
13+
Creation returns a card_enrollment action: the cardholder enters the card and their email on a Kernel-hosted page, and the wallet connects once the card is stored. Kernel then enrolls it for an agentic network token when the issuer supports it. The card number never reaches Kernel. The connected wallet's payment_methods expansion lists the card; capabilities.single_use_card.eligible is false, with a network_token_* reason, until the card has a network token, and authorize returns 400 for such a card. Visa cards can be enrolled, but Visa purchases are not yet supported: authorize returns 400.
1314
"""
1415

1516
provider: Literal["kernel"]

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99

1010
class KernelWalletVaultItemSpecParam(TypedDict, total=False):
11-
"""
12-
One card Kernel enrolls for Visa or Mastercard agentic network tokens using Kernel-managed credentials. Creation returns a card_enrollment action: the cardholder enters the card and their email on a Kernel-hosted page, then Kernel enrolls the securely stored card. The card number never reaches Kernel. The connected wallet's payment_methods expansion lists the enrolled card. Visa cards can be enrolled, but Visa purchases are not yet supported: authorize returns 400.
11+
"""One card stored with Kernel-managed credentials.
12+
13+
Creation returns a card_enrollment action: the cardholder enters the card and their email on a Kernel-hosted page, and the wallet connects once the card is stored. Kernel then enrolls it for an agentic network token when the issuer supports it. The card number never reaches Kernel. The connected wallet's payment_methods expansion lists the card; capabilities.single_use_card.eligible is false, with a network_token_* reason, until the card has a network token, and authorize returns 400 for such a card. Visa cards can be enrolled, but Visa purchases are not yet supported: authorize returns 400.
1314
"""
1415

1516
provider: Required[Literal["kernel"]]

0 commit comments

Comments
 (0)