Available on crate feature
payments only.Expand description
Payment authorization, actor binding, and audit integration points.
The types in this module keep authenticated request identity separate from
session identity and protocol actor roles while integrating with
adk-auth for scope checks and audit sink emission across ACP stable
2026-01-30 and AP2 v0.1-alpha (2026-03-22) flows.
Structs§
- Authenticated
Payment Request - Authenticated request identity carried into payment tools or endpoints.
- Payment
Auditor - Emits structured payment audit events through an
adk-authaudit sink.
Enums§
- Payment
Operation - Payment-sensitive operations that map to named scopes and audit resources.
- Payments
Auth Error - Local payment-auth errors mapped into the ADK structured error envelope.
Constants§
- ALL_
PAYMENT_ SCOPES - Catalog of all currently defined payment scopes.
- CHECKOUT_
CANCEL_ SCOPES - Scope set for checkout cancelation.
- CHECKOUT_
COMPLETE_ SCOPES - Scope set for checkout completion.
- CHECKOUT_
CREATE_ SCOPES - Scope set for checkout creation.
- CHECKOUT_
UPDATE_ SCOPES - Scope set for checkout updates.
- CREDENTIAL_
DELEGATE_ SCOPES - Scope set for delegated credential usage.
- INTERVENTION_
CONTINUE_ SCOPES - Scope set for intervention continuation.
- ORDER_
UPDATE_ SCOPES - Scope set for order updates.
- PAYMENT_
ADMIN_ SCOPE - Scope for administrative payment operations.
- PAYMENT_
CHECKOUT_ CANCEL_ SCOPE - Scope for checkout cancelation.
- PAYMENT_
CHECKOUT_ COMPLETE_ SCOPE - Scope for checkout completion.
- PAYMENT_
CHECKOUT_ CREATE_ SCOPE - Scope for checkout creation.
- PAYMENT_
CHECKOUT_ UPDATE_ SCOPE - Scope for checkout updates.
- PAYMENT_
CREDENTIAL_ DELEGATE_ SCOPE - Scope for delegated credential use.
- PAYMENT_
INTERVENTION_ CONTINUE_ SCOPE - Scope for payment intervention continuation.
- PAYMENT_
ORDER_ UPDATE_ SCOPE - Scope for order mutation after checkout.
- PAYMENT_
SETTLEMENT_ SCOPE - Scope for settlement-specific operations.
- SETTLEMENT_
SCOPES - Scope set for settlement operations.
Functions§
- check_
payment_ operation_ scopes - Checks that the granted scopes authorize one payment operation.