Skip to main content

Class: Cart

Hierarchy

  • SoftDeletableEntity

    Cart

Constructors

constructor

new Cart()

Inherited from

SoftDeletableEntity.constructor

Properties

billing_address

billing_address: Address

Defined in

models/cart.ts:226


billing_address_id

billing_address_id: string

Defined in

models/cart.ts:220


completed_at

completed_at: Date

Defined in

models/cart.ts:311


context

context: Record<string, unknown>

Defined in

models/cart.ts:320


created_at

created_at: Date

Inherited from

SoftDeletableEntity.created_at

Defined in

interfaces/models/base-entity.ts:16


customer

customer: Customer

Defined in

models/cart.ts:285


customer_id

customer_id: string

Defined in

models/cart.ts:281


deleted_at

deleted_at: null | Date

Inherited from

SoftDeletableEntity.deleted_at

Defined in

interfaces/models/soft-deletable-entity.ts:7


discount_total

Optional discount_total: number

Defined in

models/cart.ts:335


discounts

discounts: Discount[]

Defined in

models/cart.ts:263


email

email: string

Defined in

models/cart.ts:216


gift_card_tax_total

Optional gift_card_tax_total: number

Defined in

models/cart.ts:344


gift_card_total

Optional gift_card_total: number

Defined in

models/cart.ts:343


gift_cards

gift_cards: GiftCard[]

Defined in

models/cart.ts:277


id

id: string

Inherited from

SoftDeletableEntity.id

Defined in

interfaces/models/base-entity.ts:13


idempotency_key

idempotency_key: string

Defined in

models/cart.ts:317


item_tax_total

Optional item_tax_total: null | number

Defined in

models/cart.ts:336


items

items: LineItem[]

Defined in

models/cart.ts:241


metadata

metadata: Record<string, unknown>

Defined in

models/cart.ts:323


object

Readonly object: "cart"

Defined in

models/cart.ts:213


payment

payment: Payment

Defined in

models/cart.ts:300


payment_authorized_at

payment_authorized_at: Date

Defined in

models/cart.ts:314


payment_id

payment_id: string

Defined in

models/cart.ts:296


payment_session

payment_session: null | PaymentSession

Defined in

models/cart.ts:287


payment_sessions

payment_sessions: PaymentSession[]

Defined in

models/cart.ts:292


refundable_amount

Optional refundable_amount: number

Defined in

models/cart.ts:342


refunded_total

Optional refunded_total: number

Defined in

models/cart.ts:339


region

region: Region

Defined in

models/cart.ts:249


region_id

region_id: string

Defined in

models/cart.ts:245


sales_channel

sales_channel: SalesChannel

Defined in

models/cart.ts:332


sales_channel_id

sales_channel_id: null | string

Defined in

models/cart.ts:326


shipping_address

shipping_address: null | Address

Defined in

models/cart.ts:236


shipping_address_id

shipping_address_id: string

Defined in

models/cart.ts:230


shipping_methods

shipping_methods: ShippingMethod[]

Defined in

models/cart.ts:305


shipping_tax_total

Optional shipping_tax_total: null | number

Defined in

models/cart.ts:337


shipping_total

Optional shipping_total: number

Defined in

models/cart.ts:334


subtotal

Optional subtotal: number

Defined in

models/cart.ts:341


tax_total

Optional tax_total: null | number

Defined in

models/cart.ts:338


total

Optional total: number

Defined in

models/cart.ts:340


type

type: CartType

Defined in

models/cart.ts:308


updated_at

updated_at: Date

Inherited from

SoftDeletableEntity.updated_at

Defined in

interfaces/models/base-entity.ts:19

Methods

afterLoad

Private afterLoad(): void

Returns

void

Defined in

models/cart.ts:346


beforeInsert

Private beforeInsert(): void

Returns

void

Defined in

models/cart.ts:353