@zippendo/sdk 1.2.6 → 1.3.0

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 (81) hide show
  1. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
  2. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +1 -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/CreateOrderRequestOrderLinesInner.d.ts +6 -0
  6. package/dist/esm/models/CreateOrderRequestOrderLinesInner.js +2 -0
  7. package/dist/esm/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.d.ts +13 -1
  8. package/dist/esm/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.js +4 -0
  9. package/dist/esm/models/CreateShipmentRequestParcelsInnerOrderLinesInner.d.ts +13 -1
  10. package/dist/esm/models/CreateShipmentRequestParcelsInnerOrderLinesInner.js +4 -0
  11. package/dist/esm/models/GetOrder200Response.d.ts +4 -4
  12. package/dist/esm/models/GetOrder200Response.js +3 -3
  13. package/dist/esm/models/GetOrder200ResponseOrderLinesInner.d.ts +162 -0
  14. package/dist/esm/models/GetOrder200ResponseOrderLinesInner.js +96 -0
  15. package/dist/esm/models/GetOrder200ResponseShipmentsInner.d.ts +7 -0
  16. package/dist/esm/models/GetOrder200ResponseShipmentsInner.js +5 -0
  17. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInner.d.ts +68 -0
  18. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInner.js +70 -0
  19. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.d.ts +50 -0
  20. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.js +51 -0
  21. package/dist/esm/models/ListApiTokens401Response.d.ts +1 -0
  22. package/dist/esm/models/ListApiTokens401Response.js +1 -0
  23. package/dist/esm/models/SendShipment422Response.d.ts +1 -0
  24. package/dist/esm/models/SendShipment422Response.js +1 -0
  25. package/dist/esm/models/UpdateOrderRequest.d.ts +6 -0
  26. package/dist/esm/models/UpdateOrderRequest.js +2 -0
  27. package/dist/esm/models/index.d.ts +3 -0
  28. package/dist/esm/models/index.js +3 -0
  29. package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
  30. package/dist/models/BatchSendShipments200ResponseResultsInner.js +1 -0
  31. package/dist/models/CreateOrder201ResponseOrderLinesInner.d.ts +6 -0
  32. package/dist/models/CreateOrder201ResponseOrderLinesInner.js +2 -0
  33. package/dist/models/CreateOrderRequestOrderLinesInner.d.ts +6 -0
  34. package/dist/models/CreateOrderRequestOrderLinesInner.js +2 -0
  35. package/dist/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.d.ts +13 -1
  36. package/dist/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.js +4 -0
  37. package/dist/models/CreateShipmentRequestParcelsInnerOrderLinesInner.d.ts +13 -1
  38. package/dist/models/CreateShipmentRequestParcelsInnerOrderLinesInner.js +4 -0
  39. package/dist/models/GetOrder200Response.d.ts +4 -4
  40. package/dist/models/GetOrder200Response.js +3 -3
  41. package/dist/models/GetOrder200ResponseOrderLinesInner.d.ts +162 -0
  42. package/dist/models/GetOrder200ResponseOrderLinesInner.js +104 -0
  43. package/dist/models/GetOrder200ResponseShipmentsInner.d.ts +7 -0
  44. package/dist/models/GetOrder200ResponseShipmentsInner.js +5 -0
  45. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInner.d.ts +68 -0
  46. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInner.js +78 -0
  47. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.d.ts +50 -0
  48. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.js +58 -0
  49. package/dist/models/ListApiTokens401Response.d.ts +1 -0
  50. package/dist/models/ListApiTokens401Response.js +1 -0
  51. package/dist/models/SendShipment422Response.d.ts +1 -0
  52. package/dist/models/SendShipment422Response.js +1 -0
  53. package/dist/models/UpdateOrderRequest.d.ts +6 -0
  54. package/dist/models/UpdateOrderRequest.js +2 -0
  55. package/dist/models/index.d.ts +3 -0
  56. package/dist/models/index.js +3 -0
  57. package/docs/CreateOrder201ResponseOrderLinesInner.md +2 -0
  58. package/docs/CreateOrderRequestOrderLinesInner.md +2 -0
  59. package/docs/CreateShipment201ResponseParcelsInnerOrderLinesInner.md +4 -0
  60. package/docs/CreateShipmentRequestParcelsInnerOrderLinesInner.md +4 -0
  61. package/docs/GetOrder200Response.md +1 -1
  62. package/docs/GetOrder200ResponseOrderLinesInner.md +74 -0
  63. package/docs/GetOrder200ResponseShipmentsInner.md +2 -0
  64. package/docs/GetOrder200ResponseShipmentsInnerParcelsInner.md +42 -0
  65. package/docs/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.md +40 -0
  66. package/docs/UpdateOrderRequest.md +2 -0
  67. package/package.json +1 -1
  68. package/src/models/BatchSendShipments200ResponseResultsInner.ts +1 -0
  69. package/src/models/CreateOrder201ResponseOrderLinesInner.ts +8 -0
  70. package/src/models/CreateOrderRequestOrderLinesInner.ts +8 -0
  71. package/src/models/CreateShipment201ResponseParcelsInnerOrderLinesInner.ts +17 -1
  72. package/src/models/CreateShipmentRequestParcelsInnerOrderLinesInner.ts +17 -1
  73. package/src/models/GetOrder200Response.ts +12 -12
  74. package/src/models/GetOrder200ResponseOrderLinesInner.ts +241 -0
  75. package/src/models/GetOrder200ResponseShipmentsInner.ts +16 -0
  76. package/src/models/GetOrder200ResponseShipmentsInnerParcelsInner.ts +130 -0
  77. package/src/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.ts +91 -0
  78. package/src/models/ListApiTokens401Response.ts +1 -0
  79. package/src/models/SendShipment422Response.ts +1 -0
  80. package/src/models/UpdateOrderRequest.ts +8 -0
  81. package/src/models/index.ts +3 -0
