@zippendo/sdk 1.2.4 → 1.2.6

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 (128) 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 +4 -0
  10. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +4 -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 +4 -0
  26. package/dist/esm/models/ListApiTokens401Response.js +4 -0
  27. package/dist/esm/models/ListOrderChannels200Response.d.ts +57 -0
  28. package/dist/esm/models/ListOrderChannels200Response.js +60 -0
  29. package/dist/esm/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
  30. package/dist/esm/models/ListOrderChannels200ResponseDataInner.js +97 -0
  31. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
  32. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.js +86 -0
  33. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
  34. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +56 -0
  35. package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
  36. package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
  37. package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
  38. package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.js +43 -0
  39. package/dist/esm/models/SendShipment422Response.d.ts +4 -0
  40. package/dist/esm/models/SendShipment422Response.js +4 -0
  41. package/dist/esm/models/UpdateOrderChannelRequest.d.ts +65 -0
  42. package/dist/esm/models/UpdateOrderChannelRequest.js +52 -0
  43. package/dist/esm/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
  44. package/dist/esm/models/UpdateOrderChannelRequestSettings.js +66 -0
  45. package/dist/esm/models/UpdateOrgRequest.d.ts +0 -6
  46. package/dist/esm/models/UpdateOrgRequest.js +0 -2
  47. package/dist/esm/models/index.d.ts +13 -0
  48. package/dist/esm/models/index.js +13 -0
  49. package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +4 -0
  50. package/dist/models/BatchSendShipments200ResponseResultsInner.js +4 -0
  51. package/dist/models/CreateOrderChannelRequest.d.ts +65 -0
  52. package/dist/models/CreateOrderChannelRequest.js +69 -0
  53. package/dist/models/CreateOrderChannelRequestSettings.d.ts +105 -0
  54. package/dist/models/CreateOrderChannelRequestSettings.js +73 -0
  55. package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.d.ts +52 -0
  56. package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.js +64 -0
  57. package/dist/models/CreateOrderChannelWebhookSecret201Response.d.ts +44 -0
  58. package/dist/models/CreateOrderChannelWebhookSecret201Response.js +58 -0
  59. package/dist/models/CreateOrderRequest.d.ts +12 -0
  60. package/dist/models/CreateOrderRequest.js +4 -0
  61. package/dist/models/GetOrderChannelWebhookStatus200Response.d.ts +45 -0
  62. package/dist/models/GetOrderChannelWebhookStatus200Response.js +59 -0
  63. package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.d.ts +62 -0
  64. package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.js +66 -0
  65. package/dist/models/ListApiTokens401Response.d.ts +4 -0
  66. package/dist/models/ListApiTokens401Response.js +4 -0
  67. package/dist/models/ListOrderChannels200Response.d.ts +57 -0
  68. package/dist/models/ListOrderChannels200Response.js +67 -0
  69. package/dist/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
  70. package/dist/models/ListOrderChannels200ResponseDataInner.js +105 -0
  71. package/dist/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
  72. package/dist/models/ListOrderChannels200ResponseDataInnerSettings.js +93 -0
  73. package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
  74. package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +64 -0
  75. package/dist/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
  76. package/dist/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
  77. package/dist/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
  78. package/dist/models/RevokeOrderChannelWebhookSecret200Response.js +50 -0
  79. package/dist/models/SendShipment422Response.d.ts +4 -0
  80. package/dist/models/SendShipment422Response.js +4 -0
  81. package/dist/models/UpdateOrderChannelRequest.d.ts +65 -0
  82. package/dist/models/UpdateOrderChannelRequest.js +59 -0
  83. package/dist/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
  84. package/dist/models/UpdateOrderChannelRequestSettings.js +73 -0
  85. package/dist/models/UpdateOrgRequest.d.ts +0 -6
  86. package/dist/models/UpdateOrgRequest.js +0 -2
  87. package/dist/models/index.d.ts +13 -0
  88. package/dist/models/index.js +13 -0
  89. package/docs/CreateOrderChannelRequest.md +42 -0
  90. package/docs/CreateOrderChannelRequestSettings.md +58 -0
  91. package/docs/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.md +38 -0
  92. package/docs/CreateOrderChannelWebhookSecret201Response.md +38 -0
  93. package/docs/CreateOrderRequest.md +4 -0
  94. package/docs/GetOrderChannelWebhookStatus200Response.md +38 -0
  95. package/docs/GetOrderChannelWebhookStatus200ResponseWebhooksInner.md +44 -0
  96. package/docs/ListOrderChannels200Response.md +42 -0
  97. package/docs/ListOrderChannels200ResponseDataInner.md +60 -0
  98. package/docs/ListOrderChannels200ResponseDataInnerSettings.md +67 -0
  99. package/docs/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.md +38 -0
  100. package/docs/OrderChannelsApi.md +650 -0
  101. package/docs/OrdersApi.md +1 -0
  102. package/docs/RevokeOrderChannelWebhookSecret200Response.md +34 -0
  103. package/docs/UpdateOrderChannelRequest.md +44 -0
  104. package/docs/UpdateOrderChannelRequestSettings.md +59 -0
  105. package/docs/UpdateOrgRequest.md +0 -2
  106. package/package.json +1 -1
  107. package/src/apis/OrderChannelsApi.ts +670 -0
  108. package/src/apis/index.ts +1 -0
  109. package/src/models/BatchSendShipments200ResponseResultsInner.ts +4 -0
  110. package/src/models/CreateOrderChannelRequest.ts +118 -0
  111. package/src/models/CreateOrderChannelRequestSettings.ts +169 -0
  112. package/src/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.ts +94 -0
  113. package/src/models/CreateOrderChannelWebhookSecret201Response.ts +84 -0
  114. package/src/models/CreateOrderRequest.ts +16 -0
  115. package/src/models/GetOrderChannelWebhookStatus200Response.ts +92 -0
  116. package/src/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.ts +109 -0
  117. package/src/models/ListApiTokens401Response.ts +4 -0
  118. package/src/models/ListOrderChannels200Response.ts +110 -0
  119. package/src/models/ListOrderChannels200ResponseDataInner.ts +200 -0
  120. package/src/models/ListOrderChannels200ResponseDataInnerSettings.ts +207 -0
  121. package/src/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.ts +94 -0
  122. package/src/models/ListOrders200ResponseDataInnerOrderChannel.ts +2 -1
  123. package/src/models/RevokeOrderChannelWebhookSecret200Response.ts +66 -0
  124. package/src/models/SendShipment422Response.ts +4 -0
  125. package/src/models/UpdateOrderChannelRequest.ts +113 -0
  126. package/src/models/UpdateOrderChannelRequestSettings.ts +169 -0
  127. package/src/models/UpdateOrgRequest.ts +0 -8
  128. package/src/models/index.ts +13 -0
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Zippendo Public API
5
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@zippendo.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CreateOrderChannelRequestSettingsFromJSON, CreateOrderChannelRequestSettingsToJSON, } from './CreateOrderChannelRequestSettings';
15
+ /**
16
+ * @export
17
+ */
18
+ export const CreateOrderChannelRequestTypeEnum = {
19
+ Manual: 'manual',
20
+ Custom: 'custom'
21
+ };
22
+ /**
23
+ * Check if a given object implements the CreateOrderChannelRequest interface.
24
+ */
25
+ export function instanceOfCreateOrderChannelRequest(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function CreateOrderChannelRequestFromJSON(json) {
33
+ return CreateOrderChannelRequestFromJSONTyped(json, false);
34
+ }
35
+ export function CreateOrderChannelRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'name': json['name'],
41
+ 'type': json['type'],
42
+ 'brandId': json['brandId'] === undefined ? undefined : json['brandId'] === null ? null : json['brandId'],
43
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
44
+ 'settings': json['settings'] == null ? undefined : CreateOrderChannelRequestSettingsFromJSON(json['settings']),
45
+ };
46
+ }
47
+ export function CreateOrderChannelRequestToJSON(json) {
48
+ return CreateOrderChannelRequestToJSONTyped(json, false);
49
+ }
50
+ export function CreateOrderChannelRequestToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'name': value['name'],
56
+ 'type': value['type'],
57
+ 'brandId': value['brandId'],
58
+ 'enabled': value['enabled'],
59
+ 'settings': CreateOrderChannelRequestSettingsToJSON(value['settings']),
60
+ };
61
+ }
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Zippendo Public API
3
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@zippendo.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CreateOrderChannelRequestSettingsShippingMethodMappingsInner } from './CreateOrderChannelRequestSettingsShippingMethodMappingsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateOrderChannelRequestSettings
17
+ */
18
+ export interface CreateOrderChannelRequestSettings {
19
+ /**
20
+ * Use webhooks for real-time order sync.
21
+ * @type {boolean}
22
+ * @memberof CreateOrderChannelRequestSettings
23
+ */
24
+ useWebhooks?: boolean;
25
+ /**
26
+ * WooCommerce store URL.
27
+ * @type {string}
28
+ * @memberof CreateOrderChannelRequestSettings
29
+ */
30
+ siteUrl?: string;
31
+ /**
32
+ * Push tracking back to the platform when a shipment is dispatched. Enabled by default (opt-out) — set to false to disable write-back; an unset value still syncs.
33
+ * @type {boolean}
34
+ * @memberof CreateOrderChannelRequestSettings
35
+ */
36
+ autoFulfill?: boolean;
37
+ /**
38
+ * Periodically poll the channel for new orders.
39
+ * @type {boolean}
40
+ * @memberof CreateOrderChannelRequestSettings
41
+ */
42
+ autoSync?: boolean;
43
+ /**
44
+ * Polling interval in minutes (5-1440).
45
+ * @type {number}
46
+ * @memberof CreateOrderChannelRequestSettings
47
+ */
48
+ syncIntervalMinutes?: number;
49
+ /**
50
+ * Create a shipment automatically when an order arrives.
51
+ * @type {boolean}
52
+ * @memberof CreateOrderChannelRequestSettings
53
+ */
54
+ autoShipOnCreate?: boolean;
55
+ /**
56
+ * Default carrier ID for auto-shipping.
57
+ * @type {string}
58
+ * @memberof CreateOrderChannelRequestSettings
59
+ */
60
+ defaultCarrierId?: string | null;
61
+ /**
62
+ * Default carrier product ID for auto-shipping.
63
+ * @type {string}
64
+ * @memberof CreateOrderChannelRequestSettings
65
+ */
66
+ defaultProductId?: string | null;
67
+ /**
68
+ * Default sender address ID for auto-shipping.
69
+ * @type {string}
70
+ * @memberof CreateOrderChannelRequestSettings
71
+ */
72
+ defaultAddressId?: string | null;
73
+ /**
74
+ * Map imported shipping-method titles to shipping rules, for channels without checkout rate integration.
75
+ * @type {Array<CreateOrderChannelRequestSettingsShippingMethodMappingsInner>}
76
+ * @memberof CreateOrderChannelRequestSettings
77
+ */
78
+ shippingMethodMappings?: Array<CreateOrderChannelRequestSettingsShippingMethodMappingsInner>;
79
+ /**
80
+ * Only import orders that are not yet fulfilled.
81
+ * @type {boolean}
82
+ * @memberof CreateOrderChannelRequestSettings
83
+ */
84
+ syncOnlyUnfulfilled?: boolean;
85
+ /**
86
+ * Only sync orders placed at or after this timestamp.
87
+ * @type {Date}
88
+ * @memberof CreateOrderChannelRequestSettings
89
+ */
90
+ syncOrdersSince?: Date | null;
91
+ /**
92
+ * Number of service points to show at checkout (1-20).
93
+ * @type {number}
94
+ * @memberof CreateOrderChannelRequestSettings
95
+ */
96
+ servicePointCount?: number;
97
+ }
98
+ /**
99
+ * Check if a given object implements the CreateOrderChannelRequestSettings interface.
100
+ */
101
+ export declare function instanceOfCreateOrderChannelRequestSettings(value: object): value is CreateOrderChannelRequestSettings;
102
+ export declare function CreateOrderChannelRequestSettingsFromJSON(json: any): CreateOrderChannelRequestSettings;
103
+ export declare function CreateOrderChannelRequestSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderChannelRequestSettings;
104
+ export declare function CreateOrderChannelRequestSettingsToJSON(json: any): CreateOrderChannelRequestSettings;
105
+ export declare function CreateOrderChannelRequestSettingsToJSONTyped(value?: CreateOrderChannelRequestSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Zippendo Public API
5
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@zippendo.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON, CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON, } from './CreateOrderChannelRequestSettingsShippingMethodMappingsInner';
15
+ /**
16
+ * Check if a given object implements the CreateOrderChannelRequestSettings interface.
17
+ */
18
+ export function instanceOfCreateOrderChannelRequestSettings(value) {
19
+ return true;
20
+ }
21
+ export function CreateOrderChannelRequestSettingsFromJSON(json) {
22
+ return CreateOrderChannelRequestSettingsFromJSONTyped(json, false);
23
+ }
24
+ export function CreateOrderChannelRequestSettingsFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'useWebhooks': json['useWebhooks'] == null ? undefined : json['useWebhooks'],
30
+ 'siteUrl': json['siteUrl'] == null ? undefined : json['siteUrl'],
31
+ 'autoFulfill': json['autoFulfill'] == null ? undefined : json['autoFulfill'],
32
+ 'autoSync': json['autoSync'] == null ? undefined : json['autoSync'],
33
+ 'syncIntervalMinutes': json['syncIntervalMinutes'] == null ? undefined : json['syncIntervalMinutes'],
34
+ 'autoShipOnCreate': json['autoShipOnCreate'] == null ? undefined : json['autoShipOnCreate'],
35
+ 'defaultCarrierId': json['defaultCarrierId'] === undefined ? undefined : json['defaultCarrierId'] === null ? null : json['defaultCarrierId'],
36
+ 'defaultProductId': json['defaultProductId'] === undefined ? undefined : json['defaultProductId'] === null ? null : json['defaultProductId'],
37
+ 'defaultAddressId': json['defaultAddressId'] === undefined ? undefined : json['defaultAddressId'] === null ? null : json['defaultAddressId'],
38
+ 'shippingMethodMappings': json['shippingMethodMappings'] == null ? undefined : (json['shippingMethodMappings'].map(CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON)),
39
+ 'syncOnlyUnfulfilled': json['syncOnlyUnfulfilled'] == null ? undefined : json['syncOnlyUnfulfilled'],
40
+ 'syncOrdersSince': json['syncOrdersSince'] === undefined ? undefined : json['syncOrdersSince'] === null ? null : (new Date(json['syncOrdersSince'])),
41
+ 'servicePointCount': json['servicePointCount'] == null ? undefined : json['servicePointCount'],
42
+ };
43
+ }
44
+ export function CreateOrderChannelRequestSettingsToJSON(json) {
45
+ return CreateOrderChannelRequestSettingsToJSONTyped(json, false);
46
+ }
47
+ export function CreateOrderChannelRequestSettingsToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'useWebhooks': value['useWebhooks'],
53
+ 'siteUrl': value['siteUrl'],
54
+ 'autoFulfill': value['autoFulfill'],
55
+ 'autoSync': value['autoSync'],
56
+ 'syncIntervalMinutes': value['syncIntervalMinutes'],
57
+ 'autoShipOnCreate': value['autoShipOnCreate'],
58
+ 'defaultCarrierId': value['defaultCarrierId'],
59
+ 'defaultProductId': value['defaultProductId'],
60
+ 'defaultAddressId': value['defaultAddressId'],
61
+ 'shippingMethodMappings': value['shippingMethodMappings'] == null ? undefined : (value['shippingMethodMappings'].map(CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON)),
62
+ 'syncOnlyUnfulfilled': value['syncOnlyUnfulfilled'],
63
+ 'syncOrdersSince': value['syncOrdersSince'] == null ? value['syncOrdersSince'] : value['syncOrdersSince'].toISOString(),
64
+ 'servicePointCount': value['servicePointCount'],
65
+ };
66
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Zippendo Public API
3
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@zippendo.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateOrderChannelRequestSettingsShippingMethodMappingsInner
16
+ */
17
+ export interface CreateOrderChannelRequestSettingsShippingMethodMappingsInner {
18
+ /**
19
+ * Shipping-method title to match against imported orders (trimmed, case-insensitive, exact).
20
+ * @type {string}
21
+ * @memberof CreateOrderChannelRequestSettingsShippingMethodMappingsInner
22
+ */
23
+ match: string;
24
+ /**
25
+ * Shipping rule applied to orders whose shipping-method title matches.
26
+ * @type {string}
27
+ * @memberof CreateOrderChannelRequestSettingsShippingMethodMappingsInner
28
+ */
29
+ shippingRuleId: string;
30
+ /**
31
+ * For rules whose product delivers to a service point: 'nearest' auto-selects the closest point to the recipient address; 'manual' keeps the shipment in draft for manual selection.
32
+ * @type {CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum}
33
+ * @memberof CreateOrderChannelRequestSettingsShippingMethodMappingsInner
34
+ */
35
+ servicePointSelection?: CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum: {
41
+ readonly Nearest: "nearest";
42
+ readonly Manual: "manual";
43
+ };
44
+ export type CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum = typeof CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum[keyof typeof CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum];
45
+ /**
46
+ * Check if a given object implements the CreateOrderChannelRequestSettingsShippingMethodMappingsInner interface.
47
+ */
48
+ export declare function instanceOfCreateOrderChannelRequestSettingsShippingMethodMappingsInner(value: object): value is CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
49
+ export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON(json: any): CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
50
+ export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
51
+ export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON(json: any): CreateOrderChannelRequestSettingsShippingMethodMappingsInner;
52
+ export declare function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped(value?: CreateOrderChannelRequestSettingsShippingMethodMappingsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Zippendo Public API
5
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@zippendo.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CreateOrderChannelRequestSettingsShippingMethodMappingsInnerServicePointSelectionEnum = {
18
+ Nearest: 'nearest',
19
+ Manual: 'manual'
20
+ };
21
+ /**
22
+ * Check if a given object implements the CreateOrderChannelRequestSettingsShippingMethodMappingsInner interface.
23
+ */
24
+ export function instanceOfCreateOrderChannelRequestSettingsShippingMethodMappingsInner(value) {
25
+ if (!('match' in value) || value['match'] === undefined)
26
+ return false;
27
+ if (!('shippingRuleId' in value) || value['shippingRuleId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSON(json) {
32
+ return CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped(json, false);
33
+ }
34
+ export function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'match': json['match'],
40
+ 'shippingRuleId': json['shippingRuleId'],
41
+ 'servicePointSelection': json['servicePointSelection'] == null ? undefined : json['servicePointSelection'],
42
+ };
43
+ }
44
+ export function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSON(json) {
45
+ return CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped(json, false);
46
+ }
47
+ export function CreateOrderChannelRequestSettingsShippingMethodMappingsInnerToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'match': value['match'],
53
+ 'shippingRuleId': value['shippingRuleId'],
54
+ 'servicePointSelection': value['servicePointSelection'],
55
+ };
56
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Zippendo Public API
3
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@zippendo.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateOrderChannelWebhookSecret201Response
16
+ */
17
+ export interface CreateOrderChannelWebhookSecret201Response {
18
+ /**
19
+ * The webhook signing secret. Returned only once — store it in your system; every push to the ingest URL must carry an HMAC-SHA256 hex signature of the raw body computed with it.
20
+ * @type {string}
21
+ * @memberof CreateOrderChannelWebhookSecret201Response
22
+ */
23
+ secret: string;
24
+ /**
25
+ * The ingest URL your system pushes signed order events to.
26
+ * @type {string}
27
+ * @memberof CreateOrderChannelWebhookSecret201Response
28
+ */
29
+ webhookUrl: string;
30
+ /**
31
+ * When this secret was issued (ISO 8601).
32
+ * @type {Date}
33
+ * @memberof CreateOrderChannelWebhookSecret201Response
34
+ */
35
+ createdAt: Date;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CreateOrderChannelWebhookSecret201Response interface.
39
+ */
40
+ export declare function instanceOfCreateOrderChannelWebhookSecret201Response(value: object): value is CreateOrderChannelWebhookSecret201Response;
41
+ export declare function CreateOrderChannelWebhookSecret201ResponseFromJSON(json: any): CreateOrderChannelWebhookSecret201Response;
42
+ export declare function CreateOrderChannelWebhookSecret201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderChannelWebhookSecret201Response;
43
+ export declare function CreateOrderChannelWebhookSecret201ResponseToJSON(json: any): CreateOrderChannelWebhookSecret201Response;
44
+ export declare function CreateOrderChannelWebhookSecret201ResponseToJSONTyped(value?: CreateOrderChannelWebhookSecret201Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Zippendo Public API
5
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@zippendo.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the CreateOrderChannelWebhookSecret201Response interface.
16
+ */
17
+ export function instanceOfCreateOrderChannelWebhookSecret201Response(value) {
18
+ if (!('secret' in value) || value['secret'] === undefined)
19
+ return false;
20
+ if (!('webhookUrl' in value) || value['webhookUrl'] === undefined)
21
+ return false;
22
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function CreateOrderChannelWebhookSecret201ResponseFromJSON(json) {
27
+ return CreateOrderChannelWebhookSecret201ResponseFromJSONTyped(json, false);
28
+ }
29
+ export function CreateOrderChannelWebhookSecret201ResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'secret': json['secret'],
35
+ 'webhookUrl': json['webhookUrl'],
36
+ 'createdAt': (new Date(json['createdAt'])),
37
+ };
38
+ }
39
+ export function CreateOrderChannelWebhookSecret201ResponseToJSON(json) {
40
+ return CreateOrderChannelWebhookSecret201ResponseToJSONTyped(json, false);
41
+ }
42
+ export function CreateOrderChannelWebhookSecret201ResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'secret': value['secret'],
48
+ 'webhookUrl': value['webhookUrl'],
49
+ 'createdAt': value['createdAt'].toISOString(),
50
+ };
51
+ }
@@ -83,6 +83,18 @@ export interface CreateOrderRequest {
83
83
  * @memberof CreateOrderRequest
84
84
  */
85
85
  notes?: string | null;
86
+ /**
87
+ * Shipping rule to ship this order with. When set, a shipment is created immediately (and dispatched if the channel has autoShipOnCreate enabled).
88
+ * @type {string}
89
+ * @memberof CreateOrderRequest
90
+ */
91
+ shippingRuleId?: string | null;
92
+ /**
93
+ * Shipping-method title from the source checkout; matched against the order channel's shipping-method mappings to pick a shipping rule.
94
+ * @type {string}
95
+ * @memberof CreateOrderRequest
96
+ */
97
+ shippingMethodTitle?: string | null;
86
98
  /**
87
99
  * Raw platform-specific payload for reference.
88
100
  * @type {{ [key: string]: any; }}
@@ -44,6 +44,8 @@ export function CreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'totalAmount': json['totalAmount'] === undefined ? undefined : json['totalAmount'] === null ? null : json['totalAmount'],
45
45
  'currency': json['currency'] === undefined ? undefined : json['currency'] === null ? null : json['currency'],
46
46
  'notes': json['notes'] === undefined ? undefined : json['notes'] === null ? null : json['notes'],
47
+ 'shippingRuleId': json['shippingRuleId'] === undefined ? undefined : json['shippingRuleId'] === null ? null : json['shippingRuleId'],
48
+ 'shippingMethodTitle': json['shippingMethodTitle'] === undefined ? undefined : json['shippingMethodTitle'] === null ? null : json['shippingMethodTitle'],
47
49
  'externalData': json['externalData'] === undefined ? undefined : json['externalData'] === null ? null : json['externalData'],
48
50
  };
49
51
  }
@@ -66,6 +68,8 @@ export function CreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false
66
68
  'totalAmount': value['totalAmount'],
67
69
  'currency': value['currency'],
68
70
  'notes': value['notes'],
71
+ 'shippingRuleId': value['shippingRuleId'],
72
+ 'shippingMethodTitle': value['shippingMethodTitle'],
69
73
  'externalData': value['externalData'],
70
74
  };
71
75
  }
@@ -0,0 +1,45 @@
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 { GetOrderChannelWebhookStatus200ResponseWebhooksInner } from './GetOrderChannelWebhookStatus200ResponseWebhooksInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetOrderChannelWebhookStatus200Response
17
+ */
18
+ export interface GetOrderChannelWebhookStatus200Response {
19
+ /**
20
+ * Whether webhooks are enabled for the channel.
21
+ * @type {boolean}
22
+ * @memberof GetOrderChannelWebhookStatus200Response
23
+ */
24
+ enabled: boolean;
25
+ /**
26
+ * Expected callback URL for this channel.
27
+ * @type {string}
28
+ * @memberof GetOrderChannelWebhookStatus200Response
29
+ */
30
+ webhookUrl: string;
31
+ /**
32
+ * Webhooks registered for this channel's callback URL.
33
+ * @type {Array<GetOrderChannelWebhookStatus200ResponseWebhooksInner>}
34
+ * @memberof GetOrderChannelWebhookStatus200Response
35
+ */
36
+ webhooks: Array<GetOrderChannelWebhookStatus200ResponseWebhooksInner>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the GetOrderChannelWebhookStatus200Response interface.
40
+ */
41
+ export declare function instanceOfGetOrderChannelWebhookStatus200Response(value: object): value is GetOrderChannelWebhookStatus200Response;
42
+ export declare function GetOrderChannelWebhookStatus200ResponseFromJSON(json: any): GetOrderChannelWebhookStatus200Response;
43
+ export declare function GetOrderChannelWebhookStatus200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrderChannelWebhookStatus200Response;
44
+ export declare function GetOrderChannelWebhookStatus200ResponseToJSON(json: any): GetOrderChannelWebhookStatus200Response;
45
+ export declare function GetOrderChannelWebhookStatus200ResponseToJSONTyped(value?: GetOrderChannelWebhookStatus200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Zippendo Public API
5
+ * Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_). **Brands (sub-accounts).** An organization can be split into brands, each keeping its own orders, shipments and configuration separate. There are two ways to scope requests to one brand, and NEITHER changes any request body: 1. **Bind the token.** Create an API token with a `brandId` and every request it makes is confined to that brand — reads filtered, writes stamped. This is the recommended way to give a single brand\'s team its own credential. 2. **Send the `X-Zippendo-Brand` header.** An organization-wide token can scope an individual request by sending the brand\'s id or slug in this header. Most SDKs let you set it once on the client so every call inherits it. A brand-bound token that receives an `X-Zippendo-Brand` header naming a different brand is rejected with `403 BRAND_ACCESS_DENIED` — the binding is never widened. Omit both and requests cover the whole organization, which is the behaviour of every existing token. Records that belong to no brand carry `brandId: null`. Configuration (carriers, shipping rules, addresses) with a null brand is organization-wide and remains visible inside every brand; orders and shipments with a null brand are only visible organization-wide. List endpoints additionally take a `?brandScope=own|shared|both` parameter to narrow further within whichever brand context already applies. `own` returns only rows assigned to that brand, and requires a brand context — a brand-bound token, a resolved brand session, or the `X-Zippendo-Brand` header above — otherwise `400`. `shared` returns only the organization-wide rows (equivalent to filtering `brandId=none`). The default, `both`, keeps the existing behaviour: a brand context sees its own rows plus the organization-wide ones. Set `X-Zippendo-Brand-Scope` as a client default to apply the same choice to every request instead of repeating the query parameter on each call — an explicit `brandScope` query parameter always wins over the header, and a blank header value is ignored. Brands themselves are managed under the **Brands** tag. Retiring a brand is done with `POST /orgs/{orgId}/brands/{brandId}/archive` — permanent deletion is a dashboard-only action, since it is refused while any order, shipment, member or token still references the brand. Brands require a plan that includes them; creating one beyond your plan\'s limit returns `403`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@zippendo.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { GetOrderChannelWebhookStatus200ResponseWebhooksInnerFromJSON, GetOrderChannelWebhookStatus200ResponseWebhooksInnerToJSON, } from './GetOrderChannelWebhookStatus200ResponseWebhooksInner';
15
+ /**
16
+ * Check if a given object implements the GetOrderChannelWebhookStatus200Response interface.
17
+ */
18
+ export function instanceOfGetOrderChannelWebhookStatus200Response(value) {
19
+ if (!('enabled' in value) || value['enabled'] === undefined)
20
+ return false;
21
+ if (!('webhookUrl' in value) || value['webhookUrl'] === undefined)
22
+ return false;
23
+ if (!('webhooks' in value) || value['webhooks'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function GetOrderChannelWebhookStatus200ResponseFromJSON(json) {
28
+ return GetOrderChannelWebhookStatus200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function GetOrderChannelWebhookStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'],
36
+ 'webhookUrl': json['webhookUrl'],
37
+ 'webhooks': (json['webhooks'].map(GetOrderChannelWebhookStatus200ResponseWebhooksInnerFromJSON)),
38
+ };
39
+ }
40
+ export function GetOrderChannelWebhookStatus200ResponseToJSON(json) {
41
+ return GetOrderChannelWebhookStatus200ResponseToJSONTyped(json, false);
42
+ }
43
+ export function GetOrderChannelWebhookStatus200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'enabled': value['enabled'],
49
+ 'webhookUrl': value['webhookUrl'],
50
+ 'webhooks': (value['webhooks'].map(GetOrderChannelWebhookStatus200ResponseWebhooksInnerToJSON)),
51
+ };
52
+ }