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