@zippendo/sdk 1.2.7 → 1.3.1

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 (64) hide show
  1. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.d.ts +11 -0
  2. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +11 -0
  3. package/dist/esm/models/CreateOrder201ResponseOrderLinesInner.d.ts +6 -0
  4. package/dist/esm/models/CreateOrder201ResponseOrderLinesInner.js +2 -0
  5. package/dist/esm/models/CreateOrderChannelRequest.d.ts +14 -0
  6. package/dist/esm/models/CreateOrderChannelRequest.js +9 -0
  7. package/dist/esm/models/CreateOrderRequestOrderLinesInner.d.ts +6 -0
  8. package/dist/esm/models/CreateOrderRequestOrderLinesInner.js +2 -0
  9. package/dist/esm/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.d.ts +13 -1
  10. package/dist/esm/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.js +4 -0
  11. package/dist/esm/models/CreateShipmentRequestParcelsInnerOrderLinesInner.d.ts +13 -1
  12. package/dist/esm/models/CreateShipmentRequestParcelsInnerOrderLinesInner.js +4 -0
  13. package/dist/esm/models/GetOrder200ResponseOrderLinesInner.d.ts +6 -0
  14. package/dist/esm/models/GetOrder200ResponseOrderLinesInner.js +2 -0
  15. package/dist/esm/models/ListApiTokens401Response.d.ts +11 -0
  16. package/dist/esm/models/ListApiTokens401Response.js +11 -0
  17. package/dist/esm/models/ListOrderChannels200ResponseDataInner.d.ts +14 -0
  18. package/dist/esm/models/ListOrderChannels200ResponseDataInner.js +11 -0
  19. package/dist/esm/models/SendShipment422Response.d.ts +11 -0
  20. package/dist/esm/models/SendShipment422Response.js +11 -0
  21. package/dist/esm/models/UpdateOrderChannelRequest.d.ts +14 -0
  22. package/dist/esm/models/UpdateOrderChannelRequest.js +9 -0
  23. package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +11 -0
  24. package/dist/models/BatchSendShipments200ResponseResultsInner.js +11 -0
  25. package/dist/models/CreateOrder201ResponseOrderLinesInner.d.ts +6 -0
  26. package/dist/models/CreateOrder201ResponseOrderLinesInner.js +2 -0
  27. package/dist/models/CreateOrderChannelRequest.d.ts +14 -0
  28. package/dist/models/CreateOrderChannelRequest.js +10 -1
  29. package/dist/models/CreateOrderRequestOrderLinesInner.d.ts +6 -0
  30. package/dist/models/CreateOrderRequestOrderLinesInner.js +2 -0
  31. package/dist/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.d.ts +13 -1
  32. package/dist/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.js +4 -0
  33. package/dist/models/CreateShipmentRequestParcelsInnerOrderLinesInner.d.ts +13 -1
  34. package/dist/models/CreateShipmentRequestParcelsInnerOrderLinesInner.js +4 -0
  35. package/dist/models/GetOrder200ResponseOrderLinesInner.d.ts +6 -0
  36. package/dist/models/GetOrder200ResponseOrderLinesInner.js +2 -0
  37. package/dist/models/ListApiTokens401Response.d.ts +11 -0
  38. package/dist/models/ListApiTokens401Response.js +11 -0
  39. package/dist/models/ListOrderChannels200ResponseDataInner.d.ts +14 -0
  40. package/dist/models/ListOrderChannels200ResponseDataInner.js +12 -1
  41. package/dist/models/SendShipment422Response.d.ts +11 -0
  42. package/dist/models/SendShipment422Response.js +11 -0
  43. package/dist/models/UpdateOrderChannelRequest.d.ts +14 -0
  44. package/dist/models/UpdateOrderChannelRequest.js +10 -0
  45. package/docs/CreateOrder201ResponseOrderLinesInner.md +2 -0
  46. package/docs/CreateOrderChannelRequest.md +2 -0
  47. package/docs/CreateOrderRequestOrderLinesInner.md +2 -0
  48. package/docs/CreateShipment201ResponseParcelsInnerOrderLinesInner.md +4 -0
  49. package/docs/CreateShipmentRequestParcelsInnerOrderLinesInner.md +4 -0
  50. package/docs/GetOrder200ResponseOrderLinesInner.md +2 -0
  51. package/docs/ListOrderChannels200ResponseDataInner.md +2 -0
  52. package/docs/UpdateOrderChannelRequest.md +2 -0
  53. package/package.json +1 -1
  54. package/src/models/BatchSendShipments200ResponseResultsInner.ts +11 -0
  55. package/src/models/CreateOrder201ResponseOrderLinesInner.ts +8 -0
  56. package/src/models/CreateOrderChannelRequest.ts +17 -0
  57. package/src/models/CreateOrderRequestOrderLinesInner.ts +8 -0
  58. package/src/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.ts +17 -1
  59. package/src/models/CreateShipmentRequestParcelsInnerOrderLinesInner.ts +17 -1
  60. package/src/models/GetOrder200ResponseOrderLinesInner.ts +8 -0
  61. package/src/models/ListApiTokens401Response.ts +11 -0
  62. package/src/models/ListOrderChannels200ResponseDataInner.ts +18 -0
  63. package/src/models/SendShipment422Response.ts +11 -0
  64. package/src/models/UpdateOrderChannelRequest.ts +19 -0