@@ -0,0 +1,162 @@
1
+ /**
2
+ * Zippendo Public API
3
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@zippendo.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetOrder200ResponseOrderLinesInner
16
+ */
17
+ export interface GetOrder200ResponseOrderLinesInner {
18
+ /**
19
+ * Stock keeping unit identifier.
20
+ * @type {string}
21
+ * @memberof GetOrder200ResponseOrderLinesInner
22
+ */
23
+ sku?: string | null;
24
+ /**
25
+ * Product name.
26
+ * @type {string}
27
+ * @memberof GetOrder200ResponseOrderLinesInner
28
+ */
29
+ name: string;
30
+ /**
31
+ * Quantity ordered.
32
+ * @type {number}
33
+ * @memberof GetOrder200ResponseOrderLinesInner
34
+ */
35
+ quantity: number;
36
+ /**
37
+ * Price per unit.
38
+ * @type {number}
39
+ * @memberof GetOrder200ResponseOrderLinesInner
40
+ */
41
+ unitPrice?: number | null;
42
+ /**
43
+ * Total price for the line.
44
+ * @type {number}
45
+ * @memberof GetOrder200ResponseOrderLinesInner
46
+ */
47
+ totalPrice?: number | null;
48
+ /**
49
+ * ISO 4217 currency code.
50
+ * @type {string}
51
+ * @memberof GetOrder200ResponseOrderLinesInner
52
+ */
53
+ currency?: string | null;
54
+ /**
55
+ * Item weight in the given unit.
56
+ * @type {number}
57
+ * @memberof GetOrder200ResponseOrderLinesInner
58
+ */
59
+ weight?: number | null;
60
+ /**
61
+ * Unit of the weight value.
62
+ * @type {GetOrder200ResponseOrderLinesInnerWeightUnitEnum}
63
+ * @memberof GetOrder200ResponseOrderLinesInner
64
+ */
65
+ weightUnit?: GetOrder200ResponseOrderLinesInnerWeightUnitEnum | null;
66
+ /**
67
+ * Platform variant identifier.
68
+ * @type {string}
69
+ * @memberof GetOrder200ResponseOrderLinesInner
70
+ */
71
+ variantId?: string | null;
72
+ /**
73
+ * Platform product identifier.
74
+ * @type {string}
75
+ * @memberof GetOrder200ResponseOrderLinesInner
76
+ */
77
+ productId?: string | null;
78
+ /**
79
+ * Product image URL.
80
+ * @type {string}
81
+ * @memberof GetOrder200ResponseOrderLinesInner
82
+ */
83
+ imageUrl?: string | null;
84
+ /**
85
+ * Harmonized System customs code (6-13 digits).
86
+ * @type {string}
87
+ * @memberof GetOrder200ResponseOrderLinesInner
88
+ */
89
+ hsCode?: string | null;
90
+ /**
91
+ * ISO 3166-1 alpha-2 country of origin.
92
+ * @type {string}
93
+ * @memberof GetOrder200ResponseOrderLinesInner
94
+ */
95
+ countryOfOrigin?: string | null;
96
+ /**
97
+ * ISO 3166-2 province of origin.
98
+ * @type {string}
99
+ * @memberof GetOrder200ResponseOrderLinesInner
100
+ */
101
+ provinceOfOrigin?: string | null;
102
+ /**
103
+ * Item barcode (EAN/UPC).
104
+ * @type {string}
105
+ * @memberof GetOrder200ResponseOrderLinesInner
106
+ */
107
+ barcode?: string | null;
108
+ /**
109
+ * Whether the item requires shipping.
110
+ * @type {boolean}
111
+ * @memberof GetOrder200ResponseOrderLinesInner
112
+ */
113
+ requiresShipping?: boolean | null;
114
+ /**
115
+ * Whether the item is taxable.
116
+ * @type {boolean}
117
+ * @memberof GetOrder200ResponseOrderLinesInner
118
+ */
119
+ taxable?: boolean | null;
120
+ /**
121
+ * Whether the item is a gift card.
122
+ * @type {boolean}
123
+ * @memberof GetOrder200ResponseOrderLinesInner
124
+ */
125
+ giftCard?: boolean | null;
126
+ /**
127
+ * Vendor or brand name.
128
+ * @type {string}
129
+ * @memberof GetOrder200ResponseOrderLinesInner
130
+ */
131
+ vendor?: string | null;
132
+ /**
133
+ * 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.
134
+ * @type {string}
135
+ * @memberof GetOrder200ResponseOrderLinesInner
136
+ */
137
+ id?: string;
138
+ /**
139
+ * Quantity already allocated to outbound shipments.
140
+ * @type {number}
141
+ * @memberof GetOrder200ResponseOrderLinesInner
142
+ */
143
+ packedQuantity: number;
144
+ }
145
+ /**
146
+ * @export
147
+ */
148
+ export declare const GetOrder200ResponseOrderLinesInnerWeightUnitEnum: {
149
+ readonly Kg: "kg";
150
+ readonly G: "g";
151
+ readonly Lb: "lb";
152
+ readonly Oz: "oz";
153
+ };
154
+ export type GetOrder200ResponseOrderLinesInnerWeightUnitEnum = typeof GetOrder200ResponseOrderLinesInnerWeightUnitEnum[keyof typeof GetOrder200ResponseOrderLinesInnerWeightUnitEnum];
155
+ /**
156
+ * Check if a given object implements the GetOrder200ResponseOrderLinesInner interface.
157
+ */
158
+ export declare function instanceOfGetOrder200ResponseOrderLinesInner(value: object): value is GetOrder200ResponseOrderLinesInner;
159
+ export declare function GetOrder200ResponseOrderLinesInnerFromJSON(json: any): GetOrder200ResponseOrderLinesInner;
160
+ export declare function GetOrder200ResponseOrderLinesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrder200ResponseOrderLinesInner;
161
+ export declare function GetOrder200ResponseOrderLinesInnerToJSON(json: any): GetOrder200ResponseOrderLinesInner;
162
+ export declare function GetOrder200ResponseOrderLinesInnerToJSONTyped(value?: GetOrder200ResponseOrderLinesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Zippendo Public API
6
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@zippendo.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetOrder200ResponseOrderLinesInnerWeightUnitEnum = void 0;
17
+ exports.instanceOfGetOrder200ResponseOrderLinesInner = instanceOfGetOrder200ResponseOrderLinesInner;
18
+ exports.GetOrder200ResponseOrderLinesInnerFromJSON = GetOrder200ResponseOrderLinesInnerFromJSON;
19
+ exports.GetOrder200ResponseOrderLinesInnerFromJSONTyped = GetOrder200ResponseOrderLinesInnerFromJSONTyped;
20
+ exports.GetOrder200ResponseOrderLinesInnerToJSON = GetOrder200ResponseOrderLinesInnerToJSON;
21
+ exports.GetOrder200ResponseOrderLinesInnerToJSONTyped = GetOrder200ResponseOrderLinesInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetOrder200ResponseOrderLinesInnerWeightUnitEnum = {
26
+ Kg: 'kg',
27
+ G: 'g',
28
+ Lb: 'lb',
29
+ Oz: 'oz'
30
+ };
31
+ /**
32
+ * Check if a given object implements the GetOrder200ResponseOrderLinesInner interface.
33
+ */
34
+ function instanceOfGetOrder200ResponseOrderLinesInner(value) {
35
+ if (!('name' in value) || value['name'] === undefined)
36
+ return false;
37
+ if (!('quantity' in value) || value['quantity'] === undefined)
38
+ return false;
39
+ if (!('packedQuantity' in value) || value['packedQuantity'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function GetOrder200ResponseOrderLinesInnerFromJSON(json) {
44
+ return GetOrder200ResponseOrderLinesInnerFromJSONTyped(json, false);
45
+ }
46
+ function GetOrder200ResponseOrderLinesInnerFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'sku': json['sku'] === undefined ? undefined : json['sku'] === null ? null : json['sku'],
52
+ 'name': json['name'],
53
+ 'quantity': json['quantity'],
54
+ 'unitPrice': json['unitPrice'] === undefined ? undefined : json['unitPrice'] === null ? null : json['unitPrice'],
55
+ 'totalPrice': json['totalPrice'] === undefined ? undefined : json['totalPrice'] === null ? null : json['totalPrice'],
56
+ 'currency': json['currency'] === undefined ? undefined : json['currency'] === null ? null : json['currency'],
57
+ 'weight': json['weight'] === undefined ? undefined : json['weight'] === null ? null : json['weight'],
58
+ 'weightUnit': json['weightUnit'] === undefined ? undefined : json['weightUnit'] === null ? null : json['weightUnit'],
59
+ 'variantId': json['variantId'] === undefined ? undefined : json['variantId'] === null ? null : json['variantId'],
60
+ 'productId': json['productId'] === undefined ? undefined : json['productId'] === null ? null : json['productId'],
61
+ 'imageUrl': json['imageUrl'] === undefined ? undefined : json['imageUrl'] === null ? null : json['imageUrl'],
62
+ 'hsCode': json['hsCode'] === undefined ? undefined : json['hsCode'] === null ? null : json['hsCode'],
63
+ 'countryOfOrigin': json['countryOfOrigin'] === undefined ? undefined : json['countryOfOrigin'] === null ? null : json['countryOfOrigin'],
64
+ 'provinceOfOrigin': json['provinceOfOrigin'] === undefined ? undefined : json['provinceOfOrigin'] === null ? null : json['provinceOfOrigin'],
65
+ 'barcode': json['barcode'] === undefined ? undefined : json['barcode'] === null ? null : json['barcode'],
66
+ 'requiresShipping': json['requiresShipping'] === undefined ? undefined : json['requiresShipping'] === null ? null : json['requiresShipping'],
67
+ 'taxable': json['taxable'] === undefined ? undefined : json['taxable'] === null ? null : json['taxable'],
68
+ 'giftCard': json['giftCard'] === undefined ? undefined : json['giftCard'] === null ? null : json['giftCard'],
69
+ 'vendor': json['vendor'] === undefined ? undefined : json['vendor'] === null ? null : json['vendor'],
70
+ 'id': json['id'] == null ? undefined : json['id'],
71
+ 'packedQuantity': json['packedQuantity'],
72
+ };
73
+ }
74
+ function GetOrder200ResponseOrderLinesInnerToJSON(json) {
75
+ return GetOrder200ResponseOrderLinesInnerToJSONTyped(json, false);
76
+ }
77
+ function GetOrder200ResponseOrderLinesInnerToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'sku': value['sku'],
83
+ 'name': value['name'],
84
+ 'quantity': value['quantity'],
85
+ 'unitPrice': value['unitPrice'],
86
+ 'totalPrice': value['totalPrice'],
87
+ 'currency': value['currency'],
88
+ 'weight': value['weight'],
89
+ 'weightUnit': value['weightUnit'],
90
+ 'variantId': value['variantId'],
91
+ 'productId': value['productId'],
92
+ 'imageUrl': value['imageUrl'],
93
+ 'hsCode': value['hsCode'],
94
+ 'countryOfOrigin': value['countryOfOrigin'],
95
+ 'provinceOfOrigin': value['provinceOfOrigin'],
96
+ 'barcode': value['barcode'],
97
+ 'requiresShipping': value['requiresShipping'],
98
+ 'taxable': value['taxable'],
99
+ 'giftCard': value['giftCard'],
100
+ 'vendor': value['vendor'],
101
+ 'id': value['id'],
102
+ 'packedQuantity': value['packedQuantity'],
103
+ };
104
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { CreateShipment201ResponseDocumentsInner } from './CreateShipment201ResponseDocumentsInner';
13
+ import type { GetOrder200ResponseShipmentsInnerParcelsInner } from './GetOrder200ResponseShipmentsInnerParcelsInner';
13
14
  import type { ListShipments200ResponseDataInnerCarrierSettings } from './ListShipments200ResponseDataInnerCarrierSettings';
14
15
  import type { CreateShipment201ResponseTracking } from './CreateShipment201ResponseTracking';
15
16
  /**
@@ -84,6 +85,12 @@ export interface GetOrder200ResponseShipmentsInner {
84
85
  * @memberof GetOrder200ResponseShipmentsInner
85
86
  */
86
87
  documents?: Array<CreateShipment201ResponseDocumentsInner>;
88
+ /**
89
+ * Compact parcels for the order fulfillment workspace (no QR/label payloads).
90
+ * @type {Array<GetOrder200ResponseShipmentsInnerParcelsInner>}
91
+ * @memberof GetOrder200ResponseShipmentsInner
92
+ */
93
+ parcels: Array<GetOrder200ResponseShipmentsInnerParcelsInner>;
87
94
  }
