ucp_dart_sdk
library
Classes
A2a
A2A transport binding.
Adjustment
Append-only event that exists independently of fulfillment. Typically represents money movements but can be any post-order change. Polymorphic type that can optionally reference line items.
AdjustmentLineItem
AllowsMultiDestination
Permits multiple destinations per method type.
Ap2CheckoutResponse
The ap2 object included in checkout responses when AP2 is negotiated.
Ap2CompleteRequest
The ap2 object included in complete_checkout requests when AP2 is negotiated.
Ap2MandateExtension
Extends Checkout with cryptographic mandate support for non-repudiable authorization per the AP2 protocol. Uses embedded signature model with ap2 namespace.
Base
Stable capability identifier in reverse-domain notation (e.g., dev.ucp.shopping.checkout). Used in capability negotiation.
Binding
Binds a token to a specific checkout session and participant. Prevents token reuse across different checkouts or participants.
Buyer
BuyerConsentCheckoutCreateRequest
Checkout extended with consent tracking via buyer object.
BuyerConsentCheckoutResponse
Checkout extended with consent tracking via buyer object.
BuyerConsentCheckoutUpdateRequest
Checkout extended with consent tracking via buyer object.
BuyerConsentExtensionCreateRequest
Extends Checkout with buyer consent tracking for privacy compliance via the buyer object.
BuyerConsentExtensionResponse
Extends Checkout with buyer consent tracking for privacy compliance via the buyer object.
BuyerConsentExtensionUpdateRequest
Extends Checkout with buyer consent tracking for privacy compliance via the buyer object.
CardCredential
A card credential containing sensitive payment card details including raw Primary Account Numbers (PANs). This credential type MUST NOT be used for checkout, only with payment handlers that tokenize or encrypt credentials. CRITICAL: Both parties handling CardCredential (sender and receiver) MUST be PCI DSS compliant. Transmission MUST use HTTPS/TLS with strong cipher suites.
CardPaymentInstrument
A basic card payment instrument with visible card details. Can be inherited by a handler's instrument schema to define handler-specific display details or more complex credential structures.
CheckoutCreateRequest
Base checkout schema. Extensions compose onto this using allOf.
CheckoutMandate
SD-JWT+kb credential in ap2.checkout_mandate. Proving user authorization for the checkout. Contains the full checkout including ap2.merchant_authorization.
CheckoutResponse
Base checkout schema. Extensions compose onto this using allOf.
CheckoutResponseWithAp2
Checkout extended with AP2 embedded signature support.
CheckoutUpdateRequest
Base checkout schema. Extensions compose onto this using allOf.
CompleteRequestWithAp2
Extension fields for complete_checkout when AP2 is negotiated.
DiscountCheckoutCreateRequest
Checkout extended with discount capability.
DiscountCheckoutResponse
Checkout extended with discount capability.
DiscountCheckoutUpdateRequest
Checkout extended with discount capability.
DiscountExtensionCreateRequest
Extends Checkout with discount code support, enabling agents to apply promotional, loyalty, referral, and other discount codes.
DiscountExtensionResponse
Extends Checkout with discount code support, enabling agents to apply promotional, loyalty, referral, and other discount codes.
DiscountExtensionUpdateRequest
Extends Checkout with discount code support, enabling agents to apply promotional, loyalty, referral, and other discount codes.
Discovery
Full capability declaration for discovery profiles. Includes spec/schema URLs for agent fetching.
DiscoveryProfile
Full UCP metadata for /.well-known/ucp discovery.
Embedded
Embedded transport binding (JSON-RPC 2.0 over postMessage). Unlike REST/MCP, the endpoint is per-capability (i.e. per-checkout via continue_url), not per-service.
ErrorCode
Error codes specific to AP2 mandate verification.
Expectation
Buyer-facing fulfillment expectation representing logical groupings of items (e.g., 'package'). Can be split, merged, or adjusted post-order to set buyer expectations for when/how items arrive.
ExpectationLineItem
FulfillmentAvailableMethodRequest
Inventory availability hint for a fulfillment method type.
FulfillmentAvailableMethodResponse
Inventory availability hint for a fulfillment method type.
FulfillmentCheckoutCreateRequest
Checkout extended with hierarchical fulfillment.
FulfillmentCheckoutResponse
Checkout extended with hierarchical fulfillment.
FulfillmentCheckoutUpdateRequest
Checkout extended with hierarchical fulfillment.
FulfillmentDestinationRequest
A destination for fulfillment.
FulfillmentDestinationRequestRetail
FulfillmentDestinationRequestShipping
FulfillmentDestinationResponse
A destination for fulfillment.
FulfillmentDestinationResponseRetail
FulfillmentDestinationResponseShipping
FulfillmentEvent
Append-only fulfillment event representing an actual shipment. References line items by ID.
FulfillmentEventLineItem
FulfillmentExtensionCreateRequest
Extends Checkout with fulfillment support using methods, destinations, and groups.
FulfillmentExtensionResponse
Extends Checkout with fulfillment support using methods, destinations, and groups.
FulfillmentExtensionUpdateRequest
Extends Checkout with fulfillment support using methods, destinations, and groups.
FulfillmentGroupCreateRequest
A merchant-generated package/group of line items with fulfillment options.
FulfillmentGroupResponse
A merchant-generated package/group of line items with fulfillment options.
FulfillmentGroupUpdateRequest
A merchant-generated package/group of line items with fulfillment options.
FulfillmentMethodCreateRequest
A fulfillment method (shipping or pickup) with destinations and groups.
FulfillmentMethodResponse
A fulfillment method (shipping or pickup) with destinations and groups.
FulfillmentMethodUpdateRequest
A fulfillment method (shipping or pickup) with destinations and groups.
FulfillmentOptionRequest
A fulfillment option within a group (e.g., Standard Shipping $5, Express $15).
FulfillmentOptionResponse
A fulfillment option within a group (e.g., Standard Shipping $5, Express $15).
FulfillmentRequest
Container for fulfillment methods and availability.
FulfillmentResponse
Container for fulfillment methods and availability.
ItemCreateRequest
ItemResponse
ItemUpdateRequest
LineItemCreateRequest
Line item object. Expected to use the currency of the parent object.
LineItemResponse
Line item object. Expected to use the currency of the parent object.
LineItemUpdateRequest
Line item object. Expected to use the currency of the parent object.
Link
Mcp
MCP transport binding.
MerchantAuthorization
JWS Detached Content signature (RFC 7515 Appendix F) over the checkout response body (excluding ap2 field). Format: <base64url-header>..<base64url-signature>. The header MUST contain 'alg' (ES256/ES384/ES512) and 'kid' claims. The signature covers both the header and JCS-canonicalized checkout payload.
MerchantFulfillmentConfig
Merchant's fulfillment configuration.
Message
Container for error, warning, or info messages.
MessageError
MessageErrorVariant
MessageInfo
MessageInfoVariant
MessageWarning
MessageWarningVariant
Order
Order schema with immutable line items, buyer-facing fulfillment expectations, and append-only event logs.
OrderConfirmation
Order details available at the time of checkout completion.
OrderFulfillment
Fulfillment data: buyer expectations and what actually happened.
OrderLineItem
Payment
Payment configuration containing handlers.
PaymentAccountInfo
Non-sensitive backend identifiers for linking.
PaymentCreateRequest
Payment configuration containing handlers.
PaymentCredential
Container for sensitive payment data. Use the specific schema matching the 'type' field.
PaymentCredentialCardCredential
PaymentCredentialTokenCredential
PaymentData
The data that will used to submit payment to the merchant.
PaymentHandlerCreateRequest
PaymentHandlerResponse
PaymentHandlerUpdateRequest
PaymentIdentity
Identity of a participant for token binding. The access_token uniquely identifies the participant who tokens should be bound to.
PaymentInstrument
Matches a specific instrument type based on validation logic.
PaymentInstrumentBase
The base definition for any payment instrument. It links the instrument to a specific Merchant configuration (handler_id) and defines common fields like billing address.
PaymentResponse
Payment configuration containing handlers.
PaymentUpdateRequest
Payment configuration containing handlers.
PlatformConfig
Platform's order capability configuration.
PlatformFulfillmentConfig
Platform's fulfillment configuration.
PostalAddress
Quantity
Quantity tracking. Both total and fulfilled are derived from events.
Response
Capability reference in responses. Only name/version required to confirm active capabilities.
ResponseCheckout
UCP metadata for checkout responses.
ResponseOrder
UCP metadata for order responses. No payment handlers needed post-purchase.
Rest
REST transport binding.
RetailLocationRequest
A pickup location (retail store, locker, etc.).
RetailLocationResponse
A pickup location (retail store, locker, etc.).
Services
Service definitions keyed by reverse-domain service name.
ShippingDestinationRequest
Shipping destination.
ShippingDestinationResponse
Shipping destination.
SigningKey
TokenCredentialCreateRequest
Base token credential schema. Concrete payment handlers may extend this schema with additional fields and define their own constraints.
TokenCredentialResponse
Base token credential schema. Concrete payment handlers may extend this schema with additional fields and define their own constraints.
TokenCredentialUpdateRequest
Base token credential schema. Concrete payment handlers may extend this schema with additional fields and define their own constraints.
TotalCreateRequest
TotalResponse
TotalUpdateRequest
UcpCapability
Schema for UCP capabilities and extensions. Extensions are capabilities with an 'extends' field. Uses reverse-domain naming for governance.
UcpDiscoveryProfile
Schema for UCP discovery profile returned from /.well-known/ucp.
UcpMetadata
Protocol metadata for discovery profiles and responses. Uses slim schema pattern with context-specific required fields.
UcpService
Schema for UCP service definitions. A service defines the API surface for a vertical (shopping, common, etc.) with transport bindings.
Version
UCP protocol version in YYYY-MM-DD format.