Skip to main content

Class: Swap

Hierarchy

  • SoftDeletableEntity

    Swap

Constructors

constructor

new Swap()

Inherited from

SoftDeletableEntity.constructor

Properties

additional_items

additional_items: LineItem[]

Defined in

models/swap.ts:62


allow_backorder

allow_backorder: boolean

Defined in

models/swap.ts:107


canceled_at

canceled_at: Date

Defined in

models/swap.ts:101


cart

cart: Cart

Defined in

models/swap.ts:95


cart_id

cart_id: string

Defined in

models/swap.ts:91


confirmed_at

confirmed_at: Date

Defined in

models/swap.ts:98


created_at

created_at: Date

Inherited from

SoftDeletableEntity.created_at

Defined in

interfaces/models/base-entity.ts:16


deleted_at

deleted_at: null | Date

Inherited from

SoftDeletableEntity.deleted_at

Defined in

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


difference_due

difference_due: number

Defined in

models/swap.ts:76


fulfillment_status

fulfillment_status: SwapFulfillmentStatus

Defined in

models/swap.ts:48


fulfillments

fulfillments: Fulfillment[]

Defined in

models/swap.ts:70


id

id: string

Inherited from

SoftDeletableEntity.id

Defined in

interfaces/models/base-entity.ts:13


idempotency_key

idempotency_key: string

Defined in

models/swap.ts:110


metadata

metadata: Record<string, unknown>

Defined in

models/swap.ts:113


no_notification

no_notification: boolean

Defined in

models/swap.ts:104


order

order: Order

Defined in

models/swap.ts:59


order_id

order_id: string

Defined in

models/swap.ts:55


payment

payment: Payment

Defined in

models/swap.ts:73


payment_status

payment_status: SwapPaymentStatus

Defined in

models/swap.ts:51


return_order

return_order: Return

Defined in

models/swap.ts:65


shipping_address

shipping_address: Address

Defined in

models/swap.ts:83


shipping_address_id

shipping_address_id: string

Defined in

models/swap.ts:79


shipping_methods

shipping_methods: ShippingMethod[]

Defined in

models/swap.ts:88


updated_at

updated_at: Date

Inherited from

SoftDeletableEntity.updated_at

Defined in

interfaces/models/base-entity.ts:19

Methods

beforeInsert

Private beforeInsert(): void

Returns

void

Defined in

models/swap.ts:115

Was this page helpful?