ultracart_rest_api_v2_typescript 4.1.126 → 4.1.128
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 +4 -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/ChannelPartnerOrder.d.ts +12 -0
- package/dist/models/ChannelPartnerOrder.js +4 -0
- 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/ChannelPartnerOrder.ts +16 -0
- 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.128
|
|
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.128 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.128 | 08/13/2026 | channel partner - added arbitrary discount to ChannelPartnerOrder |
|
|
89
|
+
| 4.1.127 | 08/13/2026 | added arbitrary discounts to order creation for historical imports |
|
|
88
90
|
| 4.1.126 | 08/10/2026 | oauth - add /oauth/me method to assist application in indentifying the connected account |
|
|
89
91
|
| 4.1.125 | 08/06/2026 | order api - ability to query by bin and last 4 in unlimited scenarios for chargeback order association |
|
|
90
92
|
| 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();
|
|
@@ -41,6 +41,12 @@ export interface ChannelPartnerOrder {
|
|
|
41
41
|
* @memberof ChannelPartnerOrder
|
|
42
42
|
*/
|
|
43
43
|
arbitrary_shipping_handling_total?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Arbitrary subtotal discount for overriding the calculated subtotal discount. Send the gross price in the item arbitrary unit cost and the discount here.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ChannelPartnerOrder
|
|
48
|
+
*/
|
|
49
|
+
arbitrary_subtotal_discount?: number;
|
|
44
50
|
/**
|
|
45
51
|
* Arbitrary tax for overriding calculated taxes
|
|
46
52
|
* @type {number}
|
|
@@ -59,6 +65,12 @@ export interface ChannelPartnerOrder {
|
|
|
59
65
|
* @memberof ChannelPartnerOrder
|
|
60
66
|
*/
|
|
61
67
|
arbitrary_taxable_subtotal?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Arbitrary taxable subtotal discount. If an arbitrary subtotal discount is supplied without this field, the arbitrary subtotal discount is used for both.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof ChannelPartnerOrder
|
|
72
|
+
*/
|
|
73
|
+
arbitrary_taxable_subtotal_discount?: number;
|
|
62
74
|
/**
|
|
63
75
|
* If true any matching customer profile based on email is associated with this order
|
|
64
76
|
* @type {boolean}
|
|
@@ -70,9 +70,11 @@ function ChannelPartnerOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
70
|
'affiliate_id': !(0, runtime_1.exists)(json, 'affiliate_id') ? undefined : json['affiliate_id'],
|
|
71
71
|
'affiliate_sub_id': !(0, runtime_1.exists)(json, 'affiliate_sub_id') ? undefined : json['affiliate_sub_id'],
|
|
72
72
|
'arbitrary_shipping_handling_total': !(0, runtime_1.exists)(json, 'arbitrary_shipping_handling_total') ? undefined : json['arbitrary_shipping_handling_total'],
|
|
73
|
+
'arbitrary_subtotal_discount': !(0, runtime_1.exists)(json, 'arbitrary_subtotal_discount') ? undefined : json['arbitrary_subtotal_discount'],
|
|
73
74
|
'arbitrary_tax': !(0, runtime_1.exists)(json, 'arbitrary_tax') ? undefined : json['arbitrary_tax'],
|
|
74
75
|
'arbitrary_tax_rate': !(0, runtime_1.exists)(json, 'arbitrary_tax_rate') ? undefined : json['arbitrary_tax_rate'],
|
|
75
76
|
'arbitrary_taxable_subtotal': !(0, runtime_1.exists)(json, 'arbitrary_taxable_subtotal') ? undefined : json['arbitrary_taxable_subtotal'],
|
|
77
|
+
'arbitrary_taxable_subtotal_discount': !(0, runtime_1.exists)(json, 'arbitrary_taxable_subtotal_discount') ? undefined : json['arbitrary_taxable_subtotal_discount'],
|
|
76
78
|
'associate_with_customer_profile_if_present': !(0, runtime_1.exists)(json, 'associate_with_customer_profile_if_present') ? undefined : json['associate_with_customer_profile_if_present'],
|
|
77
79
|
'auto_approve_purchase_order': !(0, runtime_1.exists)(json, 'auto_approve_purchase_order') ? undefined : json['auto_approve_purchase_order'],
|
|
78
80
|
'billto_address1': !(0, runtime_1.exists)(json, 'billto_address1') ? undefined : json['billto_address1'],
|
|
@@ -175,9 +177,11 @@ function ChannelPartnerOrderToJSON(value) {
|
|
|
175
177
|
'affiliate_id': value.affiliate_id,
|
|
176
178
|
'affiliate_sub_id': value.affiliate_sub_id,
|
|
177
179
|
'arbitrary_shipping_handling_total': value.arbitrary_shipping_handling_total,
|
|
180
|
+
'arbitrary_subtotal_discount': value.arbitrary_subtotal_discount,
|
|
178
181
|
'arbitrary_tax': value.arbitrary_tax,
|
|
179
182
|
'arbitrary_tax_rate': value.arbitrary_tax_rate,
|
|
180
183
|
'arbitrary_taxable_subtotal': value.arbitrary_taxable_subtotal,
|
|
184
|
+
'arbitrary_taxable_subtotal_discount': value.arbitrary_taxable_subtotal_discount,
|
|
181
185
|
'associate_with_customer_profile_if_present': value.associate_with_customer_profile_if_present,
|
|
182
186
|
'auto_approve_purchase_order': value.auto_approve_purchase_order,
|
|
183
187
|
'billto_address1': value.billto_address1,
|
|
@@ -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) {
|
|
@@ -56,6 +56,12 @@ export interface ChannelPartnerOrder {
|
|
|
56
56
|
* @memberof ChannelPartnerOrder
|
|
57
57
|
*/
|
|
58
58
|
arbitrary_shipping_handling_total?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Arbitrary subtotal discount for overriding the calculated subtotal discount. Send the gross price in the item arbitrary unit cost and the discount here.
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof ChannelPartnerOrder
|
|
63
|
+
*/
|
|
64
|
+
arbitrary_subtotal_discount?: number;
|
|
59
65
|
/**
|
|
60
66
|
* Arbitrary tax for overriding calculated taxes
|
|
61
67
|
* @type {number}
|
|
@@ -74,6 +80,12 @@ export interface ChannelPartnerOrder {
|
|
|
74
80
|
* @memberof ChannelPartnerOrder
|
|
75
81
|
*/
|
|
76
82
|
arbitrary_taxable_subtotal?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Arbitrary taxable subtotal discount. If an arbitrary subtotal discount is supplied without this field, the arbitrary subtotal discount is used for both.
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof ChannelPartnerOrder
|
|
87
|
+
*/
|
|
88
|
+
arbitrary_taxable_subtotal_discount?: number;
|
|
77
89
|
/**
|
|
78
90
|
* If true any matching customer profile based on email is associated with this order
|
|
79
91
|
* @type {boolean}
|
|
@@ -662,9 +674,11 @@ export function ChannelPartnerOrderFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
662
674
|
'affiliate_id': !exists(json, 'affiliate_id') ? undefined : json['affiliate_id'],
|
|
663
675
|
'affiliate_sub_id': !exists(json, 'affiliate_sub_id') ? undefined : json['affiliate_sub_id'],
|
|
664
676
|
'arbitrary_shipping_handling_total': !exists(json, 'arbitrary_shipping_handling_total') ? undefined : json['arbitrary_shipping_handling_total'],
|
|
677
|
+
'arbitrary_subtotal_discount': !exists(json, 'arbitrary_subtotal_discount') ? undefined : json['arbitrary_subtotal_discount'],
|
|
665
678
|
'arbitrary_tax': !exists(json, 'arbitrary_tax') ? undefined : json['arbitrary_tax'],
|
|
666
679
|
'arbitrary_tax_rate': !exists(json, 'arbitrary_tax_rate') ? undefined : json['arbitrary_tax_rate'],
|
|
667
680
|
'arbitrary_taxable_subtotal': !exists(json, 'arbitrary_taxable_subtotal') ? undefined : json['arbitrary_taxable_subtotal'],
|
|
681
|
+
'arbitrary_taxable_subtotal_discount': !exists(json, 'arbitrary_taxable_subtotal_discount') ? undefined : json['arbitrary_taxable_subtotal_discount'],
|
|
668
682
|
'associate_with_customer_profile_if_present': !exists(json, 'associate_with_customer_profile_if_present') ? undefined : json['associate_with_customer_profile_if_present'],
|
|
669
683
|
'auto_approve_purchase_order': !exists(json, 'auto_approve_purchase_order') ? undefined : json['auto_approve_purchase_order'],
|
|
670
684
|
'billto_address1': !exists(json, 'billto_address1') ? undefined : json['billto_address1'],
|
|
@@ -768,9 +782,11 @@ export function ChannelPartnerOrderToJSON(value?: ChannelPartnerOrder | null): a
|
|
|
768
782
|
'affiliate_id': value.affiliate_id,
|
|
769
783
|
'affiliate_sub_id': value.affiliate_sub_id,
|
|
770
784
|
'arbitrary_shipping_handling_total': value.arbitrary_shipping_handling_total,
|
|
785
|
+
'arbitrary_subtotal_discount': value.arbitrary_subtotal_discount,
|
|
771
786
|
'arbitrary_tax': value.arbitrary_tax,
|
|
772
787
|
'arbitrary_tax_rate': value.arbitrary_tax_rate,
|
|
773
788
|
'arbitrary_taxable_subtotal': value.arbitrary_taxable_subtotal,
|
|
789
|
+
'arbitrary_taxable_subtotal_discount': value.arbitrary_taxable_subtotal_discount,
|
|
774
790
|
'associate_with_customer_profile_if_present': value.associate_with_customer_profile_if_present,
|
|
775
791
|
'auto_approve_purchase_order': value.auto_approve_purchase_order,
|
|
776
792
|
'billto_address1': value.billto_address1,
|
|
@@ -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),
|