ultracart_rest_api_v2_typescript 4.1.69 → 4.1.71
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 +1 -0
- package/README.md +4 -2
- package/dist/models/ConversationPbxQueue.d.ts +72 -0
- package/dist/models/ConversationPbxQueue.js +24 -0
- package/dist/models/Coupon.d.ts +7 -0
- package/dist/models/Coupon.js +3 -0
- package/dist/models/CouponPercentOffItemsWithMinimumItemAmount.d.ts +73 -0
- package/dist/models/CouponPercentOffItemsWithMinimumItemAmount.js +64 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationPbxQueue.ts +96 -0
- package/src/models/Coupon.ts +14 -0
- package/src/models/CouponPercentOffItemsWithMinimumItemAmount.ts +123 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -351,6 +351,7 @@ src/models/CouponPercentOffItemWithItemsQuantityPurchase.ts
|
|
|
351
351
|
src/models/CouponPercentOffItems.ts
|
|
352
352
|
src/models/CouponPercentOffItemsAndFreeShipping.ts
|
|
353
353
|
src/models/CouponPercentOffItemsWithItemsPurchase.ts
|
|
354
|
+
src/models/CouponPercentOffItemsWithMinimumItemAmount.ts
|
|
354
355
|
src/models/CouponPercentOffMsrpItems.ts
|
|
355
356
|
src/models/CouponPercentOffRetailPriceItems.ts
|
|
356
357
|
src/models/CouponPercentOffShipping.ts
|
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.71
|
|
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.71 --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.71 | 04/06/2026 | coupons - new percent_off_items_with_minimum_item_amount |
|
|
89
|
+
| 4.1.70 | 04/03/2026 | conversation pbx - queue callback settings |
|
|
88
90
|
| 4.1.69 | 03/31/2026 | conversations - user specific audio methods |
|
|
89
91
|
| 4.1.68 | 03/31/2026 | oauth - device support |
|
|
90
92
|
| 4.1.67 | 02/24/2026 | customer activity - sms and sms_stop fields added |
|
|
@@ -40,6 +40,78 @@ export interface ConversationPbxQueue {
|
|
|
40
40
|
* @memberof ConversationPbxQueue
|
|
41
41
|
*/
|
|
42
42
|
automatic_coach_agent_uuid?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Custom audio file UUID for the callback offer prompt
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ConversationPbxQueue
|
|
47
|
+
*/
|
|
48
|
+
callback_announce_audio_uuid?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Custom TTS text for the callback offer prompt
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ConversationPbxQueue
|
|
53
|
+
*/
|
|
54
|
+
callback_announce_say?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Custom audio file UUID for the callback confirmation message
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ConversationPbxQueue
|
|
59
|
+
*/
|
|
60
|
+
callback_confirm_audio_uuid?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Custom TTS text for the callback confirmation message
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ConversationPbxQueue
|
|
65
|
+
*/
|
|
66
|
+
callback_confirm_say?: string;
|
|
67
|
+
/**
|
|
68
|
+
* If true, the callback option is enabled for this queue
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof ConversationPbxQueue
|
|
71
|
+
*/
|
|
72
|
+
callback_enabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* When true, only offer callbacks during business hours
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof ConversationPbxQueue
|
|
77
|
+
*/
|
|
78
|
+
callback_hours_only?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Maximum number of times the system will attempt to call the customer back
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof ConversationPbxQueue
|
|
83
|
+
*/
|
|
84
|
+
callback_max_attempts?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Maximum number of times the callback option is offered to a caller per call
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof ConversationPbxQueue
|
|
89
|
+
*/
|
|
90
|
+
callback_max_offers?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Maximum number of pending callbacks allowed per queue
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof ConversationPbxQueue
|
|
95
|
+
*/
|
|
96
|
+
callback_max_pending?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Seconds a caller must wait in queue before the callback option is offered
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof ConversationPbxQueue
|
|
101
|
+
*/
|
|
102
|
+
callback_offer_after_seconds?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Seconds between repeat callback offers to the same caller
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof ConversationPbxQueue
|
|
107
|
+
*/
|
|
108
|
+
callback_offer_interval_seconds?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Delay in seconds between callback retry attempts
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof ConversationPbxQueue
|
|
113
|
+
*/
|
|
114
|
+
callback_retry_delay_seconds?: number;
|
|
43
115
|
/**
|
|
44
116
|
* Conversation Pbx Queue unique identifier
|
|
45
117
|
* @type {string}
|
|
@@ -59,6 +59,18 @@ function ConversationPbxQueueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'ai_timeout_seconds': !(0, runtime_1.exists)(json, 'ai_timeout_seconds') ? undefined : json['ai_timeout_seconds'],
|
|
60
60
|
'announce_queue_position': !(0, runtime_1.exists)(json, 'announce_queue_position') ? undefined : json['announce_queue_position'],
|
|
61
61
|
'automatic_coach_agent_uuid': !(0, runtime_1.exists)(json, 'automatic_coach_agent_uuid') ? undefined : json['automatic_coach_agent_uuid'],
|
|
62
|
+
'callback_announce_audio_uuid': !(0, runtime_1.exists)(json, 'callback_announce_audio_uuid') ? undefined : json['callback_announce_audio_uuid'],
|
|
63
|
+
'callback_announce_say': !(0, runtime_1.exists)(json, 'callback_announce_say') ? undefined : json['callback_announce_say'],
|
|
64
|
+
'callback_confirm_audio_uuid': !(0, runtime_1.exists)(json, 'callback_confirm_audio_uuid') ? undefined : json['callback_confirm_audio_uuid'],
|
|
65
|
+
'callback_confirm_say': !(0, runtime_1.exists)(json, 'callback_confirm_say') ? undefined : json['callback_confirm_say'],
|
|
66
|
+
'callback_enabled': !(0, runtime_1.exists)(json, 'callback_enabled') ? undefined : json['callback_enabled'],
|
|
67
|
+
'callback_hours_only': !(0, runtime_1.exists)(json, 'callback_hours_only') ? undefined : json['callback_hours_only'],
|
|
68
|
+
'callback_max_attempts': !(0, runtime_1.exists)(json, 'callback_max_attempts') ? undefined : json['callback_max_attempts'],
|
|
69
|
+
'callback_max_offers': !(0, runtime_1.exists)(json, 'callback_max_offers') ? undefined : json['callback_max_offers'],
|
|
70
|
+
'callback_max_pending': !(0, runtime_1.exists)(json, 'callback_max_pending') ? undefined : json['callback_max_pending'],
|
|
71
|
+
'callback_offer_after_seconds': !(0, runtime_1.exists)(json, 'callback_offer_after_seconds') ? undefined : json['callback_offer_after_seconds'],
|
|
72
|
+
'callback_offer_interval_seconds': !(0, runtime_1.exists)(json, 'callback_offer_interval_seconds') ? undefined : json['callback_offer_interval_seconds'],
|
|
73
|
+
'callback_retry_delay_seconds': !(0, runtime_1.exists)(json, 'callback_retry_delay_seconds') ? undefined : json['callback_retry_delay_seconds'],
|
|
62
74
|
'conversation_pbx_queue_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_queue_uuid') ? undefined : json['conversation_pbx_queue_uuid'],
|
|
63
75
|
'conversation_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'conversation_voicemail_mailbox_uuid') ? undefined : json['conversation_voicemail_mailbox_uuid'],
|
|
64
76
|
'hold_conversation_pbx_audio_uuid': !(0, runtime_1.exists)(json, 'hold_conversation_pbx_audio_uuid') ? undefined : json['hold_conversation_pbx_audio_uuid'],
|
|
@@ -94,6 +106,18 @@ function ConversationPbxQueueToJSON(value) {
|
|
|
94
106
|
'ai_timeout_seconds': value.ai_timeout_seconds,
|
|
95
107
|
'announce_queue_position': value.announce_queue_position,
|
|
96
108
|
'automatic_coach_agent_uuid': value.automatic_coach_agent_uuid,
|
|
109
|
+
'callback_announce_audio_uuid': value.callback_announce_audio_uuid,
|
|
110
|
+
'callback_announce_say': value.callback_announce_say,
|
|
111
|
+
'callback_confirm_audio_uuid': value.callback_confirm_audio_uuid,
|
|
112
|
+
'callback_confirm_say': value.callback_confirm_say,
|
|
113
|
+
'callback_enabled': value.callback_enabled,
|
|
114
|
+
'callback_hours_only': value.callback_hours_only,
|
|
115
|
+
'callback_max_attempts': value.callback_max_attempts,
|
|
116
|
+
'callback_max_offers': value.callback_max_offers,
|
|
117
|
+
'callback_max_pending': value.callback_max_pending,
|
|
118
|
+
'callback_offer_after_seconds': value.callback_offer_after_seconds,
|
|
119
|
+
'callback_offer_interval_seconds': value.callback_offer_interval_seconds,
|
|
120
|
+
'callback_retry_delay_seconds': value.callback_retry_delay_seconds,
|
|
97
121
|
'conversation_pbx_queue_uuid': value.conversation_pbx_queue_uuid,
|
|
98
122
|
'conversation_voicemail_mailbox_uuid': value.conversation_voicemail_mailbox_uuid,
|
|
99
123
|
'hold_conversation_pbx_audio_uuid': value.hold_conversation_pbx_audio_uuid,
|
package/dist/models/Coupon.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ import { CouponPercentOffItemWithItemsQuantityPurchase } from './CouponPercentOf
|
|
|
43
43
|
import { CouponPercentOffItems } from './CouponPercentOffItems';
|
|
44
44
|
import { CouponPercentOffItemsAndFreeShipping } from './CouponPercentOffItemsAndFreeShipping';
|
|
45
45
|
import { CouponPercentOffItemsWithItemsPurchase } from './CouponPercentOffItemsWithItemsPurchase';
|
|
46
|
+
import { CouponPercentOffItemsWithMinimumItemAmount } from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
46
47
|
import { CouponPercentOffMsrpItems } from './CouponPercentOffMsrpItems';
|
|
47
48
|
import { CouponPercentOffRetailPriceItems } from './CouponPercentOffRetailPriceItems';
|
|
48
49
|
import { CouponPercentOffShipping } from './CouponPercentOffShipping';
|
|
@@ -334,6 +335,12 @@ export interface Coupon {
|
|
|
334
335
|
* @memberof Coupon
|
|
335
336
|
*/
|
|
336
337
|
percent_off_items_with_items_purchase?: CouponPercentOffItemsWithItemsPurchase;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {CouponPercentOffItemsWithMinimumItemAmount}
|
|
341
|
+
* @memberof Coupon
|
|
342
|
+
*/
|
|
343
|
+
percent_off_items_with_minimum_item_amount?: CouponPercentOffItemsWithMinimumItemAmount;
|
|
337
344
|
/**
|
|
338
345
|
*
|
|
339
346
|
* @type {CouponPercentOffMsrpItems}
|
package/dist/models/Coupon.js
CHANGED
|
@@ -49,6 +49,7 @@ var CouponPercentOffItemWithItemsQuantityPurchase_1 = require("./CouponPercentOf
|
|
|
49
49
|
var CouponPercentOffItems_1 = require("./CouponPercentOffItems");
|
|
50
50
|
var CouponPercentOffItemsAndFreeShipping_1 = require("./CouponPercentOffItemsAndFreeShipping");
|
|
51
51
|
var CouponPercentOffItemsWithItemsPurchase_1 = require("./CouponPercentOffItemsWithItemsPurchase");
|
|
52
|
+
var CouponPercentOffItemsWithMinimumItemAmount_1 = require("./CouponPercentOffItemsWithMinimumItemAmount");
|
|
52
53
|
var CouponPercentOffMsrpItems_1 = require("./CouponPercentOffMsrpItems");
|
|
53
54
|
var CouponPercentOffRetailPriceItems_1 = require("./CouponPercentOffRetailPriceItems");
|
|
54
55
|
var CouponPercentOffShipping_1 = require("./CouponPercentOffShipping");
|
|
@@ -136,6 +137,7 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
136
137
|
'percent_off_items': !(0, runtime_1.exists)(json, 'percent_off_items') ? undefined : (0, CouponPercentOffItems_1.CouponPercentOffItemsFromJSON)(json['percent_off_items']),
|
|
137
138
|
'percent_off_items_and_free_shipping': !(0, runtime_1.exists)(json, 'percent_off_items_and_free_shipping') ? undefined : (0, CouponPercentOffItemsAndFreeShipping_1.CouponPercentOffItemsAndFreeShippingFromJSON)(json['percent_off_items_and_free_shipping']),
|
|
138
139
|
'percent_off_items_with_items_purchase': !(0, runtime_1.exists)(json, 'percent_off_items_with_items_purchase') ? undefined : (0, CouponPercentOffItemsWithItemsPurchase_1.CouponPercentOffItemsWithItemsPurchaseFromJSON)(json['percent_off_items_with_items_purchase']),
|
|
140
|
+
'percent_off_items_with_minimum_item_amount': !(0, runtime_1.exists)(json, 'percent_off_items_with_minimum_item_amount') ? undefined : (0, CouponPercentOffItemsWithMinimumItemAmount_1.CouponPercentOffItemsWithMinimumItemAmountFromJSON)(json['percent_off_items_with_minimum_item_amount']),
|
|
139
141
|
'percent_off_msrp_items': !(0, runtime_1.exists)(json, 'percent_off_msrp_items') ? undefined : (0, CouponPercentOffMsrpItems_1.CouponPercentOffMsrpItemsFromJSON)(json['percent_off_msrp_items']),
|
|
140
142
|
'percent_off_retail_price_items': !(0, runtime_1.exists)(json, 'percent_off_retail_price_items') ? undefined : (0, CouponPercentOffRetailPriceItems_1.CouponPercentOffRetailPriceItemsFromJSON)(json['percent_off_retail_price_items']),
|
|
141
143
|
'percent_off_shipping': !(0, runtime_1.exists)(json, 'percent_off_shipping') ? undefined : (0, CouponPercentOffShipping_1.CouponPercentOffShippingFromJSON)(json['percent_off_shipping']),
|
|
@@ -214,6 +216,7 @@ function CouponToJSON(value) {
|
|
|
214
216
|
'percent_off_items': (0, CouponPercentOffItems_1.CouponPercentOffItemsToJSON)(value.percent_off_items),
|
|
215
217
|
'percent_off_items_and_free_shipping': (0, CouponPercentOffItemsAndFreeShipping_1.CouponPercentOffItemsAndFreeShippingToJSON)(value.percent_off_items_and_free_shipping),
|
|
216
218
|
'percent_off_items_with_items_purchase': (0, CouponPercentOffItemsWithItemsPurchase_1.CouponPercentOffItemsWithItemsPurchaseToJSON)(value.percent_off_items_with_items_purchase),
|
|
219
|
+
'percent_off_items_with_minimum_item_amount': (0, CouponPercentOffItemsWithMinimumItemAmount_1.CouponPercentOffItemsWithMinimumItemAmountToJSON)(value.percent_off_items_with_minimum_item_amount),
|
|
217
220
|
'percent_off_msrp_items': (0, CouponPercentOffMsrpItems_1.CouponPercentOffMsrpItemsToJSON)(value.percent_off_msrp_items),
|
|
218
221
|
'percent_off_retail_price_items': (0, CouponPercentOffRetailPriceItems_1.CouponPercentOffRetailPriceItemsToJSON)(value.percent_off_retail_price_items),
|
|
219
222
|
'percent_off_shipping': (0, CouponPercentOffShipping_1.CouponPercentOffShippingToJSON)(value.percent_off_shipping),
|
|
@@ -0,0 +1,73 @@
|
|
|
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 CouponPercentOffItemsWithMinimumItemAmount
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponPercentOffItemsWithMinimumItemAmount {
|
|
18
|
+
/**
|
|
19
|
+
* The ISO-4217 three letter currency code the customer is viewing prices in
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
22
|
+
*/
|
|
23
|
+
currency_code?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The percentage of subtotal discount
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
28
|
+
*/
|
|
29
|
+
discount_percent?: number;
|
|
30
|
+
/**
|
|
31
|
+
* A list of item tags which cannot be discounted.
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
34
|
+
*/
|
|
35
|
+
excluded_item_tags?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* A list of items which cannot be discounted.
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
40
|
+
*/
|
|
41
|
+
excluded_items?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
46
|
+
*/
|
|
47
|
+
item_tags?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
52
|
+
*/
|
|
53
|
+
items?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The (optional) maximum quantity of discounted items.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
58
|
+
*/
|
|
59
|
+
limit?: number;
|
|
60
|
+
/**
|
|
61
|
+
* The minimum item amount (dollars) required for the discount to apply
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
64
|
+
*/
|
|
65
|
+
minimum_item_amount?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CouponPercentOffItemsWithMinimumItemAmount interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfCouponPercentOffItemsWithMinimumItemAmount(value: object): boolean;
|
|
71
|
+
export declare function CouponPercentOffItemsWithMinimumItemAmountFromJSON(json: any): CouponPercentOffItemsWithMinimumItemAmount;
|
|
72
|
+
export declare function CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentOffItemsWithMinimumItemAmount;
|
|
73
|
+
export declare function CouponPercentOffItemsWithMinimumItemAmountToJSON(value?: CouponPercentOffItemsWithMinimumItemAmount | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.CouponPercentOffItemsWithMinimumItemAmountToJSON = exports.CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped = exports.CouponPercentOffItemsWithMinimumItemAmountFromJSON = exports.instanceOfCouponPercentOffItemsWithMinimumItemAmount = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CouponPercentOffItemsWithMinimumItemAmount interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCouponPercentOffItemsWithMinimumItemAmount(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCouponPercentOffItemsWithMinimumItemAmount = instanceOfCouponPercentOffItemsWithMinimumItemAmount;
|
|
26
|
+
function CouponPercentOffItemsWithMinimumItemAmountFromJSON(json) {
|
|
27
|
+
return CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CouponPercentOffItemsWithMinimumItemAmountFromJSON = CouponPercentOffItemsWithMinimumItemAmountFromJSON;
|
|
30
|
+
function CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'currency_code': !(0, runtime_1.exists)(json, 'currency_code') ? undefined : json['currency_code'],
|
|
36
|
+
'discount_percent': !(0, runtime_1.exists)(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
37
|
+
'excluded_item_tags': !(0, runtime_1.exists)(json, 'excluded_item_tags') ? undefined : json['excluded_item_tags'],
|
|
38
|
+
'excluded_items': !(0, runtime_1.exists)(json, 'excluded_items') ? undefined : json['excluded_items'],
|
|
39
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
40
|
+
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
41
|
+
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
42
|
+
'minimum_item_amount': !(0, runtime_1.exists)(json, 'minimum_item_amount') ? undefined : json['minimum_item_amount'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped = CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped;
|
|
46
|
+
function CouponPercentOffItemsWithMinimumItemAmountToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'currency_code': value.currency_code,
|
|
55
|
+
'discount_percent': value.discount_percent,
|
|
56
|
+
'excluded_item_tags': value.excluded_item_tags,
|
|
57
|
+
'excluded_items': value.excluded_items,
|
|
58
|
+
'item_tags': value.item_tags,
|
|
59
|
+
'items': value.items,
|
|
60
|
+
'limit': value.limit,
|
|
61
|
+
'minimum_item_amount': value.minimum_item_amount,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.CouponPercentOffItemsWithMinimumItemAmountToJSON = CouponPercentOffItemsWithMinimumItemAmountToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -325,6 +325,7 @@ export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
|
325
325
|
export * from './CouponPercentOffItems';
|
|
326
326
|
export * from './CouponPercentOffItemsAndFreeShipping';
|
|
327
327
|
export * from './CouponPercentOffItemsWithItemsPurchase';
|
|
328
|
+
export * from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
328
329
|
export * from './CouponPercentOffMsrpItems';
|
|
329
330
|
export * from './CouponPercentOffRetailPriceItems';
|
|
330
331
|
export * from './CouponPercentOffShipping';
|
package/dist/models/index.js
CHANGED
|
@@ -343,6 +343,7 @@ __exportStar(require("./CouponPercentOffItemWithItemsQuantityPurchase"), exports
|
|
|
343
343
|
__exportStar(require("./CouponPercentOffItems"), exports);
|
|
344
344
|
__exportStar(require("./CouponPercentOffItemsAndFreeShipping"), exports);
|
|
345
345
|
__exportStar(require("./CouponPercentOffItemsWithItemsPurchase"), exports);
|
|
346
|
+
__exportStar(require("./CouponPercentOffItemsWithMinimumItemAmount"), exports);
|
|
346
347
|
__exportStar(require("./CouponPercentOffMsrpItems"), exports);
|
|
347
348
|
__exportStar(require("./CouponPercentOffRetailPriceItems"), exports);
|
|
348
349
|
__exportStar(require("./CouponPercentOffShipping"), exports);
|
package/package.json
CHANGED
|
@@ -50,6 +50,78 @@ export interface ConversationPbxQueue {
|
|
|
50
50
|
* @memberof ConversationPbxQueue
|
|
51
51
|
*/
|
|
52
52
|
automatic_coach_agent_uuid?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Custom audio file UUID for the callback offer prompt
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ConversationPbxQueue
|
|
57
|
+
*/
|
|
58
|
+
callback_announce_audio_uuid?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Custom TTS text for the callback offer prompt
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ConversationPbxQueue
|
|
63
|
+
*/
|
|
64
|
+
callback_announce_say?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Custom audio file UUID for the callback confirmation message
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ConversationPbxQueue
|
|
69
|
+
*/
|
|
70
|
+
callback_confirm_audio_uuid?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Custom TTS text for the callback confirmation message
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ConversationPbxQueue
|
|
75
|
+
*/
|
|
76
|
+
callback_confirm_say?: string;
|
|
77
|
+
/**
|
|
78
|
+
* If true, the callback option is enabled for this queue
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof ConversationPbxQueue
|
|
81
|
+
*/
|
|
82
|
+
callback_enabled?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* When true, only offer callbacks during business hours
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof ConversationPbxQueue
|
|
87
|
+
*/
|
|
88
|
+
callback_hours_only?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Maximum number of times the system will attempt to call the customer back
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof ConversationPbxQueue
|
|
93
|
+
*/
|
|
94
|
+
callback_max_attempts?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Maximum number of times the callback option is offered to a caller per call
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof ConversationPbxQueue
|
|
99
|
+
*/
|
|
100
|
+
callback_max_offers?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Maximum number of pending callbacks allowed per queue
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof ConversationPbxQueue
|
|
105
|
+
*/
|
|
106
|
+
callback_max_pending?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Seconds a caller must wait in queue before the callback option is offered
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof ConversationPbxQueue
|
|
111
|
+
*/
|
|
112
|
+
callback_offer_after_seconds?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Seconds between repeat callback offers to the same caller
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof ConversationPbxQueue
|
|
117
|
+
*/
|
|
118
|
+
callback_offer_interval_seconds?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Delay in seconds between callback retry attempts
|
|
121
|
+
* @type {number}
|
|
122
|
+
* @memberof ConversationPbxQueue
|
|
123
|
+
*/
|
|
124
|
+
callback_retry_delay_seconds?: number;
|
|
53
125
|
/**
|
|
54
126
|
* Conversation Pbx Queue unique identifier
|
|
55
127
|
* @type {string}
|
|
@@ -226,6 +298,18 @@ export function ConversationPbxQueueFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
226
298
|
'ai_timeout_seconds': !exists(json, 'ai_timeout_seconds') ? undefined : json['ai_timeout_seconds'],
|
|
227
299
|
'announce_queue_position': !exists(json, 'announce_queue_position') ? undefined : json['announce_queue_position'],
|
|
228
300
|
'automatic_coach_agent_uuid': !exists(json, 'automatic_coach_agent_uuid') ? undefined : json['automatic_coach_agent_uuid'],
|
|
301
|
+
'callback_announce_audio_uuid': !exists(json, 'callback_announce_audio_uuid') ? undefined : json['callback_announce_audio_uuid'],
|
|
302
|
+
'callback_announce_say': !exists(json, 'callback_announce_say') ? undefined : json['callback_announce_say'],
|
|
303
|
+
'callback_confirm_audio_uuid': !exists(json, 'callback_confirm_audio_uuid') ? undefined : json['callback_confirm_audio_uuid'],
|
|
304
|
+
'callback_confirm_say': !exists(json, 'callback_confirm_say') ? undefined : json['callback_confirm_say'],
|
|
305
|
+
'callback_enabled': !exists(json, 'callback_enabled') ? undefined : json['callback_enabled'],
|
|
306
|
+
'callback_hours_only': !exists(json, 'callback_hours_only') ? undefined : json['callback_hours_only'],
|
|
307
|
+
'callback_max_attempts': !exists(json, 'callback_max_attempts') ? undefined : json['callback_max_attempts'],
|
|
308
|
+
'callback_max_offers': !exists(json, 'callback_max_offers') ? undefined : json['callback_max_offers'],
|
|
309
|
+
'callback_max_pending': !exists(json, 'callback_max_pending') ? undefined : json['callback_max_pending'],
|
|
310
|
+
'callback_offer_after_seconds': !exists(json, 'callback_offer_after_seconds') ? undefined : json['callback_offer_after_seconds'],
|
|
311
|
+
'callback_offer_interval_seconds': !exists(json, 'callback_offer_interval_seconds') ? undefined : json['callback_offer_interval_seconds'],
|
|
312
|
+
'callback_retry_delay_seconds': !exists(json, 'callback_retry_delay_seconds') ? undefined : json['callback_retry_delay_seconds'],
|
|
229
313
|
'conversation_pbx_queue_uuid': !exists(json, 'conversation_pbx_queue_uuid') ? undefined : json['conversation_pbx_queue_uuid'],
|
|
230
314
|
'conversation_voicemail_mailbox_uuid': !exists(json, 'conversation_voicemail_mailbox_uuid') ? undefined : json['conversation_voicemail_mailbox_uuid'],
|
|
231
315
|
'hold_conversation_pbx_audio_uuid': !exists(json, 'hold_conversation_pbx_audio_uuid') ? undefined : json['hold_conversation_pbx_audio_uuid'],
|
|
@@ -262,6 +346,18 @@ export function ConversationPbxQueueToJSON(value?: ConversationPbxQueue | null):
|
|
|
262
346
|
'ai_timeout_seconds': value.ai_timeout_seconds,
|
|
263
347
|
'announce_queue_position': value.announce_queue_position,
|
|
264
348
|
'automatic_coach_agent_uuid': value.automatic_coach_agent_uuid,
|
|
349
|
+
'callback_announce_audio_uuid': value.callback_announce_audio_uuid,
|
|
350
|
+
'callback_announce_say': value.callback_announce_say,
|
|
351
|
+
'callback_confirm_audio_uuid': value.callback_confirm_audio_uuid,
|
|
352
|
+
'callback_confirm_say': value.callback_confirm_say,
|
|
353
|
+
'callback_enabled': value.callback_enabled,
|
|
354
|
+
'callback_hours_only': value.callback_hours_only,
|
|
355
|
+
'callback_max_attempts': value.callback_max_attempts,
|
|
356
|
+
'callback_max_offers': value.callback_max_offers,
|
|
357
|
+
'callback_max_pending': value.callback_max_pending,
|
|
358
|
+
'callback_offer_after_seconds': value.callback_offer_after_seconds,
|
|
359
|
+
'callback_offer_interval_seconds': value.callback_offer_interval_seconds,
|
|
360
|
+
'callback_retry_delay_seconds': value.callback_retry_delay_seconds,
|
|
265
361
|
'conversation_pbx_queue_uuid': value.conversation_pbx_queue_uuid,
|
|
266
362
|
'conversation_voicemail_mailbox_uuid': value.conversation_voicemail_mailbox_uuid,
|
|
267
363
|
'hold_conversation_pbx_audio_uuid': value.hold_conversation_pbx_audio_uuid,
|
package/src/models/Coupon.ts
CHANGED
|
@@ -217,6 +217,12 @@ import {
|
|
|
217
217
|
CouponPercentOffItemsWithItemsPurchaseFromJSONTyped,
|
|
218
218
|
CouponPercentOffItemsWithItemsPurchaseToJSON,
|
|
219
219
|
} from './CouponPercentOffItemsWithItemsPurchase';
|
|
220
|
+
import {
|
|
221
|
+
CouponPercentOffItemsWithMinimumItemAmount,
|
|
222
|
+
CouponPercentOffItemsWithMinimumItemAmountFromJSON,
|
|
223
|
+
CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped,
|
|
224
|
+
CouponPercentOffItemsWithMinimumItemAmountToJSON,
|
|
225
|
+
} from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
220
226
|
import {
|
|
221
227
|
CouponPercentOffMsrpItems,
|
|
222
228
|
CouponPercentOffMsrpItemsFromJSON,
|
|
@@ -584,6 +590,12 @@ export interface Coupon {
|
|
|
584
590
|
* @memberof Coupon
|
|
585
591
|
*/
|
|
586
592
|
percent_off_items_with_items_purchase?: CouponPercentOffItemsWithItemsPurchase;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {CouponPercentOffItemsWithMinimumItemAmount}
|
|
596
|
+
* @memberof Coupon
|
|
597
|
+
*/
|
|
598
|
+
percent_off_items_with_minimum_item_amount?: CouponPercentOffItemsWithMinimumItemAmount;
|
|
587
599
|
/**
|
|
588
600
|
*
|
|
589
601
|
* @type {CouponPercentOffMsrpItems}
|
|
@@ -797,6 +809,7 @@ export function CouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
|
|
|
797
809
|
'percent_off_items': !exists(json, 'percent_off_items') ? undefined : CouponPercentOffItemsFromJSON(json['percent_off_items']),
|
|
798
810
|
'percent_off_items_and_free_shipping': !exists(json, 'percent_off_items_and_free_shipping') ? undefined : CouponPercentOffItemsAndFreeShippingFromJSON(json['percent_off_items_and_free_shipping']),
|
|
799
811
|
'percent_off_items_with_items_purchase': !exists(json, 'percent_off_items_with_items_purchase') ? undefined : CouponPercentOffItemsWithItemsPurchaseFromJSON(json['percent_off_items_with_items_purchase']),
|
|
812
|
+
'percent_off_items_with_minimum_item_amount': !exists(json, 'percent_off_items_with_minimum_item_amount') ? undefined : CouponPercentOffItemsWithMinimumItemAmountFromJSON(json['percent_off_items_with_minimum_item_amount']),
|
|
800
813
|
'percent_off_msrp_items': !exists(json, 'percent_off_msrp_items') ? undefined : CouponPercentOffMsrpItemsFromJSON(json['percent_off_msrp_items']),
|
|
801
814
|
'percent_off_retail_price_items': !exists(json, 'percent_off_retail_price_items') ? undefined : CouponPercentOffRetailPriceItemsFromJSON(json['percent_off_retail_price_items']),
|
|
802
815
|
'percent_off_shipping': !exists(json, 'percent_off_shipping') ? undefined : CouponPercentOffShippingFromJSON(json['percent_off_shipping']),
|
|
@@ -876,6 +889,7 @@ export function CouponToJSON(value?: Coupon | null): any {
|
|
|
876
889
|
'percent_off_items': CouponPercentOffItemsToJSON(value.percent_off_items),
|
|
877
890
|
'percent_off_items_and_free_shipping': CouponPercentOffItemsAndFreeShippingToJSON(value.percent_off_items_and_free_shipping),
|
|
878
891
|
'percent_off_items_with_items_purchase': CouponPercentOffItemsWithItemsPurchaseToJSON(value.percent_off_items_with_items_purchase),
|
|
892
|
+
'percent_off_items_with_minimum_item_amount': CouponPercentOffItemsWithMinimumItemAmountToJSON(value.percent_off_items_with_minimum_item_amount),
|
|
879
893
|
'percent_off_msrp_items': CouponPercentOffMsrpItemsToJSON(value.percent_off_msrp_items),
|
|
880
894
|
'percent_off_retail_price_items': CouponPercentOffRetailPriceItemsToJSON(value.percent_off_retail_price_items),
|
|
881
895
|
'percent_off_shipping': CouponPercentOffShippingToJSON(value.percent_off_shipping),
|
|
@@ -0,0 +1,123 @@
|
|
|
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 CouponPercentOffItemsWithMinimumItemAmount
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponPercentOffItemsWithMinimumItemAmount {
|
|
22
|
+
/**
|
|
23
|
+
* The ISO-4217 three letter currency code the customer is viewing prices in
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
26
|
+
*/
|
|
27
|
+
currency_code?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The percentage of subtotal discount
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
32
|
+
*/
|
|
33
|
+
discount_percent?: number;
|
|
34
|
+
/**
|
|
35
|
+
* A list of item tags which cannot be discounted.
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
38
|
+
*/
|
|
39
|
+
excluded_item_tags?: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* A list of items which cannot be discounted.
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
44
|
+
*/
|
|
45
|
+
excluded_items?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
50
|
+
*/
|
|
51
|
+
item_tags?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
56
|
+
*/
|
|
57
|
+
items?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The (optional) maximum quantity of discounted items.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
62
|
+
*/
|
|
63
|
+
limit?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The minimum item amount (dollars) required for the discount to apply
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof CouponPercentOffItemsWithMinimumItemAmount
|
|
68
|
+
*/
|
|
69
|
+
minimum_item_amount?: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CouponPercentOffItemsWithMinimumItemAmount interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCouponPercentOffItemsWithMinimumItemAmount(value: object): boolean {
|
|
78
|
+
let isInstance = true;
|
|
79
|
+
|
|
80
|
+
return isInstance;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CouponPercentOffItemsWithMinimumItemAmountFromJSON(json: any): CouponPercentOffItemsWithMinimumItemAmount {
|
|
84
|
+
return CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CouponPercentOffItemsWithMinimumItemAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentOffItemsWithMinimumItemAmount {
|
|
88
|
+
if ((json === undefined) || (json === null)) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'currency_code': !exists(json, 'currency_code') ? undefined : json['currency_code'],
|
|
94
|
+
'discount_percent': !exists(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
95
|
+
'excluded_item_tags': !exists(json, 'excluded_item_tags') ? undefined : json['excluded_item_tags'],
|
|
96
|
+
'excluded_items': !exists(json, 'excluded_items') ? undefined : json['excluded_items'],
|
|
97
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
98
|
+
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
99
|
+
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
100
|
+
'minimum_item_amount': !exists(json, 'minimum_item_amount') ? undefined : json['minimum_item_amount'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function CouponPercentOffItemsWithMinimumItemAmountToJSON(value?: CouponPercentOffItemsWithMinimumItemAmount | null): any {
|
|
105
|
+
if (value === undefined) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
if (value === null) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'currency_code': value.currency_code,
|
|
114
|
+
'discount_percent': value.discount_percent,
|
|
115
|
+
'excluded_item_tags': value.excluded_item_tags,
|
|
116
|
+
'excluded_items': value.excluded_items,
|
|
117
|
+
'item_tags': value.item_tags,
|
|
118
|
+
'items': value.items,
|
|
119
|
+
'limit': value.limit,
|
|
120
|
+
'minimum_item_amount': value.minimum_item_amount,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -327,6 +327,7 @@ export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
|
327
327
|
export * from './CouponPercentOffItems';
|
|
328
328
|
export * from './CouponPercentOffItemsAndFreeShipping';
|
|
329
329
|
export * from './CouponPercentOffItemsWithItemsPurchase';
|
|
330
|
+
export * from './CouponPercentOffItemsWithMinimumItemAmount';
|
|
330
331
|
export * from './CouponPercentOffMsrpItems';
|
|
331
332
|
export * from './CouponPercentOffRetailPriceItems';
|
|
332
333
|
export * from './CouponPercentOffShipping';
|