|
1
|
/** |
|
2
|
* @enum |
|
3
|
* |
|
4
|
* The order's status. |
|
5
|
*/ |
|
6
|
export enum OrderStatus { |
|
7
|
/** |
|
8
|
* The order is pending. |
|
9
|
*/ |
|
10
|
PENDING = "pending", |
|
11
|
/** |
|
12
|
* The order is completed |
|
13
|
*/ |
|
14
|
COMPLETED = "completed", |
|
15
|
/** |
|
16
|
* The order is a draft. |
|
17
|
*/ |
|
18
|
DRAFT = "draft", |
|
19
|
/** |
|
20
|
* The order is archived. |
|
21
|
*/ |
|
22
|
ARCHIVED = "archived", |
|
23
|
/** |
|
24
|
* The order is canceled. |
|
25
|
*/ |
|
26
|
CANCELED = "canceled", |
|
27
|
/** |
|
28
|
* The order requires action. |
|
29
|
*/ |
|
30
|
REQUIRES_ACTION = "requires_action", |
|
31
|
} |
|
32
|
|
|
33
|
/** |
|
34
|
* @enum |
|
35
|
* |
|
36
|
* The return's status. |
|
37
|
*/ |
|
38
|
export enum ReturnStatus { |
|
39
|
/** |
|
40
|
* The return is open. |
|
41
|
*/ |
|
42
|
OPEN = "open", |
|
43
|
/** |
|
44
|
* The return is requested. |
|
45
|
*/ |
|
46
|
REQUESTED = "requested", |
|
47
|
/** |
|
48
|
* The return is received. |
|
49
|
*/ |
|
50
|
RECEIVED = "received", |
|
51
|
/** |
|
52
|
* The return is partially received. |
|
53
|
*/ |
|
54
|
PARTIALLY_RECEIVED = "partially_received", |
|
55
|
/** |
|
56
|
* The return is canceled. |
|
57
|
*/ |
|
58
|
CANCELED = "canceled", |
|
59
|
} |
|
60
|
|
|
61
|
/** |
|
62
|
* @enum |
|
63
|
* |
|
64
|
* The claim's type. |
|
65
|
*/ |
|
66
|
export enum ClaimType { |
|
67
|
/** |
|
68
|
* The claim refunds an amount to the customer. |
|
69
|
*/ |
|
70
|
REFUND = "refund", |
|
71
|
/** |
|
72
|
* The claim replaces the returned item with a new one. |
|
73
|
*/ |
|
74
|
REPLACE = "replace", |
|
75
|
} |
|
76
|
|
|
77
|
/** |
|
78
|
* @enum |
|
79
|
* |
|
80
|
* The claim's item reason. |
|
81
|
*/ |
|
82
|
export enum ClaimReason { |
|
83
|
MISSING_ITEM = "missing_item", |
|
84
|
WRONG_ITEM = "wrong_item", |
|
85
|
PRODUCTION_FAILURE = "production_failure", |
|
86
|
OTHER = "other", |
|
87
|
} |