Skip to main content

Class: Cart

internal.Cart

Base abstract entity for all entities

Hierarchy

Properties

afterLoad

Private afterLoad: any

Defined in

medusa/dist/models/cart.d.ts:227


beforeInsert

Private beforeInsert: any

Defined in

medusa/dist/models/cart.d.ts:228


billing_address

billing_address: Address

Defined in

medusa/dist/models/cart.d.ts:193


billing_address_id

billing_address_id: string

Defined in

medusa/dist/models/cart.d.ts:192


completed_at

completed_at: Date

Defined in

medusa/dist/models/cart.d.ts:209


context

context: Record<string, unknown>

Defined in

medusa/dist/models/cart.d.ts:212


created_at

created_at: Date

Inherited from

SoftDeletableEntity.created_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:6


customer

customer: Customer

Defined in

medusa/dist/models/cart.d.ts:202


customer_id

customer_id: string

Defined in

medusa/dist/models/cart.d.ts:201


deleted_at

deleted_at: null | Date

Inherited from

SoftDeletableEntity.deleted_at

Defined in

medusa/dist/interfaces/models/soft-deletable-entity.d.ts:3


discount_total

Optional discount_total: number

Defined in

medusa/dist/models/cart.d.ts:217


discounts

discounts: Discount[]

Defined in

medusa/dist/models/cart.d.ts:199


email

email: string

Defined in

medusa/dist/models/cart.d.ts:191


gift_card_tax_total

Optional gift_card_tax_total: number

Defined in

medusa/dist/models/cart.d.ts:226


gift_card_total

Optional gift_card_total: number

Defined in

medusa/dist/models/cart.d.ts:225


gift_cards

gift_cards: GiftCard[]

Defined in

medusa/dist/models/cart.d.ts:200


id

id: string

Inherited from

SoftDeletableEntity.id

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:5


idempotency_key

idempotency_key: string

Defined in

medusa/dist/models/cart.d.ts:211


item_tax_total

Optional item_tax_total: null | number

Defined in

medusa/dist/models/cart.d.ts:218


items

items: LineItem[]

Defined in

medusa/dist/models/cart.d.ts:196


metadata

metadata: Record<string, unknown>

Defined in

medusa/dist/models/cart.d.ts:213


object

Readonly object: "cart"

Defined in

medusa/dist/models/cart.d.ts:190


payment

payment: Payment

Defined in

medusa/dist/models/cart.d.ts:206


payment_authorized_at

payment_authorized_at: Date

Defined in

medusa/dist/models/cart.d.ts:210


payment_id

payment_id: string

Defined in

medusa/dist/models/cart.d.ts:205


payment_session

payment_session: null | PaymentSession

Defined in

medusa/dist/models/cart.d.ts:203


payment_sessions

payment_sessions: PaymentSession[]

Defined in

medusa/dist/models/cart.d.ts:204


refundable_amount

Optional refundable_amount: number

Defined in

medusa/dist/models/cart.d.ts:224


refunded_total

Optional refunded_total: number

Defined in

medusa/dist/models/cart.d.ts:221


region

region: Region

Defined in

medusa/dist/models/cart.d.ts:198


region_id

region_id: string

Defined in

medusa/dist/models/cart.d.ts:197


sales_channel

sales_channel: SalesChannel

Defined in

medusa/dist/models/cart.d.ts:215


sales_channel_id

sales_channel_id: null | string

Defined in

medusa/dist/models/cart.d.ts:214


shipping_address

shipping_address: null | Address

Defined in

medusa/dist/models/cart.d.ts:195


shipping_address_id

shipping_address_id: string

Defined in

medusa/dist/models/cart.d.ts:194


shipping_methods

shipping_methods: ShippingMethod[]

Defined in

medusa/dist/models/cart.d.ts:207


shipping_tax_total

Optional shipping_tax_total: null | number

Defined in

medusa/dist/models/cart.d.ts:219


shipping_total

Optional shipping_total: number

Defined in

medusa/dist/models/cart.d.ts:216


subtotal

Optional subtotal: number

Defined in

medusa/dist/models/cart.d.ts:223


tax_total

Optional tax_total: null | number

Defined in

medusa/dist/models/cart.d.ts:220


total

Optional total: number

Defined in

medusa/dist/models/cart.d.ts:222


type

type: CartType

Defined in

medusa/dist/models/cart.d.ts:208


updated_at

updated_at: Date

Inherited from

SoftDeletableEntity.updated_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:7

Was this page helpful?