ultracart_rest_api_v2_typescript 4.0.55-RC → 4.0.56-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/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/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/package.json +1 -1
- 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/OrderBilling.ts +16 -0
- package/src/models/OrderMarketing.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.56-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.56-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.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
|
|
57
58
|
| 4.0.55-RC | 08/12/2022 | internal code to allow merchant login as customer |
|
|
58
59
|
| 4.0.54-RC | 08/11/2022 | fix entry_dts type on gift certificate ledger |
|
|
59
60
|
| 4.0.53-RC | 08/10/2022 | conversation event refactoring |
|
|
@@ -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;
|
|
@@ -33,6 +33,18 @@ export interface OrderBilling {
|
|
|
33
33
|
* @memberof OrderBilling
|
|
34
34
|
*/
|
|
35
35
|
cc_emails?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Cell phone
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OrderBilling
|
|
40
|
+
*/
|
|
41
|
+
cell_phone?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Cell phone (E164 format)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OrderBilling
|
|
46
|
+
*/
|
|
47
|
+
cell_phone_e164?: string;
|
|
36
48
|
/**
|
|
37
49
|
* City
|
|
38
50
|
* @type {string}
|
|
@@ -27,6 +27,8 @@ function OrderBillingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'address1': !(0, runtime_1.exists)(json, 'address1') ? undefined : json['address1'],
|
|
28
28
|
'address2': !(0, runtime_1.exists)(json, 'address2') ? undefined : json['address2'],
|
|
29
29
|
'cc_emails': !(0, runtime_1.exists)(json, 'cc_emails') ? undefined : json['cc_emails'],
|
|
30
|
+
'cell_phone': !(0, runtime_1.exists)(json, 'cell_phone') ? undefined : json['cell_phone'],
|
|
31
|
+
'cell_phone_e164': !(0, runtime_1.exists)(json, 'cell_phone_e164') ? undefined : json['cell_phone_e164'],
|
|
30
32
|
'city': !(0, runtime_1.exists)(json, 'city') ? undefined : json['city'],
|
|
31
33
|
'company': !(0, runtime_1.exists)(json, 'company') ? undefined : json['company'],
|
|
32
34
|
'country_code': !(0, runtime_1.exists)(json, 'country_code') ? undefined : json['country_code'],
|
|
@@ -54,6 +56,8 @@ function OrderBillingToJSON(value) {
|
|
|
54
56
|
'address1': value.address1,
|
|
55
57
|
'address2': value.address2,
|
|
56
58
|
'cc_emails': value.cc_emails,
|
|
59
|
+
'cell_phone': value.cell_phone,
|
|
60
|
+
'cell_phone_e164': value.cell_phone_e164,
|
|
57
61
|
'city': value.city,
|
|
58
62
|
'company': value.company,
|
|
59
63
|
'country_code': value.country_code,
|
|
@@ -21,6 +21,12 @@ export interface OrderMarketing {
|
|
|
21
21
|
* @memberof OrderMarketing
|
|
22
22
|
*/
|
|
23
23
|
advertising_source?: string;
|
|
24
|
+
/**
|
|
25
|
+
* True if the customer has opted into SMS marketing
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof OrderMarketing
|
|
28
|
+
*/
|
|
29
|
+
cell_phone_opt_in?: boolean;
|
|
24
30
|
/**
|
|
25
31
|
* True if the customer has opted into mailing list subscription
|
|
26
32
|
* @type {boolean}
|
|
@@ -25,6 +25,7 @@ function OrderMarketingFromJSONTyped(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': !(0, runtime_1.exists)(json, 'mailing_list') ? undefined : json['mailing_list'],
|
|
29
30
|
'referral_code': !(0, runtime_1.exists)(json, 'referral_code') ? undefined : json['referral_code'],
|
|
30
31
|
};
|
|
@@ -39,6 +40,7 @@ function OrderMarketingToJSON(value) {
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
'advertising_source': value.advertising_source,
|
|
43
|
+
'cell_phone_opt_in': value.cell_phone_opt_in,
|
|
42
44
|
'mailing_list': value.mailing_list,
|
|
43
45
|
'referral_code': value.referral_code,
|
|
44
46
|
};
|
package/package.json
CHANGED
|
@@ -8703,7 +8703,7 @@ export class StorefrontApi extends runtime.BaseAPI implements StorefrontApiInter
|
|
|
8703
8703
|
}
|
|
8704
8704
|
|
|
8705
8705
|
const response = await this.request({
|
|
8706
|
-
path: `/storefront
|
|
8706
|
+
path: `/storefront`,
|
|
8707
8707
|
method: 'GET',
|
|
8708
8708
|
headers: headerParameters,
|
|
8709
8709
|
query: queryParameters,
|
|
@@ -25,6 +25,12 @@ export interface CartMarketing {
|
|
|
25
25
|
* @memberof CartMarketing
|
|
26
26
|
*/
|
|
27
27
|
advertising_source?: string;
|
|
28
|
+
/**
|
|
29
|
+
* True if the customer agrees to receiving marketing SMS messages
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof CartMarketing
|
|
32
|
+
*/
|
|
33
|
+
cell_phone_opt_in?: boolean;
|
|
28
34
|
/**
|
|
29
35
|
* True if the customer agrees to receiving marketing emails
|
|
30
36
|
* @type {boolean}
|
|
@@ -44,6 +50,7 @@ export function CartMarketingFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
44
50
|
return {
|
|
45
51
|
|
|
46
52
|
'advertising_source': !exists(json, 'advertising_source') ? undefined : json['advertising_source'],
|
|
53
|
+
'cell_phone_opt_in': !exists(json, 'cell_phone_opt_in') ? undefined : json['cell_phone_opt_in'],
|
|
47
54
|
'mailing_list_opt_in': !exists(json, 'mailing_list_opt_in') ? undefined : json['mailing_list_opt_in'],
|
|
48
55
|
};
|
|
49
56
|
}
|
|
@@ -58,6 +65,7 @@ export function CartMarketingToJSON(value?: CartMarketing | null): any {
|
|
|
58
65
|
return {
|
|
59
66
|
|
|
60
67
|
'advertising_source': value.advertising_source,
|
|
68
|
+
'cell_phone_opt_in': value.cell_phone_opt_in,
|
|
61
69
|
'mailing_list_opt_in': value.mailing_list_opt_in,
|
|
62
70
|
};
|
|
63
71
|
}
|
|
@@ -55,6 +55,12 @@ export interface ConversationParticipant {
|
|
|
55
55
|
* @memberof ConversationParticipant
|
|
56
56
|
*/
|
|
57
57
|
left_dts?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ConversationParticipant
|
|
62
|
+
*/
|
|
63
|
+
profile_image_url?: string;
|
|
58
64
|
/**
|
|
59
65
|
*
|
|
60
66
|
* @type {string}
|
|
@@ -85,6 +91,7 @@ export function ConversationParticipantFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
85
91
|
'joined_dts': !exists(json, 'joined_dts') ? undefined : json['joined_dts'],
|
|
86
92
|
'last_message_dts': !exists(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
87
93
|
'left_dts': !exists(json, 'left_dts') ? undefined : json['left_dts'],
|
|
94
|
+
'profile_image_url': !exists(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
88
95
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
89
96
|
'unread_messages': !exists(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
90
97
|
};
|
|
@@ -105,6 +112,7 @@ export function ConversationParticipantToJSON(value?: ConversationParticipant |
|
|
|
105
112
|
'joined_dts': value.joined_dts,
|
|
106
113
|
'last_message_dts': value.last_message_dts,
|
|
107
114
|
'left_dts': value.left_dts,
|
|
115
|
+
'profile_image_url': value.profile_image_url,
|
|
108
116
|
'status': value.status,
|
|
109
117
|
'unread_messages': value.unread_messages,
|
|
110
118
|
};
|
|
@@ -20,11 +20,11 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ConversationWebchatQueueStatusAgent {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Status of the agent
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ConversationWebchatQueueStatusAgent
|
|
26
26
|
*/
|
|
27
|
-
agent_status?:
|
|
27
|
+
agent_status?: ConversationWebchatQueueStatusAgentAgentStatusEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -49,8 +49,26 @@ export interface ConversationWebchatQueueStatusAgent {
|
|
|
49
49
|
* @memberof ConversationWebchatQueueStatusAgent
|
|
50
50
|
*/
|
|
51
51
|
next_round_robin?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Profile image URL
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ConversationWebchatQueueStatusAgent
|
|
56
|
+
*/
|
|
57
|
+
profile_image_url?: string;
|
|
52
58
|
}
|
|
53
59
|
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const ConversationWebchatQueueStatusAgentAgentStatusEnum = {
|
|
65
|
+
Available: 'available',
|
|
66
|
+
Busy: 'busy',
|
|
67
|
+
Unavailable: 'unavailable'
|
|
68
|
+
} as const;
|
|
69
|
+
export type ConversationWebchatQueueStatusAgentAgentStatusEnum = typeof ConversationWebchatQueueStatusAgentAgentStatusEnum[keyof typeof ConversationWebchatQueueStatusAgentAgentStatusEnum];
|
|
70
|
+
|
|
71
|
+
|
|
54
72
|
export function ConversationWebchatQueueStatusAgentFromJSON(json: any): ConversationWebchatQueueStatusAgent {
|
|
55
73
|
return ConversationWebchatQueueStatusAgentFromJSONTyped(json, false);
|
|
56
74
|
}
|
|
@@ -66,6 +84,7 @@ export function ConversationWebchatQueueStatusAgentFromJSONTyped(json: any, igno
|
|
|
66
84
|
'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
67
85
|
'last_chat_dts': !exists(json, 'last_chat_dts') ? undefined : json['last_chat_dts'],
|
|
68
86
|
'next_round_robin': !exists(json, 'next_round_robin') ? undefined : json['next_round_robin'],
|
|
87
|
+
'profile_image_url': !exists(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
69
88
|
};
|
|
70
89
|
}
|
|
71
90
|
|
|
@@ -83,6 +102,7 @@ export function ConversationWebchatQueueStatusAgentToJSON(value?: ConversationWe
|
|
|
83
102
|
'conversation_participant_name': value.conversation_participant_name,
|
|
84
103
|
'last_chat_dts': value.last_chat_dts,
|
|
85
104
|
'next_round_robin': value.next_round_robin,
|
|
105
|
+
'profile_image_url': value.profile_image_url,
|
|
86
106
|
};
|
|
87
107
|
}
|
|
88
108
|
|
|
@@ -37,6 +37,18 @@ export interface OrderBilling {
|
|
|
37
37
|
* @memberof OrderBilling
|
|
38
38
|
*/
|
|
39
39
|
cc_emails?: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Cell phone
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof OrderBilling
|
|
44
|
+
*/
|
|
45
|
+
cell_phone?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Cell phone (E164 format)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof OrderBilling
|
|
50
|
+
*/
|
|
51
|
+
cell_phone_e164?: string;
|
|
40
52
|
/**
|
|
41
53
|
* City
|
|
42
54
|
* @type {string}
|
|
@@ -130,6 +142,8 @@ export function OrderBillingFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
130
142
|
'address1': !exists(json, 'address1') ? undefined : json['address1'],
|
|
131
143
|
'address2': !exists(json, 'address2') ? undefined : json['address2'],
|
|
132
144
|
'cc_emails': !exists(json, 'cc_emails') ? undefined : json['cc_emails'],
|
|
145
|
+
'cell_phone': !exists(json, 'cell_phone') ? undefined : json['cell_phone'],
|
|
146
|
+
'cell_phone_e164': !exists(json, 'cell_phone_e164') ? undefined : json['cell_phone_e164'],
|
|
133
147
|
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
134
148
|
'company': !exists(json, 'company') ? undefined : json['company'],
|
|
135
149
|
'country_code': !exists(json, 'country_code') ? undefined : json['country_code'],
|
|
@@ -158,6 +172,8 @@ export function OrderBillingToJSON(value?: OrderBilling | null): any {
|
|
|
158
172
|
'address1': value.address1,
|
|
159
173
|
'address2': value.address2,
|
|
160
174
|
'cc_emails': value.cc_emails,
|
|
175
|
+
'cell_phone': value.cell_phone,
|
|
176
|
+
'cell_phone_e164': value.cell_phone_e164,
|
|
161
177
|
'city': value.city,
|
|
162
178
|
'company': value.company,
|
|
163
179
|
'country_code': value.country_code,
|
|
@@ -25,6 +25,12 @@ export interface OrderMarketing {
|
|
|
25
25
|
* @memberof OrderMarketing
|
|
26
26
|
*/
|
|
27
27
|
advertising_source?: string;
|
|
28
|
+
/**
|
|
29
|
+
* True if the customer has opted into SMS marketing
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof OrderMarketing
|
|
32
|
+
*/
|
|
33
|
+
cell_phone_opt_in?: boolean;
|
|
28
34
|
/**
|
|
29
35
|
* True if the customer has opted into mailing list subscription
|
|
30
36
|
* @type {boolean}
|
|
@@ -50,6 +56,7 @@ export function OrderMarketingFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
50
56
|
return {
|
|
51
57
|
|
|
52
58
|
'advertising_source': !exists(json, 'advertising_source') ? undefined : json['advertising_source'],
|
|
59
|
+
'cell_phone_opt_in': !exists(json, 'cell_phone_opt_in') ? undefined : json['cell_phone_opt_in'],
|
|
53
60
|
'mailing_list': !exists(json, 'mailing_list') ? undefined : json['mailing_list'],
|
|
54
61
|
'referral_code': !exists(json, 'referral_code') ? undefined : json['referral_code'],
|
|
55
62
|
};
|
|
@@ -65,6 +72,7 @@ export function OrderMarketingToJSON(value?: OrderMarketing | null): any {
|
|
|
65
72
|
return {
|
|
66
73
|
|
|
67
74
|
'advertising_source': value.advertising_source,
|
|
75
|
+
'cell_phone_opt_in': value.cell_phone_opt_in,
|
|
68
76
|
'mailing_list': value.mailing_list,
|
|
69
77
|
'referral_code': value.referral_code,
|
|
70
78
|
};
|