ultracart_rest_api_v2_typescript 4.0.241 → 4.0.242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -2
- package/README.md +3 -2
- package/dist/apis/FulfillmentApi.d.ts +9 -9
- package/dist/apis/FulfillmentApi.js +3 -3
- package/dist/apis/OauthApi.d.ts +1 -1
- package/dist/apis/WebhookApi.d.ts +5 -5
- package/dist/apis/WebhookApi.js +1 -1
- package/dist/models/ItemPaymentProcessing.d.ts +6 -0
- package/dist/models/ItemPaymentProcessing.js +2 -0
- package/dist/models/WebhookReflow.d.ts +33 -0
- package/dist/models/WebhookReflow.js +44 -0
- package/dist/models/WebhookReflowResponse.d.ts +55 -0
- package/dist/models/WebhookReflowResponse.js +54 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/FulfillmentApi.ts +12 -9
- package/src/apis/OauthApi.ts +1 -1
- package/src/apis/WebhookApi.ts +8 -8
- package/src/models/ItemPaymentProcessing.ts +8 -0
- package/src/models/WebhookReflow.ts +64 -0
- package/src/models/{WebhookSampleRequestResponse.ts → WebhookReflowResponse.ts} +23 -23
- package/src/models/index.ts +2 -2
- package/dist/models/WebhookSampleRequest.d.ts +0 -46
- package/dist/models/WebhookSampleRequestResponse.d.ts +0 -55
- package/src/models/WebhookSampleRequest.ts +0 -87
package/.openapi-generator/FILES
CHANGED
|
@@ -857,9 +857,9 @@ src/models/WebhookLog.ts
|
|
|
857
857
|
src/models/WebhookLogResponse.ts
|
|
858
858
|
src/models/WebhookLogSummariesResponse.ts
|
|
859
859
|
src/models/WebhookLogSummary.ts
|
|
860
|
+
src/models/WebhookReflow.ts
|
|
861
|
+
src/models/WebhookReflowResponse.ts
|
|
860
862
|
src/models/WebhookResponse.ts
|
|
861
|
-
src/models/WebhookSampleRequest.ts
|
|
862
|
-
src/models/WebhookSampleRequestResponse.ts
|
|
863
863
|
src/models/WebhooksResponse.ts
|
|
864
864
|
src/models/Weight.ts
|
|
865
865
|
src/models/WorkflowAgentAuth.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.242
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.242 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.242 | 02/18/2025 | small bug fixes for incorrect return types on several methods |
|
|
57
58
|
| 4.0.241 | 02/06/2025 | added storefront_host_name to channel partner order object |
|
|
58
59
|
| 4.0.240 | 01/09/2025 | fix for broken 4.0.39 due to incorrect query sig on getCustomers |
|
|
59
60
|
| 4.0.239 | 01/09/2025 | added emails parameter to customer queries, refundOrder added to Channel partner |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { DistributionCentersResponse, FulfillmentInventory, FulfillmentShipment, OrdersResponse } from '../models';
|
|
13
|
+
import { DistributionCentersResponse, FulfillmentInventory, FulfillmentShipment, OrderPackingSlipResponse, OrdersResponse } from '../models';
|
|
14
14
|
export interface AcknowledgeOrdersRequest {
|
|
15
15
|
distributionCenterCode: string;
|
|
16
16
|
orderIds: Array<string>;
|
|
@@ -61,14 +61,14 @@ export interface FulfillmentApiInterface {
|
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
* @memberof FulfillmentApiInterface
|
|
63
63
|
*/
|
|
64
|
-
generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
64
|
+
generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderPackingSlipResponse>>;
|
|
65
65
|
/**
|
|
66
66
|
* The packing slip PDF that is returned is base 64 encoded
|
|
67
67
|
* Generate a packing slip for this order for the given distribution center.
|
|
68
68
|
*/
|
|
69
|
-
generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
69
|
+
generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPackingSlipResponse>;
|
|
70
70
|
/**
|
|
71
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
71
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
72
72
|
* @summary Retrieve orders queued up for this distribution center.
|
|
73
73
|
* @param {string} distributionCenterCode Distribution center code
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
@@ -77,7 +77,7 @@ export interface FulfillmentApiInterface {
|
|
|
77
77
|
*/
|
|
78
78
|
getDistributionCenterOrdersRaw(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrdersResponse>>;
|
|
79
79
|
/**
|
|
80
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
80
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
81
81
|
* Retrieve orders queued up for this distribution center.
|
|
82
82
|
*/
|
|
83
83
|
getDistributionCenterOrders(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
|
|
@@ -143,19 +143,19 @@ export declare class FulfillmentApi extends runtime.BaseAPI implements Fulfillme
|
|
|
143
143
|
* The packing slip PDF that is returned is base 64 encoded
|
|
144
144
|
* Generate a packing slip for this order for the given distribution center.
|
|
145
145
|
*/
|
|
146
|
-
generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
146
|
+
generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderPackingSlipResponse>>;
|
|
147
147
|
/**
|
|
148
148
|
* The packing slip PDF that is returned is base 64 encoded
|
|
149
149
|
* Generate a packing slip for this order for the given distribution center.
|
|
150
150
|
*/
|
|
151
|
-
generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
151
|
+
generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPackingSlipResponse>;
|
|
152
152
|
/**
|
|
153
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
153
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
154
154
|
* Retrieve orders queued up for this distribution center.
|
|
155
155
|
*/
|
|
156
156
|
getDistributionCenterOrdersRaw(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrdersResponse>>;
|
|
157
157
|
/**
|
|
158
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
158
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
159
159
|
* Retrieve orders queued up for this distribution center.
|
|
160
160
|
*/
|
|
161
161
|
getDistributionCenterOrders(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
|
|
@@ -176,7 +176,7 @@ var FulfillmentApi = /** @class */ (function (_super) {
|
|
|
176
176
|
}, initOverrides)];
|
|
177
177
|
case 3:
|
|
178
178
|
response = _c.sent();
|
|
179
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.
|
|
179
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.OrderPackingSlipResponseFromJSON)(jsonValue); })];
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
});
|
|
@@ -200,7 +200,7 @@ var FulfillmentApi = /** @class */ (function (_super) {
|
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
202
|
/**
|
|
203
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
203
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
204
204
|
* Retrieve orders queued up for this distribution center.
|
|
205
205
|
*/
|
|
206
206
|
FulfillmentApi.prototype.getDistributionCenterOrdersRaw = function (requestParameters, initOverrides) {
|
|
@@ -241,7 +241,7 @@ var FulfillmentApi = /** @class */ (function (_super) {
|
|
|
241
241
|
});
|
|
242
242
|
};
|
|
243
243
|
/**
|
|
244
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
244
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
245
245
|
* Retrieve orders queued up for this distribution center.
|
|
246
246
|
*/
|
|
247
247
|
FulfillmentApi.prototype.getDistributionCenterOrders = function (requestParameters, initOverrides) {
|
package/dist/apis/OauthApi.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface OauthApiInterface {
|
|
|
35
35
|
* @param {string} clientId The OAuth application client_id.
|
|
36
36
|
* @param {string} grantType Type of grant
|
|
37
37
|
* @param {string} [code] Authorization code received back from the browser redirect
|
|
38
|
-
* @param {string} [redirectUri] The URI that you redirect the browser to
|
|
38
|
+
* @param {string} [redirectUri] The URI that you redirect the browser to start the authorization process
|
|
39
39
|
* @param {string} [refreshToken] The refresh token received during the original grant_type=authorization_code that can be used to return a new access token
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Webhook, WebhookLogResponse, WebhookLogSummariesResponse,
|
|
13
|
+
import { Webhook, WebhookLogResponse, WebhookLogSummariesResponse, WebhookReflowResponse, WebhookResponse, WebhooksResponse } from '../models';
|
|
14
14
|
export interface DeleteWebhookRequest {
|
|
15
15
|
webhookOid: number;
|
|
16
16
|
}
|
|
@@ -154,12 +154,12 @@ export interface WebhookApiInterface {
|
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
* @memberof WebhookApiInterface
|
|
156
156
|
*/
|
|
157
|
-
resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
157
|
+
resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookReflowResponse>>;
|
|
158
158
|
/**
|
|
159
159
|
* This method will resend events to the webhook endpoint. This method can be used for example to send all the existing items on an account to a webhook.
|
|
160
160
|
* Resend events to the webhook endpoint.
|
|
161
161
|
*/
|
|
162
|
-
resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
162
|
+
resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookReflowResponse>;
|
|
163
163
|
/**
|
|
164
164
|
* Update a webhook on the account
|
|
165
165
|
* @summary Update a webhook
|
|
@@ -245,12 +245,12 @@ export declare class WebhookApi extends runtime.BaseAPI implements WebhookApiInt
|
|
|
245
245
|
* This method will resend events to the webhook endpoint. This method can be used for example to send all the existing items on an account to a webhook.
|
|
246
246
|
* Resend events to the webhook endpoint.
|
|
247
247
|
*/
|
|
248
|
-
resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
248
|
+
resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookReflowResponse>>;
|
|
249
249
|
/**
|
|
250
250
|
* This method will resend events to the webhook endpoint. This method can be used for example to send all the existing items on an account to a webhook.
|
|
251
251
|
* Resend events to the webhook endpoint.
|
|
252
252
|
*/
|
|
253
|
-
resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
253
|
+
resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookReflowResponse>;
|
|
254
254
|
/**
|
|
255
255
|
* Update a webhook on the account
|
|
256
256
|
* Update a webhook
|
package/dist/apis/WebhookApi.js
CHANGED
|
@@ -495,7 +495,7 @@ var WebhookApi = /** @class */ (function (_super) {
|
|
|
495
495
|
}, initOverrides)];
|
|
496
496
|
case 3:
|
|
497
497
|
response = _c.sent();
|
|
498
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.
|
|
498
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.WebhookReflowResponseFromJSON)(jsonValue); })];
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
501
|
});
|
|
@@ -21,6 +21,12 @@ export interface ItemPaymentProcessing {
|
|
|
21
21
|
* @memberof ItemPaymentProcessing
|
|
22
22
|
*/
|
|
23
23
|
block_prepaid?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* True if this item should block any refund attempts
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ItemPaymentProcessing
|
|
28
|
+
*/
|
|
29
|
+
block_refunds?: boolean;
|
|
24
30
|
/**
|
|
25
31
|
* Credit card transaction type
|
|
26
32
|
* @type {string}
|
|
@@ -25,6 +25,7 @@ function ItemPaymentProcessingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'block_prepaid': !(0, runtime_1.exists)(json, 'block_prepaid') ? undefined : json['block_prepaid'],
|
|
28
|
+
'block_refunds': !(0, runtime_1.exists)(json, 'block_refunds') ? undefined : json['block_refunds'],
|
|
28
29
|
'credit_card_transaction_type': !(0, runtime_1.exists)(json, 'credit_card_transaction_type') ? undefined : json['credit_card_transaction_type'],
|
|
29
30
|
'no_realtime_charge': !(0, runtime_1.exists)(json, 'no_realtime_charge') ? undefined : json['no_realtime_charge'],
|
|
30
31
|
'payment_method_validity': !(0, runtime_1.exists)(json, 'payment_method_validity') ? undefined : json['payment_method_validity'],
|
|
@@ -41,6 +42,7 @@ function ItemPaymentProcessingToJSON(value) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'block_prepaid': value.block_prepaid,
|
|
45
|
+
'block_refunds': value.block_refunds,
|
|
44
46
|
'credit_card_transaction_type': value.credit_card_transaction_type,
|
|
45
47
|
'no_realtime_charge': value.no_realtime_charge,
|
|
46
48
|
'payment_method_validity': value.payment_method_validity,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.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 WebhookReflow
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookReflow {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookReflow
|
|
22
|
+
*/
|
|
23
|
+
event_name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WebhookReflow
|
|
28
|
+
*/
|
|
29
|
+
queued?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function WebhookReflowFromJSON(json: any): WebhookReflow;
|
|
32
|
+
export declare function WebhookReflowFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookReflow;
|
|
33
|
+
export declare function WebhookReflowToJSON(value?: WebhookReflow | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.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.WebhookReflowToJSON = exports.WebhookReflowFromJSONTyped = exports.WebhookReflowFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function WebhookReflowFromJSON(json) {
|
|
19
|
+
return WebhookReflowFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.WebhookReflowFromJSON = WebhookReflowFromJSON;
|
|
22
|
+
function WebhookReflowFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'event_name': !(0, runtime_1.exists)(json, 'event_name') ? undefined : json['event_name'],
|
|
28
|
+
'queued': !(0, runtime_1.exists)(json, 'queued') ? undefined : json['queued'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.WebhookReflowFromJSONTyped = WebhookReflowFromJSONTyped;
|
|
32
|
+
function WebhookReflowToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'event_name': value.event_name,
|
|
41
|
+
'queued': value.queued,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.WebhookReflowToJSON = WebhookReflowToJSON;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.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 { ModelError } from './ModelError';
|
|
13
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
14
|
+
import { Warning } from './Warning';
|
|
15
|
+
import { WebhookReflow } from './WebhookReflow';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WebhookReflowResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface WebhookReflowResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ModelError}
|
|
25
|
+
* @memberof WebhookReflowResponse
|
|
26
|
+
*/
|
|
27
|
+
error?: ModelError;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ResponseMetadata}
|
|
31
|
+
* @memberof WebhookReflowResponse
|
|
32
|
+
*/
|
|
33
|
+
metadata?: ResponseMetadata;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {WebhookReflow}
|
|
37
|
+
* @memberof WebhookReflowResponse
|
|
38
|
+
*/
|
|
39
|
+
reflow?: WebhookReflow;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if API call was successful
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof WebhookReflowResponse
|
|
44
|
+
*/
|
|
45
|
+
success?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Warning}
|
|
49
|
+
* @memberof WebhookReflowResponse
|
|
50
|
+
*/
|
|
51
|
+
warning?: Warning;
|
|
52
|
+
}
|
|
53
|
+
export declare function WebhookReflowResponseFromJSON(json: any): WebhookReflowResponse;
|
|
54
|
+
export declare function WebhookReflowResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookReflowResponse;
|
|
55
|
+
export declare function WebhookReflowResponseToJSON(value?: WebhookReflowResponse | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.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.WebhookReflowResponseToJSON = exports.WebhookReflowResponseFromJSONTyped = exports.WebhookReflowResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ModelError_1 = require("./ModelError");
|
|
19
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
20
|
+
var Warning_1 = require("./Warning");
|
|
21
|
+
var WebhookReflow_1 = require("./WebhookReflow");
|
|
22
|
+
function WebhookReflowResponseFromJSON(json) {
|
|
23
|
+
return WebhookReflowResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.WebhookReflowResponseFromJSON = WebhookReflowResponseFromJSON;
|
|
26
|
+
function WebhookReflowResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
32
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
33
|
+
'reflow': !(0, runtime_1.exists)(json, 'reflow') ? undefined : (0, WebhookReflow_1.WebhookReflowFromJSON)(json['reflow']),
|
|
34
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
35
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.WebhookReflowResponseFromJSONTyped = WebhookReflowResponseFromJSONTyped;
|
|
39
|
+
function WebhookReflowResponseToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
48
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
49
|
+
'reflow': (0, WebhookReflow_1.WebhookReflowToJSON)(value.reflow),
|
|
50
|
+
'success': value.success,
|
|
51
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.WebhookReflowResponseToJSON = WebhookReflowResponseToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -830,9 +830,9 @@ export * from './WebhookLog';
|
|
|
830
830
|
export * from './WebhookLogResponse';
|
|
831
831
|
export * from './WebhookLogSummariesResponse';
|
|
832
832
|
export * from './WebhookLogSummary';
|
|
833
|
+
export * from './WebhookReflow';
|
|
834
|
+
export * from './WebhookReflowResponse';
|
|
833
835
|
export * from './WebhookResponse';
|
|
834
|
-
export * from './WebhookSampleRequest';
|
|
835
|
-
export * from './WebhookSampleRequestResponse';
|
|
836
836
|
export * from './WebhooksResponse';
|
|
837
837
|
export * from './Weight';
|
|
838
838
|
export * from './WorkflowAgentAuth';
|
package/dist/models/index.js
CHANGED
|
@@ -848,9 +848,9 @@ __exportStar(require("./WebhookLog"), exports);
|
|
|
848
848
|
__exportStar(require("./WebhookLogResponse"), exports);
|
|
849
849
|
__exportStar(require("./WebhookLogSummariesResponse"), exports);
|
|
850
850
|
__exportStar(require("./WebhookLogSummary"), exports);
|
|
851
|
+
__exportStar(require("./WebhookReflow"), exports);
|
|
852
|
+
__exportStar(require("./WebhookReflowResponse"), exports);
|
|
851
853
|
__exportStar(require("./WebhookResponse"), exports);
|
|
852
|
-
__exportStar(require("./WebhookSampleRequest"), exports);
|
|
853
|
-
__exportStar(require("./WebhookSampleRequestResponse"), exports);
|
|
854
854
|
__exportStar(require("./WebhooksResponse"), exports);
|
|
855
855
|
__exportStar(require("./Weight"), exports);
|
|
856
856
|
__exportStar(require("./WorkflowAgentAuth"), exports);
|
package/package.json
CHANGED
|
@@ -27,6 +27,9 @@ import {
|
|
|
27
27
|
FulfillmentShipment,
|
|
28
28
|
FulfillmentShipmentFromJSON,
|
|
29
29
|
FulfillmentShipmentToJSON,
|
|
30
|
+
OrderPackingSlipResponse,
|
|
31
|
+
OrderPackingSlipResponseFromJSON,
|
|
32
|
+
OrderPackingSlipResponseToJSON,
|
|
30
33
|
OrdersResponse,
|
|
31
34
|
OrdersResponseFromJSON,
|
|
32
35
|
OrdersResponseToJSON,
|
|
@@ -89,16 +92,16 @@ export interface FulfillmentApiInterface {
|
|
|
89
92
|
* @throws {RequiredError}
|
|
90
93
|
* @memberof FulfillmentApiInterface
|
|
91
94
|
*/
|
|
92
|
-
generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
95
|
+
generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderPackingSlipResponse>>;
|
|
93
96
|
|
|
94
97
|
/**
|
|
95
98
|
* The packing slip PDF that is returned is base 64 encoded
|
|
96
99
|
* Generate a packing slip for this order for the given distribution center.
|
|
97
100
|
*/
|
|
98
|
-
generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
101
|
+
generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPackingSlipResponse>;
|
|
99
102
|
|
|
100
103
|
/**
|
|
101
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
104
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
102
105
|
* @summary Retrieve orders queued up for this distribution center.
|
|
103
106
|
* @param {string} distributionCenterCode Distribution center code
|
|
104
107
|
* @param {*} [options] Override http request option.
|
|
@@ -108,7 +111,7 @@ export interface FulfillmentApiInterface {
|
|
|
108
111
|
getDistributionCenterOrdersRaw(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrdersResponse>>;
|
|
109
112
|
|
|
110
113
|
/**
|
|
111
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
114
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
112
115
|
* Retrieve orders queued up for this distribution center.
|
|
113
116
|
*/
|
|
114
117
|
getDistributionCenterOrders(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
|
|
@@ -220,7 +223,7 @@ export class FulfillmentApi extends runtime.BaseAPI implements FulfillmentApiInt
|
|
|
220
223
|
* The packing slip PDF that is returned is base 64 encoded
|
|
221
224
|
* Generate a packing slip for this order for the given distribution center.
|
|
222
225
|
*/
|
|
223
|
-
async generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
226
|
+
async generatePackingSlipRaw(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderPackingSlipResponse>> {
|
|
224
227
|
if (requestParameters.distributionCenterCode === null || requestParameters.distributionCenterCode === undefined) {
|
|
225
228
|
throw new runtime.RequiredError('distributionCenterCode','Required parameter requestParameters.distributionCenterCode was null or undefined when calling generatePackingSlip.');
|
|
226
229
|
}
|
|
@@ -249,20 +252,20 @@ export class FulfillmentApi extends runtime.BaseAPI implements FulfillmentApiInt
|
|
|
249
252
|
query: queryParameters,
|
|
250
253
|
}, initOverrides);
|
|
251
254
|
|
|
252
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
255
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrderPackingSlipResponseFromJSON(jsonValue));
|
|
253
256
|
}
|
|
254
257
|
|
|
255
258
|
/**
|
|
256
259
|
* The packing slip PDF that is returned is base 64 encoded
|
|
257
260
|
* Generate a packing slip for this order for the given distribution center.
|
|
258
261
|
*/
|
|
259
|
-
async generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
262
|
+
async generatePackingSlip(requestParameters: GeneratePackingSlipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPackingSlipResponse> {
|
|
260
263
|
const response = await this.generatePackingSlipRaw(requestParameters, initOverrides);
|
|
261
264
|
return await response.value();
|
|
262
265
|
}
|
|
263
266
|
|
|
264
267
|
/**
|
|
265
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
268
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
266
269
|
* Retrieve orders queued up for this distribution center.
|
|
267
270
|
*/
|
|
268
271
|
async getDistributionCenterOrdersRaw(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrdersResponse>> {
|
|
@@ -294,7 +297,7 @@ export class FulfillmentApi extends runtime.BaseAPI implements FulfillmentApiInt
|
|
|
294
297
|
}
|
|
295
298
|
|
|
296
299
|
/**
|
|
297
|
-
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing,
|
|
300
|
+
* Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You\'ll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
|
|
298
301
|
* Retrieve orders queued up for this distribution center.
|
|
299
302
|
*/
|
|
300
303
|
async getDistributionCenterOrders(requestParameters: GetDistributionCenterOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse> {
|
package/src/apis/OauthApi.ts
CHANGED
|
@@ -52,7 +52,7 @@ export interface OauthApiInterface {
|
|
|
52
52
|
* @param {string} clientId The OAuth application client_id.
|
|
53
53
|
* @param {string} grantType Type of grant
|
|
54
54
|
* @param {string} [code] Authorization code received back from the browser redirect
|
|
55
|
-
* @param {string} [redirectUri] The URI that you redirect the browser to
|
|
55
|
+
* @param {string} [redirectUri] The URI that you redirect the browser to start the authorization process
|
|
56
56
|
* @param {string} [refreshToken] The refresh token received during the original grant_type=authorization_code that can be used to return a new access token
|
|
57
57
|
* @param {*} [options] Override http request option.
|
|
58
58
|
* @throws {RequiredError}
|
package/src/apis/WebhookApi.ts
CHANGED
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
WebhookLogSummariesResponse,
|
|
28
28
|
WebhookLogSummariesResponseFromJSON,
|
|
29
29
|
WebhookLogSummariesResponseToJSON,
|
|
30
|
+
WebhookReflowResponse,
|
|
31
|
+
WebhookReflowResponseFromJSON,
|
|
32
|
+
WebhookReflowResponseToJSON,
|
|
30
33
|
WebhookResponse,
|
|
31
34
|
WebhookResponseFromJSON,
|
|
32
35
|
WebhookResponseToJSON,
|
|
33
|
-
WebhookSampleRequestResponse,
|
|
34
|
-
WebhookSampleRequestResponseFromJSON,
|
|
35
|
-
WebhookSampleRequestResponseToJSON,
|
|
36
36
|
WebhooksResponse,
|
|
37
37
|
WebhooksResponseFromJSON,
|
|
38
38
|
WebhooksResponseToJSON,
|
|
@@ -201,13 +201,13 @@ export interface WebhookApiInterface {
|
|
|
201
201
|
* @throws {RequiredError}
|
|
202
202
|
* @memberof WebhookApiInterface
|
|
203
203
|
*/
|
|
204
|
-
resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
204
|
+
resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookReflowResponse>>;
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* This method will resend events to the webhook endpoint. This method can be used for example to send all the existing items on an account to a webhook.
|
|
208
208
|
* Resend events to the webhook endpoint.
|
|
209
209
|
*/
|
|
210
|
-
resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
210
|
+
resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookReflowResponse>;
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* Update a webhook on the account
|
|
@@ -521,7 +521,7 @@ export class WebhookApi extends runtime.BaseAPI implements WebhookApiInterface {
|
|
|
521
521
|
* This method will resend events to the webhook endpoint. This method can be used for example to send all the existing items on an account to a webhook.
|
|
522
522
|
* Resend events to the webhook endpoint.
|
|
523
523
|
*/
|
|
524
|
-
async resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
524
|
+
async resendEventRaw(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookReflowResponse>> {
|
|
525
525
|
if (requestParameters.webhookOid === null || requestParameters.webhookOid === undefined) {
|
|
526
526
|
throw new runtime.RequiredError('webhookOid','Required parameter requestParameters.webhookOid was null or undefined when calling resendEvent.');
|
|
527
527
|
}
|
|
@@ -550,14 +550,14 @@ export class WebhookApi extends runtime.BaseAPI implements WebhookApiInterface {
|
|
|
550
550
|
query: queryParameters,
|
|
551
551
|
}, initOverrides);
|
|
552
552
|
|
|
553
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
553
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WebhookReflowResponseFromJSON(jsonValue));
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* This method will resend events to the webhook endpoint. This method can be used for example to send all the existing items on an account to a webhook.
|
|
558
558
|
* Resend events to the webhook endpoint.
|
|
559
559
|
*/
|
|
560
|
-
async resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
560
|
+
async resendEvent(requestParameters: ResendEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookReflowResponse> {
|
|
561
561
|
const response = await this.resendEventRaw(requestParameters, initOverrides);
|
|
562
562
|
return await response.value();
|
|
563
563
|
}
|
|
@@ -25,6 +25,12 @@ export interface ItemPaymentProcessing {
|
|
|
25
25
|
* @memberof ItemPaymentProcessing
|
|
26
26
|
*/
|
|
27
27
|
block_prepaid?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* True if this item should block any refund attempts
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof ItemPaymentProcessing
|
|
32
|
+
*/
|
|
33
|
+
block_refunds?: boolean;
|
|
28
34
|
/**
|
|
29
35
|
* Credit card transaction type
|
|
30
36
|
* @type {string}
|
|
@@ -62,6 +68,7 @@ export function ItemPaymentProcessingFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
62
68
|
return {
|
|
63
69
|
|
|
64
70
|
'block_prepaid': !exists(json, 'block_prepaid') ? undefined : json['block_prepaid'],
|
|
71
|
+
'block_refunds': !exists(json, 'block_refunds') ? undefined : json['block_refunds'],
|
|
65
72
|
'credit_card_transaction_type': !exists(json, 'credit_card_transaction_type') ? undefined : json['credit_card_transaction_type'],
|
|
66
73
|
'no_realtime_charge': !exists(json, 'no_realtime_charge') ? undefined : json['no_realtime_charge'],
|
|
67
74
|
'payment_method_validity': !exists(json, 'payment_method_validity') ? undefined : json['payment_method_validity'],
|
|
@@ -79,6 +86,7 @@ export function ItemPaymentProcessingToJSON(value?: ItemPaymentProcessing | null
|
|
|
79
86
|
return {
|
|
80
87
|
|
|
81
88
|
'block_prepaid': value.block_prepaid,
|
|
89
|
+
'block_refunds': value.block_refunds,
|
|
82
90
|
'credit_card_transaction_type': value.credit_card_transaction_type,
|
|
83
91
|
'no_realtime_charge': value.no_realtime_charge,
|
|
84
92
|
'payment_method_validity': value.payment_method_validity,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WebhookReflow
|
|
20
|
+
*/
|
|
21
|
+
export interface WebhookReflow {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WebhookReflow
|
|
26
|
+
*/
|
|
27
|
+
event_name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof WebhookReflow
|
|
32
|
+
*/
|
|
33
|
+
queued?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function WebhookReflowFromJSON(json: any): WebhookReflow {
|
|
37
|
+
return WebhookReflowFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function WebhookReflowFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookReflow {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'event_name': !exists(json, 'event_name') ? undefined : json['event_name'],
|
|
47
|
+
'queued': !exists(json, 'queued') ? undefined : json['queued'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function WebhookReflowToJSON(value?: WebhookReflow | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'event_name': value.event_name,
|
|
61
|
+
'queued': value.queued,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -32,55 +32,55 @@ import {
|
|
|
32
32
|
WarningToJSON,
|
|
33
33
|
} from './Warning';
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from './
|
|
35
|
+
WebhookReflow,
|
|
36
|
+
WebhookReflowFromJSON,
|
|
37
|
+
WebhookReflowFromJSONTyped,
|
|
38
|
+
WebhookReflowToJSON,
|
|
39
|
+
} from './WebhookReflow';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @export
|
|
44
|
-
* @interface
|
|
44
|
+
* @interface WebhookReflowResponse
|
|
45
45
|
*/
|
|
46
|
-
export interface
|
|
46
|
+
export interface WebhookReflowResponse {
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {ModelError}
|
|
50
|
-
* @memberof
|
|
50
|
+
* @memberof WebhookReflowResponse
|
|
51
51
|
*/
|
|
52
52
|
error?: ModelError;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {ResponseMetadata}
|
|
56
|
-
* @memberof
|
|
56
|
+
* @memberof WebhookReflowResponse
|
|
57
57
|
*/
|
|
58
58
|
metadata?: ResponseMetadata;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {WebhookReflow}
|
|
62
|
+
* @memberof WebhookReflowResponse
|
|
63
|
+
*/
|
|
64
|
+
reflow?: WebhookReflow;
|
|
59
65
|
/**
|
|
60
66
|
* Indicates if API call was successful
|
|
61
67
|
* @type {boolean}
|
|
62
|
-
* @memberof
|
|
68
|
+
* @memberof WebhookReflowResponse
|
|
63
69
|
*/
|
|
64
70
|
success?: boolean;
|
|
65
71
|
/**
|
|
66
72
|
*
|
|
67
73
|
* @type {Warning}
|
|
68
|
-
* @memberof
|
|
74
|
+
* @memberof WebhookReflowResponse
|
|
69
75
|
*/
|
|
70
76
|
warning?: Warning;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {WebhookSampleRequest}
|
|
74
|
-
* @memberof WebhookSampleRequestResponse
|
|
75
|
-
*/
|
|
76
|
-
webhook_sample_request?: WebhookSampleRequest;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export function
|
|
80
|
-
return
|
|
79
|
+
export function WebhookReflowResponseFromJSON(json: any): WebhookReflowResponse {
|
|
80
|
+
return WebhookReflowResponseFromJSONTyped(json, false);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export function
|
|
83
|
+
export function WebhookReflowResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookReflowResponse {
|
|
84
84
|
if ((json === undefined) || (json === null)) {
|
|
85
85
|
return json;
|
|
86
86
|
}
|
|
@@ -88,13 +88,13 @@ export function WebhookSampleRequestResponseFromJSONTyped(json: any, ignoreDiscr
|
|
|
88
88
|
|
|
89
89
|
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
90
90
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
91
|
+
'reflow': !exists(json, 'reflow') ? undefined : WebhookReflowFromJSON(json['reflow']),
|
|
91
92
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
92
93
|
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
93
|
-
'webhook_sample_request': !exists(json, 'webhook_sample_request') ? undefined : WebhookSampleRequestFromJSON(json['webhook_sample_request']),
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export function
|
|
97
|
+
export function WebhookReflowResponseToJSON(value?: WebhookReflowResponse | null): any {
|
|
98
98
|
if (value === undefined) {
|
|
99
99
|
return undefined;
|
|
100
100
|
}
|
|
@@ -105,9 +105,9 @@ export function WebhookSampleRequestResponseToJSON(value?: WebhookSampleRequestR
|
|
|
105
105
|
|
|
106
106
|
'error': ModelErrorToJSON(value.error),
|
|
107
107
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
108
|
+
'reflow': WebhookReflowToJSON(value.reflow),
|
|
108
109
|
'success': value.success,
|
|
109
110
|
'warning': WarningToJSON(value.warning),
|
|
110
|
-
'webhook_sample_request': WebhookSampleRequestToJSON(value.webhook_sample_request),
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
|
package/src/models/index.ts
CHANGED
|
@@ -832,9 +832,9 @@ export * from './WebhookLog';
|
|
|
832
832
|
export * from './WebhookLogResponse';
|
|
833
833
|
export * from './WebhookLogSummariesResponse';
|
|
834
834
|
export * from './WebhookLogSummary';
|
|
835
|
+
export * from './WebhookReflow';
|
|
836
|
+
export * from './WebhookReflowResponse';
|
|
835
837
|
export * from './WebhookResponse';
|
|
836
|
-
export * from './WebhookSampleRequest';
|
|
837
|
-
export * from './WebhookSampleRequestResponse';
|
|
838
838
|
export * from './WebhooksResponse';
|
|
839
839
|
export * from './Weight';
|
|
840
840
|
export * from './WorkflowAgentAuth';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UltraCart Rest API V2
|
|
3
|
-
* UltraCart REST API Version 2
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0
|
|
6
|
-
* Contact: support@ultracart.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 { HTTPHeader } from './HTTPHeader';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface WebhookSampleRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface WebhookSampleRequest {
|
|
19
|
-
/**
|
|
20
|
-
* Request
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof WebhookSampleRequest
|
|
23
|
-
*/
|
|
24
|
-
request?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Request headers
|
|
27
|
-
* @type {Array<HTTPHeader>}
|
|
28
|
-
* @memberof WebhookSampleRequest
|
|
29
|
-
*/
|
|
30
|
-
request_headers?: Array<HTTPHeader>;
|
|
31
|
-
/**
|
|
32
|
-
* Request id
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof WebhookSampleRequest
|
|
35
|
-
*/
|
|
36
|
-
request_id?: string;
|
|
37
|
-
/**
|
|
38
|
-
* URI to send request to
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof WebhookSampleRequest
|
|
41
|
-
*/
|
|
42
|
-
uri?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare function WebhookSampleRequestFromJSON(json: any): WebhookSampleRequest;
|
|
45
|
-
export declare function WebhookSampleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSampleRequest;
|
|
46
|
-
export declare function WebhookSampleRequestToJSON(value?: WebhookSampleRequest | null): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UltraCart Rest API V2
|
|
3
|
-
* UltraCart REST API Version 2
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0
|
|
6
|
-
* Contact: support@ultracart.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 { ModelError } from './ModelError';
|
|
13
|
-
import { ResponseMetadata } from './ResponseMetadata';
|
|
14
|
-
import { Warning } from './Warning';
|
|
15
|
-
import { WebhookSampleRequest } from './WebhookSampleRequest';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface WebhookSampleRequestResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface WebhookSampleRequestResponse {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {ModelError}
|
|
25
|
-
* @memberof WebhookSampleRequestResponse
|
|
26
|
-
*/
|
|
27
|
-
error?: ModelError;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {ResponseMetadata}
|
|
31
|
-
* @memberof WebhookSampleRequestResponse
|
|
32
|
-
*/
|
|
33
|
-
metadata?: ResponseMetadata;
|
|
34
|
-
/**
|
|
35
|
-
* Indicates if API call was successful
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof WebhookSampleRequestResponse
|
|
38
|
-
*/
|
|
39
|
-
success?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Warning}
|
|
43
|
-
* @memberof WebhookSampleRequestResponse
|
|
44
|
-
*/
|
|
45
|
-
warning?: Warning;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {WebhookSampleRequest}
|
|
49
|
-
* @memberof WebhookSampleRequestResponse
|
|
50
|
-
*/
|
|
51
|
-
webhook_sample_request?: WebhookSampleRequest;
|
|
52
|
-
}
|
|
53
|
-
export declare function WebhookSampleRequestResponseFromJSON(json: any): WebhookSampleRequestResponse;
|
|
54
|
-
export declare function WebhookSampleRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSampleRequestResponse;
|
|
55
|
-
export declare function WebhookSampleRequestResponseToJSON(value?: WebhookSampleRequestResponse | null): any;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* UltraCart Rest API V2
|
|
5
|
-
* UltraCart REST API Version 2
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
* Contact: support@ultracart.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
|
-
import { exists, mapValues } from '../runtime';
|
|
16
|
-
import {
|
|
17
|
-
HTTPHeader,
|
|
18
|
-
HTTPHeaderFromJSON,
|
|
19
|
-
HTTPHeaderFromJSONTyped,
|
|
20
|
-
HTTPHeaderToJSON,
|
|
21
|
-
} from './HTTPHeader';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface WebhookSampleRequest
|
|
27
|
-
*/
|
|
28
|
-
export interface WebhookSampleRequest {
|
|
29
|
-
/**
|
|
30
|
-
* Request
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof WebhookSampleRequest
|
|
33
|
-
*/
|
|
34
|
-
request?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Request headers
|
|
37
|
-
* @type {Array<HTTPHeader>}
|
|
38
|
-
* @memberof WebhookSampleRequest
|
|
39
|
-
*/
|
|
40
|
-
request_headers?: Array<HTTPHeader>;
|
|
41
|
-
/**
|
|
42
|
-
* Request id
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof WebhookSampleRequest
|
|
45
|
-
*/
|
|
46
|
-
request_id?: string;
|
|
47
|
-
/**
|
|
48
|
-
* URI to send request to
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof WebhookSampleRequest
|
|
51
|
-
*/
|
|
52
|
-
uri?: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function WebhookSampleRequestFromJSON(json: any): WebhookSampleRequest {
|
|
56
|
-
return WebhookSampleRequestFromJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function WebhookSampleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSampleRequest {
|
|
60
|
-
if ((json === undefined) || (json === null)) {
|
|
61
|
-
return json;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'request': !exists(json, 'request') ? undefined : json['request'],
|
|
66
|
-
'request_headers': !exists(json, 'request_headers') ? undefined : ((json['request_headers'] as Array<any>).map(HTTPHeaderFromJSON)),
|
|
67
|
-
'request_id': !exists(json, 'request_id') ? undefined : json['request_id'],
|
|
68
|
-
'uri': !exists(json, 'uri') ? undefined : json['uri'],
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function WebhookSampleRequestToJSON(value?: WebhookSampleRequest | null): any {
|
|
73
|
-
if (value === undefined) {
|
|
74
|
-
return undefined;
|
|
75
|
-
}
|
|
76
|
-
if (value === null) {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
|
|
81
|
-
'request': value.request,
|
|
82
|
-
'request_headers': value.request_headers === undefined ? undefined : ((value.request_headers as Array<any>).map(HTTPHeaderToJSON)),
|
|
83
|
-
'request_id': value.request_id,
|
|
84
|
-
'uri': value.uri,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|