DaffCart
A cart. Contains products in the form of cart items. Contains payment and shipping info used for checkout.
Properties
| Name | Type | Description |
|---|---|---|
| subtotal | number | |
| grand_total | number | |
| 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. |