@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,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Zippendo Public API
5
+ * 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`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@zippendo.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON, GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON, } from './GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner';
15
+ import { CreateShipment201ResponseParcelsInnerDimensionsFromJSON, CreateShipment201ResponseParcelsInnerDimensionsToJSON, } from './CreateShipment201ResponseParcelsInnerDimensions';
16
+ /**
17
+ * @export
18
+ */
19
+ export const GetOrder200ResponseShipmentsInnerParcelsInnerWeightUnitEnum = {
20
+ Kg: 'kg',
21
+ G: 'g',
22
+ Lb: 'lb',
23
+ Oz: 'oz'
24
+ };
25
+ /**
26
+ * Check if a given object implements the GetOrder200ResponseShipmentsInnerParcelsInner interface.
27
+ */
28
+ export function instanceOfGetOrder200ResponseShipmentsInnerParcelsInner(value) {
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('weight' in value) || value['weight'] === undefined)
32
+ return false;
33
+ if (!('weightUnit' in value) || value['weightUnit'] === undefined)
34
+ return false;
35
+ if (!('dimensions' in value) || value['dimensions'] === undefined)
36
+ return false;
37
+ if (!('orderLines' in value) || value['orderLines'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerFromJSON(json) {
42
+ return GetOrder200ResponseShipmentsInnerParcelsInnerFromJSONTyped(json, false);
43
+ }
44
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'weight': json['weight'],
51
+ 'weightUnit': json['weightUnit'],
52
+ 'dimensions': CreateShipment201ResponseParcelsInnerDimensionsFromJSON(json['dimensions']),
53
+ 'orderLines': (json['orderLines'].map(GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON)),
54
+ };
55
+ }
56
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerToJSON(json) {
57
+ return GetOrder200ResponseShipmentsInnerParcelsInnerToJSONTyped(json, false);
58
+ }
59
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'weight': value['weight'],
66
+ 'weightUnit': value['weightUnit'],
67
+ 'dimensions': CreateShipment201ResponseParcelsInnerDimensionsToJSON(value['dimensions']),
68
+ 'orderLines': (value['orderLines'].map(GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON)),
69
+ };
70
+ }
@@ -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,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Zippendo Public API
5
+ * 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`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@zippendo.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner interface.
16
+ */
17
+ export function instanceOfGetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('quantity' in value) || value['quantity'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSON(json) {
25
+ return GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSONTyped(json, false);
26
+ }
27
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'sku': json['sku'] === undefined ? undefined : json['sku'] === null ? null : json['sku'],
34
+ 'quantity': json['quantity'],
35
+ 'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
36
+ };
37
+ }
38
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSON(json) {
39
+ return GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSONTyped(json, false);
40
+ }
41
+ export function GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInnerToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'id': value['id'],
47
+ 'sku': value['sku'],
48
+ 'quantity': value['quantity'],
49
+ 'description': value['description'],
50
+ };
51
+ }
@@ -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',
@@ -129,6 +129,12 @@ export interface CreateOrder201ResponseOrderLinesInner {
129
129
  * @memberof CreateOrder201ResponseOrderLinesInner
130
130
  */
131
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 CreateOrder201ResponseOrderLinesInner
136
+ */
137
+ id?: string;
132
138
  }
133
139
  /**
134
140
  * @export
@@ -65,6 +65,7 @@ function CreateOrder201ResponseOrderLinesInnerFromJSONTyped(json, ignoreDiscrimi
65
65
  'taxable': json['taxable'] === undefined ? undefined : json['taxable'] === null ? null : json['taxable'],
66
66
  'giftCard': json['giftCard'] === undefined ? undefined : json['giftCard'] === null ? null : json['giftCard'],
67
67
  'vendor': json['vendor'] === undefined ? undefined : json['vendor'] === null ? null : json['vendor'],
68
+ 'id': json['id'] == null ? undefined : json['id'],
68
69
  };
69
70
  }
70
71
  function CreateOrder201ResponseOrderLinesInnerToJSON(json) {
@@ -94,5 +95,6 @@ function CreateOrder201ResponseOrderLinesInnerToJSONTyped(value, ignoreDiscrimin
94
95
  'taxable': value['taxable'],
95
96
  'giftCard': value['giftCard'],
96
97
  'vendor': value['vendor'],
98
+ 'id': value['id'],
97
99
  };
98
100
  }
@@ -129,6 +129,12 @@ export interface CreateOrderRequestOrderLinesInner {
129
129
  * @memberof CreateOrderRequestOrderLinesInner
130
130
  */
