Files
medusa-store/packages/utils/src/order/status.ts
Carlos R. L. Rodrigues 56b0b45304 Feat(order): order changes (#6435)
What:
 - Order DB schema migration
 - BigNumberField Decorator
  
![order_schema](https://github.com/medusajs/medusa/assets/37986729/64ec82ca-5c28-46ef-9a57-614c5a4d25f6)
2024-02-20 23:07:57 +00:00

60 lines
919 B
TypeScript

/**
* @enum
*
* The order's status.
*/
export enum OrderStatus {
/**
* The order is pending.
*/
PENDING = "pending",
/**
* The order is completed
*/
COMPLETED = "completed",
/**
* The order is a draft.
*/
DRAFT = "draft",
/**
* The order is archived.
*/
ARCHIVED = "archived",
/**
* The order is canceled.
*/
CANCELED = "canceled",
/**
* The order requires action.
*/
REQUIRES_ACTION = "requires_action",
}
/**
* @enum
*
* The order change's status.
*/
export enum OrderChangeStatus {
/**
* The order change is confirmed.
*/
CONFIRMED = "confirmed",
/**
* The order change is declined.
*/
DECLINED = "declined",
/**
* The order change is requested.
*/
REQUESTED = "requested",
/**
* The order change is pending.
*/
PENDING = "pending",
/**
* The order change is canceled.
*/
CANCELED = "canceled",
}