@zippendo/sdk 1.2.6 → 1.2.7

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 (57) 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/GetOrder200Response.d.ts +4 -4
  4. package/dist/esm/models/GetOrder200Response.js +3 -3
  5. package/dist/esm/models/GetOrder200ResponseOrderLinesInner.d.ts +156 -0
  6. package/dist/esm/models/GetOrder200ResponseOrderLinesInner.js +94 -0
  7. package/dist/esm/models/GetOrder200ResponseShipmentsInner.d.ts +7 -0
  8. package/dist/esm/models/GetOrder200ResponseShipmentsInner.js +5 -0
  9. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInner.d.ts +68 -0
  10. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInner.js +70 -0
  11. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.d.ts +50 -0
  12. package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.js +51 -0
  13. package/dist/esm/models/ListApiTokens401Response.d.ts +1 -0
  14. package/dist/esm/models/ListApiTokens401Response.js +1 -0
  15. package/dist/esm/models/SendShipment422Response.d.ts +1 -0
  16. package/dist/esm/models/SendShipment422Response.js +1 -0
  17. package/dist/esm/models/UpdateOrderRequest.d.ts +6 -0
  18. package/dist/esm/models/UpdateOrderRequest.js +2 -0
  19. package/dist/esm/models/index.d.ts +3 -0
  20. package/dist/esm/models/index.js +3 -0
  21. package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
  22. package/dist/models/BatchSendShipments200ResponseResultsInner.js +1 -0
  23. package/dist/models/GetOrder200Response.d.ts +4 -4
  24. package/dist/models/GetOrder200Response.js +3 -3
  25. package/dist/models/GetOrder200ResponseOrderLinesInner.d.ts +156 -0
  26. package/dist/models/GetOrder200ResponseOrderLinesInner.js +102 -0
  27. package/dist/models/GetOrder200ResponseShipmentsInner.d.ts +7 -0
  28. package/dist/models/GetOrder200ResponseShipmentsInner.js +5 -0
  29. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInner.d.ts +68 -0
  30. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInner.js +78 -0
  31. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.d.ts +50 -0
  32. package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.js +58 -0
  33. package/dist/models/ListApiTokens401Response.d.ts +1 -0
  34. package/dist/models/ListApiTokens401Response.js +1 -0
  35. package/dist/models/SendShipment422Response.d.ts +1 -0
  36. package/dist/models/SendShipment422Response.js +1 -0
  37. package/dist/models/UpdateOrderRequest.d.ts +6 -0
  38. package/dist/models/UpdateOrderRequest.js +2 -0
  39. package/dist/models/index.d.ts +3 -0
  40. package/dist/models/index.js +3 -0
  41. package/docs/GetOrder200Response.md +1 -1
  42. package/docs/GetOrder200ResponseOrderLinesInner.md +72 -0
  43. package/docs/GetOrder200ResponseShipmentsInner.md +2 -0
  44. package/docs/GetOrder200ResponseShipmentsInnerParcelsInner.md +42 -0
  45. package/docs/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.md +40 -0
  46. package/docs/UpdateOrderRequest.md +2 -0
  47. package/package.json +1 -1
  48. package/src/models/BatchSendShipments200ResponseResultsInner.ts +1 -0
  49. package/src/models/GetOrder200Response.ts +12 -12
  50. package/src/models/GetOrder200ResponseOrderLinesInner.ts +233 -0
  51. package/src/models/GetOrder200ResponseShipmentsInner.ts +16 -0
  52. package/src/models/GetOrder200ResponseShipmentsInnerParcelsInner.ts +130 -0
  53. package/src/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.ts +91 -0
  54. package/src/models/ListApiTokens401Response.ts +1 -0
  55. package/src/models/SendShipment422Response.ts +1 -0
  56. package/src/models/UpdateOrderRequest.ts +8 -0
  57. package/src/models/index.ts +3 -0
