You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/kernel/types/vaults/card_vault_item_spec.py
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ class LinkCardVaultItemSpec(BaseModel):
96
96
classAgentCardCardVaultItemSpec(BaseModel):
97
97
"""AgentCard reusable live payment card.
98
98
99
-
Test-mode card creation is not supported. Each checkout creates an approval-gated authorization for spec.merchant / spec.amount. The card stays ready after each authorization.
99
+
Test-mode card creation is not supported. Each checkout creates an authorization for spec.merchant / spec.amount that the cardholder approves, unless AgentCard runs it under one of the cardholder's autopilot rules. The card stays ready after each authorization.
100
100
"""
101
101
102
102
amount: int
@@ -119,6 +119,18 @@ class AgentCardCardVaultItemSpec(BaseModel):
119
119
cardholder picks on the approval screen.
120
120
"""
121
121
122
+
checkout_origin: Optional[str] =None
123
+
"""
124
+
Origin of the top-level checkout page, such as https://shop.example.com: https,
125
+
a lowercase host, a port only when it is not 443, and no path. http is accepted
126
+
only for localhost test pages. Checkouts without a preparation send it to
127
+
AgentCard, which uses it to match the cardholder's autopilot rules; prepared
128
+
checkouts send the preparation's merchant_origin instead. Kernel sends the
129
+
declared value and does not compare it with the page the browser has open.
130
+
Omitted, those checkouts ask the cardholder to approve. Card updates replace the
131
+
whole spec, so an update that omits it removes it.
Test-mode card creation is not supported. Each checkout creates an approval-gated authorization for spec.merchant / spec.amount. The card stays ready after each authorization.
98
+
Test-mode card creation is not supported. Each checkout creates an authorization for spec.merchant / spec.amount that the cardholder approves, unless AgentCard runs it under one of the cardholder's autopilot rules. The card stays ready after each authorization.
99
99
"""
100
100
101
101
amount: Required[int]
@@ -118,5 +118,17 @@ class AgentCardCardVaultItemSpec(TypedDict, total=False):
118
118
cardholder picks on the approval screen.
119
119
"""
120
120
121
+
checkout_origin: str
122
+
"""
123
+
Origin of the top-level checkout page, such as https://shop.example.com: https,
124
+
a lowercase host, a port only when it is not 443, and no path. http is accepted
125
+
only for localhost test pages. Checkouts without a preparation send it to
126
+
AgentCard, which uses it to match the cardholder's autopilot rules; prepared
127
+
checkouts send the preparation's merchant_origin instead. Kernel sends the
128
+
declared value and does not compare it with the page the browser has open.
129
+
Omitted, those checkouts ask the cardholder to approve. Card updates replace the
130
+
whole spec, so an update that omits it removes it.
0 commit comments