131
131
  vendor?: string | null;
132
+ /**
133
+ * ID of the existing order line this entry edits. Omit to add a new line.
134
+ * @type {string}
135
+ * @memberof CreateOrderRequestOrderLinesInner
136
+ */
137
+ id?: string;
132
138
  }
133
139
  /**
134
140
  * @export
@@ -65,6 +65,7 @@ function CreateOrderRequestOrderLinesInnerFromJSONTyped(json, ignoreDiscriminato
65
65
  'taxable': json['taxable'] === undefined ? undefined : json['taxable'] === null ? null : json['taxable'],
66
66
  'giftCard': json['giftCard'] === undefined ? undefined : json['giftCard'] === null ? null : json['giftCard'],
67
67
  'vendor': json['vendor'] === undefined ? undefined : json['vendor'] === null ? null : json['vendor'],
68
+ 'id': json['id'] == null ? undefined : json['id'],
68
69
  };
69
70
  }
70
71
  function CreateOrderRequestOrderLinesInnerToJSON(json) {
@@ -94,5 +95,6 @@ function CreateOrderRequestOrderLinesInnerToJSONTyped(value, ignoreDiscriminator
94
95
  'taxable': value['taxable'],
95
96
  'giftCard': value['giftCard'],
96
97
  'vendor': value['vendor'],
98
+ 'id': value['id'],
97
99
  };
98
100
  }
@@ -21,6 +21,12 @@ export interface CreateShipment201ResponseParcelsInnerOrderLinesInner {
21
21
  * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
22
22
  */
23
23
  id?: string;
24
+ /**
25
+ * ID of the order line this packed line came from. Null when the item did not originate from an order line, such as a free gift or a replacement part.
26
+ * @type {string}
27
+ * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
28
+ */
29
+ orderLineId?: string | null;
24
30
  /**
25
31
  * Stock keeping unit of the product. Optional — not every webshop assigns SKUs.
26
32
  * @type {string}
@@ -70,7 +76,13 @@ export interface CreateShipment201ResponseParcelsInnerOrderLinesInner {
70
76
  */
71
77
  countryOfOrigin?: string;
72
78
  /**
73
- * Customs tariff (HS) code.
79
+ * Harmonized System customs code.
80
+ * @type {string}
81
+ * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
82
+ */
83
+ hsCode?: string | null;
84
+ /**
85
+ * Deprecated misspelling of `hsCode`, kept for backwards compatibility.
74
86
  * @type {string}
75
87
  * @memberof CreateShipment201ResponseParcelsInnerOrderLinesInner
76
88
  */
@@ -35,6 +35,7 @@ function CreateShipment201ResponseParcelsInnerOrderLinesInnerFromJSONTyped(json,
35
35
  }
36
36
  return {
37
37
  'id': json['id'] == null ? undefined : json['id'],
38
+ 'orderLineId': json['orderLineId'] === undefined ? undefined : json['orderLineId'] === null ? null : json['orderLineId'],
38
39
  'sku': json['sku'] === undefined ? undefined : json['sku'] === null ? null : json['sku'],
39
40
  'quantity': json['quantity'],
40
41
  'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
@@ -43,6 +44,7 @@ function CreateShipment201ResponseParcelsInnerOrderLinesInnerFromJSONTyped(json,
43
44
  'vatPercent': json['vatPercent'] === undefined ? undefined : json['vatPercent'] === null ? null : json['vatPercent'],
44
45
  'location': json['location'] === undefined ? undefined : json['location'] === null ? null : json['location'],
45
46
  'countryOfOrigin': json['countryOfOrigin'] == null ? undefined : json['countryOfOrigin'],
47
+ 'hsCode': json['hsCode'] === undefined ? undefined : json['hsCode'] === null ? null : json['hsCode'],
46
48
  'tarrifNumber': json['tarrifNumber'] === undefined ? undefined : json['tarrifNumber'] === null ? null : json['tarrifNumber'],
47
49
  };
48
50
  }
