ultracart_rest_api_v2_typescript 4.0.172 → 4.0.174
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/AutoOrderItem.d.ts +3 -0
- package/dist/models/AutoOrderItem.js +4 -1
- package/dist/models/AutoOrderItemSimpleSchedule.d.ts +3 -0
- package/dist/models/AutoOrderItemSimpleSchedule.js +4 -1
- package/dist/models/ChannelPartnerOrderItem.d.ts +3 -0
- package/dist/models/ChannelPartnerOrderItem.js +4 -1
- package/dist/models/Coupon.d.ts +7 -0
- package/dist/models/Coupon.js +3 -0
- package/dist/models/CouponFreeItemWithItemPurchaseAndFreeShipping.d.ts +45 -0
- package/dist/models/CouponFreeItemWithItemPurchaseAndFreeShipping.js +48 -0
- package/dist/models/Customer.d.ts +7 -0
- package/dist/models/Customer.js +3 -0
- package/dist/models/CustomerProperty.d.ts +39 -0
- package/dist/models/CustomerProperty.js +46 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/AutoOrderItem.ts +4 -1
- package/src/models/AutoOrderItemSimpleSchedule.ts +4 -1
- package/src/models/ChannelPartnerOrderItem.ts +4 -1
- package/src/models/Coupon.ts +14 -0
- package/src/models/CouponFreeItemWithItemPurchaseAndFreeShipping.ts +80 -0
- package/src/models/Customer.ts +14 -0
- package/src/models/CustomerProperty.ts +72 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -235,6 +235,7 @@ src/models/CouponEditorValues.ts
|
|
|
235
235
|
src/models/CouponExistsResponse.ts
|
|
236
236
|
src/models/CouponFreeItemAndShippingWithSubtotal.ts
|
|
237
237
|
src/models/CouponFreeItemWithItemPurchase.ts
|
|
238
|
+
src/models/CouponFreeItemWithItemPurchaseAndFreeShipping.ts
|
|
238
239
|
src/models/CouponFreeItemWithSubtotal.ts
|
|
239
240
|
src/models/CouponFreeItemsWithItemPurchase.ts
|
|
240
241
|
src/models/CouponFreeItemsWithMixMatchPurchase.ts
|
|
@@ -298,6 +299,7 @@ src/models/CustomerMergeRequest.ts
|
|
|
298
299
|
src/models/CustomerOrdersSummary.ts
|
|
299
300
|
src/models/CustomerPricingTier.ts
|
|
300
301
|
src/models/CustomerPrivacy.ts
|
|
302
|
+
src/models/CustomerProperty.ts
|
|
301
303
|
src/models/CustomerQuery.ts
|
|
302
304
|
src/models/CustomerQuotesSummary.ts
|
|
303
305
|
src/models/CustomerResponse.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.174
|
|
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.174 --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.174 | 09/05/2023 | auto order schedule - add intervals for 4 6 and 8 weeks |
|
|
58
|
+
| 4.0.173 | 08/31/2023 | new coupon - free item and free shipping with purchase |
|
|
57
59
|
| 4.0.172 | 08/16/2023 | added validate_original_order query param to auto order update method |
|
|
58
60
|
| 4.0.171 | 08/14/2023 | esp - add require_order_within_last to the settings object |
|
|
59
61
|
| 4.0.170 | 08/14/2023 | esp - expose rate limiter values in settings object |
|
|
@@ -192,6 +192,9 @@ export declare const AutoOrderItemFrequencyEnum: {
|
|
|
192
192
|
readonly Every4Months: "Every 4 Months";
|
|
193
193
|
readonly Every6Months: "Every 6 Months";
|
|
194
194
|
readonly Yearly: "Yearly";
|
|
195
|
+
readonly Every4Weeks: "Every 4 Weeks";
|
|
196
|
+
readonly Every6Weeks: "Every 6 Weeks";
|
|
197
|
+
readonly Every8Weeks: "Every 8 Weeks";
|
|
195
198
|
};
|
|
196
199
|
export type AutoOrderItemFrequencyEnum = typeof AutoOrderItemFrequencyEnum[keyof typeof AutoOrderItemFrequencyEnum];
|
|
197
200
|
export declare function AutoOrderItemFromJSON(json: any): AutoOrderItem;
|
|
@@ -34,7 +34,10 @@ exports.AutoOrderItemFrequencyEnum = {
|
|
|
34
34
|
Every3Months: 'Every 3 Months',
|
|
35
35
|
Every4Months: 'Every 4 Months',
|
|
36
36
|
Every6Months: 'Every 6 Months',
|
|
37
|
-
Yearly: 'Yearly'
|
|
37
|
+
Yearly: 'Yearly',
|
|
38
|
+
Every4Weeks: 'Every 4 Weeks',
|
|
39
|
+
Every6Weeks: 'Every 6 Weeks',
|
|
40
|
+
Every8Weeks: 'Every 8 Weeks'
|
|
38
41
|
};
|
|
39
42
|
function AutoOrderItemFromJSON(json) {
|
|
40
43
|
return AutoOrderItemFromJSONTyped(json, false);
|
|
@@ -51,6 +51,9 @@ export declare const AutoOrderItemSimpleScheduleFrequencyEnum: {
|
|
|
51
51
|
readonly Every4Months: "Every 4 Months";
|
|
52
52
|
readonly Every6Months: "Every 6 Months";
|
|
53
53
|
readonly Yearly: "Yearly";
|
|
54
|
+
readonly Every4Weeks: "Every 4 Weeks";
|
|
55
|
+
readonly Every6Weeks: "Every 6 Weeks";
|
|
56
|
+
readonly Every8Weeks: "Every 8 Weeks";
|
|
54
57
|
};
|
|
55
58
|
export type AutoOrderItemSimpleScheduleFrequencyEnum = typeof AutoOrderItemSimpleScheduleFrequencyEnum[keyof typeof AutoOrderItemSimpleScheduleFrequencyEnum];
|
|
56
59
|
export declare function AutoOrderItemSimpleScheduleFromJSON(json: any): AutoOrderItemSimpleSchedule;
|
|
@@ -31,7 +31,10 @@ exports.AutoOrderItemSimpleScheduleFrequencyEnum = {
|
|
|
31
31
|
Every3Months: 'Every 3 Months',
|
|
32
32
|
Every4Months: 'Every 4 Months',
|
|
33
33
|
Every6Months: 'Every 6 Months',
|
|
34
|
-
Yearly: 'Yearly'
|
|
34
|
+
Yearly: 'Yearly',
|
|
35
|
+
Every4Weeks: 'Every 4 Weeks',
|
|
36
|
+
Every6Weeks: 'Every 6 Weeks',
|
|
37
|
+
Every8Weeks: 'Every 8 Weeks'
|
|
35
38
|
};
|
|
36
39
|
function AutoOrderItemSimpleScheduleFromJSON(json) {
|
|
37
40
|
return AutoOrderItemSimpleScheduleFromJSONTyped(json, false);
|
|
@@ -75,6 +75,9 @@ export declare const ChannelPartnerOrderItemAutoOrderScheduleEnum: {
|
|
|
75
75
|
readonly Every4Months: "Every 4 Months";
|
|
76
76
|
readonly Every6Months: "Every 6 Months";
|
|
77
77
|
readonly Yearly: "Yearly";
|
|
78
|
+
readonly Every4Weeks: "Every 4 Weeks";
|
|
79
|
+
readonly Every6Weeks: "Every 6 Weeks";
|
|
80
|
+
readonly Every8Weeks: "Every 8 Weeks";
|
|
78
81
|
};
|
|
79
82
|
export type ChannelPartnerOrderItemAutoOrderScheduleEnum = typeof ChannelPartnerOrderItemAutoOrderScheduleEnum[keyof typeof ChannelPartnerOrderItemAutoOrderScheduleEnum];
|
|
80
83
|
export declare function ChannelPartnerOrderItemFromJSON(json: any): ChannelPartnerOrderItem;
|
|
@@ -31,7 +31,10 @@ exports.ChannelPartnerOrderItemAutoOrderScheduleEnum = {
|
|
|
31
31
|
Every3Months: 'Every 3 Months',
|
|
32
32
|
Every4Months: 'Every 4 Months',
|
|
33
33
|
Every6Months: 'Every 6 Months',
|
|
34
|
-
Yearly: 'Yearly'
|
|
34
|
+
Yearly: 'Yearly',
|
|
35
|
+
Every4Weeks: 'Every 4 Weeks',
|
|
36
|
+
Every6Weeks: 'Every 6 Weeks',
|
|
37
|
+
Every8Weeks: 'Every 8 Weeks'
|
|
35
38
|
};
|
|
36
39
|
function ChannelPartnerOrderItemFromJSON(json) {
|
|
37
40
|
return ChannelPartnerOrderItemFromJSONTyped(json, false);
|
package/dist/models/Coupon.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { CouponDiscountItemWithItemPurchase } from './CouponDiscountItemWithItem
|
|
|
25
25
|
import { CouponDiscountItems } from './CouponDiscountItems';
|
|
26
26
|
import { CouponFreeItemAndShippingWithSubtotal } from './CouponFreeItemAndShippingWithSubtotal';
|
|
27
27
|
import { CouponFreeItemWithItemPurchase } from './CouponFreeItemWithItemPurchase';
|
|
28
|
+
import { CouponFreeItemWithItemPurchaseAndFreeShipping } from './CouponFreeItemWithItemPurchaseAndFreeShipping';
|
|
28
29
|
import { CouponFreeItemWithSubtotal } from './CouponFreeItemWithSubtotal';
|
|
29
30
|
import { CouponFreeItemsWithItemPurchase } from './CouponFreeItemsWithItemPurchase';
|
|
30
31
|
import { CouponFreeItemsWithMixMatchPurchase } from './CouponFreeItemsWithMixMatchPurchase';
|
|
@@ -207,6 +208,12 @@ export interface Coupon {
|
|
|
207
208
|
* @memberof Coupon
|
|
208
209
|
*/
|
|
209
210
|
free_item_with_item_purchase?: CouponFreeItemWithItemPurchase;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {CouponFreeItemWithItemPurchaseAndFreeShipping}
|
|
214
|
+
* @memberof Coupon
|
|
215
|
+
*/
|
|
216
|
+
free_item_with_item_purchase_and_free_shipping?: CouponFreeItemWithItemPurchaseAndFreeShipping;
|
|
210
217
|
/**
|
|
211
218
|
*
|
|
212
219
|
* @type {CouponFreeItemWithSubtotal}
|
package/dist/models/Coupon.js
CHANGED
|
@@ -31,6 +31,7 @@ var CouponDiscountItemWithItemPurchase_1 = require("./CouponDiscountItemWithItem
|
|
|
31
31
|
var CouponDiscountItems_1 = require("./CouponDiscountItems");
|
|
32
32
|
var CouponFreeItemAndShippingWithSubtotal_1 = require("./CouponFreeItemAndShippingWithSubtotal");
|
|
33
33
|
var CouponFreeItemWithItemPurchase_1 = require("./CouponFreeItemWithItemPurchase");
|
|
34
|
+
var CouponFreeItemWithItemPurchaseAndFreeShipping_1 = require("./CouponFreeItemWithItemPurchaseAndFreeShipping");
|
|
34
35
|
var CouponFreeItemWithSubtotal_1 = require("./CouponFreeItemWithSubtotal");
|
|
35
36
|
var CouponFreeItemsWithItemPurchase_1 = require("./CouponFreeItemsWithItemPurchase");
|
|
36
37
|
var CouponFreeItemsWithMixMatchPurchase_1 = require("./CouponFreeItemsWithMixMatchPurchase");
|
|
@@ -106,6 +107,7 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
106
107
|
'expiration_dts': !(0, runtime_1.exists)(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
107
108
|
'free_item_and_shipping_with_subtotal': !(0, runtime_1.exists)(json, 'free_item_and_shipping_with_subtotal') ? undefined : (0, CouponFreeItemAndShippingWithSubtotal_1.CouponFreeItemAndShippingWithSubtotalFromJSON)(json['free_item_and_shipping_with_subtotal']),
|
|
108
109
|
'free_item_with_item_purchase': !(0, runtime_1.exists)(json, 'free_item_with_item_purchase') ? undefined : (0, CouponFreeItemWithItemPurchase_1.CouponFreeItemWithItemPurchaseFromJSON)(json['free_item_with_item_purchase']),
|
|
110
|
+
'free_item_with_item_purchase_and_free_shipping': !(0, runtime_1.exists)(json, 'free_item_with_item_purchase_and_free_shipping') ? undefined : (0, CouponFreeItemWithItemPurchaseAndFreeShipping_1.CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON)(json['free_item_with_item_purchase_and_free_shipping']),
|
|
109
111
|
'free_item_with_subtotal': !(0, runtime_1.exists)(json, 'free_item_with_subtotal') ? undefined : (0, CouponFreeItemWithSubtotal_1.CouponFreeItemWithSubtotalFromJSON)(json['free_item_with_subtotal']),
|
|
110
112
|
'free_items_with_item_purchase': !(0, runtime_1.exists)(json, 'free_items_with_item_purchase') ? undefined : (0, CouponFreeItemsWithItemPurchase_1.CouponFreeItemsWithItemPurchaseFromJSON)(json['free_items_with_item_purchase']),
|
|
111
113
|
'free_items_with_mixmatch_purchase': !(0, runtime_1.exists)(json, 'free_items_with_mixmatch_purchase') ? undefined : (0, CouponFreeItemsWithMixMatchPurchase_1.CouponFreeItemsWithMixMatchPurchaseFromJSON)(json['free_items_with_mixmatch_purchase']),
|
|
@@ -183,6 +185,7 @@ function CouponToJSON(value) {
|
|
|
183
185
|
'expiration_dts': value.expiration_dts,
|
|
184
186
|
'free_item_and_shipping_with_subtotal': (0, CouponFreeItemAndShippingWithSubtotal_1.CouponFreeItemAndShippingWithSubtotalToJSON)(value.free_item_and_shipping_with_subtotal),
|
|
185
187
|
'free_item_with_item_purchase': (0, CouponFreeItemWithItemPurchase_1.CouponFreeItemWithItemPurchaseToJSON)(value.free_item_with_item_purchase),
|
|
188
|
+
'free_item_with_item_purchase_and_free_shipping': (0, CouponFreeItemWithItemPurchaseAndFreeShipping_1.CouponFreeItemWithItemPurchaseAndFreeShippingToJSON)(value.free_item_with_item_purchase_and_free_shipping),
|
|
186
189
|
'free_item_with_subtotal': (0, CouponFreeItemWithSubtotal_1.CouponFreeItemWithSubtotalToJSON)(value.free_item_with_subtotal),
|
|
187
190
|
'free_items_with_item_purchase': (0, CouponFreeItemsWithItemPurchase_1.CouponFreeItemsWithItemPurchaseToJSON)(value.free_items_with_item_purchase),
|
|
188
191
|
'free_items_with_mixmatch_purchase': (0, CouponFreeItemsWithMixMatchPurchase_1.CouponFreeItemsWithMixMatchPurchaseToJSON)(value.free_items_with_mixmatch_purchase),
|
|
@@ -0,0 +1,45 @@
|
|
|
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 CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
|
|
18
|
+
/**
|
|
19
|
+
* A list of free items which will receive a discount if one of the required purchase items is purchased.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
22
|
+
*/
|
|
23
|
+
items?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
28
|
+
*/
|
|
29
|
+
limit?: number;
|
|
30
|
+
/**
|
|
31
|
+
* If true then the free item is matched 1:1 with the free item in the list.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
34
|
+
*/
|
|
35
|
+
match_required_purchase_item_to_free_item?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Required items (at least one from the list) that must be purchased for coupon to be valid
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
40
|
+
*/
|
|
41
|
+
required_purchase_items?: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
export declare function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON(json: any): CouponFreeItemWithItemPurchaseAndFreeShipping;
|
|
44
|
+
export declare function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponFreeItemWithItemPurchaseAndFreeShipping;
|
|
45
|
+
export declare function CouponFreeItemWithItemPurchaseAndFreeShippingToJSON(value?: CouponFreeItemWithItemPurchaseAndFreeShipping | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.CouponFreeItemWithItemPurchaseAndFreeShippingToJSON = exports.CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped = exports.CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON(json) {
|
|
19
|
+
return CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON = CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON;
|
|
22
|
+
function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
28
|
+
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
29
|
+
'match_required_purchase_item_to_free_item': !(0, runtime_1.exists)(json, 'match_required_purchase_item_to_free_item') ? undefined : json['match_required_purchase_item_to_free_item'],
|
|
30
|
+
'required_purchase_items': !(0, runtime_1.exists)(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped = CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped;
|
|
34
|
+
function CouponFreeItemWithItemPurchaseAndFreeShippingToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': value.items,
|
|
43
|
+
'limit': value.limit,
|
|
44
|
+
'match_required_purchase_item_to_free_item': value.match_required_purchase_item_to_free_item,
|
|
45
|
+
'required_purchase_items': value.required_purchase_items,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.CouponFreeItemWithItemPurchaseAndFreeShippingToJSON = CouponFreeItemWithItemPurchaseAndFreeShippingToJSON;
|
|
@@ -19,6 +19,7 @@ import { CustomerLoyalty } from './CustomerLoyalty';
|
|
|
19
19
|
import { CustomerOrdersSummary } from './CustomerOrdersSummary';
|
|
20
20
|
import { CustomerPricingTier } from './CustomerPricingTier';
|
|
21
21
|
import { CustomerPrivacy } from './CustomerPrivacy';
|
|
22
|
+
import { CustomerProperty } from './CustomerProperty';
|
|
22
23
|
import { CustomerQuotesSummary } from './CustomerQuotesSummary';
|
|
23
24
|
import { CustomerReviewer } from './CustomerReviewer';
|
|
24
25
|
import { CustomerShipping } from './CustomerShipping';
|
|
@@ -272,6 +273,12 @@ export interface Customer {
|
|
|
272
273
|
* @memberof Customer
|
|
273
274
|
*/
|
|
274
275
|
privacy?: CustomerPrivacy;
|
|
276
|
+
/**
|
|
277
|
+
* Properties for this customer
|
|
278
|
+
* @type {Array<CustomerProperty>}
|
|
279
|
+
* @memberof Customer
|
|
280
|
+
*/
|
|
281
|
+
properties?: Array<CustomerProperty>;
|
|
275
282
|
/**
|
|
276
283
|
* QuickBooks class to import this customer as
|
|
277
284
|
* @type {string}
|
package/dist/models/Customer.js
CHANGED
|
@@ -25,6 +25,7 @@ var CustomerLoyalty_1 = require("./CustomerLoyalty");
|
|
|
25
25
|
var CustomerOrdersSummary_1 = require("./CustomerOrdersSummary");
|
|
26
26
|
var CustomerPricingTier_1 = require("./CustomerPricingTier");
|
|
27
27
|
var CustomerPrivacy_1 = require("./CustomerPrivacy");
|
|
28
|
+
var CustomerProperty_1 = require("./CustomerProperty");
|
|
28
29
|
var CustomerQuotesSummary_1 = require("./CustomerQuotesSummary");
|
|
29
30
|
var CustomerReviewer_1 = require("./CustomerReviewer");
|
|
30
31
|
var CustomerShipping_1 = require("./CustomerShipping");
|
|
@@ -81,6 +82,7 @@ function CustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
82
|
'password': !(0, runtime_1.exists)(json, 'password') ? undefined : json['password'],
|
|
82
83
|
'pricing_tiers': !(0, runtime_1.exists)(json, 'pricing_tiers') ? undefined : (json['pricing_tiers'].map(CustomerPricingTier_1.CustomerPricingTierFromJSON)),
|
|
83
84
|
'privacy': !(0, runtime_1.exists)(json, 'privacy') ? undefined : (0, CustomerPrivacy_1.CustomerPrivacyFromJSON)(json['privacy']),
|
|
85
|
+
'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : (json['properties'].map(CustomerProperty_1.CustomerPropertyFromJSON)),
|
|
84
86
|
'qb_class': !(0, runtime_1.exists)(json, 'qb_class') ? undefined : json['qb_class'],
|
|
85
87
|
'qb_code': !(0, runtime_1.exists)(json, 'qb_code') ? undefined : json['qb_code'],
|
|
86
88
|
'qb_tax_exemption_reason_code': !(0, runtime_1.exists)(json, 'qb_tax_exemption_reason_code') ? undefined : json['qb_tax_exemption_reason_code'],
|
|
@@ -154,6 +156,7 @@ function CustomerToJSON(value) {
|
|
|
154
156
|
'password': value.password,
|
|
155
157
|
'pricing_tiers': value.pricing_tiers === undefined ? undefined : (value.pricing_tiers.map(CustomerPricingTier_1.CustomerPricingTierToJSON)),
|
|
156
158
|
'privacy': (0, CustomerPrivacy_1.CustomerPrivacyToJSON)(value.privacy),
|
|
159
|
+
'properties': value.properties === undefined ? undefined : (value.properties.map(CustomerProperty_1.CustomerPropertyToJSON)),
|
|
157
160
|
'qb_class': value.qb_class,
|
|
158
161
|
'qb_code': value.qb_code,
|
|
159
162
|
'qb_tax_exemption_reason_code': value.qb_tax_exemption_reason_code,
|
|
@@ -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 CustomerProperty
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomerProperty {
|
|
18
|
+
/**
|
|
19
|
+
* The date/time that the property expires and is deleted
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomerProperty
|
|
22
|
+
*/
|
|
23
|
+
expiration_dts?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomerProperty
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Value
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomerProperty
|
|
34
|
+
*/
|
|
35
|
+
value?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function CustomerPropertyFromJSON(json: any): CustomerProperty;
|
|
38
|
+
export declare function CustomerPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerProperty;
|
|
39
|
+
export declare function CustomerPropertyToJSON(value?: CustomerProperty | 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.CustomerPropertyToJSON = exports.CustomerPropertyFromJSONTyped = exports.CustomerPropertyFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CustomerPropertyFromJSON(json) {
|
|
19
|
+
return CustomerPropertyFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CustomerPropertyFromJSON = CustomerPropertyFromJSON;
|
|
22
|
+
function CustomerPropertyFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'expiration_dts': !(0, runtime_1.exists)(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
28
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
29
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.CustomerPropertyFromJSONTyped = CustomerPropertyFromJSONTyped;
|
|
33
|
+
function CustomerPropertyToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'expiration_dts': value.expiration_dts,
|
|
42
|
+
'name': value.name,
|
|
43
|
+
'value': value.value,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.CustomerPropertyToJSON = CustomerPropertyToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -209,6 +209,7 @@ export * from './CouponEditorValues';
|
|
|
209
209
|
export * from './CouponExistsResponse';
|
|
210
210
|
export * from './CouponFreeItemAndShippingWithSubtotal';
|
|
211
211
|
export * from './CouponFreeItemWithItemPurchase';
|
|
212
|
+
export * from './CouponFreeItemWithItemPurchaseAndFreeShipping';
|
|
212
213
|
export * from './CouponFreeItemWithSubtotal';
|
|
213
214
|
export * from './CouponFreeItemsWithItemPurchase';
|
|
214
215
|
export * from './CouponFreeItemsWithMixMatchPurchase';
|
|
@@ -272,6 +273,7 @@ export * from './CustomerMergeRequest';
|
|
|
272
273
|
export * from './CustomerOrdersSummary';
|
|
273
274
|
export * from './CustomerPricingTier';
|
|
274
275
|
export * from './CustomerPrivacy';
|
|
276
|
+
export * from './CustomerProperty';
|
|
275
277
|
export * from './CustomerQuery';
|
|
276
278
|
export * from './CustomerQuotesSummary';
|
|
277
279
|
export * from './CustomerResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -227,6 +227,7 @@ __exportStar(require("./CouponEditorValues"), exports);
|
|
|
227
227
|
__exportStar(require("./CouponExistsResponse"), exports);
|
|
228
228
|
__exportStar(require("./CouponFreeItemAndShippingWithSubtotal"), exports);
|
|
229
229
|
__exportStar(require("./CouponFreeItemWithItemPurchase"), exports);
|
|
230
|
+
__exportStar(require("./CouponFreeItemWithItemPurchaseAndFreeShipping"), exports);
|
|
230
231
|
__exportStar(require("./CouponFreeItemWithSubtotal"), exports);
|
|
231
232
|
__exportStar(require("./CouponFreeItemsWithItemPurchase"), exports);
|
|
232
233
|
__exportStar(require("./CouponFreeItemsWithMixMatchPurchase"), exports);
|
|
@@ -290,6 +291,7 @@ __exportStar(require("./CustomerMergeRequest"), exports);
|
|
|
290
291
|
__exportStar(require("./CustomerOrdersSummary"), exports);
|
|
291
292
|
__exportStar(require("./CustomerPricingTier"), exports);
|
|
292
293
|
__exportStar(require("./CustomerPrivacy"), exports);
|
|
294
|
+
__exportStar(require("./CustomerProperty"), exports);
|
|
293
295
|
__exportStar(require("./CustomerQuery"), exports);
|
|
294
296
|
__exportStar(require("./CustomerQuotesSummary"), exports);
|
|
295
297
|
__exportStar(require("./CustomerResponse"), exports);
|
package/package.json
CHANGED
|
@@ -213,7 +213,10 @@ export const AutoOrderItemFrequencyEnum = {
|
|
|
213
213
|
Every3Months: 'Every 3 Months',
|
|
214
214
|
Every4Months: 'Every 4 Months',
|
|
215
215
|
Every6Months: 'Every 6 Months',
|
|
216
|
-
Yearly: 'Yearly'
|
|
216
|
+
Yearly: 'Yearly',
|
|
217
|
+
Every4Weeks: 'Every 4 Weeks',
|
|
218
|
+
Every6Weeks: 'Every 6 Weeks',
|
|
219
|
+
Every8Weeks: 'Every 8 Weeks'
|
|
217
220
|
} as const;
|
|
218
221
|
export type AutoOrderItemFrequencyEnum = typeof AutoOrderItemFrequencyEnum[keyof typeof AutoOrderItemFrequencyEnum];
|
|
219
222
|
|
|
@@ -56,7 +56,10 @@ export const AutoOrderItemSimpleScheduleFrequencyEnum = {
|
|
|
56
56
|
Every3Months: 'Every 3 Months',
|
|
57
57
|
Every4Months: 'Every 4 Months',
|
|
58
58
|
Every6Months: 'Every 6 Months',
|
|
59
|
-
Yearly: 'Yearly'
|
|
59
|
+
Yearly: 'Yearly',
|
|
60
|
+
Every4Weeks: 'Every 4 Weeks',
|
|
61
|
+
Every6Weeks: 'Every 6 Weeks',
|
|
62
|
+
Every8Weeks: 'Every 8 Weeks'
|
|
60
63
|
} as const;
|
|
61
64
|
export type AutoOrderItemSimpleScheduleFrequencyEnum = typeof AutoOrderItemSimpleScheduleFrequencyEnum[keyof typeof AutoOrderItemSimpleScheduleFrequencyEnum];
|
|
62
65
|
|
|
@@ -86,7 +86,10 @@ export const ChannelPartnerOrderItemAutoOrderScheduleEnum = {
|
|
|
86
86
|
Every3Months: 'Every 3 Months',
|
|
87
87
|
Every4Months: 'Every 4 Months',
|
|
88
88
|
Every6Months: 'Every 6 Months',
|
|
89
|
-
Yearly: 'Yearly'
|
|
89
|
+
Yearly: 'Yearly',
|
|
90
|
+
Every4Weeks: 'Every 4 Weeks',
|
|
91
|
+
Every6Weeks: 'Every 6 Weeks',
|
|
92
|
+
Every8Weeks: 'Every 8 Weeks'
|
|
90
93
|
} as const;
|
|
91
94
|
export type ChannelPartnerOrderItemAutoOrderScheduleEnum = typeof ChannelPartnerOrderItemAutoOrderScheduleEnum[keyof typeof ChannelPartnerOrderItemAutoOrderScheduleEnum];
|
|
92
95
|
|
package/src/models/Coupon.ts
CHANGED
|
@@ -109,6 +109,12 @@ import {
|
|
|
109
109
|
CouponFreeItemWithItemPurchaseFromJSONTyped,
|
|
110
110
|
CouponFreeItemWithItemPurchaseToJSON,
|
|
111
111
|
} from './CouponFreeItemWithItemPurchase';
|
|
112
|
+
import {
|
|
113
|
+
CouponFreeItemWithItemPurchaseAndFreeShipping,
|
|
114
|
+
CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON,
|
|
115
|
+
CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped,
|
|
116
|
+
CouponFreeItemWithItemPurchaseAndFreeShippingToJSON,
|
|
117
|
+
} from './CouponFreeItemWithItemPurchaseAndFreeShipping';
|
|
112
118
|
import {
|
|
113
119
|
CouponFreeItemWithSubtotal,
|
|
114
120
|
CouponFreeItemWithSubtotalFromJSON,
|
|
@@ -452,6 +458,12 @@ export interface Coupon {
|
|
|
452
458
|
* @memberof Coupon
|
|
453
459
|
*/
|
|
454
460
|
free_item_with_item_purchase?: CouponFreeItemWithItemPurchase;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {CouponFreeItemWithItemPurchaseAndFreeShipping}
|
|
464
|
+
* @memberof Coupon
|
|
465
|
+
*/
|
|
466
|
+
free_item_with_item_purchase_and_free_shipping?: CouponFreeItemWithItemPurchaseAndFreeShipping;
|
|
455
467
|
/**
|
|
456
468
|
*
|
|
457
469
|
* @type {CouponFreeItemWithSubtotal}
|
|
@@ -754,6 +766,7 @@ export function CouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
|
|
|
754
766
|
'expiration_dts': !exists(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
755
767
|
'free_item_and_shipping_with_subtotal': !exists(json, 'free_item_and_shipping_with_subtotal') ? undefined : CouponFreeItemAndShippingWithSubtotalFromJSON(json['free_item_and_shipping_with_subtotal']),
|
|
756
768
|
'free_item_with_item_purchase': !exists(json, 'free_item_with_item_purchase') ? undefined : CouponFreeItemWithItemPurchaseFromJSON(json['free_item_with_item_purchase']),
|
|
769
|
+
'free_item_with_item_purchase_and_free_shipping': !exists(json, 'free_item_with_item_purchase_and_free_shipping') ? undefined : CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON(json['free_item_with_item_purchase_and_free_shipping']),
|
|
757
770
|
'free_item_with_subtotal': !exists(json, 'free_item_with_subtotal') ? undefined : CouponFreeItemWithSubtotalFromJSON(json['free_item_with_subtotal']),
|
|
758
771
|
'free_items_with_item_purchase': !exists(json, 'free_items_with_item_purchase') ? undefined : CouponFreeItemsWithItemPurchaseFromJSON(json['free_items_with_item_purchase']),
|
|
759
772
|
'free_items_with_mixmatch_purchase': !exists(json, 'free_items_with_mixmatch_purchase') ? undefined : CouponFreeItemsWithMixMatchPurchaseFromJSON(json['free_items_with_mixmatch_purchase']),
|
|
@@ -832,6 +845,7 @@ export function CouponToJSON(value?: Coupon | null): any {
|
|
|
832
845
|
'expiration_dts': value.expiration_dts,
|
|
833
846
|
'free_item_and_shipping_with_subtotal': CouponFreeItemAndShippingWithSubtotalToJSON(value.free_item_and_shipping_with_subtotal),
|
|
834
847
|
'free_item_with_item_purchase': CouponFreeItemWithItemPurchaseToJSON(value.free_item_with_item_purchase),
|
|
848
|
+
'free_item_with_item_purchase_and_free_shipping': CouponFreeItemWithItemPurchaseAndFreeShippingToJSON(value.free_item_with_item_purchase_and_free_shipping),
|
|
835
849
|
'free_item_with_subtotal': CouponFreeItemWithSubtotalToJSON(value.free_item_with_subtotal),
|
|
836
850
|
'free_items_with_item_purchase': CouponFreeItemsWithItemPurchaseToJSON(value.free_items_with_item_purchase),
|
|
837
851
|
'free_items_with_mixmatch_purchase': CouponFreeItemsWithMixMatchPurchaseToJSON(value.free_items_with_mixmatch_purchase),
|
|
@@ -0,0 +1,80 @@
|
|
|
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 CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
|
|
22
|
+
/**
|
|
23
|
+
* A list of free items which will receive a discount if one of the required purchase items is purchased.
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
26
|
+
*/
|
|
27
|
+
items?: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
32
|
+
*/
|
|
33
|
+
limit?: number;
|
|
34
|
+
/**
|
|
35
|
+
* If true then the free item is matched 1:1 with the free item in the list.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
38
|
+
*/
|
|
39
|
+
match_required_purchase_item_to_free_item?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Required items (at least one from the list) that must be purchased for coupon to be valid
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
44
|
+
*/
|
|
45
|
+
required_purchase_items?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSON(json: any): CouponFreeItemWithItemPurchaseAndFreeShipping {
|
|
49
|
+
return CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CouponFreeItemWithItemPurchaseAndFreeShippingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponFreeItemWithItemPurchaseAndFreeShipping {
|
|
53
|
+
if ((json === undefined) || (json === null)) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
59
|
+
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
60
|
+
'match_required_purchase_item_to_free_item': !exists(json, 'match_required_purchase_item_to_free_item') ? undefined : json['match_required_purchase_item_to_free_item'],
|
|
61
|
+
'required_purchase_items': !exists(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CouponFreeItemWithItemPurchaseAndFreeShippingToJSON(value?: CouponFreeItemWithItemPurchaseAndFreeShipping | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'items': value.items,
|
|
75
|
+
'limit': value.limit,
|
|
76
|
+
'match_required_purchase_item_to_free_item': value.match_required_purchase_item_to_free_item,
|
|
77
|
+
'required_purchase_items': value.required_purchase_items,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
package/src/models/Customer.ts
CHANGED
|
@@ -73,6 +73,12 @@ import {
|
|
|
73
73
|
CustomerPrivacyFromJSONTyped,
|
|
74
74
|
CustomerPrivacyToJSON,
|
|
75
75
|
} from './CustomerPrivacy';
|
|
76
|
+
import {
|
|
77
|
+
CustomerProperty,
|
|
78
|
+
CustomerPropertyFromJSON,
|
|
79
|
+
CustomerPropertyFromJSONTyped,
|
|
80
|
+
CustomerPropertyToJSON,
|
|
81
|
+
} from './CustomerProperty';
|
|
76
82
|
import {
|
|
77
83
|
CustomerQuotesSummary,
|
|
78
84
|
CustomerQuotesSummaryFromJSON,
|
|
@@ -362,6 +368,12 @@ export interface Customer {
|
|
|
362
368
|
* @memberof Customer
|
|
363
369
|
*/
|
|
364
370
|
privacy?: CustomerPrivacy;
|
|
371
|
+
/**
|
|
372
|
+
* Properties for this customer
|
|
373
|
+
* @type {Array<CustomerProperty>}
|
|
374
|
+
* @memberof Customer
|
|
375
|
+
*/
|
|
376
|
+
properties?: Array<CustomerProperty>;
|
|
365
377
|
/**
|
|
366
378
|
* QuickBooks class to import this customer as
|
|
367
379
|
* @type {string}
|
|
@@ -546,6 +558,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
546
558
|
'password': !exists(json, 'password') ? undefined : json['password'],
|
|
547
559
|
'pricing_tiers': !exists(json, 'pricing_tiers') ? undefined : ((json['pricing_tiers'] as Array<any>).map(CustomerPricingTierFromJSON)),
|
|
548
560
|
'privacy': !exists(json, 'privacy') ? undefined : CustomerPrivacyFromJSON(json['privacy']),
|
|
561
|
+
'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(CustomerPropertyFromJSON)),
|
|
549
562
|
'qb_class': !exists(json, 'qb_class') ? undefined : json['qb_class'],
|
|
550
563
|
'qb_code': !exists(json, 'qb_code') ? undefined : json['qb_code'],
|
|
551
564
|
'qb_tax_exemption_reason_code': !exists(json, 'qb_tax_exemption_reason_code') ? undefined : json['qb_tax_exemption_reason_code'],
|
|
@@ -620,6 +633,7 @@ export function CustomerToJSON(value?: Customer | null): any {
|
|
|
620
633
|
'password': value.password,
|
|
621
634
|
'pricing_tiers': value.pricing_tiers === undefined ? undefined : ((value.pricing_tiers as Array<any>).map(CustomerPricingTierToJSON)),
|
|
622
635
|
'privacy': CustomerPrivacyToJSON(value.privacy),
|
|
636
|
+
'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(CustomerPropertyToJSON)),
|
|
623
637
|
'qb_class': value.qb_class,
|
|
624
638
|
'qb_code': value.qb_code,
|
|
625
639
|
'qb_tax_exemption_reason_code': value.qb_tax_exemption_reason_code,
|
|
@@ -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 CustomerProperty
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerProperty {
|
|
22
|
+
/**
|
|
23
|
+
* The date/time that the property expires and is deleted
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomerProperty
|
|
26
|
+
*/
|
|
27
|
+
expiration_dts?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerProperty
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Value
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomerProperty
|
|
38
|
+
*/
|
|
39
|
+
value?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CustomerPropertyFromJSON(json: any): CustomerProperty {
|
|
43
|
+
return CustomerPropertyFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CustomerPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerProperty {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
'expiration_dts': !exists(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
53
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
54
|
+
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CustomerPropertyToJSON(value?: CustomerProperty | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'expiration_dts': value.expiration_dts,
|
|
68
|
+
'name': value.name,
|
|
69
|
+
'value': value.value,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -211,6 +211,7 @@ export * from './CouponEditorValues';
|
|
|
211
211
|
export * from './CouponExistsResponse';
|
|
212
212
|
export * from './CouponFreeItemAndShippingWithSubtotal';
|
|
213
213
|
export * from './CouponFreeItemWithItemPurchase';
|
|
214
|
+
export * from './CouponFreeItemWithItemPurchaseAndFreeShipping';
|
|
214
215
|
export * from './CouponFreeItemWithSubtotal';
|
|
215
216
|
export * from './CouponFreeItemsWithItemPurchase';
|
|
216
217
|
export * from './CouponFreeItemsWithMixMatchPurchase';
|
|
@@ -274,6 +275,7 @@ export * from './CustomerMergeRequest';
|
|
|
274
275
|
export * from './CustomerOrdersSummary';
|
|
275
276
|
export * from './CustomerPricingTier';
|
|
276
277
|
export * from './CustomerPrivacy';
|
|
278
|
+
export * from './CustomerProperty';
|
|
277
279
|
export * from './CustomerQuery';
|
|
278
280
|
export * from './CustomerQuotesSummary';
|
|
279
281
|
export * from './CustomerResponse';
|