@@ -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";
@@ -93,6 +93,7 @@ export const ListApiTokens401ResponseCodeEnum = {
93
93
  CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
94
94
  CarrierNotFound: 'CARRIER_NOT_FOUND',
95
95
  CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
96
+ CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
96
97
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
97
98
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
98
99
  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";
@@ -94,6 +94,7 @@ export const SendShipment422ResponseCodeEnum = {
94
94
  CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
95
95
  CarrierNotFound: 'CARRIER_NOT_FOUND',
96
96
  CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
97
+ CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
97
98
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
98
99
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
99
100
  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
@@ -49,6 +49,7 @@ export function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'notes': json['notes'] === undefined ? undefined : json['notes'] === null ? null : json['notes'],
50
50
  'status': json['status'] == null ? undefined : json['status'],
51
51
  'shippingRuleId': json['shippingRuleId'] === undefined ? undefined : json['shippingRuleId'] === null ? null : json['shippingRuleId'],
52
+ 'servicePointId': json['servicePointId'] === undefined ? undefined : json['servicePointId'] === null ? null : json['servicePointId'],
52
53
  };
53
54
  }
54
55
  export function UpdateOrderRequestToJSON(json) {
@@ -70,5 +71,6 @@ export function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator = false
70
71
  'notes': value['notes'],
71
72
  'status': value['status'],
72
73
  'shippingRuleId': value['shippingRuleId'],
74
+ 'servicePointId': value['servicePointId'],
73
75
  };
74
76
  }
@@ -73,7 +73,10 @@ export * from './GetBillingUsage200ResponseLimitsTeamMembers';
73
73
  export * from './GetBillingUsage200ResponseShipments';
74
74
  export * from './GetBillingUsage200ResponseZippyMessages';
75
75
  export * from './GetOrder200Response';
76
+ export * from './GetOrder200ResponseOrderLinesInner';
76
77
  export * from './GetOrder200ResponseShipmentsInner';
78
+ export * from './GetOrder200ResponseShipmentsInnerParcelsInner';
79
+ export * from './GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner';
77
80
  export * from './GetOrder200ResponseShippingRule';
78
81
  export * from './GetOrderChannelWebhookStatus200Response';
79
82
  export * from './GetOrderChannelWebhookStatus200ResponseWebhooksInner';
@@ -75,7 +75,10 @@ export * from './GetBillingUsage200ResponseLimitsTeamMembers';
75
75
  export * from './GetBillingUsage200ResponseShipments';
76
76
  export * from './GetBillingUsage200ResponseZippyMessages';
77
77
  export * from './GetOrder200Response';
78
+ export * from './GetOrder200ResponseOrderLinesInner';
78
79
  export * from './GetOrder200ResponseShipmentsInner';
80
+ export * from './GetOrder200ResponseShipmentsInnerParcelsInner';
81
+ export * from './GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner';
79
82
  export * from './GetOrder200ResponseShippingRule';
80
83
  export * from './GetOrderChannelWebhookStatus200Response';
81
84
  export * from './GetOrderChannelWebhookStatus200ResponseWebhooksInner';
