ultracart_rest_api_v2_typescript 4.1.126 → 4.1.127
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/README.md +3 -2
- package/dist/apis/ConversationEmbedApi.js +3 -3
- package/dist/apis/OauthApi.js +3 -3
- package/dist/apis/StorefrontApi.js +1 -1
- package/dist/models/OrderSummary.d.ts +12 -0
- package/dist/models/OrderSummary.js +4 -0
- package/package.json +1 -1
- package/src/apis/ConversationEmbedApi.ts +3 -3
- package/src/apis/OauthApi.ts +3 -3
- package/src/apis/StorefrontApi.ts +1 -1
- package/src/models/OrderSummary.ts +16 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.127
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.127 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.127 | 08/13/2026 | added arbitrary discounts to order creation for historical imports |
|
|
88
89
|
| 4.1.126 | 08/10/2026 | oauth - add /oauth/me method to assist application in indentifying the connected account |
|
|
89
90
|
| 4.1.125 | 08/06/2026 | order api - ability to query by bin and last 4 in unlimited scenarios for chargeback order association |
|
|
90
91
|
| 4.1.124 | 08/04/2026 | customer - method to remove customer profile from email suppression |
|
|
@@ -100,7 +100,7 @@ var ConversationEmbedApi = /** @class */ (function (_super) {
|
|
|
100
100
|
// oauth required
|
|
101
101
|
_a = headerParameters;
|
|
102
102
|
_b = "Authorization";
|
|
103
|
-
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
103
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"])];
|
|
104
104
|
case 1:
|
|
105
105
|
// oauth required
|
|
106
106
|
_a[_b] = _c.sent();
|
|
@@ -181,7 +181,7 @@ var ConversationEmbedApi = /** @class */ (function (_super) {
|
|
|
181
181
|
// oauth required
|
|
182
182
|
_a = headerParameters;
|
|
183
183
|
_b = "Authorization";
|
|
184
|
-
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
184
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"])];
|
|
185
185
|
case 1:
|
|
186
186
|
// oauth required
|
|
187
187
|
_a[_b] = _c.sent();
|
|
@@ -262,7 +262,7 @@ var ConversationEmbedApi = /** @class */ (function (_super) {
|
|
|
262
262
|
// oauth required
|
|
263
263
|
_a = headerParameters;
|
|
264
264
|
_b = "Authorization";
|
|
265
|
-
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
265
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"])];
|
|
266
266
|
case 1:
|
|
267
267
|
// oauth required
|
|
268
268
|
_a[_b] = _c.sent();
|
package/dist/apis/OauthApi.js
CHANGED
|
@@ -100,7 +100,7 @@ var OauthApi = /** @class */ (function (_super) {
|
|
|
100
100
|
// oauth required
|
|
101
101
|
_a = headerParameters;
|
|
102
102
|
_b = "Authorization";
|
|
103
|
-
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
103
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"])];
|
|
104
104
|
case 1:
|
|
105
105
|
// oauth required
|
|
106
106
|
_a[_b] = _c.sent();
|
|
@@ -195,7 +195,7 @@ var OauthApi = /** @class */ (function (_super) {
|
|
|
195
195
|
// oauth required
|
|
196
196
|
_a = headerParameters;
|
|
197
197
|
_b = "Authorization";
|
|
198
|
-
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
198
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"])];
|
|
199
199
|
case 1:
|
|
200
200
|
// oauth required
|
|
201
201
|
_a[_b] = _c.sent();
|
|
@@ -328,7 +328,7 @@ var OauthApi = /** @class */ (function (_super) {
|
|
|
328
328
|
// oauth required
|
|
329
329
|
_a = headerParameters;
|
|
330
330
|
_b = "Authorization";
|
|
331
|
-
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
331
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"])];
|
|
332
332
|
case 1:
|
|
333
333
|
// oauth required
|
|
334
334
|
_a[_b] = _c.sent();
|
|
@@ -7357,7 +7357,7 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
7357
7357
|
// oauth required
|
|
7358
7358
|
_a = headerParameters;
|
|
7359
7359
|
_b = "Authorization";
|
|
7360
|
-
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
7360
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"])];
|
|
7361
7361
|
case 1:
|
|
7362
7362
|
// oauth required
|
|
7363
7363
|
_a[_b] = _c.sent();
|
|
@@ -64,6 +64,18 @@ export interface OrderSummary {
|
|
|
64
64
|
* @memberof OrderSummary
|
|
65
65
|
*/
|
|
66
66
|
arbitrary_shipping_handling_total?: Currency;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Currency}
|
|
70
|
+
* @memberof OrderSummary
|
|
71
|
+
*/
|
|
72
|
+
arbitrary_subtotal_discount?: Currency;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Currency}
|
|
76
|
+
* @memberof OrderSummary
|
|
77
|
+
*/
|
|
78
|
+
arbitrary_taxable_subtotal_discount?: Currency;
|
|
67
79
|
/**
|
|
68
80
|
*
|
|
69
81
|
* @type {Currency}
|
|
@@ -41,6 +41,8 @@ function OrderSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'actual_profit_review': !(0, runtime_1.exists)(json, 'actual_profit_review') ? undefined : json['actual_profit_review'],
|
|
42
42
|
'actual_shipping': !(0, runtime_1.exists)(json, 'actual_shipping') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['actual_shipping']),
|
|
43
43
|
'arbitrary_shipping_handling_total': !(0, runtime_1.exists)(json, 'arbitrary_shipping_handling_total') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_shipping_handling_total']),
|
|
44
|
+
'arbitrary_subtotal_discount': !(0, runtime_1.exists)(json, 'arbitrary_subtotal_discount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_subtotal_discount']),
|
|
45
|
+
'arbitrary_taxable_subtotal_discount': !(0, runtime_1.exists)(json, 'arbitrary_taxable_subtotal_discount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['arbitrary_taxable_subtotal_discount']),
|
|
44
46
|
'health_benefit_card_amount': !(0, runtime_1.exists)(json, 'health_benefit_card_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_amount']),
|
|
45
47
|
'health_benefit_card_refunded': !(0, runtime_1.exists)(json, 'health_benefit_card_refunded') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['health_benefit_card_refunded']),
|
|
46
48
|
'internal_gift_certificate_amount': !(0, runtime_1.exists)(json, 'internal_gift_certificate_amount') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['internal_gift_certificate_amount']),
|
|
@@ -78,6 +80,8 @@ function OrderSummaryToJSON(value) {
|
|
|
78
80
|
'actual_profit_review': value.actual_profit_review,
|
|
79
81
|
'actual_shipping': (0, Currency_1.CurrencyToJSON)(value.actual_shipping),
|
|
80
82
|
'arbitrary_shipping_handling_total': (0, Currency_1.CurrencyToJSON)(value.arbitrary_shipping_handling_total),
|
|
83
|
+
'arbitrary_subtotal_discount': (0, Currency_1.CurrencyToJSON)(value.arbitrary_subtotal_discount),
|
|
84
|
+
'arbitrary_taxable_subtotal_discount': (0, Currency_1.CurrencyToJSON)(value.arbitrary_taxable_subtotal_discount),
|
|
81
85
|
'health_benefit_card_amount': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_amount),
|
|
82
86
|
'health_benefit_card_refunded': (0, Currency_1.CurrencyToJSON)(value.health_benefit_card_refunded),
|
|
83
87
|
'internal_gift_certificate_amount': (0, Currency_1.CurrencyToJSON)(value.internal_gift_certificate_amount),
|
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@ export class ConversationEmbedApi extends runtime.BaseAPI implements Conversatio
|
|
|
145
145
|
|
|
146
146
|
if (this.configuration && this.configuration.accessToken) {
|
|
147
147
|
// oauth required
|
|
148
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
148
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"]);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -216,7 +216,7 @@ export class ConversationEmbedApi extends runtime.BaseAPI implements Conversatio
|
|
|
216
216
|
|
|
217
217
|
if (this.configuration && this.configuration.accessToken) {
|
|
218
218
|
// oauth required
|
|
219
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
219
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"]);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -287,7 +287,7 @@ export class ConversationEmbedApi extends runtime.BaseAPI implements Conversatio
|
|
|
287
287
|
|
|
288
288
|
if (this.configuration && this.configuration.accessToken) {
|
|
289
289
|
// oauth required
|
|
290
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
290
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"]);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
if (this.configuration && this.configuration.apiKey) {
|
package/src/apis/OauthApi.ts
CHANGED
|
@@ -155,7 +155,7 @@ export class OauthApi extends runtime.BaseAPI implements OauthApiInterface {
|
|
|
155
155
|
|
|
156
156
|
if (this.configuration && this.configuration.accessToken) {
|
|
157
157
|
// oauth required
|
|
158
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
158
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"]);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -243,7 +243,7 @@ export class OauthApi extends runtime.BaseAPI implements OauthApiInterface {
|
|
|
243
243
|
|
|
244
244
|
if (this.configuration && this.configuration.accessToken) {
|
|
245
245
|
// oauth required
|
|
246
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
246
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"]);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -347,7 +347,7 @@ export class OauthApi extends runtime.BaseAPI implements OauthApiInterface {
|
|
|
347
347
|
|
|
348
348
|
if (this.configuration && this.configuration.accessToken) {
|
|
349
349
|
// oauth required
|
|
350
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
350
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"]);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -9941,7 +9941,7 @@ export class StorefrontApi extends runtime.BaseAPI implements StorefrontApiInter
|
|
|
9941
9941
|
|
|
9942
9942
|
if (this.configuration && this.configuration.accessToken) {
|
|
9943
9943
|
// oauth required
|
|
9944
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "
|
|
9944
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["affiliate_read", "affiliate_write", "auto_order_read", "auto_order_write", "channel_partner_read", "channel_partner_write", "checkout_read", "checkout_write", "configuration_read", "configuration_write", "conversation_read", "conversation_write", "coupon_read", "coupon_write", "customer_read", "customer_write", "fraud_read", "fraud_write", "fulfillment_read", "fulfillment_write", "gift_certificate_read", "gift_certificate_write", "integration_log_read", "integration_log_write", "order_read", "order_write", "item_read", "item_write", "storefront_read", "storefront_write", "tax_read", "tax_write", "webhook_read", "webhook_write", "ultrabooks_read", "ultrabooks_write", "user_read", "user_write", "workflow_read", "workflow_write"]);
|
|
9945
9945
|
}
|
|
9946
9946
|
|
|
9947
9947
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -74,6 +74,18 @@ export interface OrderSummary {
|
|
|
74
74
|
* @memberof OrderSummary
|
|
75
75
|
*/
|
|
76
76
|
arbitrary_shipping_handling_total?: Currency;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Currency}
|
|
80
|
+
* @memberof OrderSummary
|
|
81
|
+
*/
|
|
82
|
+
arbitrary_subtotal_discount?: Currency;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Currency}
|
|
86
|
+
* @memberof OrderSummary
|
|
87
|
+
*/
|
|
88
|
+
arbitrary_taxable_subtotal_discount?: Currency;
|
|
77
89
|
/**
|
|
78
90
|
*
|
|
79
91
|
* @type {Currency}
|
|
@@ -213,6 +225,8 @@ export function OrderSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
213
225
|
'actual_profit_review': !exists(json, 'actual_profit_review') ? undefined : json['actual_profit_review'],
|
|
214
226
|
'actual_shipping': !exists(json, 'actual_shipping') ? undefined : CurrencyFromJSON(json['actual_shipping']),
|
|
215
227
|
'arbitrary_shipping_handling_total': !exists(json, 'arbitrary_shipping_handling_total') ? undefined : CurrencyFromJSON(json['arbitrary_shipping_handling_total']),
|
|
228
|
+
'arbitrary_subtotal_discount': !exists(json, 'arbitrary_subtotal_discount') ? undefined : CurrencyFromJSON(json['arbitrary_subtotal_discount']),
|
|
229
|
+
'arbitrary_taxable_subtotal_discount': !exists(json, 'arbitrary_taxable_subtotal_discount') ? undefined : CurrencyFromJSON(json['arbitrary_taxable_subtotal_discount']),
|
|
216
230
|
'health_benefit_card_amount': !exists(json, 'health_benefit_card_amount') ? undefined : CurrencyFromJSON(json['health_benefit_card_amount']),
|
|
217
231
|
'health_benefit_card_refunded': !exists(json, 'health_benefit_card_refunded') ? undefined : CurrencyFromJSON(json['health_benefit_card_refunded']),
|
|
218
232
|
'internal_gift_certificate_amount': !exists(json, 'internal_gift_certificate_amount') ? undefined : CurrencyFromJSON(json['internal_gift_certificate_amount']),
|
|
@@ -251,6 +265,8 @@ export function OrderSummaryToJSON(value?: OrderSummary | null): any {
|
|
|
251
265
|
'actual_profit_review': value.actual_profit_review,
|
|
252
266
|
'actual_shipping': CurrencyToJSON(value.actual_shipping),
|
|
253
267
|
'arbitrary_shipping_handling_total': CurrencyToJSON(value.arbitrary_shipping_handling_total),
|
|
268
|
+
'arbitrary_subtotal_discount': CurrencyToJSON(value.arbitrary_subtotal_discount),
|
|
269
|
+
'arbitrary_taxable_subtotal_discount': CurrencyToJSON(value.arbitrary_taxable_subtotal_discount),
|
|
254
270
|
'health_benefit_card_amount': CurrencyToJSON(value.health_benefit_card_amount),
|
|
255
271
|
'health_benefit_card_refunded': CurrencyToJSON(value.health_benefit_card_refunded),
|
|
256
272
|
'internal_gift_certificate_amount': CurrencyToJSON(value.internal_gift_certificate_amount),
|