@@ -55,6 +57,7 @@ function CreateShipment201ResponseParcelsInnerOrderLinesInnerToJSONTyped(value,
55
57
  }
56
58
  return {
57
59
  'id': value['id'],
60
+ 'orderLineId': value['orderLineId'],
58
61
  'sku': value['sku'],
59
62
  'quantity': value['quantity'],
60
63
  'description': value['description'],
@@ -63,6 +66,7 @@ function CreateShipment201ResponseParcelsInnerOrderLinesInnerToJSONTyped(value,
63
66
  'vatPercent': value['vatPercent'],
64
67
  'location': value['location'],
65
68
  'countryOfOrigin': value['countryOfOrigin'],
69
+ 'hsCode': value['hsCode'],
66
70
  'tarrifNumber': value['tarrifNumber'],
67
71
  };
68
72
  }
@@ -21,6 +21,12 @@ export interface CreateShipmentRequestParcelsInnerOrderLinesInner {
21
21
  * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
22
22
  */
23
23
  id?: string;
24
+ /**
25
+ * ID of the order line this packed line came from. Null when the item did not originate from an order line, such as a free gift or a replacement part.
26
+ * @type {string}
27
+ * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
28
+ */
29
+ orderLineId?: string | null;
24
30
  /**
25
31
  * Stock keeping unit of the product. Optional — not every webshop assigns SKUs.
26
32
  * @type {string}
@@ -70,7 +76,13 @@ export interface CreateShipmentRequestParcelsInnerOrderLinesInner {
70
76
  */
71
77
  countryOfOrigin?: string;
72
78
  /**
73
- * Customs tariff (HS) code.
79
+ * Harmonized System customs code.
80
+ * @type {string}
81
+ * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
82
+ */
83
+ hsCode?: string | null;
84
+ /**
85
+ * Deprecated misspelling of `hsCode`, kept for backwards compatibility.
74
86
  * @type {string}
75
87
  * @memberof CreateShipmentRequestParcelsInnerOrderLinesInner
76
88
  */
@@ -35,6 +35,7 @@ function CreateShipmentRequestParcelsInnerOrderLinesInnerFromJSONTyped(json, ign
35
35
  }
36
36
  return {
37
37
  'id': json['id'] == null ? undefined : json['id'],
38
+ 'orderLineId': json['orderLineId'] === undefined ? undefined : json['orderLineId'] === null ? null : json['orderLineId'],
38
39
  'sku': json['sku'] === undefined ? undefined : json['sku'] === null ? null : json['sku'],
39
40
  'quantity': json['quantity'],
40
41
  'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
@@ -43,6 +44,7 @@ function CreateShipmentRequestParcelsInnerOrderLinesInnerFromJSONTyped(json, ign
43
44
  'vatPercent': json['vatPercent'] === undefined ? undefined : json['vatPercent'] === null ? null : json['vatPercent'],
44
45
  'location': json['location'] === undefined ? undefined : json['location'] === null ? null : json['location'],
45
46
  'countryOfOrigin': json['countryOfOrigin'] == null ? undefined : json['countryOfOrigin'],
47
+ 'hsCode': json['hsCode'] === undefined ? undefined : json['hsCode'] === null ? null : json['hsCode'],
46
48
  'tarrifNumber': json['tarrifNumber'] === undefined ? undefined : json['tarrifNumber'] === null ? null : json['tarrifNumber'],
47
49
  };
48
50
  }
@@ -55,6 +57,7 @@ function CreateShipmentRequestParcelsInnerOrderLinesInnerToJSONTyped(value, igno
55
57
  }
56
58
  return {
57
59
  'id': value['id'],
60
+ 'orderLineId': value['orderLineId'],
58
61
  'sku': value['sku'],
59
62
  'quantity': value['quantity'],
60
63
  'description': value['description'],
@@ -63,6 +66,7 @@ function CreateShipmentRequestParcelsInnerOrderLinesInnerToJSONTyped(value, igno
63
66
  'vatPercent': value['vatPercent'],
64
67
  'location': value['location'],
65
68
  'countryOfOrigin': value['countryOfOrigin'],
69
+ 'hsCode': value['hsCode'],
66
70
  'tarrifNumber': value['tarrifNumber'],
67
71
  };
68
72
  }
@@ -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'],