Class: Cart
Hierarchy
SoftDeletableEntity
↳
Cart
Constructors
constructor
• new Cart()
Inherited from
SoftDeletableEntity.constructor
Properties
billing_address
• billing_address: Address
Defined in
billing_address_id
• billing_address_id: string
Defined in
completed_at
• completed_at: Date
Defined in
context
• context: Record
<string
, unknown
>
Defined in
created_at
• created_at: Date
Inherited from
SoftDeletableEntity.created_at
Defined in
interfaces/models/base-entity.ts:16
customer
• customer: Customer
Defined in
customer_id
• customer_id: string
Defined in
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
discounts
• discounts: Discount
[]
Defined in
email
• email: string
Defined in
gift_card_tax_total
• Optional
gift_card_tax_total: number
Defined in
gift_card_total
• Optional
gift_card_total: number
Defined in
gift_cards
• gift_cards: GiftCard
[]
Defined in
id
• id: string
Inherited from
SoftDeletableEntity.id
Defined in
interfaces/models/base-entity.ts:13
idempotency_key
• idempotency_key: string
Defined in
item_tax_total
• Optional
item_tax_total: null
| number
Defined in
items
• items: LineItem
[]
Defined in
metadata
• metadata: Record
<string
, unknown
>
Defined in
object
• Readonly
object: "cart"
Defined in
payment
• payment: Payment
Defined in
payment_authorized_at
• payment_authorized_at: Date
Defined in
payment_id
• payment_id: string
Defined in
payment_session
• payment_session: null
| PaymentSession
Defined in
payment_sessions
• payment_sessions: PaymentSession
[]
Defined in
refundable_amount
• Optional
refundable_amount: number
Defined in
refunded_total
• Optional
refunded_total: number
Defined in
region
• region: Region
Defined in
region_id
• region_id: string
Defined in
sales_channel
• sales_channel: SalesChannel
Defined in
sales_channel_id
• sales_channel_id: null
| string
Defined in
shipping_address
• shipping_address: null
| Address
Defined in
shipping_address_id
• shipping_address_id: string
Defined in
shipping_methods
• shipping_methods: ShippingMethod
[]
Defined in
shipping_tax_total
• Optional
shipping_tax_total: null
| number
Defined in
shipping_total
• Optional
shipping_total: number
Defined in
subtotal
• Optional
subtotal: number
Defined in
tax_total
• Optional
tax_total: null
| number
Defined in
total
• Optional
total: number
Defined in
type
• type: CartType
Defined in
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
beforeInsert
▸ Private
beforeInsert(): void
Returns
void