@zippendo/sdk 1.2.5 → 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.
- package/dist/esm/models/BatchSendShipments200ResponseResultsInner.d.ts +4 -0
- package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +4 -0
- package/dist/esm/models/GetOrder200Response.d.ts +4 -4
- package/dist/esm/models/GetOrder200Response.js +3 -3
- package/dist/esm/models/GetOrder200ResponseOrderLinesInner.d.ts +156 -0
- package/dist/esm/models/GetOrder200ResponseOrderLinesInner.js +94 -0
- package/dist/esm/models/GetOrder200ResponseShipmentsInner.d.ts +7 -0
- package/dist/esm/models/GetOrder200ResponseShipmentsInner.js +5 -0
- package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInner.d.ts +68 -0
- package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInner.js +70 -0
- package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.d.ts +50 -0
- package/dist/esm/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.js +51 -0
- package/dist/esm/models/ListApiTokens401Response.d.ts +4 -0
- package/dist/esm/models/ListApiTokens401Response.js +4 -0
- package/dist/esm/models/SendShipment422Response.d.ts +4 -0
- package/dist/esm/models/SendShipment422Response.js +4 -0
- package/dist/esm/models/UpdateOrderRequest.d.ts +6 -0
- package/dist/esm/models/UpdateOrderRequest.js +2 -0
- package/dist/esm/models/UpdateOrgRequest.d.ts +0 -6
- package/dist/esm/models/UpdateOrgRequest.js +0 -2
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +4 -0
- package/dist/models/BatchSendShipments200ResponseResultsInner.js +4 -0
- package/dist/models/GetOrder200Response.d.ts +4 -4
- package/dist/models/GetOrder200Response.js +3 -3
- package/dist/models/GetOrder200ResponseOrderLinesInner.d.ts +156 -0
- package/dist/models/GetOrder200ResponseOrderLinesInner.js +102 -0
- package/dist/models/GetOrder200ResponseShipmentsInner.d.ts +7 -0
- package/dist/models/GetOrder200ResponseShipmentsInner.js +5 -0
- package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInner.d.ts +68 -0
- package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInner.js +78 -0
- package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.d.ts +50 -0
- package/dist/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.js +58 -0
- package/dist/models/ListApiTokens401Response.d.ts +4 -0
- package/dist/models/ListApiTokens401Response.js +4 -0
- package/dist/models/SendShipment422Response.d.ts +4 -0
- package/dist/models/SendShipment422Response.js +4 -0
- package/dist/models/UpdateOrderRequest.d.ts +6 -0
- package/dist/models/UpdateOrderRequest.js +2 -0
- package/dist/models/UpdateOrgRequest.d.ts +0 -6
- package/dist/models/UpdateOrgRequest.js +0 -2
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/GetOrder200Response.md +1 -1
- package/docs/GetOrder200ResponseOrderLinesInner.md +72 -0
- package/docs/GetOrder200ResponseShipmentsInner.md +2 -0
- package/docs/GetOrder200ResponseShipmentsInnerParcelsInner.md +42 -0
- package/docs/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.md +40 -0
- package/docs/UpdateOrderRequest.md +2 -0
- package/docs/UpdateOrgRequest.md +0 -2
- package/package.json +1 -1
- package/src/models/BatchSendShipments200ResponseResultsInner.ts +4 -0
- package/src/models/GetOrder200Response.ts +12 -12
- package/src/models/GetOrder200ResponseOrderLinesInner.ts +233 -0
- package/src/models/GetOrder200ResponseShipmentsInner.ts +16 -0
- package/src/models/GetOrder200ResponseShipmentsInnerParcelsInner.ts +130 -0
- package/src/models/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.ts +91 -0
- package/src/models/ListApiTokens401Response.ts +4 -0
- package/src/models/SendShipment422Response.ts +4 -0
- package/src/models/UpdateOrderRequest.ts +8 -0
- package/src/models/UpdateOrgRequest.ts +0 -8
- package/src/models/index.ts +3 -0
|
@@ -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
|
+
}
|
|
@@ -61,6 +61,9 @@ export declare const ListApiTokens401ResponseCodeEnum: {
|
|
|
61
61
|
readonly AuthMfaRequired: "AUTH_MFA_REQUIRED";
|
|
62
62
|
readonly AuthMfaInvalidCode: "AUTH_MFA_INVALID_CODE";
|
|
63
63
|
readonly AuthMfaAlreadyEnabled: "AUTH_MFA_ALREADY_ENABLED";
|
|
64
|
+
readonly CaptchaFailed: "CAPTCHA_FAILED";
|
|
65
|
+
readonly EmailDomainBlocked: "EMAIL_DOMAIN_BLOCKED";
|
|
66
|
+
readonly VatInvalid: "VAT_INVALID";
|
|
64
67
|
readonly AuthMfaNotEnabled: "AUTH_MFA_NOT_ENABLED";
|
|
65
68
|
readonly SessionRequired: "SESSION_REQUIRED";
|
|
66
69
|
readonly OrgNotFound: "ORG_NOT_FOUND";
|
|
@@ -113,6 +116,7 @@ export declare const ListApiTokens401ResponseCodeEnum: {
|
|
|
113
116
|
readonly CarrierAuthFailed: "CARRIER_AUTH_FAILED";
|
|
114
117
|
readonly CarrierNotFound: "CARRIER_NOT_FOUND";
|
|
115
118
|
readonly CarrierProductNotFound: "CARRIER_PRODUCT_NOT_FOUND";
|
|
119
|
+
readonly CarrierProductRouteUnsupported: "CARRIER_PRODUCT_ROUTE_UNSUPPORTED";
|
|
116
120
|
readonly CarrierConfigInvalid: "CARRIER_CONFIG_INVALID";
|
|
117
121
|
readonly CarrierParameterInvalid: "CARRIER_PARAMETER_INVALID";
|
|
118
122
|
readonly CarrierServerUnavailable: "CARRIER_SERVER_UNAVAILABLE";
|
|
@@ -38,6 +38,9 @@ export const ListApiTokens401ResponseCodeEnum = {
|
|
|
38
38
|
AuthMfaRequired: 'AUTH_MFA_REQUIRED',
|
|
39
39
|
AuthMfaInvalidCode: 'AUTH_MFA_INVALID_CODE',
|
|
40
40
|
AuthMfaAlreadyEnabled: 'AUTH_MFA_ALREADY_ENABLED',
|
|
41
|
+
CaptchaFailed: 'CAPTCHA_FAILED',
|
|
42
|
+
EmailDomainBlocked: 'EMAIL_DOMAIN_BLOCKED',
|
|
43
|
+
VatInvalid: 'VAT_INVALID',
|
|
41
44
|
AuthMfaNotEnabled: 'AUTH_MFA_NOT_ENABLED',
|
|
42
45
|
SessionRequired: 'SESSION_REQUIRED',
|
|
43
46
|
OrgNotFound: 'ORG_NOT_FOUND',
|
|
@@ -90,6 +93,7 @@ export const ListApiTokens401ResponseCodeEnum = {
|
|
|
90
93
|
CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
|
|
91
94
|
CarrierNotFound: 'CARRIER_NOT_FOUND',
|
|
92
95
|
CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
|
|
96
|
+
CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
|
|
93
97
|
CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
|
|
94
98
|
CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
|
|
95
99
|
CarrierServerUnavailable: 'CARRIER_SERVER_UNAVAILABLE',
|
|
@@ -68,6 +68,9 @@ export declare const SendShipment422ResponseCodeEnum: {
|
|
|
68
68
|
readonly AuthMfaRequired: "AUTH_MFA_REQUIRED";
|
|
69
69
|
readonly AuthMfaInvalidCode: "AUTH_MFA_INVALID_CODE";
|
|
70
70
|
readonly AuthMfaAlreadyEnabled: "AUTH_MFA_ALREADY_ENABLED";
|
|
71
|
+
readonly CaptchaFailed: "CAPTCHA_FAILED";
|
|
72
|
+
readonly EmailDomainBlocked: "EMAIL_DOMAIN_BLOCKED";
|
|
73
|
+
readonly VatInvalid: "VAT_INVALID";
|
|
71
74
|
readonly AuthMfaNotEnabled: "AUTH_MFA_NOT_ENABLED";
|
|
72
75
|
readonly SessionRequired: "SESSION_REQUIRED";
|
|
73
76
|
readonly OrgNotFound: "ORG_NOT_FOUND";
|
|
@@ -120,6 +123,7 @@ export declare const SendShipment422ResponseCodeEnum: {
|
|
|
120
123
|
readonly CarrierAuthFailed: "CARRIER_AUTH_FAILED";
|
|
121
124
|
readonly CarrierNotFound: "CARRIER_NOT_FOUND";
|
|
122
125
|
readonly CarrierProductNotFound: "CARRIER_PRODUCT_NOT_FOUND";
|
|
126
|
+
readonly CarrierProductRouteUnsupported: "CARRIER_PRODUCT_ROUTE_UNSUPPORTED";
|
|
123
127
|
readonly CarrierConfigInvalid: "CARRIER_CONFIG_INVALID";
|
|
124
128
|
readonly CarrierParameterInvalid: "CARRIER_PARAMETER_INVALID";
|
|
125
129
|
readonly CarrierServerUnavailable: "CARRIER_SERVER_UNAVAILABLE";
|
|
@@ -39,6 +39,9 @@ export const SendShipment422ResponseCodeEnum = {
|
|
|
39
39
|
AuthMfaRequired: 'AUTH_MFA_REQUIRED',
|
|
40
40
|
AuthMfaInvalidCode: 'AUTH_MFA_INVALID_CODE',
|
|
41
41
|
AuthMfaAlreadyEnabled: 'AUTH_MFA_ALREADY_ENABLED',
|
|
42
|
+
CaptchaFailed: 'CAPTCHA_FAILED',
|
|
43
|
+
EmailDomainBlocked: 'EMAIL_DOMAIN_BLOCKED',
|
|
44
|
+
VatInvalid: 'VAT_INVALID',
|
|
42
45
|
AuthMfaNotEnabled: 'AUTH_MFA_NOT_ENABLED',
|
|
43
46
|
SessionRequired: 'SESSION_REQUIRED',
|
|
44
47
|
OrgNotFound: 'ORG_NOT_FOUND',
|
|
@@ -91,6 +94,7 @@ export const SendShipment422ResponseCodeEnum = {
|
|
|
91
94
|
CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
|
|
92
95
|
CarrierNotFound: 'CARRIER_NOT_FOUND',
|
|
93
96
|
CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
|
|
97
|
+
CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
|
|
94
98
|
CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
|
|
95
99
|
CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
|
|
96
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
|
}
|
|
@@ -45,12 +45,6 @@ export interface UpdateOrgRequest {
|
|
|
45
45
|
* @memberof UpdateOrgRequest
|
|
46
46
|
*/
|
|
47
47
|
vatNumber?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
* Allow shipments beyond plan limit (overage charges apply)
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof UpdateOrgRequest
|
|
52
|
-
*/
|
|
53
|
-
overageEnabled?: boolean;
|
|
54
48
|
/**
|
|
55
49
|
* Billing/contact phone number
|
|
56
50
|
* @type {string}
|
|
@@ -41,7 +41,6 @@ export function UpdateOrgRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'description': json['description'] == null ? undefined : json['description'],
|
|
42
42
|
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
43
43
|
'vatNumber': json['vatNumber'] === undefined ? undefined : json['vatNumber'] === null ? null : json['vatNumber'],
|
|
44
|
-
'overageEnabled': json['overageEnabled'] == null ? undefined : json['overageEnabled'],
|
|
45
44
|
'phone': json['phone'] === undefined ? undefined : json['phone'] === null ? null : json['phone'],
|
|
46
45
|
'billingEmail': json['billingEmail'] === undefined ? undefined : json['billingEmail'] === null ? null : json['billingEmail'],
|
|
47
46
|
'companyName': json['companyName'] === undefined ? undefined : json['companyName'] === null ? null : json['companyName'],
|
|
@@ -66,7 +65,6 @@ export function UpdateOrgRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
66
65
|
'description': value['description'],
|
|
67
66
|
'currency': value['currency'],
|
|
68
67
|
'vatNumber': value['vatNumber'],
|
|
69
|
-
'overageEnabled': value['overageEnabled'],
|
|
70
68
|
'phone': value['phone'],
|
|
71
69
|
'billingEmail': value['billingEmail'],
|
|
72
70
|
'companyName': value['companyName'],
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -83,6 +83,9 @@ export declare const BatchSendShipments200ResponseResultsInnerCodeEnum: {
|
|
|
83
83
|
readonly AuthMfaRequired: "AUTH_MFA_REQUIRED";
|
|
84
84
|
readonly AuthMfaInvalidCode: "AUTH_MFA_INVALID_CODE";
|
|
85
85
|
readonly AuthMfaAlreadyEnabled: "AUTH_MFA_ALREADY_ENABLED";
|
|
86
|
+
readonly CaptchaFailed: "CAPTCHA_FAILED";
|
|
87
|
+
readonly EmailDomainBlocked: "EMAIL_DOMAIN_BLOCKED";
|
|
88
|
+
readonly VatInvalid: "VAT_INVALID";
|
|
86
89
|
readonly AuthMfaNotEnabled: "AUTH_MFA_NOT_ENABLED";
|
|
87
90
|
readonly SessionRequired: "SESSION_REQUIRED";
|
|
88
91
|
readonly OrgNotFound: "ORG_NOT_FOUND";
|
|
@@ -135,6 +138,7 @@ export declare const BatchSendShipments200ResponseResultsInnerCodeEnum: {
|
|
|
135
138
|
readonly CarrierAuthFailed: "CARRIER_AUTH_FAILED";
|
|
136
139
|
readonly CarrierNotFound: "CARRIER_NOT_FOUND";
|
|
137
140
|
readonly CarrierProductNotFound: "CARRIER_PRODUCT_NOT_FOUND";
|
|
141
|
+
readonly CarrierProductRouteUnsupported: "CARRIER_PRODUCT_ROUTE_UNSUPPORTED";
|
|
138
142
|
readonly CarrierConfigInvalid: "CARRIER_CONFIG_INVALID";
|
|
139
143
|
readonly CarrierParameterInvalid: "CARRIER_PARAMETER_INVALID";
|
|
140
144
|
readonly CarrierServerUnavailable: "CARRIER_SERVER_UNAVAILABLE";
|
|
@@ -55,6 +55,9 @@ exports.BatchSendShipments200ResponseResultsInnerCodeEnum = {
|
|
|
55
55
|
AuthMfaRequired: 'AUTH_MFA_REQUIRED',
|
|
56
56
|
AuthMfaInvalidCode: 'AUTH_MFA_INVALID_CODE',
|
|
57
57
|
AuthMfaAlreadyEnabled: 'AUTH_MFA_ALREADY_ENABLED',
|
|
58
|
+
CaptchaFailed: 'CAPTCHA_FAILED',
|
|
59
|
+
EmailDomainBlocked: 'EMAIL_DOMAIN_BLOCKED',
|
|
60
|
+
VatInvalid: 'VAT_INVALID',
|
|
58
61
|
AuthMfaNotEnabled: 'AUTH_MFA_NOT_ENABLED',
|
|
59
62
|
SessionRequired: 'SESSION_REQUIRED',
|
|
60
63
|
OrgNotFound: 'ORG_NOT_FOUND',
|
|
@@ -107,6 +110,7 @@ exports.BatchSendShipments200ResponseResultsInnerCodeEnum = {
|
|
|
107
110
|
CarrierAuthFailed: 'CARRIER_AUTH_FAILED',
|
|
108
111
|
CarrierNotFound: 'CARRIER_NOT_FOUND',
|
|
109
112
|
CarrierProductNotFound: 'CARRIER_PRODUCT_NOT_FOUND',
|
|
113
|
+
CarrierProductRouteUnsupported: 'CARRIER_PRODUCT_ROUTE_UNSUPPORTED',
|
|
110
114
|
CarrierConfigInvalid: 'CARRIER_CONFIG_INVALID',
|
|
111
115
|
CarrierParameterInvalid: 'CARRIER_PARAMETER_INVALID',
|
|
112
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
|
-
*
|
|
61
|
-
* @type {Array<
|
|
60
|
+
* Sold line items with quantity already allocated to outbound shipments.
|
|
61
|
+
* @type {Array<GetOrder200ResponseOrderLinesInner>}
|
|
62
62
|
* @memberof GetOrder200Response
|
|
63
63
|
*/
|
|
64
|
-
orderLines: Array<
|
|
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(
|
|
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(
|
|
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
|
}
|