ultracart_rest_api_v2_typescript 4.0.57-RC → 4.0.58-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/README.md +3 -2
- package/dist/apis/OrderApi.d.ts +2 -0
- package/dist/apis/OrderApi.js +3 -0
- package/dist/models/EmailCommseqSequenceTestRequest.d.ts +36 -0
- package/dist/models/EmailCommseqSequenceTestRequest.js +12 -0
- package/dist/models/ExperimentVariation.d.ts +6 -0
- package/dist/models/ExperimentVariation.js +2 -0
- package/dist/models/ExperimentVariationStat.d.ts +6 -0
- package/dist/models/ExperimentVariationStat.js +2 -0
- package/package.json +1 -1
- package/src/apis/OrderApi.ts +6 -0
- package/src/models/EmailCommseqSequenceTestRequest.ts +48 -0
- package/src/models/ExperimentVariation.ts +8 -0
- package/src/models/ExperimentVariationStat.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.58-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.58-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.58-RC | 08/26/2022 | postcard address fields for comm sequence testing |
|
|
57
58
|
| 4.0.57-RC | 08/22/2022 | exposing individual reviews within item.review object |
|
|
58
59
|
| 4.0.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
|
|
59
60
|
| 4.0.55-RC | 08/12/2022 | internal code to allow merchant login as customer |
|
package/dist/apis/OrderApi.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export interface RefundOrderRequest {
|
|
|
111
111
|
autoOrderCancel?: boolean;
|
|
112
112
|
manualRefund?: boolean;
|
|
113
113
|
reverseAffiliateTransactions?: boolean;
|
|
114
|
+
issueStoreCredit?: boolean;
|
|
114
115
|
expand?: string;
|
|
115
116
|
}
|
|
116
117
|
export interface ReplacementRequest {
|
|
@@ -429,6 +430,7 @@ export interface OrderApiInterface {
|
|
|
429
430
|
* @param {boolean} [autoOrderCancel] Cancel associated auto orders
|
|
430
431
|
* @param {boolean} [manualRefund] Consider a manual refund done externally
|
|
431
432
|
* @param {boolean} [reverseAffiliateTransactions] Reverse affiliate transactions
|
|
433
|
+
* @param {boolean} [issueStoreCredit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
432
434
|
* @param {string} [expand] The object expansion to perform on the result. See documentation for examples
|
|
433
435
|
* @param {*} [options] Override http request option.
|
|
434
436
|
* @throws {RequiredError}
|
package/dist/apis/OrderApi.js
CHANGED
|
@@ -1251,6 +1251,9 @@ var OrderApi = /** @class */ (function (_super) {
|
|
|
1251
1251
|
if (requestParameters.reverseAffiliateTransactions !== undefined) {
|
|
1252
1252
|
queryParameters['reverse_affiliate_transactions'] = requestParameters.reverseAffiliateTransactions;
|
|
1253
1253
|
}
|
|
1254
|
+
if (requestParameters.issueStoreCredit !== undefined) {
|
|
1255
|
+
queryParameters['issue_store_credit'] = requestParameters.issueStoreCredit;
|
|
1256
|
+
}
|
|
1254
1257
|
if (requestParameters.expand !== undefined) {
|
|
1255
1258
|
queryParameters['_expand'] = requestParameters.expand;
|
|
1256
1259
|
}
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface EmailCommseqSequenceTestRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface EmailCommseqSequenceTestRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
22
|
+
*/
|
|
23
|
+
address_1?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
28
|
+
*/
|
|
29
|
+
address_2?: string;
|
|
18
30
|
/**
|
|
19
31
|
*
|
|
20
32
|
* @type {string}
|
|
@@ -27,12 +39,24 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
27
39
|
* @memberof EmailCommseqSequenceTestRequest
|
|
28
40
|
*/
|
|
29
41
|
cart_item_ids?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
46
|
+
*/
|
|
47
|
+
city?: string;
|
|
30
48
|
/**
|
|
31
49
|
*
|
|
32
50
|
* @type {string}
|
|
33
51
|
* @memberof EmailCommseqSequenceTestRequest
|
|
34
52
|
*/
|
|
35
53
|
esp_commseq_uuid?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
58
|
+
*/
|
|
59
|
+
mail_card?: boolean;
|
|
36
60
|
/**
|
|
37
61
|
*
|
|
38
62
|
* @type {string}
|
|
@@ -51,6 +75,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
51
75
|
* @memberof EmailCommseqSequenceTestRequest
|
|
52
76
|
*/
|
|
53
77
|
please_review?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
82
|
+
*/
|
|
83
|
+
postal_code?: string;
|
|
54
84
|
/**
|
|
55
85
|
*
|
|
56
86
|
* @type {string}
|
|
@@ -63,6 +93,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
63
93
|
* @memberof EmailCommseqSequenceTestRequest
|
|
64
94
|
*/
|
|
65
95
|
send_to_logged_in_user?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
100
|
+
*/
|
|
101
|
+
state?: string;
|
|
66
102
|
}
|
|
67
103
|
export declare function EmailCommseqSequenceTestRequestFromJSON(json: any): EmailCommseqSequenceTestRequest;
|
|
68
104
|
export declare function EmailCommseqSequenceTestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailCommseqSequenceTestRequest;
|
|
@@ -24,14 +24,20 @@ function EmailCommseqSequenceTestRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'address_1': !(0, runtime_1.exists)(json, 'address_1') ? undefined : json['address_1'],
|
|
28
|
+
'address_2': !(0, runtime_1.exists)(json, 'address_2') ? undefined : json['address_2'],
|
|
27
29
|
'cart_id': !(0, runtime_1.exists)(json, 'cart_id') ? undefined : json['cart_id'],
|
|
28
30
|
'cart_item_ids': !(0, runtime_1.exists)(json, 'cart_item_ids') ? undefined : json['cart_item_ids'],
|
|
31
|
+
'city': !(0, runtime_1.exists)(json, 'city') ? undefined : json['city'],
|
|
29
32
|
'esp_commseq_uuid': !(0, runtime_1.exists)(json, 'esp_commseq_uuid') ? undefined : json['esp_commseq_uuid'],
|
|
33
|
+
'mail_card': !(0, runtime_1.exists)(json, 'mail_card') ? undefined : json['mail_card'],
|
|
30
34
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
31
35
|
'order_id': !(0, runtime_1.exists)(json, 'order_id') ? undefined : json['order_id'],
|
|
32
36
|
'please_review': !(0, runtime_1.exists)(json, 'please_review') ? undefined : json['please_review'],
|
|
37
|
+
'postal_code': !(0, runtime_1.exists)(json, 'postal_code') ? undefined : json['postal_code'],
|
|
33
38
|
'send_to_email': !(0, runtime_1.exists)(json, 'send_to_email') ? undefined : json['send_to_email'],
|
|
34
39
|
'send_to_logged_in_user': !(0, runtime_1.exists)(json, 'send_to_logged_in_user') ? undefined : json['send_to_logged_in_user'],
|
|
40
|
+
'state': !(0, runtime_1.exists)(json, 'state') ? undefined : json['state'],
|
|
35
41
|
};
|
|
36
42
|
}
|
|
37
43
|
exports.EmailCommseqSequenceTestRequestFromJSONTyped = EmailCommseqSequenceTestRequestFromJSONTyped;
|
|
@@ -43,14 +49,20 @@ function EmailCommseqSequenceTestRequestToJSON(value) {
|
|
|
43
49
|
return null;
|
|
44
50
|
}
|
|
45
51
|
return {
|
|
52
|
+
'address_1': value.address_1,
|
|
53
|
+
'address_2': value.address_2,
|
|
46
54
|
'cart_id': value.cart_id,
|
|
47
55
|
'cart_item_ids': value.cart_item_ids,
|
|
56
|
+
'city': value.city,
|
|
48
57
|
'esp_commseq_uuid': value.esp_commseq_uuid,
|
|
58
|
+
'mail_card': value.mail_card,
|
|
49
59
|
'name': value.name,
|
|
50
60
|
'order_id': value.order_id,
|
|
51
61
|
'please_review': value.please_review,
|
|
62
|
+
'postal_code': value.postal_code,
|
|
52
63
|
'send_to_email': value.send_to_email,
|
|
53
64
|
'send_to_logged_in_user': value.send_to_logged_in_user,
|
|
65
|
+
'state': value.state,
|
|
54
66
|
};
|
|
55
67
|
}
|
|
56
68
|
exports.EmailCommseqSequenceTestRequestToJSON = EmailCommseqSequenceTestRequestToJSON;
|
|
@@ -118,6 +118,12 @@ export interface ExperimentVariation {
|
|
|
118
118
|
* @memberof ExperimentVariation
|
|
119
119
|
*/
|
|
120
120
|
session_count?: number;
|
|
121
|
+
/**
|
|
122
|
+
* SMS Opt Ins for this variation
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof ExperimentVariation
|
|
125
|
+
*/
|
|
126
|
+
sms_opt_ins?: number;
|
|
121
127
|
/**
|
|
122
128
|
* Percentage of the traffic this variation is currently receiving
|
|
123
129
|
* @type {number}
|
|
@@ -42,6 +42,7 @@ function ExperimentVariationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'paused': !(0, runtime_1.exists)(json, 'paused') ? undefined : json['paused'],
|
|
43
43
|
'revenue': !(0, runtime_1.exists)(json, 'revenue') ? undefined : json['revenue'],
|
|
44
44
|
'session_count': !(0, runtime_1.exists)(json, 'session_count') ? undefined : json['session_count'],
|
|
45
|
+
'sms_opt_ins': !(0, runtime_1.exists)(json, 'sms_opt_ins') ? undefined : json['sms_opt_ins'],
|
|
45
46
|
'traffic_percentage': !(0, runtime_1.exists)(json, 'traffic_percentage') ? undefined : json['traffic_percentage'],
|
|
46
47
|
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
47
48
|
'variation_name': !(0, runtime_1.exists)(json, 'variation_name') ? undefined : json['variation_name'],
|
|
@@ -75,6 +76,7 @@ function ExperimentVariationToJSON(value) {
|
|
|
75
76
|
'paused': value.paused,
|
|
76
77
|
'revenue': value.revenue,
|
|
77
78
|
'session_count': value.session_count,
|
|
79
|
+
'sms_opt_ins': value.sms_opt_ins,
|
|
78
80
|
'traffic_percentage': value.traffic_percentage,
|
|
79
81
|
'url': value.url,
|
|
80
82
|
'variation_name': value.variation_name,
|
|
@@ -75,6 +75,12 @@ export interface ExperimentVariationStat {
|
|
|
75
75
|
* @memberof ExperimentVariationStat
|
|
76
76
|
*/
|
|
77
77
|
session_count?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Total SMS opt in count for this variation
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof ExperimentVariationStat
|
|
82
|
+
*/
|
|
83
|
+
sms_opt_in_count?: number;
|
|
78
84
|
/**
|
|
79
85
|
* Date/time that the statistic was created
|
|
80
86
|
* @type {string}
|
|
@@ -34,6 +34,7 @@ function ExperimentVariationStatFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'page_view_count': !(0, runtime_1.exists)(json, 'page_view_count') ? undefined : json['page_view_count'],
|
|
35
35
|
'revenue': !(0, runtime_1.exists)(json, 'revenue') ? undefined : json['revenue'],
|
|
36
36
|
'session_count': !(0, runtime_1.exists)(json, 'session_count') ? undefined : json['session_count'],
|
|
37
|
+
'sms_opt_in_count': !(0, runtime_1.exists)(json, 'sms_opt_in_count') ? undefined : json['sms_opt_in_count'],
|
|
37
38
|
'stat_dts': !(0, runtime_1.exists)(json, 'stat_dts') ? undefined : json['stat_dts'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -56,6 +57,7 @@ function ExperimentVariationStatToJSON(value) {
|
|
|
56
57
|
'page_view_count': value.page_view_count,
|
|
57
58
|
'revenue': value.revenue,
|
|
58
59
|
'session_count': value.session_count,
|
|
60
|
+
'sms_opt_in_count': value.sms_opt_in_count,
|
|
59
61
|
'stat_dts': value.stat_dts,
|
|
60
62
|
};
|
|
61
63
|
}
|
package/package.json
CHANGED
package/src/apis/OrderApi.ts
CHANGED
|
@@ -190,6 +190,7 @@ export interface RefundOrderRequest {
|
|
|
190
190
|
autoOrderCancel?: boolean;
|
|
191
191
|
manualRefund?: boolean;
|
|
192
192
|
reverseAffiliateTransactions?: boolean;
|
|
193
|
+
issueStoreCredit?: boolean;
|
|
193
194
|
expand?: string;
|
|
194
195
|
}
|
|
195
196
|
|
|
@@ -548,6 +549,7 @@ export interface OrderApiInterface {
|
|
|
548
549
|
* @param {boolean} [autoOrderCancel] Cancel associated auto orders
|
|
549
550
|
* @param {boolean} [manualRefund] Consider a manual refund done externally
|
|
550
551
|
* @param {boolean} [reverseAffiliateTransactions] Reverse affiliate transactions
|
|
552
|
+
* @param {boolean} [issueStoreCredit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
551
553
|
* @param {string} [expand] The object expansion to perform on the result. See documentation for examples
|
|
552
554
|
* @param {*} [options] Override http request option.
|
|
553
555
|
* @throws {RequiredError}
|
|
@@ -1572,6 +1574,10 @@ export class OrderApi extends runtime.BaseAPI implements OrderApiInterface {
|
|
|
1572
1574
|
queryParameters['reverse_affiliate_transactions'] = requestParameters.reverseAffiliateTransactions;
|
|
1573
1575
|
}
|
|
1574
1576
|
|
|
1577
|
+
if (requestParameters.issueStoreCredit !== undefined) {
|
|
1578
|
+
queryParameters['issue_store_credit'] = requestParameters.issueStoreCredit;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1575
1581
|
if (requestParameters.expand !== undefined) {
|
|
1576
1582
|
queryParameters['_expand'] = requestParameters.expand;
|
|
1577
1583
|
}
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface EmailCommseqSequenceTestRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface EmailCommseqSequenceTestRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
26
|
+
*/
|
|
27
|
+
address_1?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
32
|
+
*/
|
|
33
|
+
address_2?: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -31,12 +43,24 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
31
43
|
* @memberof EmailCommseqSequenceTestRequest
|
|
32
44
|
*/
|
|
33
45
|
cart_item_ids?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
50
|
+
*/
|
|
51
|
+
city?: string;
|
|
34
52
|
/**
|
|
35
53
|
*
|
|
36
54
|
* @type {string}
|
|
37
55
|
* @memberof EmailCommseqSequenceTestRequest
|
|
38
56
|
*/
|
|
39
57
|
esp_commseq_uuid?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
62
|
+
*/
|
|
63
|
+
mail_card?: boolean;
|
|
40
64
|
/**
|
|
41
65
|
*
|
|
42
66
|
* @type {string}
|
|
@@ -55,6 +79,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
55
79
|
* @memberof EmailCommseqSequenceTestRequest
|
|
56
80
|
*/
|
|
57
81
|
please_review?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
86
|
+
*/
|
|
87
|
+
postal_code?: string;
|
|
58
88
|
/**
|
|
59
89
|
*
|
|
60
90
|
* @type {string}
|
|
@@ -67,6 +97,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
67
97
|
* @memberof EmailCommseqSequenceTestRequest
|
|
68
98
|
*/
|
|
69
99
|
send_to_logged_in_user?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
104
|
+
*/
|
|
105
|
+
state?: string;
|
|
70
106
|
}
|
|
71
107
|
|
|
72
108
|
export function EmailCommseqSequenceTestRequestFromJSON(json: any): EmailCommseqSequenceTestRequest {
|
|
@@ -79,14 +115,20 @@ export function EmailCommseqSequenceTestRequestFromJSONTyped(json: any, ignoreDi
|
|
|
79
115
|
}
|
|
80
116
|
return {
|
|
81
117
|
|
|
118
|
+
'address_1': !exists(json, 'address_1') ? undefined : json['address_1'],
|
|
119
|
+
'address_2': !exists(json, 'address_2') ? undefined : json['address_2'],
|
|
82
120
|
'cart_id': !exists(json, 'cart_id') ? undefined : json['cart_id'],
|
|
83
121
|
'cart_item_ids': !exists(json, 'cart_item_ids') ? undefined : json['cart_item_ids'],
|
|
122
|
+
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
84
123
|
'esp_commseq_uuid': !exists(json, 'esp_commseq_uuid') ? undefined : json['esp_commseq_uuid'],
|
|
124
|
+
'mail_card': !exists(json, 'mail_card') ? undefined : json['mail_card'],
|
|
85
125
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
86
126
|
'order_id': !exists(json, 'order_id') ? undefined : json['order_id'],
|
|
87
127
|
'please_review': !exists(json, 'please_review') ? undefined : json['please_review'],
|
|
128
|
+
'postal_code': !exists(json, 'postal_code') ? undefined : json['postal_code'],
|
|
88
129
|
'send_to_email': !exists(json, 'send_to_email') ? undefined : json['send_to_email'],
|
|
89
130
|
'send_to_logged_in_user': !exists(json, 'send_to_logged_in_user') ? undefined : json['send_to_logged_in_user'],
|
|
131
|
+
'state': !exists(json, 'state') ? undefined : json['state'],
|
|
90
132
|
};
|
|
91
133
|
}
|
|
92
134
|
|
|
@@ -99,14 +141,20 @@ export function EmailCommseqSequenceTestRequestToJSON(value?: EmailCommseqSequen
|
|
|
99
141
|
}
|
|
100
142
|
return {
|
|
101
143
|
|
|
144
|
+
'address_1': value.address_1,
|
|
145
|
+
'address_2': value.address_2,
|
|
102
146
|
'cart_id': value.cart_id,
|
|
103
147
|
'cart_item_ids': value.cart_item_ids,
|
|
148
|
+
'city': value.city,
|
|
104
149
|
'esp_commseq_uuid': value.esp_commseq_uuid,
|
|
150
|
+
'mail_card': value.mail_card,
|
|
105
151
|
'name': value.name,
|
|
106
152
|
'order_id': value.order_id,
|
|
107
153
|
'please_review': value.please_review,
|
|
154
|
+
'postal_code': value.postal_code,
|
|
108
155
|
'send_to_email': value.send_to_email,
|
|
109
156
|
'send_to_logged_in_user': value.send_to_logged_in_user,
|
|
157
|
+
'state': value.state,
|
|
110
158
|
};
|
|
111
159
|
}
|
|
112
160
|
|
|
@@ -128,6 +128,12 @@ export interface ExperimentVariation {
|
|
|
128
128
|
* @memberof ExperimentVariation
|
|
129
129
|
*/
|
|
130
130
|
session_count?: number;
|
|
131
|
+
/**
|
|
132
|
+
* SMS Opt Ins for this variation
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof ExperimentVariation
|
|
135
|
+
*/
|
|
136
|
+
sms_opt_ins?: number;
|
|
131
137
|
/**
|
|
132
138
|
* Percentage of the traffic this variation is currently receiving
|
|
133
139
|
* @type {number}
|
|
@@ -187,6 +193,7 @@ export function ExperimentVariationFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
187
193
|
'paused': !exists(json, 'paused') ? undefined : json['paused'],
|
|
188
194
|
'revenue': !exists(json, 'revenue') ? undefined : json['revenue'],
|
|
189
195
|
'session_count': !exists(json, 'session_count') ? undefined : json['session_count'],
|
|
196
|
+
'sms_opt_ins': !exists(json, 'sms_opt_ins') ? undefined : json['sms_opt_ins'],
|
|
190
197
|
'traffic_percentage': !exists(json, 'traffic_percentage') ? undefined : json['traffic_percentage'],
|
|
191
198
|
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
192
199
|
'variation_name': !exists(json, 'variation_name') ? undefined : json['variation_name'],
|
|
@@ -221,6 +228,7 @@ export function ExperimentVariationToJSON(value?: ExperimentVariation | null): a
|
|
|
221
228
|
'paused': value.paused,
|
|
222
229
|
'revenue': value.revenue,
|
|
223
230
|
'session_count': value.session_count,
|
|
231
|
+
'sms_opt_ins': value.sms_opt_ins,
|
|
224
232
|
'traffic_percentage': value.traffic_percentage,
|
|
225
233
|
'url': value.url,
|
|
226
234
|
'variation_name': value.variation_name,
|
|
@@ -79,6 +79,12 @@ export interface ExperimentVariationStat {
|
|
|
79
79
|
* @memberof ExperimentVariationStat
|
|
80
80
|
*/
|
|
81
81
|
session_count?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Total SMS opt in count for this variation
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof ExperimentVariationStat
|
|
86
|
+
*/
|
|
87
|
+
sms_opt_in_count?: number;
|
|
82
88
|
/**
|
|
83
89
|
* Date/time that the statistic was created
|
|
84
90
|
* @type {string}
|
|
@@ -107,6 +113,7 @@ export function ExperimentVariationStatFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
107
113
|
'page_view_count': !exists(json, 'page_view_count') ? undefined : json['page_view_count'],
|
|
108
114
|
'revenue': !exists(json, 'revenue') ? undefined : json['revenue'],
|
|
109
115
|
'session_count': !exists(json, 'session_count') ? undefined : json['session_count'],
|
|
116
|
+
'sms_opt_in_count': !exists(json, 'sms_opt_in_count') ? undefined : json['sms_opt_in_count'],
|
|
110
117
|
'stat_dts': !exists(json, 'stat_dts') ? undefined : json['stat_dts'],
|
|
111
118
|
};
|
|
112
119
|
}
|
|
@@ -130,6 +137,7 @@ export function ExperimentVariationStatToJSON(value?: ExperimentVariationStat |
|
|
|
130
137
|
'page_view_count': value.page_view_count,
|
|
131
138
|
'revenue': value.revenue,
|
|
132
139
|
'session_count': value.session_count,
|
|
140
|
+
'sms_opt_in_count': value.sms_opt_in_count,
|
|
133
141
|
'stat_dts': value.stat_dts,
|
|
134
142
|
};
|
|
135
143
|
}
|