@@ -9,6 +9,7 @@ Name | Type
9
9
  `brandId` | string
10
10
  `name` | string
11
11
  `enabled` | boolean
12
+ `role` | string
12
13
  `credentials` | { [key: string]: any; }
13
14
  `settings` | [UpdateOrderChannelRequestSettings](UpdateOrderChannelRequestSettings.md)
14
15
  `shippingRuleIds` | Array<string>
@@ -23,6 +24,7 @@ const example = {
23
24
  "brandId": brnd_8f3kd92ld0,
24
25
  "name": Anna's Shopify Store,
25
26
  "enabled": true,
27
+ "role": orders_and_rates,
26
28
  "credentials": null,
27
29
  "settings": null,
28
30
  "shippingRuleIds": ["clz9k2f0a0002abcd5678ijkl"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zippendo/sdk",
3
- "version": "1.2.7",
3
+ "version": "1.3.1",
4
4
  "description": "OpenAPI client for @zippendo/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -176,6 +176,7 @@ export const BatchSendShipments200ResponseResultsInnerCodeEnum = {
176
176
  OrderExists: 'ORDER_EXISTS',
177
177
  OrderChannelNotFound: 'ORDER_CHANNEL_NOT_FOUND',
178
178
  OrderChannelConfigInvalid: 'ORDER_CHANNEL_CONFIG_INVALID',
179
+ OrderChannelRatesOnly: 'ORDER_CHANNEL_RATES_ONLY',
179
180
  IntegrationNotConfigured: 'INTEGRATION_NOT_CONFIGURED',
180
181
  InstallationNotFound: 'INSTALLATION_NOT_FOUND',
181
182
  WebhookSignatureInvalid: 'WEBHOOK_SIGNATURE_INVALID',
@@ -213,6 +214,16 @@ export const BatchSendShipments200ResponseResultsInnerCodeEnum = {
213
214
  MigrationSourceUnreachable: 'MIGRATION_SOURCE_UNREACHABLE',
214
215
  MigrationNotFound: 'MIGRATION_NOT_FOUND',
215
216
  MigrationInProgress: 'MIGRATION_IN_PROGRESS',
217
+ WmsConnectionNotFound: 'WMS_CONNECTION_NOT_FOUND',
218
+ WmsConnectionConfigInvalid: 'WMS_CONNECTION_CONFIG_INVALID',
219
+ WmsConnectionDisabled: 'WMS_CONNECTION_DISABLED',
220
+ WmsAccountMismatch: 'WMS_ACCOUNT_MISMATCH',
221
+ WmsHostIdUnmapped: 'WMS_HOST_ID_UNMAPPED',
222
+ WmsServicePointRequired: 'WMS_SERVICE_POINT_REQUIRED',
223
+ WmsDangerousGoodsUnsupported: 'WMS_DANGEROUS_GOODS_UNSUPPORTED',
224
+ WmsLabelInProgress: 'WMS_LABEL_IN_PROGRESS',
225
+ WmsLabelAlreadyBooked: 'WMS_LABEL_ALREADY_BOOKED',
226
+ WmsLabelCountMismatch: 'WMS_LABEL_COUNT_MISMATCH',
216
227
  DataExportNotFound: 'DATA_EXPORT_NOT_FOUND',
217
228
  DataExportInProgress: 'DATA_EXPORT_IN_PROGRESS',
218
229
  DataExportNotReady: 'DATA_EXPORT_NOT_READY',
@@ -133,6 +133,12 @@ export interface CreateOrder201ResponseOrderLinesInner {
133
133
  * @memberof CreateOrder201ResponseOrderLinesInner
134
134
  */
135
135
  vendor?: string | null;
136
+ /**
137
+ * Order line ID. Present once the line is a row. Absent for jsonb-only lines during the dual-write window — do not synthesise one, or an edit would re-point packed lines.
138
+ * @type {string}
139
+ * @memberof CreateOrder201ResponseOrderLinesInner
140
+ */
141
+ id?: string;
136
142
  }
137
143
 
138
144
 
@@ -186,6 +192,7 @@ export function CreateOrder201ResponseOrderLinesInnerFromJSONTyped(json: any, ig
186
192
  'taxable': json['taxable'] === undefined ? undefined : json['taxable'] === null ? null : json['taxable'],
187
193
  'giftCard': json['giftCard'] === undefined ? undefined : json['giftCard'] === null ? null : json['giftCard'],
188
194
  'vendor': json['vendor'] === undefined ? undefined : json['vendor'] === null ? null : json['vendor'],
195
+ 'id': json['id'] == null ? undefined : json['id'],
189
196
  };
190
197
  }
191
198
 
@@ -219,6 +226,7 @@ export function CreateOrder201ResponseOrderLinesInnerToJSONTyped(value?: CreateO
219
226
  'taxable': value['taxable'],
220
227
  'giftCard': value['giftCard'],
221
228
  'vendor': value['vendor'],
229
+ 'id': value['id'],
222
230
  };
223
231
  }
224
232
 
@@ -51,6 +51,12 @@ export interface CreateOrderChannelRequest {
51
51
  * @memberof CreateOrderChannelRequest
52
52
  */
53
53
  enabled?: boolean;
54
+ /**
55
+ * What Zippendo is used for on this channel. `orders_and_rates` (default) imports orders and serves checkout rates. `rates_only` serves checkout rates and service-point selection ONLY — orders are owned by an external system such as a WMS, nothing is imported, and no fulfilment or tracking is pushed back to the platform.
56
+ * @type {CreateOrderChannelRequestRoleEnum}
57
+ * @memberof CreateOrderChannelRequest
58
+ */
59
+ role?: CreateOrderChannelRequestRoleEnum;
54
60
  /**
55
61
  *
56
62
  * @type {CreateOrderChannelRequestSettings}
@@ -69,6 +75,15 @@ export const CreateOrderChannelRequestTypeEnum = {
69
75
  } as const;
70
76
  export type CreateOrderChannelRequestTypeEnum = typeof CreateOrderChannelRequestTypeEnum[keyof typeof CreateOrderChannelRequestTypeEnum];
71
77
 
78
+ /**
79
+ * @export
80
+ */
81
+ export const CreateOrderChannelRequestRoleEnum = {
82
+ OrdersAndRates: 'orders_and_rates',
83
+ RatesOnly: 'rates_only'
84
+ } as const;
85
+ export type CreateOrderChannelRequestRoleEnum = typeof CreateOrderChannelRequestRoleEnum[keyof typeof CreateOrderChannelRequestRoleEnum];
86
+
72
87
 
73
88
  /**
74
89
  * Check if a given object implements the CreateOrderChannelRequest interface.
@@ -93,6 +108,7 @@ export function CreateOrderChannelRequestFromJSONTyped(json: any, ignoreDiscrimi
93
108
  'type': json['type'],
94
109
  'brandId': json['brandId'] === undefined ? undefined : json['brandId'] === null ? null : json['brandId'],
95
110
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
111
+ 'role': json['role'] == null ? undefined : json['role'],
96
112
  'settings': json['settings'] == null ? undefined : CreateOrderChannelRequestSettingsFromJSON(json['settings']),
97
113
  };
98
114
  }
@@ -112,6 +128,7 @@ export function CreateOrderChannelRequestToJSONTyped(value?: CreateOrderChannelR
112
128
  'type': value['type'],
113
129
  'brandId': value['brandId'],
114
130
  'enabled': value['enabled'],
131
+ 'role': value['role'],
115
132
  'settings': CreateOrderChannelRequestSettingsToJSON(value['settings']),
116
133
  };
117
134
  }
@@ -133,6 +133,12 @@ export interface CreateOrderRequestOrderLinesInner {
133
133
  * @memberof CreateOrderRequestOrderLinesInner
134
134
  */
135
135
  vendor?: string | null;
136
+ /**
137
+ * ID of the existing order line this entry edits. Omit to add a new line.
138
+ * @type {string}
139
+ * @memberof CreateOrderRequestOrderLinesInner
140
+ */
141
+ id?: string;
136
142
  }
137
143
 
138
144
 
@@ -186,6 +192,7 @@ export function CreateOrderRequestOrderLinesInnerFromJSONTyped(json: any, ignore
186
192
  'taxable': json['taxable'] === undefined ? undefined : json['taxable'] === null ? null : json['taxable'],
187
193
  'giftCard': json['giftCard'] === undefined ? undefined : json['giftCard'] === null ? null : json['giftCard'],
188
194
  'vendor': json['vendor'] === undefined ? undefined : json['vendor'] === null ? null : json['vendor'],
195
+ 'id': json['id'] == null ? undefined : json['id'],
189
196
  };
190
197
  }