88
95
  /**
89
96
  * @export
@@ -20,6 +20,7 @@ exports.GetOrder200ResponseShipmentsInnerFromJSONTyped = GetOrder200ResponseShip
20
20
  exports.GetOrder200ResponseShipmentsInnerToJSON = GetOrder200ResponseShipmentsInnerToJSON;
21
21
  exports.GetOrder200ResponseShipmentsInnerToJSONTyped = GetOrder200ResponseShipmentsInnerToJSONTyped;
22
22
  const CreateShipment201ResponseDocumentsInner_1 = require("./CreateShipment201ResponseDocumentsInner");
23
+ const GetOrder200ResponseShipmentsInnerParcelsInner_1 = require("./GetOrder200ResponseShipmentsInnerParcelsInner");
23
24
  const ListShipments200ResponseDataInnerCarrierSettings_1 = require("./ListShipments200ResponseDataInnerCarrierSettings");
24
25
  const CreateShipment201ResponseTracking_1 = require("./CreateShipment201ResponseTracking");
25
26
  /**
@@ -60,6 +61,8 @@ function instanceOfGetOrder200ResponseShipmentsInner(value) {
60
61
  return false;
61
62
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
62
63
  return false;
64
+ if (!('parcels' in value) || value['parcels'] === undefined)
65
+ return false;
63
66
  return true;
64
67
  }
65
68
  function GetOrder200ResponseShipmentsInnerFromJSON(json) {
@@ -81,6 +84,7 @@ function GetOrder200ResponseShipmentsInnerFromJSONTyped(json, ignoreDiscriminato
81
84
  'updatedAt': json['updatedAt'],
82
85
  'shippingRuleId': json['shippingRuleId'] === undefined ? undefined : json['shippingRuleId'] === null ? null : json['shippingRuleId'],
83
86
  'documents': json['documents'] == null ? undefined : (json['documents'].map(CreateShipment201ResponseDocumentsInner_1.CreateShipment201ResponseDocumentsInnerFromJSON)),
87
+ 'parcels': (json['parcels'].map(GetOrder200ResponseShipmentsInnerParcelsInner_1.GetOrder200ResponseShipmentsInnerParcelsInnerFromJSON)),
84
88
  };
85
89
  }
86
90
  function GetOrder200ResponseShipmentsInnerToJSON(json) {
@@ -102,5 +106,6 @@ function GetOrder200ResponseShipmentsInnerToJSONTyped(value, ignoreDiscriminator
102
106
  'updatedAt': value['updatedAt'],
103
107
  'shippingRuleId': value['shippingRuleId'],
104
108
  'documents': value['documents'] == null ? undefined : (value['documents'].map(CreateShipment201ResponseDocumentsInner_1.CreateShipment201ResponseDocumentsInnerToJSON)),
109
+ 'parcels': (value['parcels'].map(GetOrder200ResponseShipmentsInnerParcelsInner_1.GetOrder200ResponseShipmentsInnerParcelsInnerToJSON)),
105
110
  };
106
111
  }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Zippendo Public API
3
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@zippendo.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner } from './GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner';
13
+ import type { CreateShipment201ResponseParcelsInnerDimensions } from './CreateShipment201ResponseParcelsInnerDimensions';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetOrder200ResponseShipmentsInnerParcelsInner
18
+ */
19
+ export interface GetOrder200ResponseShipmentsInnerParcelsInner {
20
+ /**
21
+ * Parcel ID.
22
+ * @type {string}
23
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInner
24
+ */
25
+ id: string;
26
+ /**
27
+ * Parcel weight in the given unit.
28
+ * @type {number}
29
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInner
30
+ */
31
+ weight: number;
32
+ /**
33
+ * Unit of measurement for parcel weight.
34
+ * @type {GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum}
35
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInner
36
+ */
37
+ weightUnit: GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum;
38
+ /**
39
+ *
40
+ * @type {CreateShipment201ResponseParcelsInnerDimensions}
41
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInner
42
+ */
43
+ dimensions: CreateShipment201ResponseParcelsInnerDimensions;
44
+ /**
45
+ * Contents of this parcel.
46
+ * @type {Array<GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner>}
47
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInner
48
+ */
49
+ orderLines: Array<GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner>;
50
+ }
51
+ /**
52
+ * @export
53
+ */
54
+ export declare const GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum: {
55
+ readonly Kg: "kg";
56
+ readonly G: "g";
57
+ readonly Lb: "lb";
58
+ readonly Oz: "oz";
59
+ };
60
+ export type GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum = typeof GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum[keyof typeof GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum];
61
+ /**
62
+ * Check if a given object implements the GetOrder200ResponseShipmentsInnerParcelsInner interface.
63
+ */
64
+ export declare function instanceOfGetOrder200ResponseShipmentsInnerParcelsInner(value: object): value is GetOrder200ResponseShipmentsInnerParcelsInner;
65
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerFromJSON(json: any): GetOrder200ResponseShipmentsInnerParcelsInner;
66
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrder200ResponseShipmentsInnerParcelsInner;
67
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerToJSON(json: any): GetOrder200ResponseShipmentsInnerParcelsInner;
68
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerToJSONTyped(value?: GetOrder200ResponseShipmentsInnerParcelsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Zippendo Public API
6
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@zippendo.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum = void 0;
17
+ exports.instanceOfGetOrder200ResponseShipmentsInnerParcelsInner = instanceOfGetOrder200ResponseShipmentsInnerParcelsInner;
18
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerFromJSON = GetOrder200ResponseShipmentsInnerParcelsInnerFromJSON;
19
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerFromJSONTyped = GetOrder200ResponseShipmentsInnerParcelsInnerFromJSONTyped;
20
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerToJSON = GetOrder200ResponseShipmentsInnerParcelsInnerToJSON;
21
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerToJSONTyped = GetOrder200ResponseShipmentsInnerParcelsInnerToJSONTyped;
22
+ const GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner_1 = require("./GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner");
23
+ const CreateShipment201ResponseParcelsInnerDimensions_1 = require("./CreateShipment201ResponseParcelsInnerDimensions");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum = {
28
+ Kg: 'kg',
29
+ G: 'g',
30
+ Lb: 'lb',
31
+ Oz: 'oz'
32
+ };
33
+ /**
34
+ * Check if a given object implements the GetOrder200ResponseShipmentsInnerParcelsInner interface.
35
+ */
36
+ function instanceOfGetOrder200ResponseShipmentsInnerParcelsInner(value) {
37
+ if (!('id' in value) || value['id'] === undefined)
38
+ return false;
39
+ if (!('weight' in value) || value['weight'] === undefined)
40
+ return false;
41
+ if (!('weightUnit' in value) || value['weightUnit'] === undefined)
42
+ return false;
43
+ if (!('dimensions' in value) || value['dimensions'] === undefined)
44
+ return false;
45
+ if (!('orderLines' in value) || value['orderLines'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function GetOrder200ResponseShipmentsInnerParcelsInnerFromJSON(json) {
50
+ return GetOrder200ResponseShipmentsInnerParcelsInnerFromJSONTyped(json, false);
51
+ }
52
+ function GetOrder200ResponseShipmentsInnerParcelsInnerFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'weight': json['weight'],
59
+ 'weightUnit': json['weightUnit'],
60
+ 'dimensions': (0, CreateShipment201ResponseParcelsInnerDimensions_1.CreateShipment201ResponseParcelsInnerDimensionsFromJSON)(json['dimensions']),
61
+ 'orderLines': (json['orderLines'].map(GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner_1.GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON)),
62
+ };
63
+ }
64
+ function GetOrder200ResponseShipmentsInnerParcelsInnerToJSON(json) {
65
+ return GetOrder200ResponseShipmentsInnerParcelsInnerToJSONTyped(json, false);
66
+ }
67
+ function GetOrder200ResponseShipmentsInnerParcelsInnerToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'weight': value['weight'],
74
+ 'weightUnit': value['weightUnit'],
75
+ 'dimensions': (0, CreateShipment201ResponseParcelsInnerDimensions_1.CreateShipment201ResponseParcelsInnerDimensionsToJSON)(value['dimensions']),
76
+ 'orderLines': (value['orderLines'].map(GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner_1.GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON)),
77
+ };
78
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Zippendo Public API
3
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@zippendo.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner
16
+ */
17
+ export interface GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner {
18
+ /**
19
+ * Parcel content line ID.
20
+ * @type {string}
21
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner
22
+ */
23
+ id: string;
24
+ /**
25
+ * SKU of the packed item.
26
+ * @type {string}
27
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner
28
+ */
29
+ sku?: string | null;
30
+ /**
31
+ * Quantity packed in this parcel.
32
+ * @type {number}
33
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner
34
+ */
35
+ quantity: number;
36
+ /**
37
+ * Product description.
38
+ * @type {string}
39
+ * @memberof GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner
40
+ */
41
+ description?: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner interface.
45
+ */
46
+ export declare function instanceOfGetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner(value: object): value is GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner;
47
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON(json: any): GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner;
48
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner;
49
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON(json: any): GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner;
50
+ export declare function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSONTyped(value?: GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Zippendo Public API
6
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@zippendo.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner = instanceOfGetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner;
17
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON = GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON;
18
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSONTyped = GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSONTyped;
19
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON = GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON;
20
+ exports.GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSONTyped = GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner interface.
23
+ */
24
+ function instanceOfGetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('quantity' in value) || value['quantity'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON(json) {
32
+ return GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSONTyped(json, false);
33
+ }
34
+ function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'sku': json['sku'] === undefined ? undefined : json['sku'] === null ? null : json['sku'],
41
+ 'quantity': json['quantity'],
42
+ 'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
43
+ };
44
+ }
45
+ function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON(json) {
46
+ return GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSONTyped(json, false);
47
+ }
48
+ function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'sku': value['sku'],
55
+ 'quantity': value['quantity'],
56
+ 'description': value['description'],
57
+ };
58
+ }
@@ -116,6 +116,7 @@ export declare const ListApiTokens401ResponseCodeEnum: {
116
116
  readonly CarrierAuthFailed: "CARRIER_AUTH_FAILED";
117
117
  readonly CarrierNotFound: "CARRIER_NOT_FOUND";
118
118
  readonly CarrierProductNotFound: "CARRIER_PRODUCT_NOT_FOUND";
119
+ readonly CarrierProductRouteUnsupported: "CARRIER_PRODUCT_ROUTE_UNSUPPORTED";
119
120
  readonly CarrierConfigInvalid: "CARRIER_CONFIG_INVALID";
120
121
  readonly CarrierParameterInvalid: "CARRIER_PARAMETER_INVALID";
121
122
  readonly CarrierServerUnavailable: "CARRIER_SERVER_UNAVAILABLE";
@@ -101,6 +101,7 @@ exports.ListApiTokens401ResponseCodeEnum = {
101
101
  CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
102
102
  CarrierNotFound: 'CARRIER_NOT_FOUND',
103
103
  CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
104
+ CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
104
105
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
105
106
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
106
107
  CarrierServerUnavailable: 'CARRIER_SERVER_UNAVAILABLE',
@@ -123,6 +123,7 @@ export declare const SendShipment422ResponseCodeEnum: {
123
123
  readonly CarrierAuthFailed: "CARRIER_AUTH_FAILED";
124
124
  readonly CarrierNotFound: "CARRIER_NOT_FOUND";
125
125
  readonly CarrierProductNotFound: "CARRIER_PRODUCT_NOT_FOUND";
126
+ readonly CarrierProductRouteUnsupported: "CARRIER_PRODUCT_ROUTE_UNSUPPORTED";
126
127
  readonly CarrierConfigInvalid: "CARRIER_CONFIG_INVALID";
127
128
  readonly CarrierParameterInvalid: "CARRIER_PARAMETER_INVALID";
128
129
  readonly CarrierServerUnavailable: "CARRIER_SERVER_UNAVAILABLE";
@@ -102,6 +102,7 @@ exports.SendShipment422ResponseCodeEnum = {
102
102
  CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
103
103
  CarrierNotFound: 'CARRIER_NOT_FOUND',
104
104
  CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
105
+ CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
105
106
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
106
107
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
107
108
  CarrierServerUnavailable: 'CARRIER_SERVER_UNAVAILABLE',
@@ -83,6 +83,12 @@ export interface UpdateOrderRequest {
83
83
  * @memberof UpdateOrderRequest
84
84
  */
85
85
  shippingRuleId?: string | null;
86
+ /**
87
+ * Service point (parcel shop) ID to apply to unsent outbound shipments.
88
+ * @type {string}
89
+ * @memberof UpdateOrderRequest
90
+ */
91
+ servicePointId?: string | null;
86
92
  }
87
93
  /**
88
94
  * @export