DaffCart
A cart. Contains products in the form of cart items. Contains payment and shipping info used for checkout.
API
interface DaffCart {
coupons: DaffCartCoupon[]
items: DaffCartItem[]
billing_address: DaffCartAddress | null
shipping_address: DaffCartAddress | null
payment: DaffCartPaymentMethod
totals: Record<DaffCartTotal['name'], DaffCartTotal>
shipping_information: DaffCartShippingRate | null
available_shipping_methods: DaffCartShippingRate[]
available_payment_methods: DaffCartPaymentMethod[]
extra_attributes: any
}
Properties
Name | Type | Description |
---|---|---|
coupons | DaffCartCoupon[] | A list of coupons applied to the cart. |
items | DaffCartItem[] | A list of cart items. |
billing_address | DaffCartAddress | null | The billing address of the cart. |
shipping_address | DaffCartAddress | null | The shipping address of the cart. |
payment | DaffCartPaymentMethod | The selected payment method of the cart. |
totals | Record<DaffCartTotal['name'], DaffCartTotal> | A list of totals for the cart. |
shipping_information | DaffCartShippingRate | null | The selected shipping method. |
available_shipping_methods | DaffCartShippingRate[] | A list of available shipping methods. |
available_payment_methods | DaffCartPaymentMethod[] | A list of available payment methods. |
extra_attributes | any | The field is set to the platform cart object returned by the most recent driver call. No fields are guaranteed here. Use this with care. |