191
198
 
@@ -219,6 +226,7 @@ export function CreateOrderRequestOrderLinesInnerToJSONTyped(value?: CreateOrder
219
226
  'taxable': value['taxable'],
220
227
  'giftCard': value['giftCard'],
221
228
  'vendor': value['vendor'],
229
+ 'id': value['id'],
222
230
  };
223
231
  }
224
232
 
@@ -25,6 +25,12 @@ export interface CreateShipment201ResponseParcelsInnerOrderLinesInner {
25
25
  * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
26
26
  */
27
27
  id?: string;
28
+ /**
29
+ * ID of the order line this packed line came from. Null when the item did not originate from an order line, such as a free gift or a replacement part.
30
+ * @type {string}
31
+ * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
32
+ */
33
+ orderLineId?: string | null;
28
34
  /**
29
35
  * Stock keeping unit of the product. Optional — not every webshop assigns SKUs.
30
36
  * @type {string}
@@ -74,7 +80,13 @@ export interface CreateShipment201ResponseParcelsInnerOrderLinesInner {
74
80
  */
75
81
  countryOfOrigin?: string;
76
82
  /**
77
- * Customs tariff (HS) code.
83
+ * Harmonized System customs code.
84
+ * @type {string}
85
+ * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
86
+ */
87
+ hsCode?: string | null;
88
+ /**
89
+ * Deprecated misspelling of `hsCode`, kept for backwards compatibility.
78
90
  * @type {string}
79
91
  * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
80
92
  */
@@ -100,6 +112,7 @@ export function CreateShipment201ResponseParcelsInnerOrderLinesInnerFromJSONType
100
112
  return {
101
113
 
102
114
  'id': json['id'] == null ? undefined : json['id'],
115
+ 'orderLineId': json['orderLineId'] === undefined ? undefined : json['orderLineId'] === null ? null : json['orderLineId'],
103
116
  'sku': json['sku'] === undefined ? undefined : json['sku'] === null ? null : json['sku'],
104
117
  'quantity': json['quantity'],
105
118
  'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
@@ -108,6 +121,7 @@ export function CreateShipment201ResponseParcelsInnerOrderLinesInnerFromJSONType
108
121
  'vatPercent': json['vatPercent'] === undefined ? undefined : json['vatPercent'] === null ? null : json['vatPercent'],
109
122
  'location': json['location'] === undefined ? undefined : json['location'] === null ? null : json['location'],
110
123
  'countryOfOrigin': json['countryOfOrigin'] == null ? undefined : json['countryOfOrigin'],
124
+ 'hsCode': json['hsCode'] === undefined ? undefined : json['hsCode'] === null ? null : json['hsCode'],
111
125
  'tarrifNumber': json['tarrifNumber'] === undefined ? undefined : json['tarrifNumber'] === null ? null : json['tarrifNumber'],
112
126
  };
113
127
  }
