OrderEdit
Order edit allows modifying items in an order, such as adding, updating, or deleting items from the original order. Once the order edit is confirmed, the changes are reflected on the original order.
Constructors
constructor
**new OrderEdit**()
Order edit allows modifying items in an order, such as adding, updating, or deleting items from the original order. Once the order edit is confirmed, the changes are reflected on the original order.
Properties
canceled_atDateThe date with timezone at which the edit was cancelled.
canceled_bystringThe unique identifier of the user or customer who cancelled the order edit.
The details of all the changes on the original order's line items.
confirmed_atDateThe date with timezone at which the edit was confirmed.
confirmed_bystringThe unique identifier of the user or customer who confirmed the order edit.
created_atDateRequiredThe date with timezone at which the resource was created.
created_bystringRequiredThe unique identifier of the user or customer who created the order edit.
declined_atDateThe date with timezone at which the edit was declined.
declined_bystringThe unique identifier of the user or customer who declined the order edit.
declined_reasonstringAn optional note why the order edit is declined.
difference_duenumberRequiredThe difference between the total amount of the order and total amount of edited order.
discount_totalnumberRequiredThe total of discount
gift_card_tax_totalnumberRequiredThe total of the gift card tax amount
gift_card_totalnumberRequiredThe total of the gift card amount
idstringRequiredThe order edit's ID
internal_notestringAn optional note with additional details about the order edit.
The details of the cloned items from the original order with the new changes. Once the order edit is confirmed, these line items are associated with the original order.
The details of the order that this order edit was created for.
order_idstringRequiredThe ID of the order that is edited
The details of the payment collection used to authorize additional payment if necessary.
payment_collection_idstringRequiredThe ID of the payment collection
requested_atDateThe date with timezone at which the edit was requested.
requested_bystringThe unique identifier of the user or customer who requested the order edit.
shipping_totalnumberRequiredThe total of the shipping amount
The status of the order edit.
subtotalnumberRequiredThe total of subtotal
tax_totalnull | numberRequiredThe total of tax
totalnumberRequiredThe total amount of the edited order.
updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidloadStatus
**loadStatus**(): void
Returns
void
voidvoidWas this section helpful?