Cart
protocol Cart
A Cart
-
The buyer’s billing address
Declaration
Swift
var billingAddress: CartAddress? { get } -
The token used for Billing Agreement transactions
Declaration
Swift
var billingToken: String? { get } -
The type of billing for this cart
Declaration
Swift
var billingType: BillingType? { get } -
The cancel redirect url
Declaration
Swift
var cancelURL: URL? { get } -
The cart identifier
Declaration
Swift
var cartID: String { get } -
The discount, to be subtracted from the total
Declaration
Swift
var discount: UnitAmount { get } -
The insurance amount
Declaration
Swift
var insurance: UnitAmount { get } -
The cart’s intent
Declaration
Swift
var intent: String { get } -
The items in the cart
Declaration
Swift
var items: [CartItem] { get } -
The payment identifier
Declaration
Swift
var paymentID: String? { get } -
The return redirect url
Declaration
Swift
var returnURL: URL? { get } -
The buyer’s shipping address
Declaration
Swift
var shippingAddress: CartAddress? { get } -
The shipping & handling amount
Declaration
Swift
var shippingAndHandling: UnitAmount { get } -
The shipping methods
Declaration
Swift
var shippingMethods: [ShippingMethod] { get } -
The subtotal amount
Declaration
Swift
var subtotal: UnitAmount { get } -
The tax amount
Declaration
Swift
var tax: UnitAmount { get } -
The total cart amount
Declaration
Swift
var total: UnitAmount { get } -
Overcapture amount. Total amount plus the amount that is over captured
Declaration
Swift
var totalAllowedOverCaptureAmount: UnitAmount { get }
View on GitHub
Install in Dash
Cart Protocol Reference