ultracart_rest_api_v2_typescript 4.0.55-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/.openapi-generator/FILES +1 -0
- package/README.md +5 -2
- package/dist/apis/OrderApi.d.ts +2 -0
- package/dist/apis/OrderApi.js +3 -0
- package/dist/apis/StorefrontApi.js +1 -1
- package/dist/models/CartMarketing.d.ts +6 -0
- package/dist/models/CartMarketing.js +2 -0
- package/dist/models/ConversationParticipant.d.ts +6 -0
- package/dist/models/ConversationParticipant.js +2 -0
- package/dist/models/ConversationWebchatQueueStatusAgent.d.ts +17 -2
- package/dist/models/ConversationWebchatQueueStatusAgent.js +11 -1
- 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/dist/models/ItemReview.d.ts +243 -0
- package/dist/models/ItemReview.js +114 -0
- package/dist/models/ItemReviews.d.ts +7 -0
- package/dist/models/ItemReviews.js +3 -0
- package/dist/models/OrderBilling.d.ts +12 -0
- package/dist/models/OrderBilling.js +4 -0
- package/dist/models/OrderMarketing.d.ts +6 -0
- package/dist/models/OrderMarketing.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/apis/OrderApi.ts +6 -0
- package/src/apis/StorefrontApi.ts +1 -1
- package/src/models/CartMarketing.ts +8 -0
- package/src/models/ConversationParticipant.ts +8 -0
- package/src/models/ConversationWebchatQueueStatusAgent.ts +22 -2
- package/src/models/EmailCommseqSequenceTestRequest.ts +48 -0
- package/src/models/ExperimentVariation.ts +8 -0
- package/src/models/ExperimentVariationStat.ts +8 -0
- package/src/models/ItemReview.ts +344 -0
- package/src/models/ItemReviews.ts +15 -0
- package/src/models/OrderBilling.ts +16 -0
- package/src/models/OrderMarketing.ts +8 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
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,9 @@ 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 |
|
|
58
|
+
| 4.0.57-RC | 08/22/2022 | exposing individual reviews within item.review object |
|
|
59
|
+
| 4.0.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
|
|
57
60
|
| 4.0.55-RC | 08/12/2022 | internal code to allow merchant login as customer |
|
|
58
61
|
| 4.0.54-RC | 08/11/2022 | fix entry_dts type on gift certificate ledger |
|
|
59
62
|
| 4.0.53-RC | 08/10/2022 | conversation event refactoring |
|
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
|
}
|
|
@@ -6468,7 +6468,7 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
6468
6468
|
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
6469
6469
|
}
|
|
6470
6470
|
return [4 /*yield*/, this.request({
|
|
6471
|
-
path: "/storefront
|
|
6471
|
+
path: "/storefront",
|
|
6472
6472
|
method: 'GET',
|
|
6473
6473
|
headers: headerParameters,
|
|
6474
6474
|
query: queryParameters,
|
|
@@ -21,6 +21,12 @@ export interface CartMarketing {
|
|
|
21
21
|
* @memberof CartMarketing
|
|
22
22
|
*/
|
|
23
23
|
advertising_source?: string;
|
|
24
|
+
/**
|
|
25
|
+
* True if the customer agrees to receiving marketing SMS messages
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof CartMarketing
|
|
28
|
+
*/
|
|
29
|
+
cell_phone_opt_in?: boolean;
|
|
24
30
|
/**
|
|
25
31
|
* True if the customer agrees to receiving marketing emails
|
|
26
32
|
* @type {boolean}
|
|
@@ -25,6 +25,7 @@ function CartMarketingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'advertising_source': !(0, runtime_1.exists)(json, 'advertising_source') ? undefined : json['advertising_source'],
|
|
28
|
+
'cell_phone_opt_in': !(0, runtime_1.exists)(json, 'cell_phone_opt_in') ? undefined : json['cell_phone_opt_in'],
|
|
28
29
|
'mailing_list_opt_in': !(0, runtime_1.exists)(json, 'mailing_list_opt_in') ? undefined : json['mailing_list_opt_in'],
|
|
29
30
|
};
|
|
30
31
|
}
|
|
@@ -38,6 +39,7 @@ function CartMarketingToJSON(value) {
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'advertising_source': value.advertising_source,
|
|
42
|
+
'cell_phone_opt_in': value.cell_phone_opt_in,
|
|
41
43
|
'mailing_list_opt_in': value.mailing_list_opt_in,
|
|
42
44
|
};
|
|
43
45
|
}
|
|
@@ -30,6 +30,7 @@ function ConversationParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'joined_dts': !(0, runtime_1.exists)(json, 'joined_dts') ? undefined : json['joined_dts'],
|
|
31
31
|
'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
32
32
|
'left_dts': !(0, runtime_1.exists)(json, 'left_dts') ? undefined : json['left_dts'],
|
|
33
|
+
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
33
34
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
34
35
|
'unread_messages': !(0, runtime_1.exists)(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
35
36
|
};
|
|
@@ -49,6 +50,7 @@ function ConversationParticipantToJSON(value) {
|
|
|
49
50
|
'joined_dts': value.joined_dts,
|
|
50
51
|
'last_message_dts': value.last_message_dts,
|
|
51
52
|
'left_dts': value.left_dts,
|
|
53
|
+
'profile_image_url': value.profile_image_url,
|
|
52
54
|
'status': value.status,
|
|
53
55
|
'unread_messages': value.unread_messages,
|
|
54
56
|
};
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ConversationWebchatQueueStatusAgent {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Status of the agent
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ConversationWebchatQueueStatusAgent
|
|
22
22
|
*/
|
|
23
|
-
agent_status?:
|
|
23
|
+
agent_status?: ConversationWebchatQueueStatusAgentAgentStatusEnum;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -45,7 +45,22 @@ export interface ConversationWebchatQueueStatusAgent {
|
|
|
45
45
|
* @memberof ConversationWebchatQueueStatusAgent
|
|
46
46
|
*/
|
|
47
47
|
next_round_robin?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Profile image URL
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ConversationWebchatQueueStatusAgent
|
|
52
|
+
*/
|
|
53
|
+
profile_image_url?: string;
|
|
48
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ConversationWebchatQueueStatusAgentAgentStatusEnum: {
|
|
59
|
+
readonly Available: "available";
|
|
60
|
+
readonly Busy: "busy";
|
|
61
|
+
readonly Unavailable: "unavailable";
|
|
62
|
+
};
|
|
63
|
+
export declare type ConversationWebchatQueueStatusAgentAgentStatusEnum = typeof ConversationWebchatQueueStatusAgentAgentStatusEnum[keyof typeof ConversationWebchatQueueStatusAgentAgentStatusEnum];
|
|
49
64
|
export declare function ConversationWebchatQueueStatusAgentFromJSON(json: any): ConversationWebchatQueueStatusAgent;
|
|
50
65
|
export declare function ConversationWebchatQueueStatusAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatusAgent;
|
|
51
66
|
export declare function ConversationWebchatQueueStatusAgentToJSON(value?: ConversationWebchatQueueStatusAgent | null): any;
|
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConversationWebchatQueueStatusAgentToJSON = exports.ConversationWebchatQueueStatusAgentFromJSONTyped = exports.ConversationWebchatQueueStatusAgentFromJSON = void 0;
|
|
16
|
+
exports.ConversationWebchatQueueStatusAgentToJSON = exports.ConversationWebchatQueueStatusAgentFromJSONTyped = exports.ConversationWebchatQueueStatusAgentFromJSON = exports.ConversationWebchatQueueStatusAgentAgentStatusEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ConversationWebchatQueueStatusAgentAgentStatusEnum = {
|
|
22
|
+
Available: 'available',
|
|
23
|
+
Busy: 'busy',
|
|
24
|
+
Unavailable: 'unavailable'
|
|
25
|
+
};
|
|
18
26
|
function ConversationWebchatQueueStatusAgentFromJSON(json) {
|
|
19
27
|
return ConversationWebchatQueueStatusAgentFromJSONTyped(json, false);
|
|
20
28
|
}
|
|
@@ -29,6 +37,7 @@ function ConversationWebchatQueueStatusAgentFromJSONTyped(json, ignoreDiscrimina
|
|
|
29
37
|
'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
30
38
|
'last_chat_dts': !(0, runtime_1.exists)(json, 'last_chat_dts') ? undefined : json['last_chat_dts'],
|
|
31
39
|
'next_round_robin': !(0, runtime_1.exists)(json, 'next_round_robin') ? undefined : json['next_round_robin'],
|
|
40
|
+
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
32
41
|
};
|
|
33
42
|
}
|
|
34
43
|
exports.ConversationWebchatQueueStatusAgentFromJSONTyped = ConversationWebchatQueueStatusAgentFromJSONTyped;
|
|
@@ -45,6 +54,7 @@ function ConversationWebchatQueueStatusAgentToJSON(value) {
|
|
|
45
54
|
'conversation_participant_name': value.conversation_participant_name,
|
|
46
55
|
'last_chat_dts': value.last_chat_dts,
|
|
47
56
|
'next_round_robin': value.next_round_robin,
|
|
57
|
+
'profile_image_url': value.profile_image_url,
|
|
48
58
|
};
|
|
49
59
|
}
|
|
50
60
|
exports.ConversationWebchatQueueStatusAgentToJSON = ConversationWebchatQueueStatusAgentToJSON;
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,243 @@
|
|
|
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 ItemReview
|
|
16
|
+
*/
|
|
17
|
+
export interface ItemReview {
|
|
18
|
+
/**
|
|
19
|
+
* Customer profile object identifier
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ItemReview
|
|
22
|
+
*/
|
|
23
|
+
customer_profile_oid?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ItemReview
|
|
28
|
+
*/
|
|
29
|
+
featured?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ItemReview
|
|
34
|
+
*/
|
|
35
|
+
helperful_no_votes?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ItemReview
|
|
40
|
+
*/
|
|
41
|
+
helpful_yes_votes?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ItemReview
|
|
46
|
+
*/
|
|
47
|
+
order_id?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ItemReview
|
|
52
|
+
*/
|
|
53
|
+
overall?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ItemReview
|
|
58
|
+
*/
|
|
59
|
+
rating_name1?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ItemReview
|
|
64
|
+
*/
|
|
65
|
+
rating_name10?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ItemReview
|
|
70
|
+
*/
|
|
71
|
+
rating_name2?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ItemReview
|
|
76
|
+
*/
|
|
77
|
+
rating_name3?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ItemReview
|
|
82
|
+
*/
|
|
83
|
+
rating_name4?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof ItemReview
|
|
88
|
+
*/
|
|
89
|
+
rating_name5?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ItemReview
|
|
94
|
+
*/
|
|
95
|
+
rating_name6?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ItemReview
|
|
100
|
+
*/
|
|
101
|
+
rating_name7?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof ItemReview
|
|
106
|
+
*/
|
|
107
|
+
rating_name8?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof ItemReview
|
|
112
|
+
*/
|
|
113
|
+
rating_name9?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof ItemReview
|
|
118
|
+
*/
|
|
119
|
+
rating_score1?: number;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof ItemReview
|
|
124
|
+
*/
|
|
125
|
+
rating_score10?: number;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof ItemReview
|
|
130
|
+
*/
|
|
131
|
+
rating_score2?: number;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof ItemReview
|
|
136
|
+
*/
|
|
137
|
+
rating_score3?: number;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof ItemReview
|
|
142
|
+
*/
|
|
143
|
+
rating_score4?: number;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {number}
|
|
147
|
+
* @memberof ItemReview
|
|
148
|
+
*/
|
|
149
|
+
rating_score5?: number;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof ItemReview
|
|
154
|
+
*/
|
|
155
|
+
rating_score6?: number;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {number}
|
|
159
|
+
* @memberof ItemReview
|
|
160
|
+
*/
|
|
161
|
+
rating_score7?: number;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {number}
|
|
165
|
+
* @memberof ItemReview
|
|
166
|
+
*/
|
|
167
|
+
rating_score8?: number;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {number}
|
|
171
|
+
* @memberof ItemReview
|
|
172
|
+
*/
|
|
173
|
+
rating_score9?: number;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {number}
|
|
177
|
+
* @memberof ItemReview
|
|
178
|
+
*/
|
|
179
|
+
recommend_store_to_friend?: number;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @type {boolean}
|
|
183
|
+
* @memberof ItemReview
|
|
184
|
+
*/
|
|
185
|
+
recommend_to_friend?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof ItemReview
|
|
190
|
+
*/
|
|
191
|
+
review?: string;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {number}
|
|
195
|
+
* @memberof ItemReview
|
|
196
|
+
*/
|
|
197
|
+
review_oid?: number;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof ItemReview
|
|
202
|
+
*/
|
|
203
|
+
reviewed_nickname?: string;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof ItemReview
|
|
208
|
+
*/
|
|
209
|
+
reviewer_email?: string;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof ItemReview
|
|
214
|
+
*/
|
|
215
|
+
reviewer_location?: string;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof ItemReview
|
|
220
|
+
*/
|
|
221
|
+
status?: string;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof ItemReview
|
|
226
|
+
*/
|
|
227
|
+
store_feedback?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Date/time of review submission
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof ItemReview
|
|
232
|
+
*/
|
|
233
|
+
submitted_dts?: string;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof ItemReview
|
|
238
|
+
*/
|
|
239
|
+
title?: string;
|
|
240
|
+
}
|
|
241
|
+
export declare function ItemReviewFromJSON(json: any): ItemReview;
|
|
242
|
+
export declare function ItemReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemReview;
|
|
243
|
+
export declare function ItemReviewToJSON(value?: ItemReview | null): any;
|