@@ -138,6 +138,7 @@ export declare const BatchSendShipments200ResponseResultsInnerCodeEnum: {
138
138
  readonly CarrierAuthFailed: "CARRIER_AUTH_FAILED";
139
139
  readonly CarrierNotFound: "CARRIER_NOT_FOUND";
140
140
  readonly CarrierProductNotFound: "CARRIER_PRODUCT_NOT_FOUND";
141
+ readonly CarrierProductRouteUnsupported: "CARRIER_PRODUCT_ROUTE_UNSUPPORTED";
141
142
  readonly CarrierConfigInvalid: "CARRIER_CONFIG_INVALID";
142
143
  readonly CarrierParameterInvalid: "CARRIER_PARAMETER_INVALID";
143
144
  readonly CarrierServerUnavailable: "CARRIER_SERVER_UNAVAILABLE";
@@ -110,6 +110,7 @@ exports.BatchSendShipments200ResponseResultsInnerCodeEnum = {
110
110
  CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
111
111
  CarrierNotFound: 'CARRIER_NOT_FOUND',
112
112
  CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
113
+ CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
113
114
  CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
114
115
  CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
115
116
  CarrierServerUnavailable: 'CARRIER_SERVER_UNAVAILABLE',
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetOrder200ResponseOrderLinesInner } from './GetOrder200ResponseOrderLinesInner';
12
13
  import type { GetOrder200ResponseShippingRule } from './GetOrder200ResponseShippingRule';
13
14
  import type { ListOrders200ResponseDataInnerOrderChannel } from './ListOrders200ResponseDataInnerOrderChannel';
14
15
  import type { CreateOrder201ResponseShippingAddress } from './CreateOrder201ResponseShippingAddress';
15
- import type { CreateOrder201ResponseOrderLinesInner } from './CreateOrder201ResponseOrderLinesInner';
16
16
  import type { GetOrder200ResponseShipmentsInner } from './GetOrder200ResponseShipmentsInner';
17
17
  /**
18
18
  *
@@ -57,11 +57,11 @@ export interface GetOrder200Response {
57
57
  */
58
58
  shippingAddress?: CreateOrder201ResponseShippingAddress | null;
59
59
  /**
60
- * Line items in the order.
61
- * @type {Array<CreateOrder201ResponseOrderLinesInner>}
60
+ * Sold line items with quantity already allocated to outbound shipments.
61
+ * @type {Array<GetOrder200ResponseOrderLinesInner>}
62
62
  * @memberof GetOrder200Response
63
63
  */
64
- orderLines: Array<CreateOrder201ResponseOrderLinesInner>;
64
+ orderLines: Array<GetOrder200ResponseOrderLinesInner>;
65
65
  /**
66
66
  * Order subtotal before shipping and tax.
67
67
  * @type {number}
@@ -19,10 +19,10 @@ exports.GetOrder200ResponseFromJSON = GetOrder200ResponseFromJSON;
19
19
  exports.GetOrder200ResponseFromJSONTyped = GetOrder200ResponseFromJSONTyped;
20
20
  exports.GetOrder200ResponseToJSON = GetOrder200ResponseToJSON;
21
21
  exports.GetOrder200ResponseToJSONTyped = GetOrder200ResponseToJSONTyped;
22
+ const GetOrder200ResponseOrderLinesInner_1 = require("./GetOrder200ResponseOrderLinesInner");
22
23
  const GetOrder200ResponseShippingRule_1 = require("./GetOrder200ResponseShippingRule");
23
24
  const ListOrders200ResponseDataInnerOrderChannel_1 = require("./ListOrders200ResponseDataInnerOrderChannel");
24
25
  const CreateOrder201ResponseShippingAddress_1 = require("./CreateOrder201ResponseShippingAddress");
25
- const CreateOrder201ResponseOrderLinesInner_1 = require("./CreateOrder201ResponseOrderLinesInner");
26
26
  const GetOrder200ResponseShipmentsInner_1 = require("./GetOrder200ResponseShipmentsInner");
27
27
  /**
28
28
  * @export
@@ -75,7 +75,7 @@ function GetOrder200ResponseFromJSONTyped(json, ignoreDiscriminator) {
75
75
  'customerName': json['customerName'] === undefined ? undefined : json['customerName'] === null ? null : json['customerName'],
76
76
  'customerEmail': json['customerEmail'] === undefined ? undefined : json['customerEmail'] === null ? null : json['customerEmail'],
77
77
  'shippingAddress': json['shippingAddress'] === undefined ? undefined : json['shippingAddress'] === null ? null : (0, CreateOrder201ResponseShippingAddress_1.CreateOrder201ResponseShippingAddressFromJSON)(json['shippingAddress']),
78
- 'orderLines': (json['orderLines'].map(CreateOrder201ResponseOrderLinesInner_1.CreateOrder201ResponseOrderLinesInnerFromJSON)),
78
+ 'orderLines': (json['orderLines'].map(GetOrder200ResponseOrderLinesInner_1.GetOrder200ResponseOrderLinesInnerFromJSON)),
79
79
  'subtotalAmount': json['subtotalAmount'] === undefined ? undefined : json['subtotalAmount'] === null ? null : json['subtotalAmount'],
80
80
  'totalAmount': json['totalAmount'] === undefined ? undefined : json['totalAmount'] === null ? null : json['totalAmount'],
81
81
  'currency': json['currency'] === undefined ? undefined : json['currency'] === null ? null : json['currency'],
@@ -106,7 +106,7 @@ function GetOrder200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
106
106
  'customerName': value['customerName'],
107
107
  'customerEmail': value['customerEmail'],
108
108
  'shippingAddress': (0, CreateOrder201ResponseShippingAddress_1.CreateOrder201ResponseShippingAddressToJSON)(value['shippingAddress']),
109
- 'orderLines': (value['orderLines'].map(CreateOrder201ResponseOrderLinesInner_1.CreateOrder201ResponseOrderLinesInnerToJSON)),
109
+ 'orderLines': (value['orderLines'].map(GetOrder200ResponseOrderLinesInner_1.GetOrder200ResponseOrderLinesInnerToJSON)),
110
110
  'subtotalAmount': value['subtotalAmount'],
111
111
  'totalAmount': value['totalAmount'],
112
112
  'currency': value['currency'],
@@ -0,0 +1,156 @@
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
+ * Quantity already allocated to outbound shipments.
134
+ * @type {number}
135
+ * @memberof GetOrder200ResponseOrderLinesInner
136
+ */
137
+ packedQuantity: number;
138
+ }
139
+ /**
140
+ * @export
141
+ */
142
+ export declare const GetOrder200ResponseOrderLinesInnerWeightUnitEnum: {
143
+ readonly Kg: "kg";
144
+ readonly G: "g";
145
+ readonly Lb: "lb";
146
+ readonly Oz: "oz";
147
+ };
148
+ export type GetOrder200ResponseOrderLinesInnerWeightUnitEnum = typeof GetOrder200ResponseOrderLinesInnerWeightUnitEnum[keyof typeof GetOrder200ResponseOrderLinesInnerWeightUnitEnum];
149
+ /**
150
+ * Check if a given object implements the GetOrder200ResponseOrderLinesInner interface.
151
+ */
152
+ export declare function instanceOfGetOrder200ResponseOrderLinesInner(value: object): value is GetOrder200ResponseOrderLinesInner;
153
+ export declare function GetOrder200ResponseOrderLinesInnerFromJSON(json: any): GetOrder200ResponseOrderLinesInner;
154
+ export declare function GetOrder200ResponseOrderLinesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrder200ResponseOrderLinesInner;
155
+ export declare function GetOrder200ResponseOrderLinesInnerToJSON(json: any): GetOrder200ResponseOrderLinesInner;
156
+ export declare function GetOrder200ResponseOrderLinesInnerToJSONTyped(value?: GetOrder200ResponseOrderLinesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,102 @@
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
+ 'packedQuantity': json['packedQuantity'],
71
+ };
72
+ }
73
+ function GetOrder200ResponseOrderLinesInnerToJSON(json) {
74
+ return GetOrder200ResponseOrderLinesInnerToJSONTyped(json, false);
75
+ }
76
+ function GetOrder200ResponseOrderLinesInnerToJSONTyped(value, ignoreDiscriminator = false) {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'sku': value['sku'],
82
+ 'name': value['name'],
83
+ 'quantity': value['quantity'],
84
+ 'unitPrice': value['unitPrice'],
85
+ 'totalPrice': value['totalPrice'],
86
+ 'currency': value['currency'],
87
+ 'weight': value['weight'],
88
+ 'weightUnit': value['weightUnit'],
89
+ 'variantId': value['variantId'],
90
+ 'productId': value['productId'],
91
+ 'imageUrl': value['imageUrl'],
92
+ 'hsCode': value['hsCode'],
93
+ 'countryOfOrigin': value['countryOfOrigin'],
94
+ 'provinceOfOrigin': value['provinceOfOrigin'],
95
+ 'barcode': value['barcode'],
96
+ 'requiresShipping': value['requiresShipping'],
97
+ 'taxable': value['taxable'],
98
+ 'giftCard': value['giftCard'],
99
+ 'vendor': value['vendor'],
100
+ 'packedQuantity': value['packedQuantity'],
101
+ };
102
+ }
@@ -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
+ }