Skip to content

Commit f3d96f9

Browse files
Build SDK
Stainless-Generated-From: 85b54291039b626d126c5af578674be5ba4fbbb8
1 parent 091bd30 commit f3d96f9

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,46 @@ class AgentcardCheckoutAuthorization(BaseModel):
3434
amount: Optional[str] = None
3535
"""Display amount shown on the approval screen."""
3636

37-
amount_authority: Optional[Literal["display_only", "stripe_payment_intent"]] = None
37+
amount_authority: Optional[Literal["processor", "agent", "page", "none", "display_only"]] = None
38+
"""Source of the approved amount.
39+
40+
`processor` is read from the processor request or payment; `agent` is the item's
41+
declared amount; `page` is the checkout page total; `none` means no amount was
42+
named. `display_only` appears only on authorizations recovered without a
43+
provider read. `agent` and `display_only` don't prove what the processor
44+
charged.
45+
"""
3846

3947
amount_verified: Optional[bool] = None
48+
"""Whether the processor charged the approved amount.
49+
50+
Absent when there was no charge to compare, including tokenization checkouts.
51+
"""
4052

4153
approval_url: Optional[str] = None
4254

4355
browser_id: Optional[str] = None
4456
"""Browser session that submitted the checkout."""
4557

4658
charged_amount_cents: Optional[int] = None
59+
"""Amount the processor reported collecting.
60+
61+
Absent when the provider didn't observe a charge.
62+
"""
4763

4864
charged_currency: Optional[str] = None
65+
"""Currency of `charged_amount_cents`.
66+
67+
Absent when the provider didn't observe a charge.
68+
"""
4969

5070
charged_kind: Optional[Literal["captured", "authorized", "none"]] = None
71+
"""What the processor collected.
72+
73+
`none` means the checkout produced a token or payment method that the merchant
74+
charges later. Absent when the provider reported nothing, which is common for
75+
tokenization checkouts; use item events and the merchant's order record instead.
76+
"""
5177

5278
expected_cents: Optional[int] = None
5379

0 commit comments

Comments
 (0)