@shushed/helpers 0.0.288 → 0.0.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/cjs/contracts/asset.schema.json +4 -0
  2. package/dist/cjs/contracts/order/address.schema.json +14 -18
  3. package/dist/cjs/contracts/order/item.schema.json +6 -1
  4. package/dist/cjs/contracts/order/payment.schema.json +4 -4
  5. package/dist/cjs/contracts/order/shipment/item.schema.json +6 -1
  6. package/dist/cjs/contracts/order/shipment.schema.json +14 -0
  7. package/dist/cjs/contracts/order.schema.json +53 -53
  8. package/dist/cjs/dist-dereferenced/asset.js +1 -1
  9. package/dist/cjs/dist-dereferenced/development-colour.js +1 -1
  10. package/dist/cjs/dist-dereferenced/messages/order/delivered.js +1 -1
  11. package/dist/cjs/dist-dereferenced/messages/order/new.js +1 -1
  12. package/dist/cjs/dist-dereferenced/messages/order/processed.js +1 -1
  13. package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +1 -1
  14. package/dist/cjs/dist-dereferenced/messages/order/returned.js +1 -1
  15. package/dist/cjs/dist-dereferenced/messages/order/shipped.js +1 -1
  16. package/dist/cjs/dist-dereferenced/messages/product.js +1 -1
  17. package/dist/cjs/dist-dereferenced/order/address.js +1 -1
  18. package/dist/cjs/dist-dereferenced/order/customer.js +1 -1
  19. package/dist/cjs/dist-dereferenced/order/item.js +1 -1
  20. package/dist/cjs/dist-dereferenced/order/orderMain.js +1 -1
  21. package/dist/cjs/dist-dereferenced/order/payment.js +1 -1
  22. package/dist/cjs/dist-dereferenced/order/shipment/item/itemMain.js +1 -1
  23. package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +1 -1
  24. package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +1 -1
  25. package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +1 -1
  26. package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +1 -1
  27. package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +1 -1
  28. package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +1 -1
  29. package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +1 -1
  30. package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +1 -1
  31. package/dist/cjs/dist-dereferenced/product.js +1 -1
  32. package/dist/cjs/src-public/bcOrder.js +125 -110
  33. package/dist/types/dist-dereferenced/asset.d.ts +3 -0
  34. package/dist/types/dist-dereferenced/development-colour.d.ts +3 -0
  35. package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +117 -105
  36. package/dist/types/dist-dereferenced/messages/order/new.d.ts +117 -105
  37. package/dist/types/dist-dereferenced/messages/order/processed.d.ts +117 -105
  38. package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +117 -105
  39. package/dist/types/dist-dereferenced/messages/order/returned.d.ts +117 -105
  40. package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +117 -105
  41. package/dist/types/dist-dereferenced/messages/product.d.ts +3 -0
  42. package/dist/types/dist-dereferenced/order/address.d.ts +10 -14
  43. package/dist/types/dist-dereferenced/order/customer.d.ts +10 -14
  44. package/dist/types/dist-dereferenced/order/index.d.ts +117 -105
  45. package/dist/types/dist-dereferenced/order/item.d.ts +3 -0
  46. package/dist/types/dist-dereferenced/order/orderMain.d.ts +117 -105
  47. package/dist/types/dist-dereferenced/order/payment.d.ts +2 -2
  48. package/dist/types/dist-dereferenced/order/shipment/index.d.ts +15 -1
  49. package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +4 -1
  50. package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +4 -1
  51. package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +4 -1
  52. package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +15 -1
  53. package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +15 -1
  54. package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +15 -1
  55. package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +15 -1
  56. package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +15 -1
  57. package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +15 -1
  58. package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +15 -1
  59. package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +15 -1
  60. package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +15 -1
  61. package/dist/types/dist-dereferenced/product.d.ts +3 -0
  62. package/dist/types/dist-types/asset.d.ts +1 -0
  63. package/dist/types/dist-types/development-colour.d.ts +1 -0
  64. package/dist/types/dist-types/messages/order/delivered.d.ts +14 -9
  65. package/dist/types/dist-types/messages/order/new.d.ts +14 -9
  66. package/dist/types/dist-types/messages/order/processed.d.ts +14 -9
  67. package/dist/types/dist-types/messages/order/return-initiated.d.ts +14 -9
  68. package/dist/types/dist-types/messages/order/returned.d.ts +14 -9
  69. package/dist/types/dist-types/messages/order/shipped.d.ts +14 -9
  70. package/dist/types/dist-types/messages/product.d.ts +1 -0
  71. package/dist/types/dist-types/order/address.d.ts +3 -3
  72. package/dist/types/dist-types/order/customer.d.ts +6 -6
  73. package/dist/types/dist-types/order/item.d.ts +1 -0
  74. package/dist/types/dist-types/order/orderMain.d.ts +14 -9
  75. package/dist/types/dist-types/order/payment.d.ts +2 -2
  76. package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +1 -0
  77. package/dist/types/dist-types/order/shipment/item/returned.d.ts +1 -0
  78. package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +4 -0
  79. package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +4 -0
  80. package/dist/types/dist-types/order/shipment/pos/return.d.ts +4 -0
  81. package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +4 -0
  82. package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +4 -0
  83. package/dist/types/dist-types/order/shipment/shipped/return.d.ts +4 -0
  84. package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +4 -0
  85. package/dist/types/dist-types/product.d.ts +1 -0
  86. package/package.json +1 -1
