@zippendo/sdk 1.2.4 → 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/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/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/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/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
|
@@ -0,0 +1,129 @@
|
|
|
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 { ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner } from './ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner';
|
|
13
|
+
/**
|
|
14
|
+
* Channel settings (webhook secret and checkout token hash omitted).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListOrderChannels200ResponseDataInnerSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface ListOrderChannels200ResponseDataInnerSettings {
|
|
19
|
+
/**
|
|
20
|
+
* Use webhooks for real-time order sync.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
23
|
+
*/
|
|
24
|
+
useWebhooks: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* External webhook identifier for management.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
29
|
+
*/
|
|
30
|
+
webhookId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Registered WooCommerce webhook ids.
|
|
33
|
+
* @type {Array<number>}
|
|
34
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
35
|
+
*/
|
|
36
|
+
webhookIds?: Array<number>;
|
|
37
|
+
/**
|
|
38
|
+
* When the custom channel's webhook signing secret was issued. A non-secret signal so clients can show that a secret exists; the secret itself is never returned after creation.
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
41
|
+
*/
|
|
42
|
+
webhookSecretCreatedAt?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* WooCommerce store URL.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
47
|
+
*/
|
|
48
|
+
siteUrl?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
53
|
+
*/
|
|
54
|
+
autoFulfill?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* When the checkout token was issued (internal; never exposed in API responses).
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
59
|
+
*/
|
|
60
|
+
checkoutTokenCreatedAt?: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
* Periodically poll the channel for new orders.
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
65
|
+
*/
|
|
66
|
+
autoSync: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Polling interval in minutes (5-1440).
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
71
|
+
*/
|
|
72
|
+
syncIntervalMinutes: number;
|
|
73
|
+
/**
|
|
74
|
+
* Create a shipment automatically when an order arrives.
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
77
|
+
*/
|
|
78
|
+
autoShipOnCreate: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Default carrier ID for auto-shipping.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
83
|
+
*/
|
|
84
|
+
defaultCarrierId?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Default carrier product ID for auto-shipping.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
89
|
+
*/
|
|
90
|
+
defaultProductId?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Default sender address ID for auto-shipping.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
95
|
+
*/
|
|
96
|
+
defaultAddressId?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Map imported shipping-method titles to shipping rules, for channels without checkout rate integration.
|
|
99
|
+
* @type {Array<ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner>}
|
|
100
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
101
|
+
*/
|
|
102
|
+
shippingMethodMappings?: Array<ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner>;
|
|
103
|
+
/**
|
|
104
|
+
* Only import orders that are not yet fulfilled.
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
107
|
+
*/
|
|
108
|
+
syncOnlyUnfulfilled: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Only sync orders placed at or after this timestamp.
|
|
111
|
+
* @type {Date}
|
|
112
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
113
|
+
*/
|
|
114
|
+
syncOrdersSince?: Date | null;
|
|
115
|
+
/**
|
|
116
|
+
* Number of service points to show at checkout (1-20).
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettings
|
|
119
|
+
*/
|
|
120
|
+
servicePointCount: number;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Check if a given object implements the ListOrderChannels200ResponseDataInnerSettings interface.
|
|
124
|
+
*/
|
|
125
|
+
export declare function instanceOfListOrderChannels200ResponseDataInnerSettings(value: object): value is ListOrderChannels200ResponseDataInnerSettings;
|
|
126
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsFromJSON(json: any): ListOrderChannels200ResponseDataInnerSettings;
|
|
127
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrderChannels200ResponseDataInnerSettings;
|
|
128
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsToJSON(json: any): ListOrderChannels200ResponseDataInnerSettings;
|
|
129
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsToJSONTyped(value?: ListOrderChannels200ResponseDataInnerSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
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.instanceOfListOrderChannels200ResponseDataInnerSettings = instanceOfListOrderChannels200ResponseDataInnerSettings;
|
|
17
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsFromJSON = ListOrderChannels200ResponseDataInnerSettingsFromJSON;
|
|
18
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsFromJSONTyped = ListOrderChannels200ResponseDataInnerSettingsFromJSONTyped;
|
|
19
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsToJSON = ListOrderChannels200ResponseDataInnerSettingsToJSON;
|
|
20
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsToJSONTyped = ListOrderChannels200ResponseDataInnerSettingsToJSONTyped;
|
|
21
|
+
const ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner_1 = require("./ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListOrderChannels200ResponseDataInnerSettings interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfListOrderChannels200ResponseDataInnerSettings(value) {
|
|
26
|
+
if (!('useWebhooks' in value) || value['useWebhooks'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('autoSync' in value) || value['autoSync'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('syncIntervalMinutes' in value) || value['syncIntervalMinutes'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('autoShipOnCreate' in value) || value['autoShipOnCreate'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('syncOnlyUnfulfilled' in value) || value['syncOnlyUnfulfilled'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('servicePointCount' in value) || value['servicePointCount'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function ListOrderChannels200ResponseDataInnerSettingsFromJSON(json) {
|
|
41
|
+
return ListOrderChannels200ResponseDataInnerSettingsFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ListOrderChannels200ResponseDataInnerSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'useWebhooks': json['useWebhooks'],
|
|
49
|
+
'webhookId': json['webhookId'] === undefined ? undefined : json['webhookId'] === null ? null : json['webhookId'],
|
|
50
|
+
'webhookIds': json['webhookIds'] == null ? undefined : json['webhookIds'],
|
|
51
|
+
'webhookSecretCreatedAt': json['webhookSecretCreatedAt'] === undefined ? undefined : json['webhookSecretCreatedAt'] === null ? null : (new Date(json['webhookSecretCreatedAt'])),
|
|
52
|
+
'siteUrl': json['siteUrl'] == null ? undefined : json['siteUrl'],
|
|
53
|
+
'autoFulfill': json['autoFulfill'] == null ? undefined : json['autoFulfill'],
|
|
54
|
+
'checkoutTokenCreatedAt': json['checkoutTokenCreatedAt'] === undefined ? undefined : json['checkoutTokenCreatedAt'] === null ? null : (new Date(json['checkoutTokenCreatedAt'])),
|
|
55
|
+
'autoSync': json['autoSync'],
|
|
56
|
+
'syncIntervalMinutes': json['syncIntervalMinutes'],
|
|
57
|
+
'autoShipOnCreate': json['autoShipOnCreate'],
|
|
58
|
+
'defaultCarrierId': json['defaultCarrierId'] === undefined ? undefined : json['defaultCarrierId'] === null ? null : json['defaultCarrierId'],
|
|
59
|
+
'defaultProductId': json['defaultProductId'] === undefined ? undefined : json['defaultProductId'] === null ? null : json['defaultProductId'],
|
|
60
|
+
'defaultAddressId': json['defaultAddressId'] === undefined ? undefined : json['defaultAddressId'] === null ? null : json['defaultAddressId'],
|
|
61
|
+
'shippingMethodMappings': json['shippingMethodMappings'] == null ? undefined : (json['shippingMethodMappings'].map(ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner_1.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSON)),
|
|
62
|
+
'syncOnlyUnfulfilled': json['syncOnlyUnfulfilled'],
|
|
63
|
+
'syncOrdersSince': json['syncOrdersSince'] === undefined ? undefined : json['syncOrdersSince'] === null ? null : (new Date(json['syncOrdersSince'])),
|
|
64
|
+
'servicePointCount': json['servicePointCount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function ListOrderChannels200ResponseDataInnerSettingsToJSON(json) {
|
|
68
|
+
return ListOrderChannels200ResponseDataInnerSettingsToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function ListOrderChannels200ResponseDataInnerSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'useWebhooks': value['useWebhooks'],
|
|
76
|
+
'webhookId': value['webhookId'],
|
|
77
|
+
'webhookIds': value['webhookIds'],
|
|
78
|
+
'webhookSecretCreatedAt': value['webhookSecretCreatedAt'] == null ? value['webhookSecretCreatedAt'] : value['webhookSecretCreatedAt'].toISOString(),
|
|
79
|
+
'siteUrl': value['siteUrl'],
|
|
80
|
+
'autoFulfill': value['autoFulfill'],
|
|
81
|
+
'checkoutTokenCreatedAt': value['checkoutTokenCreatedAt'] == null ? value['checkoutTokenCreatedAt'] : value['checkoutTokenCreatedAt'].toISOString(),
|
|
82
|
+
'autoSync': value['autoSync'],
|
|
83
|
+
'syncIntervalMinutes': value['syncIntervalMinutes'],
|
|
84
|
+
'autoShipOnCreate': value['autoShipOnCreate'],
|
|
85
|
+
'defaultCarrierId': value['defaultCarrierId'],
|
|
86
|
+
'defaultProductId': value['defaultProductId'],
|
|
87
|
+
'defaultAddressId': value['defaultAddressId'],
|
|
88
|
+
'shippingMethodMappings': value['shippingMethodMappings'] == null ? undefined : (value['shippingMethodMappings'].map(ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner_1.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSON)),
|
|
89
|
+
'syncOnlyUnfulfilled': value['syncOnlyUnfulfilled'],
|
|
90
|
+
'syncOrdersSince': value['syncOrdersSince'] == null ? value['syncOrdersSince'] : value['syncOrdersSince'].toISOString(),
|
|
91
|
+
'servicePointCount': value['servicePointCount'],
|
|
92
|
+
};
|
|
93
|
+
}
|
package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts
ADDED
|
@@ -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 ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner {
|
|
18
|
+
/**
|
|
19
|
+
* Shipping-method title to match against imported orders (trimmed, case-insensitive, exact).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner
|
|
22
|
+
*/
|
|
23
|
+
match: string;
|
|
24
|
+
/**
|
|
25
|
+
* Shipping rule applied to orders whose shipping-method title matches.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner
|
|
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 {ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum}
|
|
33
|
+
* @memberof ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner
|
|
34
|
+
*/
|
|
35
|
+
servicePointSelection?: ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum: {
|
|
41
|
+
readonly Nearest: "nearest";
|
|
42
|
+
readonly Manual: "manual";
|
|
43
|
+
};
|
|
44
|
+
export type ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum = typeof ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum[keyof typeof ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner(value: object): value is ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner;
|
|
49
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSON(json: any): ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner;
|
|
50
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner;
|
|
51
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSON(json: any): ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner;
|
|
52
|
+
export declare function ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSONTyped(value?: ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js
ADDED
|
@@ -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.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum = void 0;
|
|
17
|
+
exports.instanceOfListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner = instanceOfListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner;
|
|
18
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSON = ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSON;
|
|
19
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSONTyped = ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSONTyped;
|
|
20
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSON = ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSON;
|
|
21
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSONTyped = ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerServicePointSelectionEnum = {
|
|
26
|
+
Nearest: 'nearest',
|
|
27
|
+
Manual: 'manual'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner(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 ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSON(json) {
|
|
40
|
+
return ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerFromJSONTyped(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 ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSON(json) {
|
|
53
|
+
return ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInnerToJSONTyped(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
|
+
}
|
|
@@ -41,6 +41,7 @@ export declare const ListOrders200ResponseDataInnerOrderChannelTypeEnum: {
|
|
|
41
41
|
readonly Shopify: "shopify";
|
|
42
42
|
readonly Woocommerce: "woocommerce";
|
|
43
43
|
readonly Manual: "manual";
|
|
44
|
+
readonly Custom: "custom";
|
|
44
45
|
};
|
|
45
46
|
export type ListOrders200ResponseDataInnerOrderChannelTypeEnum = typeof ListOrders200ResponseDataInnerOrderChannelTypeEnum[keyof typeof ListOrders200ResponseDataInnerOrderChannelTypeEnum];
|
|
46
47
|
/**
|
|
@@ -25,7 +25,8 @@ exports.ListOrders200ResponseDataInnerOrderChannelToJSONTyped = ListOrders200Res
|
|
|
25
25
|
exports.ListOrders200ResponseDataInnerOrderChannelTypeEnum = {
|
|
26
26
|
Shopify: 'shopify',
|
|
27
27
|
Woocommerce: 'woocommerce',
|
|
28
|
-
Manual: 'manual'
|
|
28
|
+
Manual: 'manual',
|
|
29
|
+
Custom: 'custom'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the ListOrders200ResponseDataInnerOrderChannel interface.
|
|
@@ -0,0 +1,32 @@
|
|
|
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 RevokeOrderChannelWebhookSecret200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface RevokeOrderChannelWebhookSecret200Response {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the signing secret was revoked.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof RevokeOrderChannelWebhookSecret200Response
|
|
22
|
+
*/
|
|
23
|
+
revoked: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RevokeOrderChannelWebhookSecret200Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRevokeOrderChannelWebhookSecret200Response(value: object): value is RevokeOrderChannelWebhookSecret200Response;
|
|
29
|
+
export declare function RevokeOrderChannelWebhookSecret200ResponseFromJSON(json: any): RevokeOrderChannelWebhookSecret200Response;
|
|
30
|
+
export declare function RevokeOrderChannelWebhookSecret200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RevokeOrderChannelWebhookSecret200Response;
|
|
31
|
+
export declare function RevokeOrderChannelWebhookSecret200ResponseToJSON(json: any): RevokeOrderChannelWebhookSecret200Response;
|
|
32
|
+
export declare function RevokeOrderChannelWebhookSecret200ResponseToJSONTyped(value?: RevokeOrderChannelWebhookSecret200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfRevokeOrderChannelWebhookSecret200Response = instanceOfRevokeOrderChannelWebhookSecret200Response;
|
|
17
|
+
exports.RevokeOrderChannelWebhookSecret200ResponseFromJSON = RevokeOrderChannelWebhookSecret200ResponseFromJSON;
|
|
18
|
+
exports.RevokeOrderChannelWebhookSecret200ResponseFromJSONTyped = RevokeOrderChannelWebhookSecret200ResponseFromJSONTyped;
|
|
19
|
+
exports.RevokeOrderChannelWebhookSecret200ResponseToJSON = RevokeOrderChannelWebhookSecret200ResponseToJSON;
|
|
20
|
+
exports.RevokeOrderChannelWebhookSecret200ResponseToJSONTyped = RevokeOrderChannelWebhookSecret200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RevokeOrderChannelWebhookSecret200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRevokeOrderChannelWebhookSecret200Response(value) {
|
|
25
|
+
if (!('revoked' in value) || value['revoked'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RevokeOrderChannelWebhookSecret200ResponseFromJSON(json) {
|
|
30
|
+
return RevokeOrderChannelWebhookSecret200ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RevokeOrderChannelWebhookSecret200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'revoked': json['revoked'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function RevokeOrderChannelWebhookSecret200ResponseToJSON(json) {
|
|
41
|
+
return RevokeOrderChannelWebhookSecret200ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RevokeOrderChannelWebhookSecret200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'revoked': value['revoked'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -140,6 +140,7 @@ export declare const SendShipment422ResponseCodeEnum: {
|
|
|
140
140
|
readonly ShippingRuleInvalid: "SHIPPING_RULE_INVALID";
|
|
141
141
|
readonly AddressNotFound: "ADDRESS_NOT_FOUND";
|
|
142
142
|
readonly OrderNotFound: "ORDER_NOT_FOUND";
|
|
143
|
+
readonly OrderExists: "ORDER_EXISTS";
|
|
143
144
|
readonly OrderChannelNotFound: "ORDER_CHANNEL_NOT_FOUND";
|
|
144
145
|
readonly OrderChannelConfigInvalid: "ORDER_CHANNEL_CONFIG_INVALID";
|
|
145
146
|
readonly IntegrationNotConfigured: "INTEGRATION_NOT_CONFIGURED";
|
|
@@ -119,6 +119,7 @@ exports.SendShipment422ResponseCodeEnum = {
|
|
|
119
119
|
ShippingRuleInvalid: 'SHIPPING_RULE_INVALID',
|
|
120
120
|
AddressNotFound: 'ADDRESS_NOT_FOUND',
|
|
121
121
|
OrderNotFound: 'ORDER_NOT_FOUND',
|
|
122
|
+
OrderExists: 'ORDER_EXISTS',
|
|
122
123
|
OrderChannelNotFound: 'ORDER_CHANNEL_NOT_FOUND',
|
|
123
124
|
OrderChannelConfigInvalid: 'ORDER_CHANNEL_CONFIG_INVALID',
|
|
124
125
|
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 { UpdateOrderChannelRequestSettings } from './UpdateOrderChannelRequestSettings';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateOrderChannelRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateOrderChannelRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Brand this channel belongs to; null for organization-wide
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateOrderChannelRequest
|
|
23
|
+
*/
|
|
24
|
+
brandId?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Display name for the channel.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateOrderChannelRequest
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the channel is active.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof UpdateOrderChannelRequest
|
|
35
|
+
*/
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Type-specific platform credentials.
|
|
39
|
+
* @type {{ [key: string]: any; }}
|
|
40
|
+
* @memberof UpdateOrderChannelRequest
|
|
41
|
+
*/
|
|
42
|
+
credentials?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
} | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {UpdateOrderChannelRequestSettings}
|
|
48
|
+
* @memberof UpdateOrderChannelRequest
|
|
49
|
+
*/
|
|
50
|
+
settings?: UpdateOrderChannelRequestSettings;
|
|
51
|
+
/**
|
|
52
|
+
* IDs of shipping rules linked to this channel.
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof UpdateOrderChannelRequest
|
|
55
|
+
*/
|
|
56
|
+
shippingRuleIds?: Array<string>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the UpdateOrderChannelRequest interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfUpdateOrderChannelRequest(value: object): value is UpdateOrderChannelRequest;
|
|
62
|
+
export declare function UpdateOrderChannelRequestFromJSON(json: any): UpdateOrderChannelRequest;
|
|
63
|
+
export declare function UpdateOrderChannelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderChannelRequest;
|
|
64
|
+
export declare function UpdateOrderChannelRequestToJSON(json: any): UpdateOrderChannelRequest;
|
|
65
|
+
export declare function UpdateOrderChannelRequestToJSONTyped(value?: UpdateOrderChannelRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfUpdateOrderChannelRequest = instanceOfUpdateOrderChannelRequest;
|
|
17
|
+
exports.UpdateOrderChannelRequestFromJSON = UpdateOrderChannelRequestFromJSON;
|
|
18
|
+
exports.UpdateOrderChannelRequestFromJSONTyped = UpdateOrderChannelRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateOrderChannelRequestToJSON = UpdateOrderChannelRequestToJSON;
|
|
20
|
+
exports.UpdateOrderChannelRequestToJSONTyped = UpdateOrderChannelRequestToJSONTyped;
|
|
21
|
+
const UpdateOrderChannelRequestSettings_1 = require("./UpdateOrderChannelRequestSettings");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateOrderChannelRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateOrderChannelRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UpdateOrderChannelRequestFromJSON(json) {
|
|
29
|
+
return UpdateOrderChannelRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UpdateOrderChannelRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'brandId': json['brandId'] === undefined ? undefined : json['brandId'] === null ? null : json['brandId'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
39
|
+
'credentials': json['credentials'] === undefined ? undefined : json['credentials'] === null ? null : json['credentials'],
|
|
40
|
+
'settings': json['settings'] == null ? undefined : (0, UpdateOrderChannelRequestSettings_1.UpdateOrderChannelRequestSettingsFromJSON)(json['settings']),
|
|
41
|
+
'shippingRuleIds': json['shippingRuleIds'] == null ? undefined : json['shippingRuleIds'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function UpdateOrderChannelRequestToJSON(json) {
|
|
45
|
+
return UpdateOrderChannelRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function UpdateOrderChannelRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'brandId': value['brandId'],
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'enabled': value['enabled'],
|
|
55
|
+
'credentials': value['credentials'],
|
|
56
|
+
'settings': (0, UpdateOrderChannelRequestSettings_1.UpdateOrderChannelRequestSettingsToJSON)(value['settings']),
|
|
57
|
+
'shippingRuleIds': value['shippingRuleIds'],
|
|
58
|
+
};
|
|
59
|
+
}
|