Class: Swap
Hierarchy
SoftDeletableEntity
↳
Swap
Constructors
constructor
• new Swap()
Inherited from
SoftDeletableEntity.constructor
Properties
additional_items
• additional_items: LineItem
[]
Defined in
allow_backorder
• allow_backorder: boolean
Defined in
canceled_at
• canceled_at: Date
Defined in
cart
• cart: Cart
Defined in
cart_id
• cart_id: string
Defined in
confirmed_at
• confirmed_at: Date
Defined in
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
fulfillment_status
• fulfillment_status: SwapFulfillmentStatus
Defined in
fulfillments
• fulfillments: Fulfillment
[]
Defined in
id
• id: string
Inherited from
SoftDeletableEntity.id
Defined in
interfaces/models/base-entity.ts:13
idempotency_key
• idempotency_key: string
Defined in
metadata
• metadata: Record
<string
, unknown
>
Defined in
no_notification
• no_notification: boolean
Defined in
order
• order: Order
Defined in
order_id
• order_id: string
Defined in
payment
• payment: Payment
Defined in
payment_status
• payment_status: SwapPaymentStatus
Defined in
return_order
• return_order: Return
Defined in
shipping_address
• shipping_address: Address
Defined in
shipping_address_id
• shipping_address_id: string
Defined in
shipping_methods
• shipping_methods: ShippingMethod
[]
Defined in
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