@@ -88,6 +88,17 @@ declare const schema: {
88
88
  readonly discount_campaign: {
89
89
  readonly type: readonly ["string", "null"];
90
90
  };
91
+ readonly courier_name: {
92
+ readonly type: readonly ["string", "null"];
93
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
94
+ };
95
+ readonly tracking_code: {
96
+ readonly type: readonly ["string", "null"];
97
+ };
98
+ readonly class_name: {
99
+ readonly type: readonly ["string"];
100
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
101
+ };
91
102
  readonly items: {
92
103
  readonly type: readonly ["array"];
93
104
  readonly items: {
@@ -101,12 +112,15 @@ declare const schema: {
101
112
  readonly type: readonly ["integer"];
102
113
  readonly minimum: 0;
103
114
  };
115
+ readonly sku: {
116
+ readonly type: readonly ["string"];
117
+ };
104
118
  readonly quantity: {
105
119
  readonly type: readonly ["integer"];
106
120
  readonly minimum: 1;
107
121
  };
108
122
  };
109
- readonly required: readonly ["lineNumber", "quantity"];
123
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
110
124
  }, {
111
125
  readonly $schema: "http://json-schema.org/draft-07/schema#";
112
126
  readonly title: "Order Shipment Item Returned";
@@ -95,6 +95,17 @@ declare const MainModuleObj: {
95
95
  readonly discount_campaign: {
96
96
  readonly type: readonly ["string", "null"];
97
97
  };
98
+ readonly courier_name: {
99
+ readonly type: readonly ["string", "null"];
100
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
101
+ };
102
+ readonly tracking_code: {
103
+ readonly type: readonly ["string", "null"];
104
+ };
105
+ readonly class_name: {
106
+ readonly type: readonly ["string"];
107
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
108
+ };
98
109
  readonly items: {
99
110
  readonly type: readonly ["array"];
100
111
  readonly items: {
@@ -108,12 +119,15 @@ declare const MainModuleObj: {
108
119
  readonly type: readonly ["integer"];
109
120
  readonly minimum: 0;
110
121
  };
122
+ readonly sku: {
123
+ readonly type: readonly ["string"];
124
+ };
111
125
  readonly quantity: {
112
126
  readonly type: readonly ["integer"];
113
127
  readonly minimum: 1;
114
128
  };
115
129
  };
116
- readonly required: readonly ["lineNumber", "quantity"];
130
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
117
131
  }, {
118
132
  readonly $schema: "http://json-schema.org/draft-07/schema#";
119
133
  readonly title: "Order Shipment Item Returned";
@@ -92,6 +92,17 @@ declare const schema: {
92
92
  readonly discount_campaign: {
93
93
  readonly type: readonly ["string", "null"];
94
94
  };
95
+ readonly courier_name: {
96
+ readonly type: readonly ["string", "null"];
97
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
98
+ };
99
+ readonly tracking_code: {
100
+ readonly type: readonly ["string", "null"];
101
+ };
102
+ readonly class_name: {
103
+ readonly type: readonly ["string"];
104
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
105
+ };
95
106
  readonly items: {
96
107
  readonly type: readonly ["array"];
97
108
  readonly items: {
@@ -144,12 +155,15 @@ declare const schema: {
144
155
  readonly type: readonly ["integer"];
145
156
  readonly minimum: 0;
146
157
  };
158
+ readonly sku: {
159
+ readonly type: readonly ["string"];
160
+ };
147
161
  readonly quantity: {
148
162
  readonly type: readonly ["integer"];
149
163
  readonly minimum: 1;
150
164
  };
151
165
  };
152
- readonly required: readonly ["lineNumber", "quantity"];
166
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
153
167
  };
154
168
  };
155
169
  };
@@ -92,6 +92,17 @@ declare const schema: {
92
92
  readonly discount_campaign: {
93
93
  readonly type: readonly ["string", "null"];
94
94
  };
95
+ readonly courier_name: {
96
+ readonly type: readonly ["string", "null"];
97
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
98
+ };
99
+ readonly tracking_code: {
100
+ readonly type: readonly ["string", "null"];
101
+ };
102
+ readonly class_name: {
103
+ readonly type: readonly ["string"];
104
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
105
+ };
95
106
  readonly items: {
96
107
  readonly type: readonly ["array"];
97
108
  readonly items: {
@@ -144,12 +155,15 @@ declare const schema: {
144
155
  readonly type: readonly ["integer"];
145
156
  readonly minimum: 0;
146
157
  };
158
+ readonly sku: {
159
+ readonly type: readonly ["string"];
160
+ };
147
161
  readonly quantity: {
148
162
  readonly type: readonly ["integer"];
149
163
  readonly minimum: 1;
150
164
  };
151
165
  };
152
- readonly required: readonly ["lineNumber", "quantity"];
166
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
153
167
  };
154
168
  };
155
169
  };
@@ -93,6 +93,17 @@ declare const schema: {
93
93
  readonly discount_campaign: {
94
94
  readonly type: readonly ["string", "null"];
95
95
  };
96
+ readonly courier_name: {
97
+ readonly type: readonly ["string", "null"];
98
+ readonly enum: readonly ["GLOBALE", "ROYALMAIL", "EVRI", "WAITROSE", null];
99
+ };
100
+ readonly tracking_code: {
101
+ readonly type: readonly ["string", "null"];
102
+ };
103
+ readonly class_name: {
104
+ readonly type: readonly ["string"];
105
+ readonly enum: readonly ["STANDARD", "PRIORITY"];
106
+ };
96
107
  readonly items: {
97
108
  readonly type: readonly ["array"];
98
109
  readonly items: {
@@ -106,12 +117,15 @@ declare const schema: {
106
117
  readonly type: readonly ["integer"];
107
118
  readonly minimum: 0;
108
119
  };
120
+ readonly sku: {
121
+ readonly type: readonly ["string"];
122
+ };
109
123
  readonly quantity: {
110
124
  readonly type: readonly ["integer"];
111
125
  readonly minimum: 1;
112
126
  };
113
127
  };
114
- readonly required: readonly ["lineNumber", "quantity"];
128
+ readonly required: readonly ["lineNumber", "sku", "quantity"];
115
129
  }, {
116
130
  readonly $schema: "http://json-schema.org/draft-07/schema#";
117
131
  readonly title: "Order Shipment Item Returned";
@@ -106,6 +106,9 @@ declare const schema: {
106
106
  readonly type: "string";
107
107
  readonly pattern: "^[a-z0-9-.]+$";
108
108
  };
109
+ readonly is_product: {
110
+ readonly type: "boolean";
111
+ };
109
112
  };
110
113
  readonly required: readonly ["source_url", "content_type", "last_modified_at"];
111
114
  };
@@ -13,5 +13,6 @@ export interface __MainSchema {
13
13
  };
14
14
  content_type: string;
15
15
  file_name?: string;
16
+ is_product?: boolean;
16
17
  }
17
18
  export default __MainSchema;
@@ -28,5 +28,6 @@ export interface Asset {
28
28
  };
29
29
  content_type: string;
30
30
  file_name?: string;
31
+ is_product?: boolean;
31
32
  }