@@ -124,6 +138,7 @@ export function CreateShipment201ResponseParcelsInnerOrderLinesInnerToJSONTyped(
124
138
  return {
125
139
 
126
140
  'id': value['id'],
141
+ 'orderLineId': value['orderLineId'],
127
142
  'sku': value['sku'],
128
143
  'quantity': value['quantity'],
129
144
  'description': value['description'],
@@ -132,6 +147,7 @@ export function CreateShipment201ResponseParcelsInnerOrderLinesInnerToJSONTyped(
132
147
  'vatPercent': value['vatPercent'],
133
148
  'location': value['location'],
134
149
  'countryOfOrigin': value['countryOfOrigin'],
150
+ 'hsCode': value['hsCode'],
135
151
  'tarrifNumber': value['tarrifNumber'],
136
152
  };
137
153
  }
@@ -25,6 +25,12 @@ export interface CreateShipmentRequestParcelsInnerOrderLinesInner {
25
25
  * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
26
26
  */
27
27
  id?: string;
28
+ /**
29
+ * ID of the order line this packed line came from. Null when the item did not originate from an order line, such as a free gift or a replacement part.
30
+ * @type {string}
31
+ * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
32
+ */
33
+ orderLineId?: string | null;
28
34
  /**
29
35
  * Stock keeping unit of the product. Optional — not every webshop assigns SKUs.
30
36
  * @type {string}
@@ -74,7 +80,13 @@ export interface CreateShipmentRequestParcelsInnerOrderLinesInner {
74
80
  */
75
81
  countryOfOrigin?: string;
76
82
  /**
77
- * Customs tariff (HS) code.
83
+ * Harmonized System customs code.
84
+ * @type {string}
85
+ * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
86
+ */
87
+ hsCode?: string | null;
88
+ /**
89
+ * Deprecated misspelling of `hsCode`, kept for backwards compatibility.
78
90
  * @type {string}
79
91
  * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
80
92
  */
@@ -100,6 +112,7 @@ export function CreateShipmentRequestParcelsInnerOrderLinesInnerFromJSONTyped(js
100
112
  return {
101
113
 
102
114
  'id': json['id'] == null ? undefined : json['id'],
115
+ 'orderLineId': json['orderLineId'] === undefined ? undefined : json['orderLineId'] === null ? null : json['orderLineId'],
103
116
  'sku': json['sku'] === undefined ? undefined : json['sku'] === null ? null : json['sku'],
104
117
  'quantity': json['quantity'],
105
118
  'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
@@ -108,6 +121,7 @@ export function CreateShipmentRequestParcelsInnerOrderLinesInnerFromJSONTyped(js
108
121
  'vatPercent': json['vatPercent'] === undefined ? undefined : json['vatPercent'] === null ? null : json['vatPercent'],
109
122
  'location': json['location'] === undefined ? undefined : json['location'] === null ? null : json['location'],
110
123
  'countryOfOrigin': json['countryOfOrigin'] == null ? undefined : json['countryOfOrigin'],
124
+ 'hsCode': json['hsCode'] === undefined ? undefined : json['hsCode'] === null ? null : json['hsCode'],
111
125
  'tarrifNumber': json['tarrifNumber'] === undefined ? undefined : json['tarrifNumber'] === null ? null : json['tarrifNumber'],
112
126
  };
113
127
  }
@@ -124,6 +138,7 @@ export function CreateShipmentRequestParcelsInnerOrderLinesInnerToJSONTyped(valu
124
138
  return {
125
139
 
126
140
  'id': value['id'],
141
+ 'orderLineId': value['orderLineId'],
127
142
  'sku': value['sku'],
128
143
  'quantity': value['quantity'],
129
144
  'description': value['description'],
@@ -132,6 +147,7 @@ export function CreateShipmentRequestParcelsInnerOrderLinesInnerToJSONTyped(valu
132
147
  'vatPercent': value['vatPercent'],
133
148
  'location': value['location'],
134
149
  'countryOfOrigin': value['countryOfOrigin'],
150
+ 'hsCode': value['hsCode'],
135
151
  'tarrifNumber': value['tarrifNumber'],
136
152
  };
137
153
  }
@@ -133,6 +133,12 @@ export interface GetOrder200ResponseOrderLinesInner {
133
133
  * @memberof GetOrder200ResponseOrderLinesInner
134
134
  */
135
135
  vendor?: string | null;
136
+ /**
137
+ * Order line ID. Present once the line is a row. Absent for jsonb-only lines during the dual-write window — do not synthesise one, or an edit would re-point packed lines.
138
+ * @type {string}
139
+ * @memberof GetOrder200ResponseOrderLinesInner
140
+ */
141
+ id?: string;
136
142
  /**
137
143
  * Quantity already allocated to outbound shipments.
138
144
  * @type {number}
@@ -193,6 +199,7 @@ export function GetOrder200ResponseOrderLinesInnerFromJSONTyped(json: any, ignor
193
199
  'taxable': json['taxable'] === undefined ? undefined : json['taxable'] === null ? null : json['taxable'],
194
200
  'giftCard': json['giftCard'] === undefined ? undefined : json['giftCard'] === null ? null : json['giftCard'],
195
201
  'vendor': json['vendor'] === undefined ? undefined : json['vendor'] === null ? null : json['vendor'],
202
+ 'id': json['id'] == null ? undefined : json['id'],
196
203
  'packedQuantity': json['packedQuantity'],
197
204
  };
198
205
  }
@@ -227,6 +234,7 @@ export function GetOrder200ResponseOrderLinesInnerToJSONTyped(value?: GetOrder20
227
234
  'taxable': value['taxable'],
228
235
  'giftCard': value['giftCard'],
229
236
  'vendor': value['vendor'],
237
+ 'id': value['id'],
230
238
  'packedQuantity': value['packedQuantity'],
231
239
  };
232
240
  }
@@ -146,6 +146,7 @@ export const ListApiTokens401ResponseCodeEnum = {
146
146
  OrderExists: 'ORDER_EXISTS',
147
147
  OrderChannelNotFound: 'ORDER_CHANNEL_NOT_FOUND',
148
148
  OrderChannelConfigInvalid: 'ORDER_CHANNEL_CONFIG_INVALID',
149
+ OrderChannelRatesOnly: 'ORDER_CHANNEL_RATES_ONLY',
149
150
  IntegrationNotConfigured: 'INTEGRATION_NOT_CONFIGURED',
150
151
  InstallationNotFound: 'INSTALLATION_NOT_FOUND',
151
152
  WebhookSignatureInvalid: 'WEBHOOK_SIGNATURE_INVALID',
@@ -183,6 +184,16 @@ export const ListApiTokens401ResponseCodeEnum = {
183
184
  MigrationSourceUnreachable: 'MIGRATION_SOURCE_UNREACHABLE',
184
185
  MigrationNotFound: 'MIGRATION_NOT_FOUND',
185
186
  MigrationInProgress: 'MIGRATION_IN_PROGRESS',
187
+ WmsConnectionNotFound: 'WMS_CONNECTION_NOT_FOUND',
188
+ WmsConnectionConfigInvalid: 'WMS_CONNECTION_CONFIG_INVALID',
189
+ WmsConnectionDisabled: 'WMS_CONNECTION_DISABLED',
190
+ WmsAccountMismatch: 'WMS_ACCOUNT_MISMATCH',
191
+ WmsHostIdUnmapped: 'WMS_HOST_ID_UNMAPPED',
192
+ WmsServicePointRequired: 'WMS_SERVICE_POINT_REQUIRED',
193
+ WmsDangerousGoodsUnsupported: 'WMS_DANGEROUS_GOODS_UNSUPPORTED',
194
+ WmsLabelInProgress: 'WMS_LABEL_IN_PROGRESS',
195
+ WmsLabelAlreadyBooked: 'WMS_LABEL_ALREADY_BOOKED',
196
+ WmsLabelCountMismatch: 'WMS_LABEL_COUNT_MISMATCH',
186
197
  DataExportNotFound: 'DATA_EXPORT_NOT_FOUND',
187
198
  DataExportInProgress: 'DATA_EXPORT_IN_PROGRESS',
188
199
  DataExportNotReady: 'DATA_EXPORT_NOT_READY',
@@ -51,6 +51,12 @@ export interface ListOrderChannels200ResponseDataInner {
51
51
  * @memberof ListOrderChannels200ResponseDataInner
52
52
  */
53
53
  enabled: boolean;
54
+ /**
55
+ * What Zippendo is used for on this channel. `orders_and_rates` (default) imports orders and serves checkout rates. `rates_only` serves checkout rates and service-point selection ONLY — orders are owned by an external system such as a WMS, nothing is imported, and no fulfilment or tracking is pushed back to the platform.
56
+ * @type {ListOrderChannels200ResponseDataInnerRoleEnum}
57
+ * @memberof ListOrderChannels200ResponseDataInner
58
+ */
59
+ role: ListOrderChannels200ResponseDataInnerRoleEnum;
54
60
  /**
55
61
  * Brand this channel belongs to, or null for organization-wide. Orders synced from this channel inherit it, and so do the shipments and documents made from them.
56
62
  * @type {string}
@@ -125,6 +131,15 @@ export const ListOrderChannels200ResponseDataInnerTypeEnum = {
125
131
  } as const;
126
132
  export type ListOrderChannels200ResponseDataInnerTypeEnum = typeof ListOrderChannels200ResponseDataInnerTypeEnum[keyof typeof ListOrderChannels200ResponseDataInnerTypeEnum];
127
133
 
134
+ /**
135
+ * @export
136
+ */
137
+ export const ListOrderChannels200ResponseDataInnerRoleEnum = {
138
+ OrdersAndRates: 'orders_and_rates',
139
+ RatesOnly: 'rates_only'
140
+ } as const;
141
+ export type ListOrderChannels200ResponseDataInnerRoleEnum = typeof ListOrderChannels200ResponseDataInnerRoleEnum[keyof typeof ListOrderChannels200ResponseDataInnerRoleEnum];
142
+
128
143
 
129
144
  /**
130
145
  * Check if a given object implements the ListOrderChannels200ResponseDataInner interface.
@@ -134,6 +149,7 @@ export function instanceOfListOrderChannels200ResponseDataInner(value: object):
134
149
  if (!('name' in value) || value['name'] === undefined) return false;
135
150
  if (!('type' in value) || value['type'] === undefined) return false;
136
151
  if (!('enabled' in value) || value['enabled'] === undefined) return false;
152
+ if (!('role' in value) || value['role'] === undefined) return false;
137
153
  if (!('brandId' in value) || value['brandId'] === undefined) return false;
138
154
  if (!('hasCredentials' in value) || value['hasCredentials'] === undefined) return false;
139
155
  if (!('settings' in value) || value['settings'] === undefined) return false;
@@ -157,6 +173,7 @@ export function ListOrderChannels200ResponseDataInnerFromJSONTyped(json: any, ig
157
173
  'name': json['name'],
158
174
  'type': json['type'],
159
175
  'enabled': json['enabled'],
176
+ 'role': json['role'],
160
177
  'brandId': json['brandId'],
161
178
  'hasCredentials': json['hasCredentials'],
162
179
  'settings': ListOrderChannels200ResponseDataInnerSettingsFromJSON(json['settings']),
@@ -185,6 +202,7 @@ export function ListOrderChannels200ResponseDataInnerToJSONTyped(value?: ListOrd
185
202
  'name': value['name'],
186
203
  'type': value['type'],
187
204
  'enabled': value['enabled'],
205
+ 'role': value['role'],
188
206
  'brandId': value['brandId'],
189
207
  'hasCredentials': value['hasCredentials'],
190
208
  'settings': ListOrderChannels200ResponseDataInnerSettingsToJSON(value['settings']),
@@ -160,6 +160,7 @@ export const SendShipment422ResponseCodeEnum = {
160
160
  OrderExists: 'ORDER_EXISTS',
161
161
  OrderChannelNotFound: 'ORDER_CHANNEL_NOT_FOUND',
162
162
  OrderChannelConfigInvalid: 'ORDER_CHANNEL_CONFIG_INVALID',
163
+ OrderChannelRatesOnly: 'ORDER_CHANNEL_RATES_ONLY',
163
164
  IntegrationNotConfigured: 'INTEGRATION_NOT_CONFIGURED',
164
165
  InstallationNotFound: 'INSTALLATION_NOT_FOUND',
165
166
  WebhookSignatureInvalid: 'WEBHOOK_SIGNATURE_INVALID',
@@ -197,6 +198,16 @@ export const SendShipment422ResponseCodeEnum = {
197
198
  MigrationSourceUnreachable: 'MIGRATION_SOURCE_UNREACHABLE',
198
199
  MigrationNotFound: 'MIGRATION_NOT_FOUND',
199
200
  MigrationInProgress: 'MIGRATION_IN_PROGRESS',
201
+ WmsConnectionNotFound: 'WMS_CONNECTION_NOT_FOUND',
202
+ WmsConnectionConfigInvalid: 'WMS_CONNECTION_CONFIG_INVALID',
203
+ WmsConnectionDisabled: 'WMS_CONNECTION_DISABLED',
204
+ WmsAccountMismatch: 'WMS_ACCOUNT_MISMATCH',
205
+ WmsHostIdUnmapped: 'WMS_HOST_ID_UNMAPPED',
206
+ WmsServicePointRequired: 'WMS_SERVICE_POINT_REQUIRED',
207
+ WmsDangerousGoodsUnsupported: 'WMS_DANGEROUS_GOODS_UNSUPPORTED',
208
+ WmsLabelInProgress: 'WMS_LABEL_IN_PROGRESS',
209
+ WmsLabelAlreadyBooked: 'WMS_LABEL_ALREADY_BOOKED',
210
+ WmsLabelCountMismatch: 'WMS_LABEL_COUNT_MISMATCH',
200
211
  DataExportNotFound: 'DATA_EXPORT_NOT_FOUND',
201
212
  DataExportInProgress: 'DATA_EXPORT_IN_PROGRESS',
202
213
  DataExportNotReady: 'DATA_EXPORT_NOT_READY',
@@ -45,6 +45,12 @@ export interface UpdateOrderChannelRequest {
45
45
  * @memberof UpdateOrderChannelRequest
46
46
  */
47
47
  enabled?: boolean;
48
+ /**
49
+ * What Zippendo is used for on this channel. `orders_and_rates` (default) imports orders and serves checkout rates. `rates_only` serves checkout rates and service-point selection ONLY — orders are owned by an external system such as a WMS, nothing is imported, and no fulfilment or tracking is pushed back to the platform.
50
+ * @type {UpdateOrderChannelRequestRoleEnum}
51
+ * @memberof UpdateOrderChannelRequest
52
+ */
53
+ role?: UpdateOrderChannelRequestRoleEnum;
48
54
  /**
49
55
  * Type-specific platform credentials.
50
56
  * @type {{ [key: string]: any; }}
@@ -65,6 +71,17 @@ export interface UpdateOrderChannelRequest {
65
71
  shippingRuleIds?: Array<string>;
66
72
  }
67
73
 
74
+
75
+ /**
76
+ * @export
77
+ */
78
+ export const UpdateOrderChannelRequestRoleEnum = {
79
+ OrdersAndRates: 'orders_and_rates',
80
+ RatesOnly: 'rates_only'
81
+ } as const;
82
+ export type UpdateOrderChannelRequestRoleEnum = typeof UpdateOrderChannelRequestRoleEnum[keyof typeof UpdateOrderChannelRequestRoleEnum];
83
+
84
+
68
85
  /**
69
86
  * Check if a given object implements the UpdateOrderChannelRequest interface.
70
87
  */
@@ -85,6 +102,7 @@ export function UpdateOrderChannelRequestFromJSONTyped(json: any, ignoreDiscrimi
85
102
  'brandId': json['brandId'] === undefined ? undefined : json['brandId'] === null ? null : json['brandId'],
86
103
  'name': json['name'] == null ? undefined : json['name'],
87
104
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
105
+ 'role': json['role'] == null ? undefined : json['role'],
88
106
  'credentials': json['credentials'] === undefined ? undefined : json['credentials'] === null ? null : json['credentials'],
89
107
  'settings': json['settings'] == null ? undefined : UpdateOrderChannelRequestSettingsFromJSON(json['settings']),
90
108
  'shippingRuleIds': json['shippingRuleIds'] == null ? undefined : json['shippingRuleIds'],
@@ -105,6 +123,7 @@ export function UpdateOrderChannelRequestToJSONTyped(value?: UpdateOrderChannelR
105
123
  'brandId': value['brandId'],
106
124
  'name': value['name'],
107
125
  'enabled': value['enabled'],
126
+ 'role': value['role'],
108
127
  'credentials': value['credentials'],
109
128
  'settings': UpdateOrderChannelRequestSettingsToJSON(value['settings']),
110
129
  'shippingRuleIds': value['shippingRuleIds'],