ultracart_rest_api_v2_typescript 4.0.102-RC → 4.0.103-RC
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 +4 -0
- package/README.md +3 -2
- package/dist/models/Coupon.d.ts +28 -0
- package/dist/models/Coupon.js +12 -0
- package/dist/models/CouponMoreLoyaltyCashback.d.ts +27 -0
- package/dist/models/CouponMoreLoyaltyCashback.js +42 -0
- package/dist/models/CouponMoreLoyaltyPoints.d.ts +27 -0
- package/dist/models/CouponMoreLoyaltyPoints.js +42 -0
- package/dist/models/CouponPercentMoreLoyaltyCashback.d.ts +27 -0
- package/dist/models/CouponPercentMoreLoyaltyCashback.js +42 -0
- package/dist/models/CouponPercentMoreLoyaltyPoints.d.ts +27 -0
- package/dist/models/CouponPercentMoreLoyaltyPoints.js +42 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/models/Coupon.ts +56 -0
- package/src/models/CouponMoreLoyaltyCashback.ts +56 -0
- package/src/models/CouponMoreLoyaltyPoints.ts +56 -0
- package/src/models/CouponPercentMoreLoyaltyCashback.ts +56 -0
- package/src/models/CouponPercentMoreLoyaltyPoints.ts +56 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -225,8 +225,12 @@ src/models/CouponFreeShippingWithItemsPurchase.ts
|
|
|
225
225
|
src/models/CouponFreeShippingWithSubtotal.ts
|
|
226
226
|
src/models/CouponItemSearchResult.ts
|
|
227
227
|
src/models/CouponItemSearchResultsResponse.ts
|
|
228
|
+
src/models/CouponMoreLoyaltyCashback.ts
|
|
229
|
+
src/models/CouponMoreLoyaltyPoints.ts
|
|
228
230
|
src/models/CouponMultipleAmountsOffItems.ts
|
|
229
231
|
src/models/CouponNoDiscount.ts
|
|
232
|
+
src/models/CouponPercentMoreLoyaltyCashback.ts
|
|
233
|
+
src/models/CouponPercentMoreLoyaltyPoints.ts
|
|
230
234
|
src/models/CouponPercentOffItemWithItemsQuantityPurchase.ts
|
|
231
235
|
src/models/CouponPercentOffItems.ts
|
|
232
236
|
src/models/CouponPercentOffItemsAndFreeShipping.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.103-RC
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.103-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.103-RC | 12/27/2022 | additional loyalty related coupons |
|
|
57
58
|
| 4.0.102-RC | 12/21/2022 | conversation development |
|
|
58
59
|
| 4.0.101-RC | 12/20/2022 | conversation engagement update |
|
|
59
60
|
| 4.0.100-RC | 12/20/2022 | conversation engagement update |
|
package/dist/models/Coupon.d.ts
CHANGED
|
@@ -32,8 +32,12 @@ import { CouponFreeShipping } from './CouponFreeShipping';
|
|
|
32
32
|
import { CouponFreeShippingSpecificItems } from './CouponFreeShippingSpecificItems';
|
|
33
33
|
import { CouponFreeShippingWithItemsPurchase } from './CouponFreeShippingWithItemsPurchase';
|
|
34
34
|
import { CouponFreeShippingWithSubtotal } from './CouponFreeShippingWithSubtotal';
|
|
35
|
+
import { CouponMoreLoyaltyCashback } from './CouponMoreLoyaltyCashback';
|
|
36
|
+
import { CouponMoreLoyaltyPoints } from './CouponMoreLoyaltyPoints';
|
|
35
37
|
import { CouponMultipleAmountsOffItems } from './CouponMultipleAmountsOffItems';
|
|
36
38
|
import { CouponNoDiscount } from './CouponNoDiscount';
|
|
39
|
+
import { CouponPercentMoreLoyaltyCashback } from './CouponPercentMoreLoyaltyCashback';
|
|
40
|
+
import { CouponPercentMoreLoyaltyPoints } from './CouponPercentMoreLoyaltyPoints';
|
|
37
41
|
import { CouponPercentOffItemWithItemsQuantityPurchase } from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
38
42
|
import { CouponPercentOffItems } from './CouponPercentOffItems';
|
|
39
43
|
import { CouponPercentOffItemsAndFreeShipping } from './CouponPercentOffItemsAndFreeShipping';
|
|
@@ -263,6 +267,18 @@ export interface Coupon {
|
|
|
263
267
|
* @memberof Coupon
|
|
264
268
|
*/
|
|
265
269
|
merchant_notes?: string;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {CouponMoreLoyaltyCashback}
|
|
273
|
+
* @memberof Coupon
|
|
274
|
+
*/
|
|
275
|
+
more_loyalty_cashback?: CouponMoreLoyaltyCashback;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {CouponMoreLoyaltyPoints}
|
|
279
|
+
* @memberof Coupon
|
|
280
|
+
*/
|
|
281
|
+
more_loyalty_points?: CouponMoreLoyaltyPoints;
|
|
266
282
|
/**
|
|
267
283
|
*
|
|
268
284
|
* @type {CouponMultipleAmountsOffItems}
|
|
@@ -275,6 +291,18 @@ export interface Coupon {
|
|
|
275
291
|
* @memberof Coupon
|
|
276
292
|
*/
|
|
277
293
|
no_discount?: CouponNoDiscount;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {CouponPercentMoreLoyaltyCashback}
|
|
297
|
+
* @memberof Coupon
|
|
298
|
+
*/
|
|
299
|
+
percent_more_loyalty_cashback?: CouponPercentMoreLoyaltyCashback;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @type {CouponPercentMoreLoyaltyPoints}
|
|
303
|
+
* @memberof Coupon
|
|
304
|
+
*/
|
|
305
|
+
percent_more_loyalty_points?: CouponPercentMoreLoyaltyPoints;
|
|
278
306
|
/**
|
|
279
307
|
*
|
|
280
308
|
* @type {CouponPercentOffItemWithItemsQuantityPurchase}
|
package/dist/models/Coupon.js
CHANGED
|
@@ -38,8 +38,12 @@ var CouponFreeShipping_1 = require("./CouponFreeShipping");
|
|
|
38
38
|
var CouponFreeShippingSpecificItems_1 = require("./CouponFreeShippingSpecificItems");
|
|
39
39
|
var CouponFreeShippingWithItemsPurchase_1 = require("./CouponFreeShippingWithItemsPurchase");
|
|
40
40
|
var CouponFreeShippingWithSubtotal_1 = require("./CouponFreeShippingWithSubtotal");
|
|
41
|
+
var CouponMoreLoyaltyCashback_1 = require("./CouponMoreLoyaltyCashback");
|
|
42
|
+
var CouponMoreLoyaltyPoints_1 = require("./CouponMoreLoyaltyPoints");
|
|
41
43
|
var CouponMultipleAmountsOffItems_1 = require("./CouponMultipleAmountsOffItems");
|
|
42
44
|
var CouponNoDiscount_1 = require("./CouponNoDiscount");
|
|
45
|
+
var CouponPercentMoreLoyaltyCashback_1 = require("./CouponPercentMoreLoyaltyCashback");
|
|
46
|
+
var CouponPercentMoreLoyaltyPoints_1 = require("./CouponPercentMoreLoyaltyPoints");
|
|
43
47
|
var CouponPercentOffItemWithItemsQuantityPurchase_1 = require("./CouponPercentOffItemWithItemsQuantityPurchase");
|
|
44
48
|
var CouponPercentOffItems_1 = require("./CouponPercentOffItems");
|
|
45
49
|
var CouponPercentOffItemsAndFreeShipping_1 = require("./CouponPercentOffItemsAndFreeShipping");
|
|
@@ -102,8 +106,12 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
106
|
'hide_from_customer': !(0, runtime_1.exists)(json, 'hide_from_customer') ? undefined : json['hide_from_customer'],
|
|
103
107
|
'merchant_code': !(0, runtime_1.exists)(json, 'merchant_code') ? undefined : json['merchant_code'],
|
|
104
108
|
'merchant_notes': !(0, runtime_1.exists)(json, 'merchant_notes') ? undefined : json['merchant_notes'],
|
|
109
|
+
'more_loyalty_cashback': !(0, runtime_1.exists)(json, 'more_loyalty_cashback') ? undefined : (0, CouponMoreLoyaltyCashback_1.CouponMoreLoyaltyCashbackFromJSON)(json['more_loyalty_cashback']),
|
|
110
|
+
'more_loyalty_points': !(0, runtime_1.exists)(json, 'more_loyalty_points') ? undefined : (0, CouponMoreLoyaltyPoints_1.CouponMoreLoyaltyPointsFromJSON)(json['more_loyalty_points']),
|
|
105
111
|
'multiple_amounts_off_items': !(0, runtime_1.exists)(json, 'multiple_amounts_off_items') ? undefined : (0, CouponMultipleAmountsOffItems_1.CouponMultipleAmountsOffItemsFromJSON)(json['multiple_amounts_off_items']),
|
|
106
112
|
'no_discount': !(0, runtime_1.exists)(json, 'no_discount') ? undefined : (0, CouponNoDiscount_1.CouponNoDiscountFromJSON)(json['no_discount']),
|
|
113
|
+
'percent_more_loyalty_cashback': !(0, runtime_1.exists)(json, 'percent_more_loyalty_cashback') ? undefined : (0, CouponPercentMoreLoyaltyCashback_1.CouponPercentMoreLoyaltyCashbackFromJSON)(json['percent_more_loyalty_cashback']),
|
|
114
|
+
'percent_more_loyalty_points': !(0, runtime_1.exists)(json, 'percent_more_loyalty_points') ? undefined : (0, CouponPercentMoreLoyaltyPoints_1.CouponPercentMoreLoyaltyPointsFromJSON)(json['percent_more_loyalty_points']),
|
|
107
115
|
'percent_off_item_with_items_quantity_purchase': !(0, runtime_1.exists)(json, 'percent_off_item_with_items_quantity_purchase') ? undefined : (0, CouponPercentOffItemWithItemsQuantityPurchase_1.CouponPercentOffItemWithItemsQuantityPurchaseFromJSON)(json['percent_off_item_with_items_quantity_purchase']),
|
|
108
116
|
'percent_off_items': !(0, runtime_1.exists)(json, 'percent_off_items') ? undefined : (0, CouponPercentOffItems_1.CouponPercentOffItemsFromJSON)(json['percent_off_items']),
|
|
109
117
|
'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']),
|
|
@@ -174,8 +182,12 @@ function CouponToJSON(value) {
|
|
|
174
182
|
'hide_from_customer': value.hide_from_customer,
|
|
175
183
|
'merchant_code': value.merchant_code,
|
|
176
184
|
'merchant_notes': value.merchant_notes,
|
|
185
|
+
'more_loyalty_cashback': (0, CouponMoreLoyaltyCashback_1.CouponMoreLoyaltyCashbackToJSON)(value.more_loyalty_cashback),
|
|
186
|
+
'more_loyalty_points': (0, CouponMoreLoyaltyPoints_1.CouponMoreLoyaltyPointsToJSON)(value.more_loyalty_points),
|
|
177
187
|
'multiple_amounts_off_items': (0, CouponMultipleAmountsOffItems_1.CouponMultipleAmountsOffItemsToJSON)(value.multiple_amounts_off_items),
|
|
178
188
|
'no_discount': (0, CouponNoDiscount_1.CouponNoDiscountToJSON)(value.no_discount),
|
|
189
|
+
'percent_more_loyalty_cashback': (0, CouponPercentMoreLoyaltyCashback_1.CouponPercentMoreLoyaltyCashbackToJSON)(value.percent_more_loyalty_cashback),
|
|
190
|
+
'percent_more_loyalty_points': (0, CouponPercentMoreLoyaltyPoints_1.CouponPercentMoreLoyaltyPointsToJSON)(value.percent_more_loyalty_points),
|
|
179
191
|
'percent_off_item_with_items_quantity_purchase': (0, CouponPercentOffItemWithItemsQuantityPurchase_1.CouponPercentOffItemWithItemsQuantityPurchaseToJSON)(value.percent_off_item_with_items_quantity_purchase),
|
|
180
192
|
'percent_off_items': (0, CouponPercentOffItems_1.CouponPercentOffItemsToJSON)(value.percent_off_items),
|
|
181
193
|
'percent_off_items_and_free_shipping': (0, CouponPercentOffItemsAndFreeShipping_1.CouponPercentOffItemsAndFreeShippingToJSON)(value.percent_off_items_and_free_shipping),
|
|
@@ -0,0 +1,27 @@
|
|
|
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 CouponMoreLoyaltyCashback
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponMoreLoyaltyCashback {
|
|
18
|
+
/**
|
|
19
|
+
* The additional loyalty cashback
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CouponMoreLoyaltyCashback
|
|
22
|
+
*/
|
|
23
|
+
loyalty_cashback?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function CouponMoreLoyaltyCashbackFromJSON(json: any): CouponMoreLoyaltyCashback;
|
|
26
|
+
export declare function CouponMoreLoyaltyCashbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponMoreLoyaltyCashback;
|
|
27
|
+
export declare function CouponMoreLoyaltyCashbackToJSON(value?: CouponMoreLoyaltyCashback | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CouponMoreLoyaltyCashbackToJSON = exports.CouponMoreLoyaltyCashbackFromJSONTyped = exports.CouponMoreLoyaltyCashbackFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CouponMoreLoyaltyCashbackFromJSON(json) {
|
|
19
|
+
return CouponMoreLoyaltyCashbackFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CouponMoreLoyaltyCashbackFromJSON = CouponMoreLoyaltyCashbackFromJSON;
|
|
22
|
+
function CouponMoreLoyaltyCashbackFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'loyalty_cashback': !(0, runtime_1.exists)(json, 'loyalty_cashback') ? undefined : json['loyalty_cashback'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.CouponMoreLoyaltyCashbackFromJSONTyped = CouponMoreLoyaltyCashbackFromJSONTyped;
|
|
31
|
+
function CouponMoreLoyaltyCashbackToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'loyalty_cashback': value.loyalty_cashback,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.CouponMoreLoyaltyCashbackToJSON = CouponMoreLoyaltyCashbackToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 CouponMoreLoyaltyPoints
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponMoreLoyaltyPoints {
|
|
18
|
+
/**
|
|
19
|
+
* The additional loyalty points
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CouponMoreLoyaltyPoints
|
|
22
|
+
*/
|
|
23
|
+
loyalty_points?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function CouponMoreLoyaltyPointsFromJSON(json: any): CouponMoreLoyaltyPoints;
|
|
26
|
+
export declare function CouponMoreLoyaltyPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponMoreLoyaltyPoints;
|
|
27
|
+
export declare function CouponMoreLoyaltyPointsToJSON(value?: CouponMoreLoyaltyPoints | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CouponMoreLoyaltyPointsToJSON = exports.CouponMoreLoyaltyPointsFromJSONTyped = exports.CouponMoreLoyaltyPointsFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CouponMoreLoyaltyPointsFromJSON(json) {
|
|
19
|
+
return CouponMoreLoyaltyPointsFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CouponMoreLoyaltyPointsFromJSON = CouponMoreLoyaltyPointsFromJSON;
|
|
22
|
+
function CouponMoreLoyaltyPointsFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'loyalty_points': !(0, runtime_1.exists)(json, 'loyalty_points') ? undefined : json['loyalty_points'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.CouponMoreLoyaltyPointsFromJSONTyped = CouponMoreLoyaltyPointsFromJSONTyped;
|
|
31
|
+
function CouponMoreLoyaltyPointsToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'loyalty_points': value.loyalty_points,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.CouponMoreLoyaltyPointsToJSON = CouponMoreLoyaltyPointsToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 CouponPercentMoreLoyaltyCashback
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponPercentMoreLoyaltyCashback {
|
|
18
|
+
/**
|
|
19
|
+
* The percentage of additional loyalty cashback
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CouponPercentMoreLoyaltyCashback
|
|
22
|
+
*/
|
|
23
|
+
percent_more_loyalty_cashback?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function CouponPercentMoreLoyaltyCashbackFromJSON(json: any): CouponPercentMoreLoyaltyCashback;
|
|
26
|
+
export declare function CouponPercentMoreLoyaltyCashbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentMoreLoyaltyCashback;
|
|
27
|
+
export declare function CouponPercentMoreLoyaltyCashbackToJSON(value?: CouponPercentMoreLoyaltyCashback | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CouponPercentMoreLoyaltyCashbackToJSON = exports.CouponPercentMoreLoyaltyCashbackFromJSONTyped = exports.CouponPercentMoreLoyaltyCashbackFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CouponPercentMoreLoyaltyCashbackFromJSON(json) {
|
|
19
|
+
return CouponPercentMoreLoyaltyCashbackFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CouponPercentMoreLoyaltyCashbackFromJSON = CouponPercentMoreLoyaltyCashbackFromJSON;
|
|
22
|
+
function CouponPercentMoreLoyaltyCashbackFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'percent_more_loyalty_cashback': !(0, runtime_1.exists)(json, 'percent_more_loyalty_cashback') ? undefined : json['percent_more_loyalty_cashback'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.CouponPercentMoreLoyaltyCashbackFromJSONTyped = CouponPercentMoreLoyaltyCashbackFromJSONTyped;
|
|
31
|
+
function CouponPercentMoreLoyaltyCashbackToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'percent_more_loyalty_cashback': value.percent_more_loyalty_cashback,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.CouponPercentMoreLoyaltyCashbackToJSON = CouponPercentMoreLoyaltyCashbackToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 CouponPercentMoreLoyaltyPoints
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponPercentMoreLoyaltyPoints {
|
|
18
|
+
/**
|
|
19
|
+
* The percentage of additional loyalty points
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CouponPercentMoreLoyaltyPoints
|
|
22
|
+
*/
|
|
23
|
+
percent_more_loyalty_points?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function CouponPercentMoreLoyaltyPointsFromJSON(json: any): CouponPercentMoreLoyaltyPoints;
|
|
26
|
+
export declare function CouponPercentMoreLoyaltyPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentMoreLoyaltyPoints;
|
|
27
|
+
export declare function CouponPercentMoreLoyaltyPointsToJSON(value?: CouponPercentMoreLoyaltyPoints | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CouponPercentMoreLoyaltyPointsToJSON = exports.CouponPercentMoreLoyaltyPointsFromJSONTyped = exports.CouponPercentMoreLoyaltyPointsFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CouponPercentMoreLoyaltyPointsFromJSON(json) {
|
|
19
|
+
return CouponPercentMoreLoyaltyPointsFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CouponPercentMoreLoyaltyPointsFromJSON = CouponPercentMoreLoyaltyPointsFromJSON;
|
|
22
|
+
function CouponPercentMoreLoyaltyPointsFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'percent_more_loyalty_points': !(0, runtime_1.exists)(json, 'percent_more_loyalty_points') ? undefined : json['percent_more_loyalty_points'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.CouponPercentMoreLoyaltyPointsFromJSONTyped = CouponPercentMoreLoyaltyPointsFromJSONTyped;
|
|
31
|
+
function CouponPercentMoreLoyaltyPointsToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'percent_more_loyalty_points': value.percent_more_loyalty_points,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.CouponPercentMoreLoyaltyPointsToJSON = CouponPercentMoreLoyaltyPointsToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -200,8 +200,12 @@ export * from './CouponFreeShippingWithItemsPurchase';
|
|
|
200
200
|
export * from './CouponFreeShippingWithSubtotal';
|
|
201
201
|
export * from './CouponItemSearchResult';
|
|
202
202
|
export * from './CouponItemSearchResultsResponse';
|
|
203
|
+
export * from './CouponMoreLoyaltyCashback';
|
|
204
|
+
export * from './CouponMoreLoyaltyPoints';
|
|
203
205
|
export * from './CouponMultipleAmountsOffItems';
|
|
204
206
|
export * from './CouponNoDiscount';
|
|
207
|
+
export * from './CouponPercentMoreLoyaltyCashback';
|
|
208
|
+
export * from './CouponPercentMoreLoyaltyPoints';
|
|
205
209
|
export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
206
210
|
export * from './CouponPercentOffItems';
|
|
207
211
|
export * from './CouponPercentOffItemsAndFreeShipping';
|
package/dist/models/index.js
CHANGED
|
@@ -218,8 +218,12 @@ __exportStar(require("./CouponFreeShippingWithItemsPurchase"), exports);
|
|
|
218
218
|
__exportStar(require("./CouponFreeShippingWithSubtotal"), exports);
|
|
219
219
|
__exportStar(require("./CouponItemSearchResult"), exports);
|
|
220
220
|
__exportStar(require("./CouponItemSearchResultsResponse"), exports);
|
|
221
|
+
__exportStar(require("./CouponMoreLoyaltyCashback"), exports);
|
|
222
|
+
__exportStar(require("./CouponMoreLoyaltyPoints"), exports);
|
|
221
223
|
__exportStar(require("./CouponMultipleAmountsOffItems"), exports);
|
|
222
224
|
__exportStar(require("./CouponNoDiscount"), exports);
|
|
225
|
+
__exportStar(require("./CouponPercentMoreLoyaltyCashback"), exports);
|
|
226
|
+
__exportStar(require("./CouponPercentMoreLoyaltyPoints"), exports);
|
|
223
227
|
__exportStar(require("./CouponPercentOffItemWithItemsQuantityPurchase"), exports);
|
|
224
228
|
__exportStar(require("./CouponPercentOffItems"), exports);
|
|
225
229
|
__exportStar(require("./CouponPercentOffItemsAndFreeShipping"), exports);
|
package/package.json
CHANGED
package/src/models/Coupon.ts
CHANGED
|
@@ -151,6 +151,18 @@ import {
|
|
|
151
151
|
CouponFreeShippingWithSubtotalFromJSONTyped,
|
|
152
152
|
CouponFreeShippingWithSubtotalToJSON,
|
|
153
153
|
} from './CouponFreeShippingWithSubtotal';
|
|
154
|
+
import {
|
|
155
|
+
CouponMoreLoyaltyCashback,
|
|
156
|
+
CouponMoreLoyaltyCashbackFromJSON,
|
|
157
|
+
CouponMoreLoyaltyCashbackFromJSONTyped,
|
|
158
|
+
CouponMoreLoyaltyCashbackToJSON,
|
|
159
|
+
} from './CouponMoreLoyaltyCashback';
|
|
160
|
+
import {
|
|
161
|
+
CouponMoreLoyaltyPoints,
|
|
162
|
+
CouponMoreLoyaltyPointsFromJSON,
|
|
163
|
+
CouponMoreLoyaltyPointsFromJSONTyped,
|
|
164
|
+
CouponMoreLoyaltyPointsToJSON,
|
|
165
|
+
} from './CouponMoreLoyaltyPoints';
|
|
154
166
|
import {
|
|
155
167
|
CouponMultipleAmountsOffItems,
|
|
156
168
|
CouponMultipleAmountsOffItemsFromJSON,
|
|
@@ -163,6 +175,18 @@ import {
|
|
|
163
175
|
CouponNoDiscountFromJSONTyped,
|
|
164
176
|
CouponNoDiscountToJSON,
|
|
165
177
|
} from './CouponNoDiscount';
|
|
178
|
+
import {
|
|
179
|
+
CouponPercentMoreLoyaltyCashback,
|
|
180
|
+
CouponPercentMoreLoyaltyCashbackFromJSON,
|
|
181
|
+
CouponPercentMoreLoyaltyCashbackFromJSONTyped,
|
|
182
|
+
CouponPercentMoreLoyaltyCashbackToJSON,
|
|
183
|
+
} from './CouponPercentMoreLoyaltyCashback';
|
|
184
|
+
import {
|
|
185
|
+
CouponPercentMoreLoyaltyPoints,
|
|
186
|
+
CouponPercentMoreLoyaltyPointsFromJSON,
|
|
187
|
+
CouponPercentMoreLoyaltyPointsFromJSONTyped,
|
|
188
|
+
CouponPercentMoreLoyaltyPointsToJSON,
|
|
189
|
+
} from './CouponPercentMoreLoyaltyPoints';
|
|
166
190
|
import {
|
|
167
191
|
CouponPercentOffItemWithItemsQuantityPurchase,
|
|
168
192
|
CouponPercentOffItemWithItemsQuantityPurchaseFromJSON,
|
|
@@ -488,6 +512,18 @@ export interface Coupon {
|
|
|
488
512
|
* @memberof Coupon
|
|
489
513
|
*/
|
|
490
514
|
merchant_notes?: string;
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @type {CouponMoreLoyaltyCashback}
|
|
518
|
+
* @memberof Coupon
|
|
519
|
+
*/
|
|
520
|
+
more_loyalty_cashback?: CouponMoreLoyaltyCashback;
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {CouponMoreLoyaltyPoints}
|
|
524
|
+
* @memberof Coupon
|
|
525
|
+
*/
|
|
526
|
+
more_loyalty_points?: CouponMoreLoyaltyPoints;
|
|
491
527
|
/**
|
|
492
528
|
*
|
|
493
529
|
* @type {CouponMultipleAmountsOffItems}
|
|
@@ -500,6 +536,18 @@ export interface Coupon {
|
|
|
500
536
|
* @memberof Coupon
|
|
501
537
|
*/
|
|
502
538
|
no_discount?: CouponNoDiscount;
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @type {CouponPercentMoreLoyaltyCashback}
|
|
542
|
+
* @memberof Coupon
|
|
543
|
+
*/
|
|
544
|
+
percent_more_loyalty_cashback?: CouponPercentMoreLoyaltyCashback;
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @type {CouponPercentMoreLoyaltyPoints}
|
|
548
|
+
* @memberof Coupon
|
|
549
|
+
*/
|
|
550
|
+
percent_more_loyalty_points?: CouponPercentMoreLoyaltyPoints;
|
|
503
551
|
/**
|
|
504
552
|
*
|
|
505
553
|
* @type {CouponPercentOffItemWithItemsQuantityPurchase}
|
|
@@ -696,8 +744,12 @@ export function CouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
|
|
|
696
744
|
'hide_from_customer': !exists(json, 'hide_from_customer') ? undefined : json['hide_from_customer'],
|
|
697
745
|
'merchant_code': !exists(json, 'merchant_code') ? undefined : json['merchant_code'],
|
|
698
746
|
'merchant_notes': !exists(json, 'merchant_notes') ? undefined : json['merchant_notes'],
|
|
747
|
+
'more_loyalty_cashback': !exists(json, 'more_loyalty_cashback') ? undefined : CouponMoreLoyaltyCashbackFromJSON(json['more_loyalty_cashback']),
|
|
748
|
+
'more_loyalty_points': !exists(json, 'more_loyalty_points') ? undefined : CouponMoreLoyaltyPointsFromJSON(json['more_loyalty_points']),
|
|
699
749
|
'multiple_amounts_off_items': !exists(json, 'multiple_amounts_off_items') ? undefined : CouponMultipleAmountsOffItemsFromJSON(json['multiple_amounts_off_items']),
|
|
700
750
|
'no_discount': !exists(json, 'no_discount') ? undefined : CouponNoDiscountFromJSON(json['no_discount']),
|
|
751
|
+
'percent_more_loyalty_cashback': !exists(json, 'percent_more_loyalty_cashback') ? undefined : CouponPercentMoreLoyaltyCashbackFromJSON(json['percent_more_loyalty_cashback']),
|
|
752
|
+
'percent_more_loyalty_points': !exists(json, 'percent_more_loyalty_points') ? undefined : CouponPercentMoreLoyaltyPointsFromJSON(json['percent_more_loyalty_points']),
|
|
701
753
|
'percent_off_item_with_items_quantity_purchase': !exists(json, 'percent_off_item_with_items_quantity_purchase') ? undefined : CouponPercentOffItemWithItemsQuantityPurchaseFromJSON(json['percent_off_item_with_items_quantity_purchase']),
|
|
702
754
|
'percent_off_items': !exists(json, 'percent_off_items') ? undefined : CouponPercentOffItemsFromJSON(json['percent_off_items']),
|
|
703
755
|
'percent_off_items_and_free_shipping': !exists(json, 'percent_off_items_and_free_shipping') ? undefined : CouponPercentOffItemsAndFreeShippingFromJSON(json['percent_off_items_and_free_shipping']),
|
|
@@ -769,8 +821,12 @@ export function CouponToJSON(value?: Coupon | null): any {
|
|
|
769
821
|
'hide_from_customer': value.hide_from_customer,
|
|
770
822
|
'merchant_code': value.merchant_code,
|
|
771
823
|
'merchant_notes': value.merchant_notes,
|
|
824
|
+
'more_loyalty_cashback': CouponMoreLoyaltyCashbackToJSON(value.more_loyalty_cashback),
|
|
825
|
+
'more_loyalty_points': CouponMoreLoyaltyPointsToJSON(value.more_loyalty_points),
|
|
772
826
|
'multiple_amounts_off_items': CouponMultipleAmountsOffItemsToJSON(value.multiple_amounts_off_items),
|
|
773
827
|
'no_discount': CouponNoDiscountToJSON(value.no_discount),
|
|
828
|
+
'percent_more_loyalty_cashback': CouponPercentMoreLoyaltyCashbackToJSON(value.percent_more_loyalty_cashback),
|
|
829
|
+
'percent_more_loyalty_points': CouponPercentMoreLoyaltyPointsToJSON(value.percent_more_loyalty_points),
|
|
774
830
|
'percent_off_item_with_items_quantity_purchase': CouponPercentOffItemWithItemsQuantityPurchaseToJSON(value.percent_off_item_with_items_quantity_purchase),
|
|
775
831
|
'percent_off_items': CouponPercentOffItemsToJSON(value.percent_off_items),
|
|
776
832
|
'percent_off_items_and_free_shipping': CouponPercentOffItemsAndFreeShippingToJSON(value.percent_off_items_and_free_shipping),
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CouponMoreLoyaltyCashback
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponMoreLoyaltyCashback {
|
|
22
|
+
/**
|
|
23
|
+
* The additional loyalty cashback
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CouponMoreLoyaltyCashback
|
|
26
|
+
*/
|
|
27
|
+
loyalty_cashback?: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function CouponMoreLoyaltyCashbackFromJSON(json: any): CouponMoreLoyaltyCashback {
|
|
31
|
+
return CouponMoreLoyaltyCashbackFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function CouponMoreLoyaltyCashbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponMoreLoyaltyCashback {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'loyalty_cashback': !exists(json, 'loyalty_cashback') ? undefined : json['loyalty_cashback'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CouponMoreLoyaltyCashbackToJSON(value?: CouponMoreLoyaltyCashback | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'loyalty_cashback': value.loyalty_cashback,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CouponMoreLoyaltyPoints
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponMoreLoyaltyPoints {
|
|
22
|
+
/**
|
|
23
|
+
* The additional loyalty points
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CouponMoreLoyaltyPoints
|
|
26
|
+
*/
|
|
27
|
+
loyalty_points?: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function CouponMoreLoyaltyPointsFromJSON(json: any): CouponMoreLoyaltyPoints {
|
|
31
|
+
return CouponMoreLoyaltyPointsFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function CouponMoreLoyaltyPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponMoreLoyaltyPoints {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'loyalty_points': !exists(json, 'loyalty_points') ? undefined : json['loyalty_points'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CouponMoreLoyaltyPointsToJSON(value?: CouponMoreLoyaltyPoints | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'loyalty_points': value.loyalty_points,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CouponPercentMoreLoyaltyCashback
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponPercentMoreLoyaltyCashback {
|
|
22
|
+
/**
|
|
23
|
+
* The percentage of additional loyalty cashback
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CouponPercentMoreLoyaltyCashback
|
|
26
|
+
*/
|
|
27
|
+
percent_more_loyalty_cashback?: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function CouponPercentMoreLoyaltyCashbackFromJSON(json: any): CouponPercentMoreLoyaltyCashback {
|
|
31
|
+
return CouponPercentMoreLoyaltyCashbackFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function CouponPercentMoreLoyaltyCashbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentMoreLoyaltyCashback {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'percent_more_loyalty_cashback': !exists(json, 'percent_more_loyalty_cashback') ? undefined : json['percent_more_loyalty_cashback'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CouponPercentMoreLoyaltyCashbackToJSON(value?: CouponPercentMoreLoyaltyCashback | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'percent_more_loyalty_cashback': value.percent_more_loyalty_cashback,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CouponPercentMoreLoyaltyPoints
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponPercentMoreLoyaltyPoints {
|
|
22
|
+
/**
|
|
23
|
+
* The percentage of additional loyalty points
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CouponPercentMoreLoyaltyPoints
|
|
26
|
+
*/
|
|
27
|
+
percent_more_loyalty_points?: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function CouponPercentMoreLoyaltyPointsFromJSON(json: any): CouponPercentMoreLoyaltyPoints {
|
|
31
|
+
return CouponPercentMoreLoyaltyPointsFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function CouponPercentMoreLoyaltyPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentMoreLoyaltyPoints {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'percent_more_loyalty_points': !exists(json, 'percent_more_loyalty_points') ? undefined : json['percent_more_loyalty_points'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CouponPercentMoreLoyaltyPointsToJSON(value?: CouponPercentMoreLoyaltyPoints | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'percent_more_loyalty_points': value.percent_more_loyalty_points,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -202,8 +202,12 @@ export * from './CouponFreeShippingWithItemsPurchase';
|
|
|
202
202
|
export * from './CouponFreeShippingWithSubtotal';
|
|
203
203
|
export * from './CouponItemSearchResult';
|
|
204
204
|
export * from './CouponItemSearchResultsResponse';
|
|
205
|
+
export * from './CouponMoreLoyaltyCashback';
|
|
206
|
+
export * from './CouponMoreLoyaltyPoints';
|
|
205
207
|
export * from './CouponMultipleAmountsOffItems';
|
|
206
208
|
export * from './CouponNoDiscount';
|
|
209
|
+
export * from './CouponPercentMoreLoyaltyCashback';
|
|
210
|
+
export * from './CouponPercentMoreLoyaltyPoints';
|
|
207
211
|
export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
208
212
|
export * from './CouponPercentOffItems';
|
|
209
213
|
export * from './CouponPercentOffItemsAndFreeShipping';
|