32
33
  export default __MainSchema;
@@ -17,6 +17,9 @@ export type Shipment = (Total & {
17
17
  status?: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
18
18
  discount_code?: (string | null);
19
19
  discount_campaign?: (string | null);
20
+ courier_name?: ("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE" | null);
21
+ tracking_code?: (string | null);
22
+ class_name?: ("STANDARD" | "PRIORITY");
20
23
  items?: (OrderShipmentItem | OrderShipmentItemReturned)[];
21
24
  [k: string]: unknown;
22
25
  });
@@ -67,6 +70,7 @@ export type Item = (Total & {
67
70
  discount_code?: (string | null);
68
71
  discount_campaign?: (string | null);
69
72
  cost_net?: Money3;
73
+ order_line_no?: (number | null);
70
74
  [k: string]: unknown;
71
75
  });
72
76
  export interface Order {
@@ -81,11 +85,11 @@ export interface Order {
81
85
  payments?: Payment[];
82
86
  is_anonymous?: boolean;
83
87
  is_gift?: boolean;
88
+ is_pos?: boolean;
84
89
  customer?: Customer;
85
90
  billing_address?: (Address | null);
86
91
  shipping_address?: (Address | null);
87
92
  collection_point_id?: (string | null);
88
- is_pos?: boolean;
89
93
  shipments?: [
90
94
  (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
91
95
  ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
@@ -105,14 +109,14 @@ export interface Payment {
105
109
  additionalProperties?: never;
106
110
  created_at: string;
107
111
  payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
108
- transaction_id: string;
112
+ transaction_id: (string | null);
109
113
  card_number?: (string | null);
110
114
  card_holder?: (string | null);
111
115
  card_token?: (string | null);
112
116
  expiration_month?: (number | null);
113
117
  expiration_year?: (number | null);
114
118
  journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM" | null);
115
- psp_reference: string;
119
+ psp_reference: (string | null);
116
120
  card_brand?: (string | null);
117
121
  status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
118
122
  amount: Money;
@@ -170,11 +174,11 @@ export interface Address {
170
174
  is_retrieved_from_payment_method?: boolean;
171
175
  opt_in_mail?: boolean;
172
176
  company_name?: string;
173
- first_name: string;
174
- last_name: string;
177
+ first_name: (string | null);
178
+ last_name: (string | null);
175
179
  address1: string;
176
180
  address2?: (string | null);
177
- city: string;
181
+ city: (string | null);
178
182
  region?: (string | null);
179
183
  post_code?: (string | null);
180
184
  country_code: Country;
@@ -196,11 +200,11 @@ export interface Address1 {
196
200
  is_retrieved_from_payment_method?: boolean;
197
201
  opt_in_mail?: boolean;
198
202
  company_name?: string;
199
- first_name: string;
200
- last_name: string;
203
+ first_name: (string | null);
204
+ last_name: (string | null);
201
205
  address1: string;
202
206
  address2?: (string | null);
203
- city: string;
207
+ city: (string | null);
204
208
  region?: (string | null);
205
209
  post_code?: (string | null);
206
210
  country_code: Country;
@@ -251,6 +255,7 @@ export interface DiscountAmountGross {
251
255
  }
252
256
  export interface OrderShipmentItem {
253
257
  lineNumber: number;
258
+ sku: string;
254
259
  quantity: number;
255
260
  [k: string]: unknown;
256
261
  }
@@ -17,6 +17,9 @@ export type Shipment = (Total & {
17
17
  status?: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
18
18
  discount_code?: (string | null);
19
19
  discount_campaign?: (string | null);
20
+ courier_name?: ("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE" | null);
21
+ tracking_code?: (string | null);
22
+ class_name?: ("STANDARD" | "PRIORITY");
20
23
  items?: (OrderShipmentItem | OrderShipmentItemReturned)[];
21
24
  [k: string]: unknown;
22
25
  });
@@ -67,6 +70,7 @@ export type Item = (Total & {
67
70
  discount_code?: (string | null);
68
71
  discount_campaign?: (string | null);
69
72
  cost_net?: Money3;
73
+ order_line_no?: (number | null);
70
74
  [k: string]: unknown;
71
75
  });
72
76
  export interface Order {
@@ -81,11 +85,11 @@ export interface Order {
81
85
  payments?: Payment[];
82
86
  is_anonymous?: boolean;
83
87
  is_gift?: boolean;
88
+ is_pos?: boolean;
84
89
  customer?: Customer;
85
90
  billing_address?: (Address | null);
86
91
  shipping_address?: (Address | null);
87
92
  collection_point_id?: (string | null);
88
- is_pos?: boolean;
89
93
  shipments?: [
90
94
  (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
91
95
  ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
@@ -105,14 +109,14 @@ export interface Payment {
105
109
  additionalProperties?: never;
106
110
  created_at: string;
107
111
  payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
108
- transaction_id: string;
112
+ transaction_id: (string | null);
109
113
  card_number?: (string | null);
110
114
  card_holder?: (string | null);
111
115
  card_token?: (string | null);
112
116
  expiration_month?: (number | null);
113
117
  expiration_year?: (number | null);
114
118
  journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM" | null);
115
- psp_reference: string;
119
+ psp_reference: (string | null);
116
120
  card_brand?: (string | null);
117
121
  status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
118
122
  amount: Money;
@@ -170,11 +174,11 @@ export interface Address {
170
174
  is_retrieved_from_payment_method?: boolean;
171
175
  opt_in_mail?: boolean;
172
176
  company_name?: string;
173
- first_name: string;
174
- last_name: string;
177
+ first_name: (string | null);
178
+ last_name: (string | null);
175
179
  address1: string;
176
180
  address2?: (string | null);
177
- city: string;
181
+ city: (string | null);
178
182
  region?: (string | null);
179
183
  post_code?: (string | null);
180
184
  country_code: Country;
@@ -196,11 +200,11 @@ export interface Address1 {
196
200
  is_retrieved_from_payment_method?: boolean;
197
201
  opt_in_mail?: boolean;
198
202
  company_name?: string;
199
- first_name: string;
200
- last_name: string;
203
+ first_name: (string | null);
204
+ last_name: (string | null);
201
205
  address1: string;
202
206
  address2?: (string | null);
203
- city: string;
207
+ city: (string | null);
204
208
  region?: (string | null);
205
209
  post_code?: (string | null);
206
210
  country_code: Country;
@@ -251,6 +255,7 @@ export interface DiscountAmountGross {
251
255
  }
252
256
  export interface OrderShipmentItem {
253
257
  lineNumber: number;
258
+ sku: string;
254
259
  quantity: number;
255
260
  [k: string]: unknown;
256
261
  }
@@ -17,6 +17,9 @@ export type Shipment = (Total & {
17
17
  status?: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
18
18
  discount_code?: (string | null);
19
19
  discount_campaign?: (string | null);
20
+ courier_name?: ("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE" | null);
21
+ tracking_code?: (string | null);
22
+ class_name?: ("STANDARD" | "PRIORITY");
20
23
  items?: (OrderShipmentItem | OrderShipmentItemReturned)[];
21
24
  [k: string]: unknown;
22
25
  });
@@ -67,6 +70,7 @@ export type Item = (Total & {
67
70
  discount_code?: (string | null);
68
71
  discount_campaign?: (string | null);
69
72
  cost_net?: Money3;
73
+ order_line_no?: (number | null);
70
74
  [k: string]: unknown;
71
75
  });
72
76
  export interface Order {
@@ -81,11 +85,11 @@ export interface Order {
81
85
  payments?: Payment[];
82
86
  is_anonymous?: boolean;
83
87
  is_gift?: boolean;
88
+ is_pos?: boolean;
84
89
  customer?: Customer;
85
90
  billing_address?: (Address | null);
86
91
  shipping_address?: (Address | null);
87
92
  collection_point_id?: (string | null);
88
- is_pos?: boolean;
89
93
  shipments?: [
90
94
  (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
91
95
  ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
@@ -105,14 +109,14 @@ export interface Payment {
105
109
  additionalProperties?: never;
106
110
  created_at: string;
107
111
  payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
108
- transaction_id: string;
112
+ transaction_id: (string | null);
109
113
  card_number?: (string | null);
110
114
  card_holder?: (string | null);
111
115
  card_token?: (string | null);
112
116
  expiration_month?: (number | null);
113
117
  expiration_year?: (number | null);
114
118
  journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM" | null);
115
- psp_reference: string;
119
+ psp_reference: (string | null);
116
120
  card_brand?: (string | null);
117
121
  status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
118
122
  amount: Money;
@@ -170,11 +174,11 @@ export interface Address {
170
174
  is_retrieved_from_payment_method?: boolean;
171
175
  opt_in_mail?: boolean;
172
176
  company_name?: string;
173
- first_name: string;
174
- last_name: string;
177
+ first_name: (string | null);
178
+ last_name: (string | null);
175
179
  address1: string;
176
180
  address2?: (string | null);
177
- city: string;
181
+ city: (string | null);
178
182
  region?: (string | null);
179
183
  post_code?: (string | null);
180
184
  country_code: Country;
@@ -196,11 +200,11 @@ export interface Address1 {
196
200
  is_retrieved_from_payment_method?: boolean;
197
201
  opt_in_mail?: boolean;
198
202
  company_name?: string;
199
- first_name: string;
200
- last_name: string;
203
+ first_name: (string | null);
204
+ last_name: (string | null);
201
205
  address1: string;
202
206
  address2?: (string | null);
203
- city: string;
207
+ city: (string | null);
204
208
  region?: (string | null);
205
209
  post_code?: (string | null);
206
210
  country_code: Country;
@@ -251,6 +255,7 @@ export interface DiscountAmountGross {
251
255
  }
252
256
  export interface OrderShipmentItem {
253
257
  lineNumber: number;
258
+ sku: string;
254
259
  quantity: number;
255
260
  [k: string]: unknown;
256
261
  }
@@ -17,6 +17,9 @@ export type Shipment = (Total & {
17
17
  status?: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
18
18
  discount_code?: (string | null);
19
19
  discount_campaign?: (string | null);
20
+ courier_name?: ("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE" | null);
21
+ tracking_code?: (string | null);
22
+ class_name?: ("STANDARD" | "PRIORITY");
20
23
  items?: (OrderShipmentItem | OrderShipmentItemReturned)[];
21
24
  [k: string]: unknown;
22
25
  });
@@ -67,6 +70,7 @@ export type Item = (Total & {
67
70
  discount_code?: (string | null);
68
71
  discount_campaign?: (string | null);
69
72
  cost_net?: Money3;
73
+ order_line_no?: (number | null);
70
74
  [k: string]: unknown;
71
75
  });
72
76
  export interface Order {
@@ -81,11 +85,11 @@ export interface Order {
81
85
  payments?: Payment[];
82
86
  is_anonymous?: boolean;
83
87
  is_gift?: boolean;
88
+ is_pos?: boolean;
84
89
  customer?: Customer;
85
90
  billing_address?: (Address | null);
86
91
  shipping_address?: (Address | null);
87
92
  collection_point_id?: (string | null);
88
- is_pos?: boolean;
89
93
  shipments?: [
90
94
  (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
91
95
  ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
@@ -105,14 +109,14 @@ export interface Payment {
105
109
  additionalProperties?: never;
106
110
  created_at: string;
107
111
  payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
108
- transaction_id: string;
112
+ transaction_id: (string | null);
109
113
  card_number?: (string | null);
110
114
  card_holder?: (string | null);
111
115
  card_token?: (string | null);
112
116
  expiration_month?: (number | null);
113
117
  expiration_year?: (number | null);
114
118
  journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM" | null);
115
- psp_reference: string;
119
+ psp_reference: (string | null);
116
120
  card_brand?: (string | null);
117
121
  status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
118
122
  amount: Money;
@@ -170,11 +174,11 @@ export interface Address {
170
174
  is_retrieved_from_payment_method?: boolean;
171
175
  opt_in_mail?: boolean;
172
176
  company_name?: string;
173
- first_name: string;
174
- last_name: string;
177
+ first_name: (string | null);
178
+ last_name: (string | null);
175
179
  address1: string;
176
180
  address2?: (string | null);
177
- city: string;
181
+ city: (string | null);
178
182
  region?: (string | null);
179
183
  post_code?: (string | null);
180
184
  country_code: Country;
@@ -196,11 +200,11 @@ export interface Address1 {
196
200
  is_retrieved_from_payment_method?: boolean;
197
201
  opt_in_mail?: boolean;
198
202
  company_name?: string;
199
- first_name: string;
200
- last_name: string;
203
+ first_name: (string | null);
204
+ last_name: (string | null);
201
205
  address1: string;
202
206
  address2?: (string | null);
203
- city: string;
207
+ city: (string | null);
204
208
  region?: (string | null);
205
209
  post_code?: (string | null);
206
210
  country_code: Country;
@@ -251,6 +255,7 @@ export interface DiscountAmountGross {
251
255
  }
252
256
  export interface OrderShipmentItem {
253
257
  lineNumber: number;
258
+ sku: string;
254
259
  quantity: number;
255
260
  [k: string]: unknown;
256
261
  }
@@ -18,6 +18,9 @@ export type Shipment = (Total & {
18
18
  status?: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
19
19
  discount_code?: (string | null);
20
20
  discount_campaign?: (string | null);
21
+ courier_name?: ("GLOBALE" | "ROYALMAIL" | "EVRI" | "WAITROSE" | null);
22
+ tracking_code?: (string | null);
23
+ class_name?: ("STANDARD" | "PRIORITY");
21
24
  items?: (OrderShipmentItem | OrderShipmentItemReturned)[];
22
25
  [k: string]: unknown;
23
26
  });
@@ -68,6 +71,7 @@ export type Item = (Total & {
68
71
  discount_code?: (string | null);
69
72
  discount_campaign?: (string | null);
70
73
  cost_net?: Money3;
74
+ order_line_no?: (number | null);
71
75
  [k: string]: unknown;
72
76
  });
73
77
  export interface Order {
@@ -82,11 +86,11 @@ export interface Order {
82
86
  payments?: Payment[];
83
87
  is_anonymous?: boolean;
84
88
  is_gift?: boolean;
89
+ is_pos?: boolean;
85
90
  customer?: Customer;
86
91
  billing_address?: (Address | null);
87
92
  shipping_address?: (Address | null);
88
93
  collection_point_id?: (string | null);
89
- is_pos?: boolean;
90
94
  shipments?: [
91
95
  (OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
92
96
  ...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
@@ -106,14 +110,14 @@ export interface Payment {
106
110
  additionalProperties?: never;
107
111
  created_at: string;
108
112
  payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
109
- transaction_id: string;
113
+ transaction_id: (string | null);
110
114
  card_number?: (string | null);
111
115
  card_holder?: (string | null);
112
116
  card_token?: (string | null);
113
117
  expiration_month?: (number | null);
114
118
  expiration_year?: (number | null);
115
119
  journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM" | null);
116
- psp_reference: string;
120
+ psp_reference: (string | null);
117
121
  card_brand?: (string | null);
118
122
  status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
119
123
  amount: Money;
@@ -171,11 +175,11 @@ export interface Address {
171
175
  is_retrieved_from_payment_method?: boolean;
172
176
  opt_in_mail?: boolean;
173
177
  company_name?: string;
174
- first_name: string;
175
- last_name: string;
178
+ first_name: (string | null);
179
+ last_name: (string | null);
176
180
  address1: string;
177
181
  address2?: (string | null);
178
- city: string;
182
+ city: (string | null);
179
183
  region?: (string | null);
180
184
  post_code?: (string | null);
181
185
  country_code: Country;
@@ -197,11 +201,11 @@ export interface Address1 {
197
201
  is_retrieved_from_payment_method?: boolean;
198
202
  opt_in_mail?: boolean;
199
203
  company_name?: string;
200
- first_name: string;
201
- last_name: string;
204
+ first_name: (string | null);
205
+ last_name: (string | null);
202
206
  address1: string;
203
207
  address2?: (string | null);
204
- city: string;
208
+ city: (string | null);
205
209
  region?: (string | null);
206
210
  post_code?: (string | null);
207
211
  country_code: Country;
@@ -252,6 +256,7 @@ export interface DiscountAmountGross {
252
256
  }
253
257
  export interface OrderShipmentItem {
254
258
  lineNumber: number;
259
+ sku: string;
255
260
  quantity: number;
256
261
  [k: string]: unknown;
257
262
  }