ultracart_rest_api_v2_typescript 4.0.76-RC → 4.0.78-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 +1 -0
- package/README.md +4 -2
- package/dist/models/Coupon.d.ts +7 -0
- package/dist/models/Coupon.js +3 -0
- package/dist/models/CouponTieredPercentOffSubtotalBasedOnMSRP.d.ts +34 -0
- package/dist/models/CouponTieredPercentOffSubtotalBasedOnMSRP.js +45 -0
- package/dist/models/EmailStepStat.d.ts +7 -1
- package/dist/models/EmailStepStat.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/Coupon.ts +14 -0
- package/src/models/CouponTieredPercentOffSubtotalBasedOnMSRP.ts +71 -0
- package/src/models/EmailStepStat.ts +9 -1
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -227,6 +227,7 @@ src/models/CouponTieredAmountOffSubtotal.ts
|
|
|
227
227
|
src/models/CouponTieredPercentOffItems.ts
|
|
228
228
|
src/models/CouponTieredPercentOffShipping.ts
|
|
229
229
|
src/models/CouponTieredPercentOffSubtotal.ts
|
|
230
|
+
src/models/CouponTieredPercentOffSubtotalBasedOnMSRP.ts
|
|
230
231
|
src/models/CouponType.ts
|
|
231
232
|
src/models/CouponsRequest.ts
|
|
232
233
|
src/models/CouponsResponse.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.78-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.78-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.78-RC | 11/04/2022 | new coupon type percent based on msrp |
|
|
58
|
+
| 4.0.77-RC | 10/31/2022 | communication bug fix on dup annonation |
|
|
57
59
|
| 4.0.76-RC | 10/31/2022 | communications - addl statistics on EmailStepStat object |
|
|
58
60
|
| 4.0.75-RC | 10/26/2022 | esp - methods for sms testing |
|
|
59
61
|
| 4.0.74-RC | 10/17/2022 | conversations - add last_interactive_message_dts |
|
package/dist/models/Coupon.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ import { CouponTieredAmountOffSubtotal } from './CouponTieredAmountOffSubtotal';
|
|
|
52
52
|
import { CouponTieredPercentOffItems } from './CouponTieredPercentOffItems';
|
|
53
53
|
import { CouponTieredPercentOffShipping } from './CouponTieredPercentOffShipping';
|
|
54
54
|
import { CouponTieredPercentOffSubtotal } from './CouponTieredPercentOffSubtotal';
|
|
55
|
+
import { CouponTieredPercentOffSubtotalBasedOnMSRP } from './CouponTieredPercentOffSubtotalBasedOnMSRP';
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
58
|
* @export
|
|
@@ -412,6 +413,12 @@ export interface Coupon {
|
|
|
412
413
|
* @memberof Coupon
|
|
413
414
|
*/
|
|
414
415
|
tiered_percent_off_subtotal?: CouponTieredPercentOffSubtotal;
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @type {CouponTieredPercentOffSubtotalBasedOnMSRP}
|
|
419
|
+
* @memberof Coupon
|
|
420
|
+
*/
|
|
421
|
+
tiered_percent_off_subtotal_based_on_msrp?: CouponTieredPercentOffSubtotalBasedOnMSRP;
|
|
415
422
|
/**
|
|
416
423
|
* Who may use this coupon.
|
|
417
424
|
* @type {string}
|
package/dist/models/Coupon.js
CHANGED
|
@@ -58,6 +58,7 @@ var CouponTieredAmountOffSubtotal_1 = require("./CouponTieredAmountOffSubtotal")
|
|
|
58
58
|
var CouponTieredPercentOffItems_1 = require("./CouponTieredPercentOffItems");
|
|
59
59
|
var CouponTieredPercentOffShipping_1 = require("./CouponTieredPercentOffShipping");
|
|
60
60
|
var CouponTieredPercentOffSubtotal_1 = require("./CouponTieredPercentOffSubtotal");
|
|
61
|
+
var CouponTieredPercentOffSubtotalBasedOnMSRP_1 = require("./CouponTieredPercentOffSubtotalBasedOnMSRP");
|
|
61
62
|
function CouponFromJSON(json) {
|
|
62
63
|
return CouponFromJSONTyped(json, false);
|
|
63
64
|
}
|
|
@@ -126,6 +127,7 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
126
127
|
'tiered_percent_off_items': !(0, runtime_1.exists)(json, 'tiered_percent_off_items') ? undefined : (0, CouponTieredPercentOffItems_1.CouponTieredPercentOffItemsFromJSON)(json['tiered_percent_off_items']),
|
|
127
128
|
'tiered_percent_off_shipping': !(0, runtime_1.exists)(json, 'tiered_percent_off_shipping') ? undefined : (0, CouponTieredPercentOffShipping_1.CouponTieredPercentOffShippingFromJSON)(json['tiered_percent_off_shipping']),
|
|
128
129
|
'tiered_percent_off_subtotal': !(0, runtime_1.exists)(json, 'tiered_percent_off_subtotal') ? undefined : (0, CouponTieredPercentOffSubtotal_1.CouponTieredPercentOffSubtotalFromJSON)(json['tiered_percent_off_subtotal']),
|
|
130
|
+
'tiered_percent_off_subtotal_based_on_msrp': !(0, runtime_1.exists)(json, 'tiered_percent_off_subtotal_based_on_msrp') ? undefined : (0, CouponTieredPercentOffSubtotalBasedOnMSRP_1.CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON)(json['tiered_percent_off_subtotal_based_on_msrp']),
|
|
129
131
|
'usable_by': !(0, runtime_1.exists)(json, 'usable_by') ? undefined : json['usable_by'],
|
|
130
132
|
};
|
|
131
133
|
}
|
|
@@ -197,6 +199,7 @@ function CouponToJSON(value) {
|
|
|
197
199
|
'tiered_percent_off_items': (0, CouponTieredPercentOffItems_1.CouponTieredPercentOffItemsToJSON)(value.tiered_percent_off_items),
|
|
198
200
|
'tiered_percent_off_shipping': (0, CouponTieredPercentOffShipping_1.CouponTieredPercentOffShippingToJSON)(value.tiered_percent_off_shipping),
|
|
199
201
|
'tiered_percent_off_subtotal': (0, CouponTieredPercentOffSubtotal_1.CouponTieredPercentOffSubtotalToJSON)(value.tiered_percent_off_subtotal),
|
|
202
|
+
'tiered_percent_off_subtotal_based_on_msrp': (0, CouponTieredPercentOffSubtotalBasedOnMSRP_1.CouponTieredPercentOffSubtotalBasedOnMSRPToJSON)(value.tiered_percent_off_subtotal_based_on_msrp),
|
|
200
203
|
'usable_by': value.usable_by,
|
|
201
204
|
};
|
|
202
205
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CouponTierPercent } from './CouponTierPercent';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CouponTieredPercentOffSubtotalBasedOnMSRP
|
|
17
|
+
*/
|
|
18
|
+
export interface CouponTieredPercentOffSubtotalBasedOnMSRP {
|
|
19
|
+
/**
|
|
20
|
+
* An optional list of items of which a quantity of one or many must be purchased for coupon to be valid. If empty, all items apply toward subtotal amount.
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof CouponTieredPercentOffSubtotalBasedOnMSRP
|
|
23
|
+
*/
|
|
24
|
+
items?: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
* A list of discount tiers.
|
|
27
|
+
* @type {Array<CouponTierPercent>}
|
|
28
|
+
* @memberof CouponTieredPercentOffSubtotalBasedOnMSRP
|
|
29
|
+
*/
|
|
30
|
+
tiers?: Array<CouponTierPercent>;
|
|
31
|
+
}
|
|
32
|
+
export declare function CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON(json: any): CouponTieredPercentOffSubtotalBasedOnMSRP;
|
|
33
|
+
export declare function CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponTieredPercentOffSubtotalBasedOnMSRP;
|
|
34
|
+
export declare function CouponTieredPercentOffSubtotalBasedOnMSRPToJSON(value?: CouponTieredPercentOffSubtotalBasedOnMSRP | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.CouponTieredPercentOffSubtotalBasedOnMSRPToJSON = exports.CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped = exports.CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var CouponTierPercent_1 = require("./CouponTierPercent");
|
|
19
|
+
function CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON(json) {
|
|
20
|
+
return CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON = CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON;
|
|
23
|
+
function CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
29
|
+
'tiers': !(0, runtime_1.exists)(json, 'tiers') ? undefined : (json['tiers'].map(CouponTierPercent_1.CouponTierPercentFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped = CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped;
|
|
33
|
+
function CouponTieredPercentOffSubtotalBasedOnMSRPToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'items': value.items,
|
|
42
|
+
'tiers': value.tiers === undefined ? undefined : (value.tiers.map(CouponTierPercent_1.CouponTierPercentToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.CouponTieredPercentOffSubtotalBasedOnMSRPToJSON = CouponTieredPercentOffSubtotalBasedOnMSRPToJSON;
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface EmailStepStat
|
|
16
16
|
*/
|
|
17
17
|
export interface EmailStepStat {
|
|
18
|
+
/**
|
|
19
|
+
* click count (left side)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof EmailStepStat
|
|
22
|
+
*/
|
|
23
|
+
left_click_count?: number;
|
|
18
24
|
/**
|
|
19
25
|
* click count formatted (left side)
|
|
20
26
|
* @type {string}
|
|
@@ -22,7 +28,7 @@ export interface EmailStepStat {
|
|
|
22
28
|
*/
|
|
23
29
|
left_click_count_formatted?: string;
|
|
24
30
|
/**
|
|
25
|
-
*
|
|
31
|
+
* conversion count (left/default side)
|
|
26
32
|
* @type {number}
|
|
27
33
|
* @memberof EmailStepStat
|
|
28
34
|
*/
|
|
@@ -24,6 +24,7 @@ function EmailStepStatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'left_click_count': !(0, runtime_1.exists)(json, 'left_click_count') ? undefined : json['left_click_count'],
|
|
27
28
|
'left_click_count_formatted': !(0, runtime_1.exists)(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
28
29
|
'left_conversion_count': !(0, runtime_1.exists)(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
29
30
|
'left_conversion_count_formatted': !(0, runtime_1.exists)(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
@@ -64,6 +65,7 @@ function EmailStepStatToJSON(value) {
|
|
|
64
65
|
return null;
|
|
65
66
|
}
|
|
66
67
|
return {
|
|
68
|
+
'left_click_count': value.left_click_count,
|
|
67
69
|
'left_click_count_formatted': value.left_click_count_formatted,
|
|
68
70
|
'left_conversion_count': value.left_conversion_count,
|
|
69
71
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -202,6 +202,7 @@ export * from './CouponTieredAmountOffSubtotal';
|
|
|
202
202
|
export * from './CouponTieredPercentOffItems';
|
|
203
203
|
export * from './CouponTieredPercentOffShipping';
|
|
204
204
|
export * from './CouponTieredPercentOffSubtotal';
|
|
205
|
+
export * from './CouponTieredPercentOffSubtotalBasedOnMSRP';
|
|
205
206
|
export * from './CouponType';
|
|
206
207
|
export * from './CouponsRequest';
|
|
207
208
|
export * from './CouponsResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -220,6 +220,7 @@ __exportStar(require("./CouponTieredAmountOffSubtotal"), exports);
|
|
|
220
220
|
__exportStar(require("./CouponTieredPercentOffItems"), exports);
|
|
221
221
|
__exportStar(require("./CouponTieredPercentOffShipping"), exports);
|
|
222
222
|
__exportStar(require("./CouponTieredPercentOffSubtotal"), exports);
|
|
223
|
+
__exportStar(require("./CouponTieredPercentOffSubtotalBasedOnMSRP"), exports);
|
|
223
224
|
__exportStar(require("./CouponType"), exports);
|
|
224
225
|
__exportStar(require("./CouponsRequest"), exports);
|
|
225
226
|
__exportStar(require("./CouponsResponse"), exports);
|
package/package.json
CHANGED
package/src/models/Coupon.ts
CHANGED
|
@@ -271,6 +271,12 @@ import {
|
|
|
271
271
|
CouponTieredPercentOffSubtotalFromJSONTyped,
|
|
272
272
|
CouponTieredPercentOffSubtotalToJSON,
|
|
273
273
|
} from './CouponTieredPercentOffSubtotal';
|
|
274
|
+
import {
|
|
275
|
+
CouponTieredPercentOffSubtotalBasedOnMSRP,
|
|
276
|
+
CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON,
|
|
277
|
+
CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped,
|
|
278
|
+
CouponTieredPercentOffSubtotalBasedOnMSRPToJSON,
|
|
279
|
+
} from './CouponTieredPercentOffSubtotalBasedOnMSRP';
|
|
274
280
|
|
|
275
281
|
/**
|
|
276
282
|
*
|
|
@@ -632,6 +638,12 @@ export interface Coupon {
|
|
|
632
638
|
* @memberof Coupon
|
|
633
639
|
*/
|
|
634
640
|
tiered_percent_off_subtotal?: CouponTieredPercentOffSubtotal;
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
* @type {CouponTieredPercentOffSubtotalBasedOnMSRP}
|
|
644
|
+
* @memberof Coupon
|
|
645
|
+
*/
|
|
646
|
+
tiered_percent_off_subtotal_based_on_msrp?: CouponTieredPercentOffSubtotalBasedOnMSRP;
|
|
635
647
|
/**
|
|
636
648
|
* Who may use this coupon.
|
|
637
649
|
* @type {string}
|
|
@@ -709,6 +721,7 @@ export function CouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
|
|
|
709
721
|
'tiered_percent_off_items': !exists(json, 'tiered_percent_off_items') ? undefined : CouponTieredPercentOffItemsFromJSON(json['tiered_percent_off_items']),
|
|
710
722
|
'tiered_percent_off_shipping': !exists(json, 'tiered_percent_off_shipping') ? undefined : CouponTieredPercentOffShippingFromJSON(json['tiered_percent_off_shipping']),
|
|
711
723
|
'tiered_percent_off_subtotal': !exists(json, 'tiered_percent_off_subtotal') ? undefined : CouponTieredPercentOffSubtotalFromJSON(json['tiered_percent_off_subtotal']),
|
|
724
|
+
'tiered_percent_off_subtotal_based_on_msrp': !exists(json, 'tiered_percent_off_subtotal_based_on_msrp') ? undefined : CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON(json['tiered_percent_off_subtotal_based_on_msrp']),
|
|
712
725
|
'usable_by': !exists(json, 'usable_by') ? undefined : json['usable_by'],
|
|
713
726
|
};
|
|
714
727
|
}
|
|
@@ -781,6 +794,7 @@ export function CouponToJSON(value?: Coupon | null): any {
|
|
|
781
794
|
'tiered_percent_off_items': CouponTieredPercentOffItemsToJSON(value.tiered_percent_off_items),
|
|
782
795
|
'tiered_percent_off_shipping': CouponTieredPercentOffShippingToJSON(value.tiered_percent_off_shipping),
|
|
783
796
|
'tiered_percent_off_subtotal': CouponTieredPercentOffSubtotalToJSON(value.tiered_percent_off_subtotal),
|
|
797
|
+
'tiered_percent_off_subtotal_based_on_msrp': CouponTieredPercentOffSubtotalBasedOnMSRPToJSON(value.tiered_percent_off_subtotal_based_on_msrp),
|
|
784
798
|
'usable_by': value.usable_by,
|
|
785
799
|
};
|
|
786
800
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
CouponTierPercent,
|
|
18
|
+
CouponTierPercentFromJSON,
|
|
19
|
+
CouponTierPercentFromJSONTyped,
|
|
20
|
+
CouponTierPercentToJSON,
|
|
21
|
+
} from './CouponTierPercent';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CouponTieredPercentOffSubtotalBasedOnMSRP
|
|
27
|
+
*/
|
|
28
|
+
export interface CouponTieredPercentOffSubtotalBasedOnMSRP {
|
|
29
|
+
/**
|
|
30
|
+
* An optional list of items of which a quantity of one or many must be purchased for coupon to be valid. If empty, all items apply toward subtotal amount.
|
|
31
|
+
* @type {Array<string>}
|
|
32
|
+
* @memberof CouponTieredPercentOffSubtotalBasedOnMSRP
|
|
33
|
+
*/
|
|
34
|
+
items?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* A list of discount tiers.
|
|
37
|
+
* @type {Array<CouponTierPercent>}
|
|
38
|
+
* @memberof CouponTieredPercentOffSubtotalBasedOnMSRP
|
|
39
|
+
*/
|
|
40
|
+
tiers?: Array<CouponTierPercent>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CouponTieredPercentOffSubtotalBasedOnMSRPFromJSON(json: any): CouponTieredPercentOffSubtotalBasedOnMSRP {
|
|
44
|
+
return CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CouponTieredPercentOffSubtotalBasedOnMSRPFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponTieredPercentOffSubtotalBasedOnMSRP {
|
|
48
|
+
if ((json === undefined) || (json === null)) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
54
|
+
'tiers': !exists(json, 'tiers') ? undefined : ((json['tiers'] as Array<any>).map(CouponTierPercentFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CouponTieredPercentOffSubtotalBasedOnMSRPToJSON(value?: CouponTieredPercentOffSubtotalBasedOnMSRP | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'items': value.items,
|
|
68
|
+
'tiers': value.tiers === undefined ? undefined : ((value.tiers as Array<any>).map(CouponTierPercentToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface EmailStepStat
|
|
20
20
|
*/
|
|
21
21
|
export interface EmailStepStat {
|
|
22
|
+
/**
|
|
23
|
+
* click count (left side)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof EmailStepStat
|
|
26
|
+
*/
|
|
27
|
+
left_click_count?: number;
|
|
22
28
|
/**
|
|
23
29
|
* click count formatted (left side)
|
|
24
30
|
* @type {string}
|
|
@@ -26,7 +32,7 @@ export interface EmailStepStat {
|
|
|
26
32
|
*/
|
|
27
33
|
left_click_count_formatted?: string;
|
|
28
34
|
/**
|
|
29
|
-
*
|
|
35
|
+
* conversion count (left/default side)
|
|
30
36
|
* @type {number}
|
|
31
37
|
* @memberof EmailStepStat
|
|
32
38
|
*/
|
|
@@ -205,6 +211,7 @@ export function EmailStepStatFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
205
211
|
}
|
|
206
212
|
return {
|
|
207
213
|
|
|
214
|
+
'left_click_count': !exists(json, 'left_click_count') ? undefined : json['left_click_count'],
|
|
208
215
|
'left_click_count_formatted': !exists(json, 'left_click_count_formatted') ? undefined : json['left_click_count_formatted'],
|
|
209
216
|
'left_conversion_count': !exists(json, 'left_conversion_count') ? undefined : json['left_conversion_count'],
|
|
210
217
|
'left_conversion_count_formatted': !exists(json, 'left_conversion_count_formatted') ? undefined : json['left_conversion_count_formatted'],
|
|
@@ -246,6 +253,7 @@ export function EmailStepStatToJSON(value?: EmailStepStat | null): any {
|
|
|
246
253
|
}
|
|
247
254
|
return {
|
|
248
255
|
|
|
256
|
+
'left_click_count': value.left_click_count,
|
|
249
257
|
'left_click_count_formatted': value.left_click_count_formatted,
|
|
250
258
|
'left_conversion_count': value.left_conversion_count,
|
|
251
259
|
'left_conversion_count_formatted': value.left_conversion_count_formatted,
|
package/src/models/index.ts
CHANGED
|
@@ -204,6 +204,7 @@ export * from './CouponTieredAmountOffSubtotal';
|
|
|
204
204
|
export * from './CouponTieredPercentOffItems';
|
|
205
205
|
export * from './CouponTieredPercentOffShipping';
|
|
206
206
|
export * from './CouponTieredPercentOffSubtotal';
|
|
207
|
+
export * from './CouponTieredPercentOffSubtotalBasedOnMSRP';
|
|
207
208
|
export * from './CouponType';
|
|
208
209
|
export * from './CouponsRequest';
|
|
209
210
|
export * from './CouponsResponse';
|