ultracart_rest_api_v2_typescript 4.0.91-RC → 4.0.92-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 +3 -2
- package/dist/models/ChannelPartner.d.ts +63 -0
- package/dist/models/ChannelPartner.js +54 -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/ChannelPartner.ts +104 -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.92-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.92-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.92-RC | 12/06/2022 | customer api - expose edi information and editor values |
|
|
57
58
|
| 4.0.91-RC | 12/02/2022 | conversations - customer last unresponded dts |
|
|
58
59
|
| 4.0.90-RC | 11/30/2022 | conversations - add order and auto order information to webchat context |
|
|
59
60
|
| 4.0.89-RC | 11/30/2022 | order item - addl fields for linking kits to kit components |
|
|
@@ -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;
|
|
@@ -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
|
@@ -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
|
+
|
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';
|