@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.
Files changed (134) hide show
  1. package/dist/apis/OrderChannelsApi.d.ts +195 -0
  2. package/dist/apis/OrderChannelsApi.js +496 -0
  3. package/dist/apis/index.d.ts +1 -0
  4. package/dist/apis/index.js +1 -0
  5. package/dist/esm/apis/OrderChannelsApi.d.ts +195 -0
  6. package/dist/esm/apis/OrderChannelsApi.js +492 -0
  7. package/dist/esm/apis/index.d.ts +1 -0
  8. package/dist/esm/apis/index.js +1 -0
  9. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
  10. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +1 -0
  11. package/dist/esm/models/CreateOrderChannelRequest.d.ts +65 -0
  12. package/dist/esm/models/CreateOrderChannelRequest.js +61 -0
  13. package/dist/esm/models/CreateOrderChannelRequestSettings.d.ts +105 -0
  14. package/dist/esm/models/CreateOrderChannelRequestSettings.js +66 -0
  15. package/dist/esm/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.d.ts +52 -0
  16. package/dist/esm/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.js +56 -0
  17. package/dist/esm/models/CreateOrderChannelWebhookSecret201Response.d.ts +44 -0
  18. package/dist/esm/models/CreateOrderChannelWebhookSecret201Response.js +51 -0
  19. package/dist/esm/models/CreateOrderRequest.d.ts +12 -0
  20. package/dist/esm/models/CreateOrderRequest.js +4 -0
  21. package/dist/esm/models/GetOrderChannelWebhookStatus200Response.d.ts +45 -0
  22. package/dist/esm/models/GetOrderChannelWebhookStatus200Response.js +52 -0
  23. package/dist/esm/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.d.ts +62 -0
  24. package/dist/esm/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.js +59 -0
  25. package/dist/esm/models/ListApiTokens401Response.d.ts +1 -0
  26. package/dist/esm/models/ListApiTokens401Response.js +1 -0
  27. package/dist/esm/models/ListAvailableCarriers200ResponseInner.d.ts +12 -0
  28. package/dist/esm/models/ListAvailableCarriers200ResponseInner.js +4 -0
  29. package/dist/esm/models/ListCarriers200ResponseDataInner.d.ts +12 -0
  30. package/dist/esm/models/ListCarriers200ResponseDataInner.js +4 -0
  31. package/dist/esm/models/ListOrderChannels200Response.d.ts +57 -0
  32. package/dist/esm/models/ListOrderChannels200Response.js +60 -0
  33. package/dist/esm/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
  34. package/dist/esm/models/ListOrderChannels200ResponseDataInner.js +97 -0
  35. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
  36. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.js +86 -0
  37. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
  38. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +56 -0
  39. package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
  40. package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
  41. package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
  42. package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.js +43 -0
  43. package/dist/esm/models/SendShipment422Response.d.ts +1 -0
  44. package/dist/esm/models/SendShipment422Response.js +1 -0
  45. package/dist/esm/models/UpdateOrderChannelRequest.d.ts +65 -0
  46. package/dist/esm/models/UpdateOrderChannelRequest.js +52 -0
  47. package/dist/esm/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
  48. package/dist/esm/models/UpdateOrderChannelRequestSettings.js +66 -0
  49. package/dist/esm/models/index.d.ts +13 -0
  50. package/dist/esm/models/index.js +13 -0
  51. package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
  52. package/dist/models/BatchSendShipments200ResponseResultsInner.js +1 -0
  53. package/dist/models/CreateOrderChannelRequest.d.ts +65 -0
  54. package/dist/models/CreateOrderChannelRequest.js +69 -0
  55. package/dist/models/CreateOrderChannelRequestSettings.d.ts +105 -0
  56. package/dist/models/CreateOrderChannelRequestSettings.js +73 -0
  57. package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.d.ts +52 -0
  58. package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.js +64 -0
  59. package/dist/models/CreateOrderChannelWebhookSecret201Response.d.ts +44 -0
  60. package/dist/models/CreateOrderChannelWebhookSecret201Response.js +58 -0
  61. package/dist/models/CreateOrderRequest.d.ts +12 -0
  62. package/dist/models/CreateOrderRequest.js +4 -0
  63. package/dist/models/GetOrderChannelWebhookStatus200Response.d.ts +45 -0
  64. package/dist/models/GetOrderChannelWebhookStatus200Response.js +59 -0
  65. package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.d.ts +62 -0
  66. package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.js +66 -0
  67. package/dist/models/ListApiTokens401Response.d.ts +1 -0
  68. package/dist/models/ListApiTokens401Response.js +1 -0
  69. package/dist/models/ListAvailableCarriers200ResponseInner.d.ts +12 -0
  70. package/dist/models/ListAvailableCarriers200ResponseInner.js +4 -0
  71. package/dist/models/ListCarriers200ResponseDataInner.d.ts +12 -0
  72. package/dist/models/ListCarriers200ResponseDataInner.js +4 -0
  73. package/dist/models/ListOrderChannels200Response.d.ts +57 -0
  74. package/dist/models/ListOrderChannels200Response.js +67 -0
  75. package/dist/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
  76. package/dist/models/ListOrderChannels200ResponseDataInner.js +105 -0
  77. package/dist/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
  78. package/dist/models/ListOrderChannels200ResponseDataInnerSettings.js +93 -0
  79. package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
  80. package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +64 -0
  81. package/dist/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
  82. package/dist/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
  83. package/dist/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
  84. package/dist/models/RevokeOrderChannelWebhookSecret200Response.js +50 -0
  85. package/dist/models/SendShipment422Response.d.ts +1 -0
  86. package/dist/models/SendShipment422Response.js +1 -0
  87. package/dist/models/UpdateOrderChannelRequest.d.ts +65 -0
  88. package/dist/models/UpdateOrderChannelRequest.js +59 -0
  89. package/dist/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
  90. package/dist/models/UpdateOrderChannelRequestSettings.js +73 -0
  91. package/dist/models/index.d.ts +13 -0
  92. package/dist/models/index.js +13 -0
  93. package/docs/CreateOrderChannelRequest.md +42 -0
  94. package/docs/CreateOrderChannelRequestSettings.md +58 -0
  95. package/docs/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.md +38 -0
  96. package/docs/CreateOrderChannelWebhookSecret201Response.md +38 -0
  97. package/docs/CreateOrderRequest.md +4 -0
  98. package/docs/GetOrderChannelWebhookStatus200Response.md +38 -0
  99. package/docs/GetOrderChannelWebhookStatus200ResponseWebhooksInner.md +44 -0
  100. package/docs/ListAvailableCarriers200ResponseInner.md +4 -0
  101. package/docs/ListCarriers200ResponseDataInner.md +4 -0
  102. package/docs/ListOrderChannels200Response.md +42 -0
  103. package/docs/ListOrderChannels200ResponseDataInner.md +60 -0
  104. package/docs/ListOrderChannels200ResponseDataInnerSettings.md +67 -0
  105. package/docs/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.md +38 -0
  106. package/docs/OrderChannelsApi.md +650 -0
  107. package/docs/OrdersApi.md +1 -0
  108. package/docs/RevokeOrderChannelWebhookSecret200Response.md +34 -0
  109. package/docs/UpdateOrderChannelRequest.md +44 -0
  110. package/docs/UpdateOrderChannelRequestSettings.md +59 -0
  111. package/package.json +1 -1
  112. package/src/apis/OrderChannelsApi.ts +670 -0
  113. package/src/apis/index.ts +1 -0
  114. package/src/models/BatchSendShipments200ResponseResultsInner.ts +1 -0
  115. package/src/models/CreateOrderChannelRequest.ts +118 -0
  116. package/src/models/CreateOrderChannelRequestSettings.ts +169 -0
  117. package/src/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.ts +94 -0
  118. package/src/models/CreateOrderChannelWebhookSecret201Response.ts +84 -0
  119. package/src/models/CreateOrderRequest.ts +16 -0
  120. package/src/models/GetOrderChannelWebhookStatus200Response.ts +92 -0
  121. package/src/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.ts +109 -0
  122. package/src/models/ListApiTokens401Response.ts +1 -0
  123. package/src/models/ListAvailableCarriers200ResponseInner.ts +16 -0
  124. package/src/models/ListCarriers200ResponseDataInner.ts +16 -0
  125. package/src/models/ListOrderChannels200Response.ts +110 -0
  126. package/src/models/ListOrderChannels200ResponseDataInner.ts +200 -0
  127. package/src/models/ListOrderChannels200ResponseDataInnerSettings.ts +207 -0
  128. package/src/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.ts +94 -0
  129. package/src/models/ListOrders200ResponseDataInnerOrderChannel.ts +2 -1
  130. package/src/models/RevokeOrderChannelWebhookSecret200Response.ts +66 -0
  131. package/src/models/SendShipment422Response.ts +1 -0
  132. package/src/models/UpdateOrderChannelRequest.ts +113 -0
  133. package/src/models/UpdateOrderChannelRequestSettings.ts +169 -0
  134. package/src/models/index.ts +13 -0
