Files
medusa-store/docs/content/references/js-client/classes/internal.Cart.md
T
Shahed Nasser a8293af8e1 fix: overlapping branch names for generated PRs of references (#2097)
* fix overlapping branch names of generated references

* regenerate references
2022-08-25 17:47:58 +03:00

5.7 KiB

displayed_sidebar
displayed_sidebar
jsClientSidebar

Class: Cart

internal.Cart

Base abstract entity for all entities

Hierarchy

Properties

afterLoad

• Private afterLoad: any

Defined in

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


beforeInsert

• Private beforeInsert: any

Defined in

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


billing_address

• billing_address: Address

Defined in

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


billing_address_id

• billing_address_id: string

Defined in

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


completed_at

• completed_at: Date

Defined in

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


context

• context: Record<string, unknown>

Defined in

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


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:201


customer_id

• customer_id: string

Defined in

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


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:216


discounts

• discounts: Discount[]

Defined in

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


email

• email: string

Defined in

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


gift_card_tax_total

• Optional gift_card_tax_total: number

Defined in

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


gift_card_total

• Optional gift_card_total: number

Defined in

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


gift_cards

• gift_cards: GiftCard[]

Defined in

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


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:210


items

• items: LineItem[]

Defined in

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


metadata

• metadata: Record<string, unknown>

Defined in

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


object

• Readonly object: "cart"

Defined in

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


payment

• payment: Payment

Defined in

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


payment_authorized_at

• payment_authorized_at: Date

Defined in

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


payment_id

• payment_id: string

Defined in

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


payment_session

• payment_session: null | PaymentSession

Defined in

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


payment_sessions

• payment_sessions: PaymentSession[]

Defined in

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


refundable_amount

• Optional refundable_amount: number

Defined in

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


refunded_total

• Optional refunded_total: number

Defined in

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


region

• region: Region

Defined in

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


region_id

• region_id: string

Defined in

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


sales_channel

• sales_channel: SalesChannel

Defined in

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


sales_channel_id

• sales_channel_id: null | string

Defined in

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


shipping_address

• shipping_address: null | Address

Defined in

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


shipping_address_id

• shipping_address_id: string

Defined in

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


shipping_methods

• shipping_methods: ShippingMethod[]

Defined in

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


shipping_total

• Optional shipping_total: number

Defined in

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


subtotal

• Optional subtotal: number

Defined in

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


tax_total

• Optional tax_total: null | number

Defined in

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


total

• Optional total: number

Defined in

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


type

• type: CartType

Defined in

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


updated_at

• updated_at: Date

Inherited from

SoftDeletableEntity.updated_at

Defined in

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