@zippendo/sdk 1.2.3 → 1.2.5
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/apis/OrderChannelsApi.d.ts +195 -0
- package/dist/apis/OrderChannelsApi.js +496 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/OrderChannelsApi.d.ts +195 -0
- package/dist/esm/apis/OrderChannelsApi.js +492 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
- package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +1 -0
- package/dist/esm/models/CreateOrderChannelRequest.d.ts +65 -0
- package/dist/esm/models/CreateOrderChannelRequest.js +61 -0
- package/dist/esm/models/CreateOrderChannelRequestSettings.d.ts +105 -0
- package/dist/esm/models/CreateOrderChannelRequestSettings.js +66 -0
- package/dist/esm/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.d.ts +52 -0
- package/dist/esm/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.js +56 -0
- package/dist/esm/models/CreateOrderChannelWebhookSecret201Response.d.ts +44 -0
- package/dist/esm/models/CreateOrderChannelWebhookSecret201Response.js +51 -0
- package/dist/esm/models/CreateOrderRequest.d.ts +12 -0
- package/dist/esm/models/CreateOrderRequest.js +4 -0
- package/dist/esm/models/GetOrderChannelWebhookStatus200Response.d.ts +45 -0
- package/dist/esm/models/GetOrderChannelWebhookStatus200Response.js +52 -0
- package/dist/esm/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.d.ts +62 -0
- package/dist/esm/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.js +59 -0
- package/dist/esm/models/ListApiTokens401Response.d.ts +1 -0
- package/dist/esm/models/ListApiTokens401Response.js +1 -0
- package/dist/esm/models/ListAvailableCarriers200ResponseInner.d.ts +12 -0
- package/dist/esm/models/ListAvailableCarriers200ResponseInner.js +4 -0
- package/dist/esm/models/ListCarriers200ResponseDataInner.d.ts +12 -0
- package/dist/esm/models/ListCarriers200ResponseDataInner.js +4 -0
- package/dist/esm/models/ListOrderChannels200Response.d.ts +57 -0
- package/dist/esm/models/ListOrderChannels200Response.js +60 -0
- package/dist/esm/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
- package/dist/esm/models/ListOrderChannels200ResponseDataInner.js +97 -0
- package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
- package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.js +86 -0
- package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
- package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +56 -0
- package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
- package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
- package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
- package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.js +43 -0
- package/dist/esm/models/SendShipment422Response.d.ts +1 -0
- package/dist/esm/models/SendShipment422Response.js +1 -0
- package/dist/esm/models/UpdateOrderChannelRequest.d.ts +65 -0
- package/dist/esm/models/UpdateOrderChannelRequest.js +52 -0
- package/dist/esm/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
- package/dist/esm/models/UpdateOrderChannelRequestSettings.js +66 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
- package/dist/models/BatchSendShipments200ResponseResultsInner.js +1 -0
- package/dist/models/CreateOrderChannelRequest.d.ts +65 -0
- package/dist/models/CreateOrderChannelRequest.js +69 -0
- package/dist/models/CreateOrderChannelRequestSettings.d.ts +105 -0
- package/dist/models/CreateOrderChannelRequestSettings.js +73 -0
- package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.d.ts +52 -0
- package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.js +64 -0
- package/dist/models/CreateOrderChannelWebhookSecret201Response.d.ts +44 -0
- package/dist/models/CreateOrderChannelWebhookSecret201Response.js +58 -0
- package/dist/models/CreateOrderRequest.d.ts +12 -0
- package/dist/models/CreateOrderRequest.js +4 -0
- package/dist/models/GetOrderChannelWebhookStatus200Response.d.ts +45 -0
- package/dist/models/GetOrderChannelWebhookStatus200Response.js +59 -0
- package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.d.ts +62 -0
- package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.js +66 -0
- package/dist/models/ListApiTokens401Response.d.ts +1 -0
- package/dist/models/ListApiTokens401Response.js +1 -0
- package/dist/models/ListAvailableCarriers200ResponseInner.d.ts +12 -0
- package/dist/models/ListAvailableCarriers200ResponseInner.js +4 -0
- package/dist/models/ListCarriers200ResponseDataInner.d.ts +12 -0
- package/dist/models/ListCarriers200ResponseDataInner.js +4 -0
- package/dist/models/ListOrderChannels200Response.d.ts +57 -0
- package/dist/models/ListOrderChannels200Response.js +67 -0
- package/dist/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
- package/dist/models/ListOrderChannels200ResponseDataInner.js +105 -0
- package/dist/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
- package/dist/models/ListOrderChannels200ResponseDataInnerSettings.js +93 -0
- package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
- package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +64 -0
- package/dist/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
- package/dist/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
- package/dist/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
- package/dist/models/RevokeOrderChannelWebhookSecret200Response.js +50 -0
- package/dist/models/SendShipment422Response.d.ts +1 -0
- package/dist/models/SendShipment422Response.js +1 -0
- package/dist/models/UpdateOrderChannelRequest.d.ts +65 -0
- package/dist/models/UpdateOrderChannelRequest.js +59 -0
- package/dist/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
- package/dist/models/UpdateOrderChannelRequestSettings.js +73 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/docs/CreateOrderChannelRequest.md +42 -0
- package/docs/CreateOrderChannelRequestSettings.md +58 -0
- package/docs/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.md +38 -0
- package/docs/CreateOrderChannelWebhookSecret201Response.md +38 -0
- package/docs/CreateOrderRequest.md +4 -0
- package/docs/GetOrderChannelWebhookStatus200Response.md +38 -0
- package/docs/GetOrderChannelWebhookStatus200ResponseWebhooksInner.md +44 -0
- package/docs/ListAvailableCarriers200ResponseInner.md +4 -0
- package/docs/ListCarriers200ResponseDataInner.md +4 -0
- package/docs/ListOrderChannels200Response.md +42 -0
- package/docs/ListOrderChannels200ResponseDataInner.md +60 -0
- package/docs/ListOrderChannels200ResponseDataInnerSettings.md +67 -0
- package/docs/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.md +38 -0
- package/docs/OrderChannelsApi.md +650 -0
- package/docs/OrdersApi.md +1 -0
- package/docs/RevokeOrderChannelWebhookSecret200Response.md +34 -0
- package/docs/UpdateOrderChannelRequest.md +44 -0
- package/docs/UpdateOrderChannelRequestSettings.md +59 -0
- package/package.json +1 -1
- package/src/apis/OrderChannelsApi.ts +670 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BatchSendShipments200ResponseResultsInner.ts +1 -0
- package/src/models/CreateOrderChannelRequest.ts +118 -0
- package/src/models/CreateOrderChannelRequestSettings.ts +169 -0
- package/src/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.ts +94 -0
- package/src/models/CreateOrderChannelWebhookSecret201Response.ts +84 -0
- package/src/models/CreateOrderRequest.ts +16 -0
- package/src/models/GetOrderChannelWebhookStatus200Response.ts +92 -0
- package/src/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.ts +109 -0
- package/src/models/ListApiTokens401Response.ts +1 -0
- package/src/models/ListAvailableCarriers200ResponseInner.ts +16 -0
- package/src/models/ListCarriers200ResponseDataInner.ts +16 -0
- package/src/models/ListOrderChannels200Response.ts +110 -0
- package/src/models/ListOrderChannels200ResponseDataInner.ts +200 -0
- package/src/models/ListOrderChannels200ResponseDataInnerSettings.ts +207 -0
- package/src/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.ts +94 -0
- package/src/models/ListOrders200ResponseDataInnerOrderChannel.ts +2 -1
- package/src/models/RevokeOrderChannelWebhookSecret200Response.ts +66 -0
- package/src/models/SendShipment422Response.ts +1 -0
- package/src/models/UpdateOrderChannelRequest.ts +113 -0
- package/src/models/UpdateOrderChannelRequestSettings.ts +169 -0
- package/src/models/index.ts +13 -0
|
@@ -14,6 +14,10 @@ export * from './CreateApiTokenRequest';
|
|
|
14
14
|
export * from './CreateOrder201Response';
|
|
15
15
|
export * from './CreateOrder201ResponseOrderLinesInner';
|
|
16
16
|
export * from './CreateOrder201ResponseShippingAddress';
|
|
17
|
+
export * from './CreateOrderChannelRequest';
|
|
18
|
+
export * from './CreateOrderChannelRequestSettings';
|
|
19
|
+
export * from './CreateOrderChannelRequestSettingsShippingMethodMappingsInner';
|
|
20
|
+
export * from './CreateOrderChannelWebhookSecret201Response';
|
|
17
21
|
export * from './CreateOrderRequest';
|
|
18
22
|
export * from './CreateOrderRequestOrderLinesInner';
|
|
19
23
|
export * from './CreateOrderRequestShippingAddress';
|
|
@@ -71,6 +75,8 @@ export * from './GetBillingUsage200ResponseZippyMessages';
|
|
|
71
75
|
export * from './GetOrder200Response';
|
|
72
76
|
export * from './GetOrder200ResponseShipmentsInner';
|
|
73
77
|
export * from './GetOrder200ResponseShippingRule';
|
|
78
|
+
export * from './GetOrderChannelWebhookStatus200Response';
|
|
79
|
+
export * from './GetOrderChannelWebhookStatus200ResponseWebhooksInner';
|
|
74
80
|
export * from './GetOrg200Response';
|
|
75
81
|
export * from './GetOrg200ResponseCount';
|
|
76
82
|
export * from './GetOrgBranding200Response';
|
|
@@ -94,6 +100,10 @@ export * from './ListCarrierProducts200ResponseInnerWeightLimits';
|
|
|
94
100
|
export * from './ListCarriers200Response';
|
|
95
101
|
export * from './ListCarriers200ResponseDataInner';
|
|
96
102
|
export * from './ListCarriers200ResponseDataInnerConfigValue';
|
|
103
|
+
export * from './ListOrderChannels200Response';
|
|
104
|
+
export * from './ListOrderChannels200ResponseDataInner';
|
|
105
|
+
export * from './ListOrderChannels200ResponseDataInnerSettings';
|
|
106
|
+
export * from './ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner';
|
|
97
107
|
export * from './ListOrders200Response';
|
|
98
108
|
export * from './ListOrders200ResponseDataInner';
|
|
99
109
|
export * from './ListOrders200ResponseDataInnerOrderChannel';
|
|
@@ -122,6 +132,7 @@ export * from './ListShippingRules200ResponseDataInnerConditionsInnerOneOf4';
|
|
|
122
132
|
export * from './ListShippingRules200ResponseDataInnerLabelPrinter';
|
|
123
133
|
export * from './ListShippingRules200ResponseDataInnerReturnShippingRule';
|
|
124
134
|
export * from './RevokeApiToken200Response';
|
|
135
|
+
export * from './RevokeOrderChannelWebhookSecret200Response';
|
|
125
136
|
export * from './SendShipment422Response';
|
|
126
137
|
export * from './SendShipment422ResponseErrorsInner';
|
|
127
138
|
export * from './SplitShipment201Response';
|
|
@@ -135,6 +146,8 @@ export * from './TrackShipment200ResponseEventsInner';
|
|
|
135
146
|
export * from './UpdateAddressRequest';
|
|
136
147
|
export * from './UpdateApiTokenRequest';
|
|
137
148
|
export * from './UpdateCarrierRequest';
|
|
149
|
+
export * from './UpdateOrderChannelRequest';
|
|
150
|
+
export * from './UpdateOrderChannelRequestSettings';
|
|
138
151
|
export * from './UpdateOrderRequest';
|
|
139
152
|
export * from './UpdateOrg200Response';
|
|
140
153
|
export * from './UpdateOrgBrandRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -16,6 +16,10 @@ export * from './CreateApiTokenRequest';
|
|
|
16
16
|
export * from './CreateOrder201Response';
|
|
17
17
|
export * from './CreateOrder201ResponseOrderLinesInner';
|
|
18
18
|
export * from './CreateOrder201ResponseShippingAddress';
|
|
19
|
+
export * from './CreateOrderChannelRequest';
|
|
20
|
+
export * from './CreateOrderChannelRequestSettings';
|
|
21
|
+
export * from './CreateOrderChannelRequestSettingsShippingMethodMappingsInner';
|
|
22
|
+
export * from './CreateOrderChannelWebhookSecret201Response';
|
|
19
23
|
export * from './CreateOrderRequest';
|
|
20
24
|
export * from './CreateOrderRequestOrderLinesInner';
|
|
21
25
|
export * from './CreateOrderRequestShippingAddress';
|
|
@@ -73,6 +77,8 @@ export * from './GetBillingUsage200ResponseZippyMessages';
|
|
|
73
77
|
export * from './GetOrder200Response';
|
|
74
78
|
export * from './GetOrder200ResponseShipmentsInner';
|
|
75
79
|
export * from './GetOrder200ResponseShippingRule';
|
|
80
|
+
export * from './GetOrderChannelWebhookStatus200Response';
|
|
81
|
+
export * from './GetOrderChannelWebhookStatus200ResponseWebhooksInner';
|
|
76
82
|
export * from './GetOrg200Response';
|
|
77
83
|
export * from './GetOrg200ResponseCount';
|
|
78
84
|
export * from './GetOrgBranding200Response';
|
|
@@ -96,6 +102,10 @@ export * from './ListCarrierProducts200ResponseInnerWeightLimits';
|
|
|
96
102
|
export * from './ListCarriers200Response';
|
|
97
103
|
export * from './ListCarriers200ResponseDataInner';
|
|
98
104
|
export * from './ListCarriers200ResponseDataInnerConfigValue';
|
|
105
|
+
export * from './ListOrderChannels200Response';
|
|
106
|
+
export * from './ListOrderChannels200ResponseDataInner';
|
|
107
|
+
export * from './ListOrderChannels200ResponseDataInnerSettings';
|
|
108
|
+
export * from './ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner';
|
|
99
109
|
export * from './ListOrders200Response';
|
|
100
110
|
export * from './ListOrders200ResponseDataInner';
|
|
101
111
|
export * from './ListOrders200ResponseDataInnerOrderChannel';
|
|
@@ -124,6 +134,7 @@ export * from './ListShippingRules200ResponseDataInnerConditionsInnerOneOf4';
|
|
|
124
134
|
export * from './ListShippingRules200ResponseDataInnerLabelPrinter';
|
|
125
135
|
export * from './ListShippingRules200ResponseDataInnerReturnShippingRule';
|
|
126
136
|
export * from './RevokeApiToken200Response';
|
|
137
|
+
export * from './RevokeOrderChannelWebhookSecret200Response';
|
|
127
138
|
export * from './SendShipment422Response';
|
|
128
139
|
export * from './SendShipment422ResponseErrorsInner';
|
|
129
140
|
export * from './SplitShipment201Response';
|
|
@@ -137,6 +148,8 @@ export * from './TrackShipment200ResponseEventsInner';
|
|
|
137
148
|
export * from './UpdateAddressRequest';
|
|
138
149
|
export * from './UpdateApiTokenRequest';
|
|
139
150
|
export * from './UpdateCarrierRequest';
|
|
151
|
+
export * from './UpdateOrderChannelRequest';
|
|
152
|
+
export * from './UpdateOrderChannelRequestSettings';
|
|
140
153
|
export * from './UpdateOrderRequest';
|
|
141
154
|
export * from './UpdateOrg200Response';
|
|
142
155
|
export * from './UpdateOrgBrandRequest';
|
|
@@ -155,6 +155,7 @@ export declare const BatchSendShipments200ResponseResultsInnerCodeEnum: {
|
|
|
155
155
|
readonly ShippingRuleInvalid: "SHIPPING_RULE_INVALID";
|
|
156
156
|
readonly AddressNotFound: "ADDRESS_NOT_FOUND";
|
|
157
157
|
readonly OrderNotFound: "ORDER_NOT_FOUND";
|
|
158
|
+
readonly OrderExists: "ORDER_EXISTS";
|
|
158
159
|
readonly OrderChannelNotFound: "ORDER_CHANNEL_NOT_FOUND";
|
|
159
160
|
readonly OrderChannelConfigInvalid: "ORDER_CHANNEL_CONFIG_INVALID";
|
|
160
161
|
readonly IntegrationNotConfigured: "INTEGRATION_NOT_CONFIGURED";
|
|
@@ -127,6 +127,7 @@ exports.BatchSendShipments200ResponseResultsInnerCodeEnum = {
|
|
|
127
127
|
ShippingRuleInvalid: 'SHIPPING_RULE_INVALID',
|
|
128
128
|
AddressNotFound: 'ADDRESS_NOT_FOUND',
|
|
129
129
|
OrderNotFound: 'ORDER_NOT_FOUND',
|
|
130
|
+
OrderExists: 'ORDER_EXISTS',
|
|
130
131
|
OrderChannelNotFound: 'ORDER_CHANNEL_NOT_FOUND',
|
|
131
132
|
OrderChannelConfigInvalid: 'ORDER_CHANNEL_CONFIG_INVALID',
|
|
132
133
|
IntegrationNotConfigured: 'INTEGRATION_NOT_CONFIGURED',
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { CreateOrderChannelRequestSettings } from './CreateOrderChannelRequestSettings';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateOrderChannelRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateOrderChannelRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Display name for the channel.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateOrderChannelRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Type of the order channel. Platform channels (Shopify, WooCommerce) are created via their connect flows.
|
|
27
|
+
* @type {CreateOrderChannelRequestTypeEnum}
|
|
28
|
+
* @memberof CreateOrderChannelRequest
|
|
29
|
+
*/
|
|
30
|
+
type: CreateOrderChannelRequestTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Brand this channel belongs to; null for organization-wide
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateOrderChannelRequest
|
|
35
|
+
*/
|
|
36
|
+
brandId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the channel is active.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof CreateOrderChannelRequest
|
|
41
|
+
*/
|
|
42
|
+
enabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CreateOrderChannelRequestSettings}
|
|
46
|
+
* @memberof CreateOrderChannelRequest
|
|
47
|
+
*/
|
|
48
|
+
settings?: CreateOrderChannelRequestSettings;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const CreateOrderChannelRequestTypeEnum: {
|
|
54
|
+
readonly Manual: "manual";
|
|
55
|
+
readonly Custom: "custom";
|
|
56
|
+
};
|
|
57
|
+
export type CreateOrderChannelRequestTypeEnum = typeof CreateOrderChannelRequestTypeEnum[keyof typeof CreateOrderChannelRequestTypeEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the CreateOrderChannelRequest interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfCreateOrderChannelRequest(value: object): value is CreateOrderChannelRequest;
|
|
62
|
+
export declare function CreateOrderChannelRequestFromJSON(json: any): CreateOrderChannelRequest;
|
|
63
|
+
export declare function CreateOrderChannelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderChannelRequest;
|
|
64
|
+
export declare function CreateOrderChannelRequestToJSON(json: any): CreateOrderChannelRequest;
|
|
65
|
+
export declare function CreateOrderChannelRequestToJSONTyped(value?: CreateOrderChannelRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.CreateOrderChannelRequestTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateOrderChannelRequest = instanceOfCreateOrderChannelRequest;
|
|
18
|
+
exports.CreateOrderChannelRequestFromJSON = CreateOrderChannelRequestFromJSON;
|
|
19
|
+
exports.CreateOrderChannelRequestFromJSONTyped = CreateOrderChannelRequestFromJSONTyped;
|
|
20
|
+
exports.CreateOrderChannelRequestToJSON = CreateOrderChannelRequestToJSON;
|
|
21
|
+
exports.CreateOrderChannelRequestToJSONTyped = CreateOrderChannelRequestToJSONTyped;
|
|
22
|
+
const CreateOrderChannelRequestSettings_1 = require("./CreateOrderChannelRequestSettings");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CreateOrderChannelRequestTypeEnum = {
|
|
27
|
+
Manual: 'manual',
|
|
28
|
+
Custom: 'custom'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateOrderChannelRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfCreateOrderChannelRequest(value) {
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function CreateOrderChannelRequestFromJSON(json) {
|
|
41
|
+
return CreateOrderChannelRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CreateOrderChannelRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'type': json['type'],
|
|
50
|
+
'brandId': json['brandId'] === undefined ? undefined : json['brandId'] === null ? null : json['brandId'],
|
|
51
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
52
|
+
'settings': json['settings'] == null ? undefined : (0, CreateOrderChannelRequestSettings_1.CreateOrderChannelRequestSettingsFromJSON)(json['settings']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function CreateOrderChannelRequestToJSON(json) {
|
|
56
|
+
return CreateOrderChannelRequestToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function CreateOrderChannelRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'type': value['type'],
|
|
65
|
+
'brandId': value['brandId'],
|
|
66
|
+
'enabled': value['enabled'],
|
|
67
|
+
'settings': (0, CreateOrderChannelRequestSettings_1.CreateOrderChannelRequestSettingsToJSON)(value['settings']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { CreateOrderChannelRequestSettingsShippingMethodMappingsInner } from './CreateOrderChannelRequestSettingsShippingMethodMappingsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateOrderChannelRequestSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateOrderChannelRequestSettings {
|
|
19
|
+
/**
|
|
20
|
+
* Use webhooks for real-time order sync.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
23
|
+
*/
|
|
24
|
+
useWebhooks?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* WooCommerce store URL.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
29
|
+
*/
|
|
30
|
+
siteUrl?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Push tracking back to the platform when a shipment is dispatched. Enabled by default (opt-out) — set to false to disable write-back; an unset value still syncs.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
35
|
+
*/
|
|
36
|
+
autoFulfill?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Periodically poll the channel for new orders.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
41
|
+
*/
|
|
42
|
+
autoSync?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Polling interval in minutes (5-1440).
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
47
|
+
*/
|
|
48
|
+
syncIntervalMinutes?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Create a shipment automatically when an order arrives.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
53
|
+
*/
|
|
54
|
+
autoShipOnCreate?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Default carrier ID for auto-shipping.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
59
|
+
*/
|
|
60
|
+
defaultCarrierId?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Default carrier product ID for auto-shipping.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
65
|
+
*/
|
|
66
|
+
defaultProductId?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Default sender address ID for auto-shipping.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
71
|
+
*/
|
|
72
|
+
defaultAddressId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Map imported shipping-method titles to shipping rules, for channels without checkout rate integration.
|
|
75
|
+
* @type {Array<CreateOrderChannelRequestSettingsShippingMethodMappingsInner>}
|
|
76
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
77
|
+
*/
|
|
78
|
+
shippingMethodMappings?: Array<CreateOrderChannelRequestSettingsShippingMethodMappingsInner>;
|
|
79
|
+
/**
|
|
80
|
+
* Only import orders that are not yet fulfilled.
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
83
|
+
*/
|
|
84
|
+
syncOnlyUnfulfilled?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Only sync orders placed at or after this timestamp.
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
89
|
+
*/
|
|
90
|
+
syncOrdersSince?: Date | null;
|
|
91
|
+
/**
|
|
92
|
+
* Number of service points to show at checkout (1-20).
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof CreateOrderChannelRequestSettings
|
|
95
|
+
*/
|
|
96
|
+
servicePointCount?: number;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the CreateOrderChannelRequestSettings interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfCreateOrderChannelRequestSettings(value: object): value is CreateOrderChannelRequestSettings;
|
|
102
|
+
export declare function CreateOrderChannelRequestSettingsFromJSON(json: any): CreateOrderChannelRequestSettings;
|
|
103
|
+
export declare function CreateOrderChannelRequestSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderChannelRequestSettings;
|
|
104
|
+
export declare function CreateOrderChannelRequestSettingsToJSON(json: any): CreateOrderChannelRequestSettings;
|
|
105
|
+
export declare function CreateOrderChannelRequestSettingsToJSONTyped(value?: CreateOrderChannelRequestSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.instanceOfCreateOrderChannelRequestSettings = instanceOfCreateOrderChannelRequestSettings;
|
|
17
|
+
exports.CreateOrderChannelRequestSettingsFromJSON = CreateOrderChannelRequestSettingsFromJSON;
|
|
18
|
+
exports.CreateOrderChannelRequestSettingsFromJSONTyped = CreateOrderChannelRequestSettingsFromJSONTyped;
|
|
19
|
+
exports.CreateOrderChannelRequestSettingsToJSON = CreateOrderChannelRequestSettingsToJSON;
|
|
20
|
+
exports.CreateOrderChannelRequestSettingsToJSONTyped = CreateOrderChannelRequestSettingsToJSONTyped;
|
|
21
|
+
const CreateOrderChannelRequestSettingsShippingMethodMappingsInner_1 = require("./CreateOrderChannelRequestSettingsShippingMethodMappingsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateOrderChannelRequestSettings interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateOrderChannelRequestSettings(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CreateOrderChannelRequestSettingsFromJSON(json) {
|
|
29
|
+
return CreateOrderChannelRequestSettingsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CreateOrderChannelRequestSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'useWebhooks': json['useWebhooks'] == null ? undefined : json['useWebhooks'],
|
|
37
|
+
'siteUrl': json['siteUrl'] == null ? undefined : json['siteUrl'],
|
|
38
|
+
'autoFulfill': json['autoFulfill'] == null ? undefined : json['autoFulfill'],
|
|
39
|
+
'autoSync': json['autoSync'] == null ? undefined : json['autoSync'],
|
|
40
|
+
'syncIntervalMinutes': json['syncIntervalMinutes'] == null ? undefined : json['syncIntervalMinutes'],
|
|
41
|
+
'autoShipOnCreate': json['autoShipOnCreate'] == null ? undefined : json['autoShipOnCreate'],
|
|
42
|
+
'defaultCarrierId': json['defaultCarrierId'] === undefined ? undefined : json['defaultCarrierId'] === null ? null : json['defaultCarrierId'],
|
|
43
|
+
'defaultProductId': json['defaultProductId'] === undefined ? undefined : json['defaultProductId'] === null ? null : json['defaultProductId'],
|
|
44
|
+
'defaultAddressId': json['defaultAddressId'] === undefined ? undefined : json['defaultAddressId'] === null ? null : json['defaultAddressId'],
|
|
45
|
+
'shippingMethodMappings': json['shippingMethodMappings'] == null ? undefined : (json['shippingMethodMappings'].map(CreateOrderChannelRequestSettingsShippingMethodMappingsInner_1.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON)),
|
|
46
|
+
'syncOnlyUnfulfilled': json['syncOnlyUnfulfilled'] == null ? undefined : json['syncOnlyUnfulfilled'],
|
|
47
|
+
'syncOrdersSince': json['syncOrdersSince'] === undefined ? undefined : json['syncOrdersSince'] === null ? null : (new Date(json['syncOrdersSince'])),
|
|
48
|
+
'servicePointCount': json['servicePointCount'] == null ? undefined : json['servicePointCount'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function CreateOrderChannelRequestSettingsToJSON(json) {
|
|
52
|
+
return CreateOrderChannelRequestSettingsToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function CreateOrderChannelRequestSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'useWebhooks': value['useWebhooks'],
|
|
60
|
+
'siteUrl': value['siteUrl'],
|
|
61
|
+
'autoFulfill': value['autoFulfill'],
|
|
62
|
+
'autoSync': value['autoSync'],
|
|
63
|
+
'syncIntervalMinutes': value['syncIntervalMinutes'],
|
|
64
|
+
'autoShipOnCreate': value['autoShipOnCreate'],
|
|
65
|
+
'defaultCarrierId': value['defaultCarrierId'],
|
|
66
|
+
'defaultProductId': value['defaultProductId'],
|
|
67
|
+
'defaultAddressId': value['defaultAddressId'],
|
|
68
|
+
'shippingMethodMappings': value['shippingMethodMappings'] == null ? undefined : (value['shippingMethodMappings'].map(CreateOrderChannelRequestSettingsShippingMethodMappingsInner_1.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON)),
|
|
69
|
+
'syncOnlyUnfulfilled': value['syncOnlyUnfulfilled'],
|
|
70
|
+
'syncOrdersSince': value['syncOrdersSince'] == null ? value['syncOrdersSince'] : value['syncOrdersSince'].toISOString(),
|
|
71
|
+
'servicePointCount': value['servicePointCount'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CreateOrderChannelRequestSettingsShippingMethodMappingsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateOrderChannelRequestSettingsShippingMethodMappingsInner {
|
|
18
|
+
/**
|
|
19
|
+
* Shipping-method title to match against imported orders (trimmed, case-insensitive, exact).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateOrderChannelRequestSettingsShippingMethodMappingsInner
|
|
22
|
+
*/
|
|
23
|
+
match: string;
|
|
24
|
+
/**
|
|
25
|
+
* Shipping rule applied to orders whose shipping-method title matches.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateOrderChannelRequestSettingsShippingMethodMappingsInner
|
|
28
|
+
*/
|
|
29
|
+
shippingRuleId: string;
|
|
30
|
+
/**
|
|
31
|
+
* For rules whose product delivers to a service point: 'nearest' auto-selects the closest point to the recipient address; 'manual' keeps the shipment in draft for manual selection.
|
|
32
|
+
* @type {CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum}
|
|
33
|
+
* @memberof CreateOrderChannelRequestSettingsShippingMethodMappingsInner
|
|
34
|
+
*/
|
|
35
|
+
servicePointSelection?: CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum: {
|
|
41
|
+
readonly Nearest: "nearest";
|
|
42
|
+
readonly Manual: "manual";
|
|
43
|
+
};
|
|
44
|
+
export type CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum = typeof CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum[keyof typeof CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CreateOrderChannelRequestSettingsShippingMethodMappingsInner interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCreateOrderChannelRequestSettingsShippingMethodMappingsInner(value: object): value is CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
|
|
49
|
+
export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON(json: any): CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
|
|
50
|
+
export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
|
|
51
|
+
export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON(json: any): CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
|
|
52
|
+
export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped(value?: CreateOrderChannelRequestSettingsShippingMethodMappingsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateOrderChannelRequestSettingsShippingMethodMappingsInner = instanceOfCreateOrderChannelRequestSettingsShippingMethodMappingsInner;
|
|
18
|
+
exports.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON = CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON;
|
|
19
|
+
exports.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped = CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped;
|
|
20
|
+
exports.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON = CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON;
|
|
21
|
+
exports.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped = CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum = {
|
|
26
|
+
Nearest: 'nearest',
|
|
27
|
+
Manual: 'manual'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CreateOrderChannelRequestSettingsShippingMethodMappingsInner interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCreateOrderChannelRequestSettingsShippingMethodMappingsInner(value) {
|
|
33
|
+
if (!('match' in value) || value['match'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('shippingRuleId' in value) || value['shippingRuleId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON(json) {
|
|
40
|
+
return CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'match': json['match'],
|
|
48
|
+
'shippingRuleId': json['shippingRuleId'],
|
|
49
|
+
'servicePointSelection': json['servicePointSelection'] == null ? undefined : json['servicePointSelection'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON(json) {
|
|
53
|
+
return CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'match': value['match'],
|
|
61
|
+
'shippingRuleId': value['shippingRuleId'],
|
|
62
|
+
'servicePointSelection': value['servicePointSelection'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 CreateOrderChannelWebhookSecret201Response
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateOrderChannelWebhookSecret201Response {
|
|
18
|
+
/**
|
|
19
|
+
* The webhook signing secret. Returned only once — store it in your system; every push to the ingest URL must carry an HMAC-SHA256 hex signature of the raw body computed with it.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateOrderChannelWebhookSecret201Response
|
|
22
|
+
*/
|
|
23
|
+
secret: string;
|
|
24
|
+
/**
|
|
25
|
+
* The ingest URL your system pushes signed order events to.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateOrderChannelWebhookSecret201Response
|
|
28
|
+
*/
|
|
29
|
+
webhookUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* When this secret was issued (ISO 8601).
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof CreateOrderChannelWebhookSecret201Response
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateOrderChannelWebhookSecret201Response interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateOrderChannelWebhookSecret201Response(value: object): value is CreateOrderChannelWebhookSecret201Response;
|
|
41
|
+
export declare function CreateOrderChannelWebhookSecret201ResponseFromJSON(json: any): CreateOrderChannelWebhookSecret201Response;
|
|
42
|
+
export declare function CreateOrderChannelWebhookSecret201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderChannelWebhookSecret201Response;
|
|
43
|
+
export declare function CreateOrderChannelWebhookSecret201ResponseToJSON(json: any): CreateOrderChannelWebhookSecret201Response;
|
|
44
|
+
export declare function CreateOrderChannelWebhookSecret201ResponseToJSONTyped(value?: CreateOrderChannelWebhookSecret201Response | null, ignoreDiscriminator?: boolean): any;
|