ultracart_rest_api_v2_typescript 4.0.91-RC → 4.0.93-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 +2 -0
- package/README.md +4 -2
- package/dist/models/CartCustomerProfile.d.ts +7 -1
- package/dist/models/CartCustomerProfile.js +2 -0
- package/dist/models/ChannelPartner.d.ts +63 -0
- package/dist/models/ChannelPartner.js +54 -0
- package/dist/models/ConversationWebchatContext.d.ts +6 -0
- package/dist/models/ConversationWebchatContext.js +2 -0
- package/dist/models/Customer.d.ts +7 -0
- package/dist/models/Customer.js +3 -0
- package/dist/models/CustomerEDI.d.ts +39 -0
- package/dist/models/CustomerEDI.js +46 -0
- package/dist/models/CustomerEditorValues.d.ts +7 -0
- package/dist/models/CustomerEditorValues.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/CartCustomerProfile.ts +9 -1
- package/src/models/ChannelPartner.ts +104 -0
- package/src/models/ConversationWebchatContext.ts +8 -0
- package/src/models/Customer.ts +14 -0
- package/src/models/CustomerEDI.ts +72 -0
- package/src/models/CustomerEditorValues.ts +14 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -120,6 +120,7 @@ src/models/CartTaxes.ts
|
|
|
120
120
|
src/models/CartUpsellAfter.ts
|
|
121
121
|
src/models/CartValidationRequest.ts
|
|
122
122
|
src/models/CartValidationResponse.ts
|
|
123
|
+
src/models/ChannelPartner.ts
|
|
123
124
|
src/models/ChannelPartnerCancelResponse.ts
|
|
124
125
|
src/models/ChannelPartnerEstimateShippingResponse.ts
|
|
125
126
|
src/models/ChannelPartnerEstimateTaxResponse.ts
|
|
@@ -242,6 +243,7 @@ src/models/CustomerAffiliate.ts
|
|
|
242
243
|
src/models/CustomerAttachment.ts
|
|
243
244
|
src/models/CustomerBilling.ts
|
|
244
245
|
src/models/CustomerCard.ts
|
|
246
|
+
src/models/CustomerEDI.ts
|
|
245
247
|
src/models/CustomerEditorValues.ts
|
|
246
248
|
src/models/CustomerEmail.ts
|
|
247
249
|
src/models/CustomerEmailListChanges.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.93-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.93-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.93-RC | 12/06/2022 | convo - add session_start_dts to webchat context, cart - add customer_profile.signup_dts |
|
|
58
|
+
| 4.0.92-RC | 12/06/2022 | customer api - expose edi information and editor values |
|
|
57
59
|
| 4.0.91-RC | 12/02/2022 | conversations - customer last unresponded dts |
|
|
58
60
|
| 4.0.90-RC | 11/30/2022 | conversations - add order and auto order information to webchat context |
|
|
59
61
|
| 4.0.89-RC | 11/30/2022 | order item - addl fields for linking kits to kit components |
|
|
@@ -84,7 +84,7 @@ export interface CartCustomerProfile {
|
|
|
84
84
|
*/
|
|
85
85
|
free_shipping?: boolean;
|
|
86
86
|
/**
|
|
87
|
-
* The minimum
|
|
87
|
+
* The minimum amount that this profile has to purchase to qualify for free shipping
|
|
88
88
|
* @type {number}
|
|
89
89
|
* @memberof CartCustomerProfile
|
|
90
90
|
*/
|
|
@@ -137,6 +137,12 @@ export interface CartCustomerProfile {
|
|
|
137
137
|
* @memberof CartCustomerProfile
|
|
138
138
|
*/
|
|
139
139
|
shipping_addresses?: Array<CartCustomerProfileAddress>;
|
|
140
|
+
/**
|
|
141
|
+
* Signup date
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof CartCustomerProfile
|
|
144
|
+
*/
|
|
145
|
+
signup_dts?: string;
|
|
140
146
|
/**
|
|
141
147
|
* True if this profile is exempt from sales tax
|
|
142
148
|
* @type {boolean}
|
|
@@ -46,6 +46,7 @@ function CartCustomerProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'no_realtime_charge': !(0, runtime_1.exists)(json, 'no_realtime_charge') ? undefined : json['no_realtime_charge'],
|
|
47
47
|
'pricing_tiers': !(0, runtime_1.exists)(json, 'pricing_tiers') ? undefined : json['pricing_tiers'],
|
|
48
48
|
'shipping_addresses': !(0, runtime_1.exists)(json, 'shipping_addresses') ? undefined : (json['shipping_addresses'].map(CartCustomerProfileAddress_1.CartCustomerProfileAddressFromJSON)),
|
|
49
|
+
'signup_dts': !(0, runtime_1.exists)(json, 'signup_dts') ? undefined : json['signup_dts'],
|
|
49
50
|
'tax_exempt': !(0, runtime_1.exists)(json, 'tax_exempt') ? undefined : json['tax_exempt'],
|
|
50
51
|
'ups_account_number': !(0, runtime_1.exists)(json, 'ups_account_number') ? undefined : json['ups_account_number'],
|
|
51
52
|
};
|
|
@@ -79,6 +80,7 @@ function CartCustomerProfileToJSON(value) {
|
|
|
79
80
|
'no_realtime_charge': value.no_realtime_charge,
|
|
80
81
|
'pricing_tiers': value.pricing_tiers,
|
|
81
82
|
'shipping_addresses': value.shipping_addresses === undefined ? undefined : (value.shipping_addresses.map(CartCustomerProfileAddress_1.CartCustomerProfileAddressToJSON)),
|
|
83
|
+
'signup_dts': value.signup_dts,
|
|
82
84
|
'tax_exempt': value.tax_exempt,
|
|
83
85
|
'ups_account_number': value.ups_account_number,
|
|
84
86
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
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 ChannelPartner
|
|
16
|
+
*/
|
|
17
|
+
export interface ChannelPartner {
|
|
18
|
+
/**
|
|
19
|
+
* Channel partner object id
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ChannelPartner
|
|
22
|
+
*/
|
|
23
|
+
channel_partner_oid?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Code associated with the channel partner
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChannelPartner
|
|
28
|
+
*/
|
|
29
|
+
code?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Communication method of the channel partner
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChannelPartner
|
|
34
|
+
*/
|
|
35
|
+
communication_method?: string;
|
|
36
|
+
/**
|
|
37
|
+
* True if the channel partner is inactive
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ChannelPartner
|
|
40
|
+
*/
|
|
41
|
+
inactive?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Merchant ID of the channel partner
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ChannelPartner
|
|
46
|
+
*/
|
|
47
|
+
merchant_id?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Name of the channel partner
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ChannelPartner
|
|
52
|
+
*/
|
|
53
|
+
name?: string;
|
|
54
|
+
/**
|
|
55
|
+
* True if emails to the customer are skipped for this channel partner.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ChannelPartner
|
|
58
|
+
*/
|
|
59
|
+
skip_customer_emails?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export declare function ChannelPartnerFromJSON(json: any): ChannelPartner;
|
|
62
|
+
export declare function ChannelPartnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelPartner;
|
|
63
|
+
export declare function ChannelPartnerToJSON(value?: ChannelPartner | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.ChannelPartnerToJSON = exports.ChannelPartnerFromJSONTyped = exports.ChannelPartnerFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ChannelPartnerFromJSON(json) {
|
|
19
|
+
return ChannelPartnerFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ChannelPartnerFromJSON = ChannelPartnerFromJSON;
|
|
22
|
+
function ChannelPartnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'channel_partner_oid': !(0, runtime_1.exists)(json, 'channel_partner_oid') ? undefined : json['channel_partner_oid'],
|
|
28
|
+
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
29
|
+
'communication_method': !(0, runtime_1.exists)(json, 'communication_method') ? undefined : json['communication_method'],
|
|
30
|
+
'inactive': !(0, runtime_1.exists)(json, 'inactive') ? undefined : json['inactive'],
|
|
31
|
+
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
32
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
33
|
+
'skip_customer_emails': !(0, runtime_1.exists)(json, 'skip_customer_emails') ? undefined : json['skip_customer_emails'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.ChannelPartnerFromJSONTyped = ChannelPartnerFromJSONTyped;
|
|
37
|
+
function ChannelPartnerToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'channel_partner_oid': value.channel_partner_oid,
|
|
46
|
+
'code': value.code,
|
|
47
|
+
'communication_method': value.communication_method,
|
|
48
|
+
'inactive': value.inactive,
|
|
49
|
+
'merchant_id': value.merchant_id,
|
|
50
|
+
'name': value.name,
|
|
51
|
+
'skip_customer_emails': value.skip_customer_emails,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ChannelPartnerToJSON = ChannelPartnerToJSON;
|
|
@@ -57,6 +57,12 @@ export interface ConversationWebchatContext {
|
|
|
57
57
|
* @memberof ConversationWebchatContext
|
|
58
58
|
*/
|
|
59
59
|
session_start?: HitSessionStart;
|
|
60
|
+
/**
|
|
61
|
+
* Date/time that the session was started (if known)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ConversationWebchatContext
|
|
64
|
+
*/
|
|
65
|
+
session_start_dts?: string;
|
|
60
66
|
/**
|
|
61
67
|
*
|
|
62
68
|
* @type {HitSessionUtm}
|
|
@@ -36,6 +36,7 @@ function ConversationWebchatContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'orders': !(0, runtime_1.exists)(json, 'orders') ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
37
37
|
'page_view': !(0, runtime_1.exists)(json, 'page_view') ? undefined : (json['page_view'].map(HitPageView_1.HitPageViewFromJSON)),
|
|
38
38
|
'session_start': !(0, runtime_1.exists)(json, 'session_start') ? undefined : (0, HitSessionStart_1.HitSessionStartFromJSON)(json['session_start']),
|
|
39
|
+
'session_start_dts': !(0, runtime_1.exists)(json, 'session_start_dts') ? undefined : json['session_start_dts'],
|
|
39
40
|
'session_utm': !(0, runtime_1.exists)(json, 'session_utm') ? undefined : (0, HitSessionUtm_1.HitSessionUtmFromJSON)(json['session_utm']),
|
|
40
41
|
};
|
|
41
42
|
}
|
|
@@ -54,6 +55,7 @@ function ConversationWebchatContextToJSON(value) {
|
|
|
54
55
|
'orders': value.orders === undefined ? undefined : (value.orders.map(Order_1.OrderToJSON)),
|
|
55
56
|
'page_view': value.page_view === undefined ? undefined : (value.page_view.map(HitPageView_1.HitPageViewToJSON)),
|
|
56
57
|
'session_start': (0, HitSessionStart_1.HitSessionStartToJSON)(value.session_start),
|
|
58
|
+
'session_start_dts': value.session_start_dts,
|
|
57
59
|
'session_utm': (0, HitSessionUtm_1.HitSessionUtmToJSON)(value.session_utm),
|
|
58
60
|
};
|
|
59
61
|
}
|
|
@@ -13,6 +13,7 @@ import { CustomerActivity } from './CustomerActivity';
|
|
|
13
13
|
import { CustomerAttachment } from './CustomerAttachment';
|
|
14
14
|
import { CustomerBilling } from './CustomerBilling';
|
|
15
15
|
import { CustomerCard } from './CustomerCard';
|
|
16
|
+
import { CustomerEDI } from './CustomerEDI';
|
|
16
17
|
import { CustomerEmail } from './CustomerEmail';
|
|
17
18
|
import { CustomerLoyalty } from './CustomerLoyalty';
|
|
18
19
|
import { CustomerOrdersSummary } from './CustomerOrdersSummary';
|
|
@@ -145,6 +146,12 @@ export interface Customer {
|
|
|
145
146
|
* @memberof Customer
|
|
146
147
|
*/
|
|
147
148
|
dhl_duty_account_number?: string;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {CustomerEDI}
|
|
152
|
+
* @memberof Customer
|
|
153
|
+
*/
|
|
154
|
+
edi?: CustomerEDI;
|
|
148
155
|
/**
|
|
149
156
|
* Email address of this customer profile
|
|
150
157
|
* @type {string}
|
package/dist/models/Customer.js
CHANGED
|
@@ -19,6 +19,7 @@ var CustomerActivity_1 = require("./CustomerActivity");
|
|
|
19
19
|
var CustomerAttachment_1 = require("./CustomerAttachment");
|
|
20
20
|
var CustomerBilling_1 = require("./CustomerBilling");
|
|
21
21
|
var CustomerCard_1 = require("./CustomerCard");
|
|
22
|
+
var CustomerEDI_1 = require("./CustomerEDI");
|
|
22
23
|
var CustomerEmail_1 = require("./CustomerEmail");
|
|
23
24
|
var CustomerLoyalty_1 = require("./CustomerLoyalty");
|
|
24
25
|
var CustomerOrdersSummary_1 = require("./CustomerOrdersSummary");
|
|
@@ -59,6 +60,7 @@ function CustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'customer_profile_oid': !(0, runtime_1.exists)(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
60
61
|
'dhl_account_number': !(0, runtime_1.exists)(json, 'dhl_account_number') ? undefined : json['dhl_account_number'],
|
|
61
62
|
'dhl_duty_account_number': !(0, runtime_1.exists)(json, 'dhl_duty_account_number') ? undefined : json['dhl_duty_account_number'],
|
|
63
|
+
'edi': !(0, runtime_1.exists)(json, 'edi') ? undefined : (0, CustomerEDI_1.CustomerEDIFromJSON)(json['edi']),
|
|
62
64
|
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
63
65
|
'exempt_shipping_handling_charge': !(0, runtime_1.exists)(json, 'exempt_shipping_handling_charge') ? undefined : json['exempt_shipping_handling_charge'],
|
|
64
66
|
'fedex_account_number': !(0, runtime_1.exists)(json, 'fedex_account_number') ? undefined : json['fedex_account_number'],
|
|
@@ -130,6 +132,7 @@ function CustomerToJSON(value) {
|
|
|
130
132
|
'customer_profile_oid': value.customer_profile_oid,
|
|
131
133
|
'dhl_account_number': value.dhl_account_number,
|
|
132
134
|
'dhl_duty_account_number': value.dhl_duty_account_number,
|
|
135
|
+
'edi': (0, CustomerEDI_1.CustomerEDIToJSON)(value.edi),
|
|
133
136
|
'email': value.email,
|
|
134
137
|
'exempt_shipping_handling_charge': value.exempt_shipping_handling_charge,
|
|
135
138
|
'fedex_account_number': value.fedex_account_number,
|
|
@@ -0,0 +1,39 @@
|
|
|
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 CustomerEDI
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomerEDI {
|
|
18
|
+
/**
|
|
19
|
+
* EDI channel partner this customer profile is associated with
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CustomerEDI
|
|
22
|
+
*/
|
|
23
|
+
channel_partner_oid?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The EDI distribution center number associated with this customer profile.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomerEDI
|
|
28
|
+
*/
|
|
29
|
+
distribution_center_number?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The EDI store number associated with this customer profile.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomerEDI
|
|
34
|
+
*/
|
|
35
|
+
store_number?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function CustomerEDIFromJSON(json: any): CustomerEDI;
|
|
38
|
+
export declare function CustomerEDIFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerEDI;
|
|
39
|
+
export declare function CustomerEDIToJSON(value?: CustomerEDI | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.CustomerEDIToJSON = exports.CustomerEDIFromJSONTyped = exports.CustomerEDIFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CustomerEDIFromJSON(json) {
|
|
19
|
+
return CustomerEDIFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CustomerEDIFromJSON = CustomerEDIFromJSON;
|
|
22
|
+
function CustomerEDIFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'channel_partner_oid': !(0, runtime_1.exists)(json, 'channel_partner_oid') ? undefined : json['channel_partner_oid'],
|
|
28
|
+
'distribution_center_number': !(0, runtime_1.exists)(json, 'distribution_center_number') ? undefined : json['distribution_center_number'],
|
|
29
|
+
'store_number': !(0, runtime_1.exists)(json, 'store_number') ? undefined : json['store_number'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.CustomerEDIFromJSONTyped = CustomerEDIFromJSONTyped;
|
|
33
|
+
function CustomerEDIToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'channel_partner_oid': value.channel_partner_oid,
|
|
42
|
+
'distribution_center_number': value.distribution_center_number,
|
|
43
|
+
'store_number': value.store_number,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.CustomerEDIToJSON = CustomerEDIToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ChannelPartner } from './ChannelPartner';
|
|
12
13
|
import { Country } from './Country';
|
|
13
14
|
import { CustomerAffiliate } from './CustomerAffiliate';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface CustomerEditorValues {
|
|
|
47
48
|
* @memberof CustomerEditorValues
|
|
48
49
|
*/
|
|
49
50
|
countries?: Array<Country>;
|
|
51
|
+
/**
|
|
52
|
+
* EDI channel partners
|
|
53
|
+
* @type {Array<ChannelPartner>}
|
|
54
|
+
* @memberof CustomerEditorValues
|
|
55
|
+
*/
|
|
56
|
+
edi_channel_partners?: Array<ChannelPartner>;
|
|
50
57
|
/**
|
|
51
58
|
* loyalty_ledger_descriptions
|
|
52
59
|
* @type {Array<string>}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CustomerEditorValuesToJSON = exports.CustomerEditorValuesFromJSONTyped = exports.CustomerEditorValuesFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var ChannelPartner_1 = require("./ChannelPartner");
|
|
18
19
|
var Country_1 = require("./Country");
|
|
19
20
|
var CustomerAffiliate_1 = require("./CustomerAffiliate");
|
|
20
21
|
function CustomerEditorValuesFromJSON(json) {
|
|
@@ -31,6 +32,7 @@ function CustomerEditorValuesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
32
|
'card_exp_years': !(0, runtime_1.exists)(json, 'card_exp_years') ? undefined : json['card_exp_years'],
|
|
32
33
|
'card_types': !(0, runtime_1.exists)(json, 'card_types') ? undefined : json['card_types'],
|
|
33
34
|
'countries': !(0, runtime_1.exists)(json, 'countries') ? undefined : (json['countries'].map(Country_1.CountryFromJSON)),
|
|
35
|
+
'edi_channel_partners': !(0, runtime_1.exists)(json, 'edi_channel_partners') ? undefined : (json['edi_channel_partners'].map(ChannelPartner_1.ChannelPartnerFromJSON)),
|
|
34
36
|
'loyalty_ledger_descriptions': !(0, runtime_1.exists)(json, 'loyalty_ledger_descriptions') ? undefined : json['loyalty_ledger_descriptions'],
|
|
35
37
|
'loyalty_program_type': !(0, runtime_1.exists)(json, 'loyalty_program_type') ? undefined : json['loyalty_program_type'],
|
|
36
38
|
'qb_classes': !(0, runtime_1.exists)(json, 'qb_classes') ? undefined : json['qb_classes'],
|
|
@@ -53,6 +55,7 @@ function CustomerEditorValuesToJSON(value) {
|
|
|
53
55
|
'card_exp_years': value.card_exp_years,
|
|
54
56
|
'card_types': value.card_types,
|
|
55
57
|
'countries': value.countries === undefined ? undefined : (value.countries.map(Country_1.CountryToJSON)),
|
|
58
|
+
'edi_channel_partners': value.edi_channel_partners === undefined ? undefined : (value.edi_channel_partners.map(ChannelPartner_1.ChannelPartnerToJSON)),
|
|
56
59
|
'loyalty_ledger_descriptions': value.loyalty_ledger_descriptions,
|
|
57
60
|
'loyalty_program_type': value.loyalty_program_type,
|
|
58
61
|
'qb_classes': value.qb_classes,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export * from './CartTaxes';
|
|
|
95
95
|
export * from './CartUpsellAfter';
|
|
96
96
|
export * from './CartValidationRequest';
|
|
97
97
|
export * from './CartValidationResponse';
|
|
98
|
+
export * from './ChannelPartner';
|
|
98
99
|
export * from './ChannelPartnerCancelResponse';
|
|
99
100
|
export * from './ChannelPartnerEstimateShippingResponse';
|
|
100
101
|
export * from './ChannelPartnerEstimateTaxResponse';
|
|
@@ -217,6 +218,7 @@ export * from './CustomerAffiliate';
|
|
|
217
218
|
export * from './CustomerAttachment';
|
|
218
219
|
export * from './CustomerBilling';
|
|
219
220
|
export * from './CustomerCard';
|
|
221
|
+
export * from './CustomerEDI';
|
|
220
222
|
export * from './CustomerEditorValues';
|
|
221
223
|
export * from './CustomerEmail';
|
|
222
224
|
export * from './CustomerEmailListChanges';
|
package/dist/models/index.js
CHANGED
|
@@ -113,6 +113,7 @@ __exportStar(require("./CartTaxes"), exports);
|
|
|
113
113
|
__exportStar(require("./CartUpsellAfter"), exports);
|
|
114
114
|
__exportStar(require("./CartValidationRequest"), exports);
|
|
115
115
|
__exportStar(require("./CartValidationResponse"), exports);
|
|
116
|
+
__exportStar(require("./ChannelPartner"), exports);
|
|
116
117
|
__exportStar(require("./ChannelPartnerCancelResponse"), exports);
|
|
117
118
|
__exportStar(require("./ChannelPartnerEstimateShippingResponse"), exports);
|
|
118
119
|
__exportStar(require("./ChannelPartnerEstimateTaxResponse"), exports);
|
|
@@ -235,6 +236,7 @@ __exportStar(require("./CustomerAffiliate"), exports);
|
|
|
235
236
|
__exportStar(require("./CustomerAttachment"), exports);
|
|
236
237
|
__exportStar(require("./CustomerBilling"), exports);
|
|
237
238
|
__exportStar(require("./CustomerCard"), exports);
|
|
239
|
+
__exportStar(require("./CustomerEDI"), exports);
|
|
238
240
|
__exportStar(require("./CustomerEditorValues"), exports);
|
|
239
241
|
__exportStar(require("./CustomerEmail"), exports);
|
|
240
242
|
__exportStar(require("./CustomerEmailListChanges"), exports);
|
package/package.json
CHANGED
|
@@ -99,7 +99,7 @@ export interface CartCustomerProfile {
|
|
|
99
99
|
*/
|
|
100
100
|
free_shipping?: boolean;
|
|
101
101
|
/**
|
|
102
|
-
* The minimum
|
|
102
|
+
* The minimum amount that this profile has to purchase to qualify for free shipping
|
|
103
103
|
* @type {number}
|
|
104
104
|
* @memberof CartCustomerProfile
|
|
105
105
|
*/
|
|
@@ -152,6 +152,12 @@ export interface CartCustomerProfile {
|
|
|
152
152
|
* @memberof CartCustomerProfile
|
|
153
153
|
*/
|
|
154
154
|
shipping_addresses?: Array<CartCustomerProfileAddress>;
|
|
155
|
+
/**
|
|
156
|
+
* Signup date
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof CartCustomerProfile
|
|
159
|
+
*/
|
|
160
|
+
signup_dts?: string;
|
|
155
161
|
/**
|
|
156
162
|
* True if this profile is exempt from sales tax
|
|
157
163
|
* @type {boolean}
|
|
@@ -196,6 +202,7 @@ export function CartCustomerProfileFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
196
202
|
'no_realtime_charge': !exists(json, 'no_realtime_charge') ? undefined : json['no_realtime_charge'],
|
|
197
203
|
'pricing_tiers': !exists(json, 'pricing_tiers') ? undefined : json['pricing_tiers'],
|
|
198
204
|
'shipping_addresses': !exists(json, 'shipping_addresses') ? undefined : ((json['shipping_addresses'] as Array<any>).map(CartCustomerProfileAddressFromJSON)),
|
|
205
|
+
'signup_dts': !exists(json, 'signup_dts') ? undefined : json['signup_dts'],
|
|
199
206
|
'tax_exempt': !exists(json, 'tax_exempt') ? undefined : json['tax_exempt'],
|
|
200
207
|
'ups_account_number': !exists(json, 'ups_account_number') ? undefined : json['ups_account_number'],
|
|
201
208
|
};
|
|
@@ -230,6 +237,7 @@ export function CartCustomerProfileToJSON(value?: CartCustomerProfile | null): a
|
|
|
230
237
|
'no_realtime_charge': value.no_realtime_charge,
|
|
231
238
|
'pricing_tiers': value.pricing_tiers,
|
|
232
239
|
'shipping_addresses': value.shipping_addresses === undefined ? undefined : ((value.shipping_addresses as Array<any>).map(CartCustomerProfileAddressToJSON)),
|
|
240
|
+
'signup_dts': value.signup_dts,
|
|
233
241
|
'tax_exempt': value.tax_exempt,
|
|
234
242
|
'ups_account_number': value.ups_account_number,
|
|
235
243
|
};
|
|
@@ -0,0 +1,104 @@
|
|
|
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 ChannelPartner
|
|
20
|
+
*/
|
|
21
|
+
export interface ChannelPartner {
|
|
22
|
+
/**
|
|
23
|
+
* Channel partner object id
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ChannelPartner
|
|
26
|
+
*/
|
|
27
|
+
channel_partner_oid?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Code associated with the channel partner
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ChannelPartner
|
|
32
|
+
*/
|
|
33
|
+
code?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Communication method of the channel partner
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ChannelPartner
|
|
38
|
+
*/
|
|
39
|
+
communication_method?: string;
|
|
40
|
+
/**
|
|
41
|
+
* True if the channel partner is inactive
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ChannelPartner
|
|
44
|
+
*/
|
|
45
|
+
inactive?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Merchant ID of the channel partner
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ChannelPartner
|
|
50
|
+
*/
|
|
51
|
+
merchant_id?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Name of the channel partner
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ChannelPartner
|
|
56
|
+
*/
|
|
57
|
+
name?: string;
|
|
58
|
+
/**
|
|
59
|
+
* True if emails to the customer are skipped for this channel partner.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ChannelPartner
|
|
62
|
+
*/
|
|
63
|
+
skip_customer_emails?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ChannelPartnerFromJSON(json: any): ChannelPartner {
|
|
67
|
+
return ChannelPartnerFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ChannelPartnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelPartner {
|
|
71
|
+
if ((json === undefined) || (json === null)) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'channel_partner_oid': !exists(json, 'channel_partner_oid') ? undefined : json['channel_partner_oid'],
|
|
77
|
+
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
78
|
+
'communication_method': !exists(json, 'communication_method') ? undefined : json['communication_method'],
|
|
79
|
+
'inactive': !exists(json, 'inactive') ? undefined : json['inactive'],
|
|
80
|
+
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
81
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
82
|
+
'skip_customer_emails': !exists(json, 'skip_customer_emails') ? undefined : json['skip_customer_emails'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ChannelPartnerToJSON(value?: ChannelPartner | null): any {
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
if (value === null) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'channel_partner_oid': value.channel_partner_oid,
|
|
96
|
+
'code': value.code,
|
|
97
|
+
'communication_method': value.communication_method,
|
|
98
|
+
'inactive': value.inactive,
|
|
99
|
+
'merchant_id': value.merchant_id,
|
|
100
|
+
'name': value.name,
|
|
101
|
+
'skip_customer_emails': value.skip_customer_emails,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -92,6 +92,12 @@ export interface ConversationWebchatContext {
|
|
|
92
92
|
* @memberof ConversationWebchatContext
|
|
93
93
|
*/
|
|
94
94
|
session_start?: HitSessionStart;
|
|
95
|
+
/**
|
|
96
|
+
* Date/time that the session was started (if known)
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ConversationWebchatContext
|
|
99
|
+
*/
|
|
100
|
+
session_start_dts?: string;
|
|
95
101
|
/**
|
|
96
102
|
*
|
|
97
103
|
* @type {HitSessionUtm}
|
|
@@ -116,6 +122,7 @@ export function ConversationWebchatContextFromJSONTyped(json: any, ignoreDiscrim
|
|
|
116
122
|
'orders': !exists(json, 'orders') ? undefined : ((json['orders'] as Array<any>).map(OrderFromJSON)),
|
|
117
123
|
'page_view': !exists(json, 'page_view') ? undefined : ((json['page_view'] as Array<any>).map(HitPageViewFromJSON)),
|
|
118
124
|
'session_start': !exists(json, 'session_start') ? undefined : HitSessionStartFromJSON(json['session_start']),
|
|
125
|
+
'session_start_dts': !exists(json, 'session_start_dts') ? undefined : json['session_start_dts'],
|
|
119
126
|
'session_utm': !exists(json, 'session_utm') ? undefined : HitSessionUtmFromJSON(json['session_utm']),
|
|
120
127
|
};
|
|
121
128
|
}
|
|
@@ -135,6 +142,7 @@ export function ConversationWebchatContextToJSON(value?: ConversationWebchatCont
|
|
|
135
142
|
'orders': value.orders === undefined ? undefined : ((value.orders as Array<any>).map(OrderToJSON)),
|
|
136
143
|
'page_view': value.page_view === undefined ? undefined : ((value.page_view as Array<any>).map(HitPageViewToJSON)),
|
|
137
144
|
'session_start': HitSessionStartToJSON(value.session_start),
|
|
145
|
+
'session_start_dts': value.session_start_dts,
|
|
138
146
|
'session_utm': HitSessionUtmToJSON(value.session_utm),
|
|
139
147
|
};
|
|
140
148
|
}
|
package/src/models/Customer.ts
CHANGED
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
CustomerCardFromJSONTyped,
|
|
38
38
|
CustomerCardToJSON,
|
|
39
39
|
} from './CustomerCard';
|
|
40
|
+
import {
|
|
41
|
+
CustomerEDI,
|
|
42
|
+
CustomerEDIFromJSON,
|
|
43
|
+
CustomerEDIFromJSONTyped,
|
|
44
|
+
CustomerEDIToJSON,
|
|
45
|
+
} from './CustomerEDI';
|
|
40
46
|
import {
|
|
41
47
|
CustomerEmail,
|
|
42
48
|
CustomerEmailFromJSON,
|
|
@@ -230,6 +236,12 @@ export interface Customer {
|
|
|
230
236
|
* @memberof Customer
|
|
231
237
|
*/
|
|
232
238
|
dhl_duty_account_number?: string;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {CustomerEDI}
|
|
242
|
+
* @memberof Customer
|
|
243
|
+
*/
|
|
244
|
+
edi?: CustomerEDI;
|
|
233
245
|
/**
|
|
234
246
|
* Email address of this customer profile
|
|
235
247
|
* @type {string}
|
|
@@ -507,6 +519,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
507
519
|
'customer_profile_oid': !exists(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
508
520
|
'dhl_account_number': !exists(json, 'dhl_account_number') ? undefined : json['dhl_account_number'],
|
|
509
521
|
'dhl_duty_account_number': !exists(json, 'dhl_duty_account_number') ? undefined : json['dhl_duty_account_number'],
|
|
522
|
+
'edi': !exists(json, 'edi') ? undefined : CustomerEDIFromJSON(json['edi']),
|
|
510
523
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
511
524
|
'exempt_shipping_handling_charge': !exists(json, 'exempt_shipping_handling_charge') ? undefined : json['exempt_shipping_handling_charge'],
|
|
512
525
|
'fedex_account_number': !exists(json, 'fedex_account_number') ? undefined : json['fedex_account_number'],
|
|
@@ -579,6 +592,7 @@ export function CustomerToJSON(value?: Customer | null): any {
|
|
|
579
592
|
'customer_profile_oid': value.customer_profile_oid,
|
|
580
593
|
'dhl_account_number': value.dhl_account_number,
|
|
581
594
|
'dhl_duty_account_number': value.dhl_duty_account_number,
|
|
595
|
+
'edi': CustomerEDIToJSON(value.edi),
|
|
582
596
|
'email': value.email,
|
|
583
597
|
'exempt_shipping_handling_charge': value.exempt_shipping_handling_charge,
|
|
584
598
|
'fedex_account_number': value.fedex_account_number,
|
|
@@ -0,0 +1,72 @@
|
|
|
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 CustomerEDI
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerEDI {
|
|
22
|
+
/**
|
|
23
|
+
* EDI channel partner this customer profile is associated with
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CustomerEDI
|
|
26
|
+
*/
|
|
27
|
+
channel_partner_oid?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The EDI distribution center number associated with this customer profile.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerEDI
|
|
32
|
+
*/
|
|
33
|
+
distribution_center_number?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The EDI store number associated with this customer profile.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomerEDI
|
|
38
|
+
*/
|
|
39
|
+
store_number?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CustomerEDIFromJSON(json: any): CustomerEDI {
|
|
43
|
+
return CustomerEDIFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CustomerEDIFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerEDI {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
'channel_partner_oid': !exists(json, 'channel_partner_oid') ? undefined : json['channel_partner_oid'],
|
|
53
|
+
'distribution_center_number': !exists(json, 'distribution_center_number') ? undefined : json['distribution_center_number'],
|
|
54
|
+
'store_number': !exists(json, 'store_number') ? undefined : json['store_number'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CustomerEDIToJSON(value?: CustomerEDI | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'channel_partner_oid': value.channel_partner_oid,
|
|
68
|
+
'distribution_center_number': value.distribution_center_number,
|
|
69
|
+
'store_number': value.store_number,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ChannelPartner,
|
|
18
|
+
ChannelPartnerFromJSON,
|
|
19
|
+
ChannelPartnerFromJSONTyped,
|
|
20
|
+
ChannelPartnerToJSON,
|
|
21
|
+
} from './ChannelPartner';
|
|
16
22
|
import {
|
|
17
23
|
Country,
|
|
18
24
|
CountryFromJSON,
|
|
@@ -62,6 +68,12 @@ export interface CustomerEditorValues {
|
|
|
62
68
|
* @memberof CustomerEditorValues
|
|
63
69
|
*/
|
|
64
70
|
countries?: Array<Country>;
|
|
71
|
+
/**
|
|
72
|
+
* EDI channel partners
|
|
73
|
+
* @type {Array<ChannelPartner>}
|
|
74
|
+
* @memberof CustomerEditorValues
|
|
75
|
+
*/
|
|
76
|
+
edi_channel_partners?: Array<ChannelPartner>;
|
|
65
77
|
/**
|
|
66
78
|
* loyalty_ledger_descriptions
|
|
67
79
|
* @type {Array<string>}
|
|
@@ -115,6 +127,7 @@ export function CustomerEditorValuesFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
115
127
|
'card_exp_years': !exists(json, 'card_exp_years') ? undefined : json['card_exp_years'],
|
|
116
128
|
'card_types': !exists(json, 'card_types') ? undefined : json['card_types'],
|
|
117
129
|
'countries': !exists(json, 'countries') ? undefined : ((json['countries'] as Array<any>).map(CountryFromJSON)),
|
|
130
|
+
'edi_channel_partners': !exists(json, 'edi_channel_partners') ? undefined : ((json['edi_channel_partners'] as Array<any>).map(ChannelPartnerFromJSON)),
|
|
118
131
|
'loyalty_ledger_descriptions': !exists(json, 'loyalty_ledger_descriptions') ? undefined : json['loyalty_ledger_descriptions'],
|
|
119
132
|
'loyalty_program_type': !exists(json, 'loyalty_program_type') ? undefined : json['loyalty_program_type'],
|
|
120
133
|
'qb_classes': !exists(json, 'qb_classes') ? undefined : json['qb_classes'],
|
|
@@ -138,6 +151,7 @@ export function CustomerEditorValuesToJSON(value?: CustomerEditorValues | null):
|
|
|
138
151
|
'card_exp_years': value.card_exp_years,
|
|
139
152
|
'card_types': value.card_types,
|
|
140
153
|
'countries': value.countries === undefined ? undefined : ((value.countries as Array<any>).map(CountryToJSON)),
|
|
154
|
+
'edi_channel_partners': value.edi_channel_partners === undefined ? undefined : ((value.edi_channel_partners as Array<any>).map(ChannelPartnerToJSON)),
|
|
141
155
|
'loyalty_ledger_descriptions': value.loyalty_ledger_descriptions,
|
|
142
156
|
'loyalty_program_type': value.loyalty_program_type,
|
|
143
157
|
'qb_classes': value.qb_classes,
|
package/src/models/index.ts
CHANGED
|
@@ -97,6 +97,7 @@ export * from './CartTaxes';
|
|
|
97
97
|
export * from './CartUpsellAfter';
|
|
98
98
|
export * from './CartValidationRequest';
|
|
99
99
|
export * from './CartValidationResponse';
|
|
100
|
+
export * from './ChannelPartner';
|
|
100
101
|
export * from './ChannelPartnerCancelResponse';
|
|
101
102
|
export * from './ChannelPartnerEstimateShippingResponse';
|
|
102
103
|
export * from './ChannelPartnerEstimateTaxResponse';
|
|
@@ -219,6 +220,7 @@ export * from './CustomerAffiliate';
|
|
|
219
220
|
export * from './CustomerAttachment';
|
|
220
221
|
export * from './CustomerBilling';
|
|
221
222
|
export * from './CustomerCard';
|
|
223
|
+
export * from './CustomerEDI';
|
|
222
224
|
export * from './CustomerEditorValues';
|
|
223
225
|
export * from './CustomerEmail';
|
|
224
226
|
export * from './CustomerEmailListChanges';
|