@@ -0,0 +1,121 @@
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 { ListOrderChannels200ResponseDataInnerSettings } from './ListOrderChannels200ResponseDataInnerSettings';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListOrderChannels200ResponseDataInner
17
+ */
18
+ export interface ListOrderChannels200ResponseDataInner {
19
+ /**
20
+ * Unique order channel ID.
21
+ * @type {string}
22
+ * @memberof ListOrderChannels200ResponseDataInner
23
+ */
24
+ id: string;
25
+ /**
26
+ * Display name of the channel.
27
+ * @type {string}
28
+ * @memberof ListOrderChannels200ResponseDataInner
29
+ */
30
+ name: string;
31
+ /**
32
+ * Type of the order channel (sales platform).
33
+ * @type {ListOrderChannels200ResponseDataInnerTypeEnum}
34
+ * @memberof ListOrderChannels200ResponseDataInner
35
+ */
36
+ type: ListOrderChannels200ResponseDataInnerTypeEnum;
37
+ /**
38
+ * Whether the channel is active.
39
+ * @type {boolean}
40
+ * @memberof ListOrderChannels200ResponseDataInner
41
+ */
42
+ enabled: boolean;
43
+ /**
44
+ * Brand this channel belongs to, or null for organization-wide. Orders synced from this channel inherit it, and so do the shipments and documents made from them.
45
+ * @type {string}
46
+ * @memberof ListOrderChannels200ResponseDataInner
47
+ */
48
+ brandId: string | null;
49
+ /**
50
+ * Whether credentials are configured (values are never exposed).
51
+ * @type {boolean}
52
+ * @memberof ListOrderChannels200ResponseDataInner
53
+ */
54
+ hasCredentials: boolean;
55
+ /**
56
+ *
57
+ * @type {ListOrderChannels200ResponseDataInnerSettings}
58
+ * @memberof ListOrderChannels200ResponseDataInner
59
+ */
60
+ settings: ListOrderChannels200ResponseDataInnerSettings;
61
+ /**
62
+ * Whether real-time webhooks are enabled.
63
+ * @type {boolean}
64
+ * @memberof ListOrderChannels200ResponseDataInner
65
+ */
66
+ webhooksEnabled?: boolean;
67
+ /**
68
+ * Timestamp of the last successful sync.
69
+ * @type {Date}
70
+ * @memberof ListOrderChannels200ResponseDataInner
71
+ */
72
+ lastSyncAt?: Date | null;
73
+ /**
74
+ * Error message from the last failed sync.
75
+ * @type {string}
76
+ * @memberof ListOrderChannels200ResponseDataInner
77
+ */
78
+ lastSyncError?: string | null;
79
+ /**
80
+ * IDs of shipping rules linked to this channel.
81
+ * @type {Array<string>}
82
+ * @memberof ListOrderChannels200ResponseDataInner
83
+ */
84
+ shippingRuleIds?: Array<string>;
85
+ /**
86
+ * Owning organization ID.
87
+ * @type {string}
88
+ * @memberof ListOrderChannels200ResponseDataInner
89
+ */
90
+ orgId: string;
91
+ /**
92
+ * Creation timestamp (ISO 8601).
93
+ * @type {string}
94
+ * @memberof ListOrderChannels200ResponseDataInner
95
+ */
96
+ createdAt: string;
97
+ /**
98
+ * Last update timestamp (ISO 8601).
99
+ * @type {string}
100
+ * @memberof ListOrderChannels200ResponseDataInner
101
+ */
102
+ updatedAt: string;
103
+ }
104
+ /**
105
+ * @export
106
+ */
107
+ export declare const ListOrderChannels200ResponseDataInnerTypeEnum: {
108
+ readonly Shopify: "shopify";
109
+ readonly Woocommerce: "woocommerce";
110
+ readonly Manual: "manual";
111
+ readonly Custom: "custom";
112
+ };
113
+ export type ListOrderChannels200ResponseDataInnerTypeEnum = typeof ListOrderChannels200ResponseDataInnerTypeEnum[keyof typeof ListOrderChannels200ResponseDataInnerTypeEnum];
114
+ /**
115
+ * Check if a given object implements the ListOrderChannels200ResponseDataInner interface.
116
+ */
117
+ export declare function instanceOfListOrderChannels200ResponseDataInner(value: object): value is ListOrderChannels200ResponseDataInner;
118
+ export declare function ListOrderChannels200ResponseDataInnerFromJSON(json: any): ListOrderChannels200ResponseDataInner;
119
+ export declare function ListOrderChannels200ResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrderChannels200ResponseDataInner;
120
+ export declare function ListOrderChannels200ResponseDataInnerToJSON(json: any): ListOrderChannels200ResponseDataInner;
121
+ export declare function ListOrderChannels200ResponseDataInnerToJSONTyped(value?: ListOrderChannels200ResponseDataInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,105 @@
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.ListOrderChannels200ResponseDataInnerTypeEnum = void 0;
17
+ exports.instanceOfListOrderChannels200ResponseDataInner = instanceOfListOrderChannels200ResponseDataInner;
18
+ exports.ListOrderChannels200ResponseDataInnerFromJSON = ListOrderChannels200ResponseDataInnerFromJSON;
19
+ exports.ListOrderChannels200ResponseDataInnerFromJSONTyped = ListOrderChannels200ResponseDataInnerFromJSONTyped;
20
+ exports.ListOrderChannels200ResponseDataInnerToJSON = ListOrderChannels200ResponseDataInnerToJSON;
21
+ exports.ListOrderChannels200ResponseDataInnerToJSONTyped = ListOrderChannels200ResponseDataInnerToJSONTyped;
22
+ const ListOrderChannels200ResponseDataInnerSettings_1 = require("./ListOrderChannels200ResponseDataInnerSettings");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ListOrderChannels200ResponseDataInnerTypeEnum = {
27
+ Shopify: 'shopify',
28
+ Woocommerce: 'woocommerce',
29
+ Manual: 'manual',
30
+ Custom: 'custom'
31
+ };
32
+ /**
33
+ * Check if a given object implements the ListOrderChannels200ResponseDataInner interface.
34
+ */
35
+ function instanceOfListOrderChannels200ResponseDataInner(value) {
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('type' in value) || value['type'] === undefined)
41
+ return false;
42
+ if (!('enabled' in value) || value['enabled'] === undefined)
43
+ return false;
44
+ if (!('brandId' in value) || value['brandId'] === undefined)
45
+ return false;
46
+ if (!('hasCredentials' in value) || value['hasCredentials'] === undefined)
47
+ return false;
48
+ if (!('settings' in value) || value['settings'] === undefined)
49
+ return false;
50
+ if (!('orgId' in value) || value['orgId'] === undefined)
51
+ return false;
52
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
53
+ return false;
54
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
55
+ return false;
56
+ return true;
57
+ }
58
+ function ListOrderChannels200ResponseDataInnerFromJSON(json) {
59
+ return ListOrderChannels200ResponseDataInnerFromJSONTyped(json, false);
60
+ }
61
+ function ListOrderChannels200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+ 'id': json['id'],
67
+ 'name': json['name'],
68
+ 'type': json['type'],
69
+ 'enabled': json['enabled'],
70
+ 'brandId': json['brandId'],
71
+ 'hasCredentials': json['hasCredentials'],
72
+ 'settings': (0, ListOrderChannels200ResponseDataInnerSettings_1.ListOrderChannels200ResponseDataInnerSettingsFromJSON)(json['settings']),
73
+ 'webhooksEnabled': json['webhooksEnabled'] == null ? undefined : json['webhooksEnabled'],
74
+ 'lastSyncAt': json['lastSyncAt'] === undefined ? undefined : json['lastSyncAt'] === null ? null : (new Date(json['lastSyncAt'])),
75
+ 'lastSyncError': json['lastSyncError'] === undefined ? undefined : json['lastSyncError'] === null ? null : json['lastSyncError'],
76
+ 'shippingRuleIds': json['shippingRuleIds'] == null ? undefined : json['shippingRuleIds'],
77
+ 'orgId': json['orgId'],
78
+ 'createdAt': json['createdAt'],
79
+ 'updatedAt': json['updatedAt'],
80
+ };
81
+ }
82
+ function ListOrderChannels200ResponseDataInnerToJSON(json) {
83
+ return ListOrderChannels200ResponseDataInnerToJSONTyped(json, false);
84
+ }
85
+ function ListOrderChannels200ResponseDataInnerToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'id': value['id'],
91
+ 'name': value['name'],
92
+ 'type': value['type'],
93
+ 'enabled': value['enabled'],
94
+ 'brandId': value['brandId'],
95
+ 'hasCredentials': value['hasCredentials'],
96
+ 'settings': (0, ListOrderChannels200ResponseDataInnerSettings_1.ListOrderChannels200ResponseDataInnerSettingsToJSON)(value['settings']),
97
+ 'webhooksEnabled': value['webhooksEnabled'],
98
+ 'lastSyncAt': value['lastSyncAt'] == null ? value['lastSyncAt'] : value['lastSyncAt'].toISOString(),
99
+ 'lastSyncError': value['lastSyncError'],
100
+ 'shippingRuleIds': value['shippingRuleIds'],
101
+ 'orgId': value['orgId'],
102
+ 'createdAt': value['createdAt'],
103
+ 'updatedAt': value['updatedAt'],
104
+ };
105
+ }
@@ -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
+ }
@@ -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;
@@ -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;