@digital8/lighting-illusions-ts-sdk 0.0.2439 → 0.0.2440
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/AppliedCouponResource.d.ts +30 -0
- package/dist/models/AppliedCouponResource.js +20 -0
- package/dist/models/FrontendCartResource.d.ts +6 -0
- package/dist/models/FrontendCartResource.js +4 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/AppliedCouponResource.ts +45 -0
- package/src/models/FrontendCartResource.ts +9 -0
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2440
|
|
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 @digital8/lighting-illusions-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/lighting-illusions-ts-sdk@0.0.2440 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -28,6 +28,8 @@ function instanceOfAddressResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -54,7 +56,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'addresseeName': json['addresseeName'],
|
|
55
57
|
'company': json['company'],
|
|
56
58
|
'line1': json['line1'],
|
|
57
|
-
'line2': json['line2']
|
|
59
|
+
'line2': json['line2'],
|
|
58
60
|
'postcode': json['postcode'],
|
|
59
61
|
'suburb': json['suburb'],
|
|
60
62
|
'country': json['country'],
|
|
@@ -121,12 +121,6 @@ export interface AdminOrderResource {
|
|
|
121
121
|
* @memberof AdminOrderResource
|
|
122
122
|
*/
|
|
123
123
|
isNetsuiteLocked: boolean;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {boolean}
|
|
127
|
-
* @memberof AdminOrderResource
|
|
128
|
-
*/
|
|
129
|
-
isPrivilegedAdmin: boolean;
|
|
130
124
|
/**
|
|
131
125
|
*
|
|
132
126
|
* @type {number}
|
|
@@ -54,8 +54,6 @@ function instanceOfAdminOrderResource(value) {
|
|
|
54
54
|
return false;
|
|
55
55
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined)
|
|
56
56
|
return false;
|
|
57
|
-
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined)
|
|
58
|
-
return false;
|
|
59
57
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
60
58
|
return false;
|
|
61
59
|
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined)
|
|
@@ -138,7 +136,6 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
138
136
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
139
137
|
'netsuiteId': json['netsuiteId'],
|
|
140
138
|
'isNetsuiteLocked': json['isNetsuiteLocked'],
|
|
141
|
-
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
142
139
|
'subtotal': json['subtotal'],
|
|
143
140
|
'productDiscountAmount': json['productDiscountAmount'],
|
|
144
141
|
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
@@ -195,7 +192,6 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
195
192
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
196
193
|
'netsuiteId': value['netsuiteId'],
|
|
197
194
|
'isNetsuiteLocked': value['isNetsuiteLocked'],
|
|
198
|
-
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
199
195
|
'subtotal': value['subtotal'],
|
|
200
196
|
'productDiscountAmount': value['productDiscountAmount'],
|
|
201
197
|
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
@@ -33,6 +33,36 @@ export interface AppliedCouponResource {
|
|
|
33
33
|
* @memberof AppliedCouponResource
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AppliedCouponResource
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AppliedCouponResource
|
|
46
|
+
*/
|
|
47
|
+
discountType: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AppliedCouponResource
|
|
52
|
+
*/
|
|
53
|
+
discountAmount: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AppliedCouponResource
|
|
58
|
+
*/
|
|
59
|
+
minAmount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof AppliedCouponResource
|
|
64
|
+
*/
|
|
65
|
+
minProducts: number;
|
|
36
66
|
/**
|
|
37
67
|
*
|
|
38
68
|
* @type {number}
|
|
@@ -28,6 +28,16 @@ function instanceOfAppliedCouponResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('name' in value) || value['name'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined)
|
|
40
|
+
return false;
|
|
31
41
|
if (!('discountTotal' in value) || value['discountTotal'] === undefined)
|
|
32
42
|
return false;
|
|
33
43
|
return true;
|
|
@@ -43,6 +53,11 @@ function AppliedCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
53
|
'id': json['id'],
|
|
44
54
|
'code': json['code'],
|
|
45
55
|
'name': json['name'],
|
|
56
|
+
'type': json['type'],
|
|
57
|
+
'discountType': json['discountType'],
|
|
58
|
+
'discountAmount': json['discountAmount'],
|
|
59
|
+
'minAmount': json['minAmount'],
|
|
60
|
+
'minProducts': json['minProducts'],
|
|
46
61
|
'discountTotal': json['discountTotal'],
|
|
47
62
|
};
|
|
48
63
|
}
|
|
@@ -58,6 +73,11 @@ function AppliedCouponResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
58
73
|
'id': value['id'],
|
|
59
74
|
'code': value['code'],
|
|
60
75
|
'name': value['name'],
|
|
76
|
+
'type': value['type'],
|
|
77
|
+
'discountType': value['discountType'],
|
|
78
|
+
'discountAmount': value['discountAmount'],
|
|
79
|
+
'minAmount': value['minAmount'],
|
|
80
|
+
'minProducts': value['minProducts'],
|
|
61
81
|
'discountTotal': value['discountTotal'],
|
|
62
82
|
};
|
|
63
83
|
}
|
|
@@ -85,6 +85,12 @@ export interface FrontendCartResource {
|
|
|
85
85
|
* @memberof FrontendCartResource
|
|
86
86
|
*/
|
|
87
87
|
coupons: Array<FrontendCartResourceCouponsInner>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof FrontendCartResource
|
|
92
|
+
*/
|
|
93
|
+
couponWarning: string;
|
|
88
94
|
/**
|
|
89
95
|
*
|
|
90
96
|
* @type {number}
|
|
@@ -42,6 +42,8 @@ function instanceOfFrontendCartResource(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('coupons' in value) || value['coupons'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
+
if (!('couponWarning' in value) || value['couponWarning'] === undefined)
|
|
46
|
+
return false;
|
|
45
47
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
46
48
|
return false;
|
|
47
49
|
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined)
|
|
@@ -85,6 +87,7 @@ function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
87
|
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
86
88
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
87
89
|
'coupons': (json['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerFromJSON)),
|
|
90
|
+
'couponWarning': json['couponWarning'],
|
|
88
91
|
'subtotal': json['subtotal'],
|
|
89
92
|
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
90
93
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
@@ -118,6 +121,7 @@ function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
118
121
|
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
119
122
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
120
123
|
'coupons': (value['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerToJSON)),
|
|
124
|
+
'couponWarning': value['couponWarning'],
|
|
121
125
|
'subtotal': value['subtotal'],
|
|
122
126
|
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
123
127
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
@@ -29,8 +29,6 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
|
-
return false;
|
|
34
32
|
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
@@ -54,7 +52,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'id': json['id'],
|
|
55
53
|
'orderId': json['orderId'],
|
|
56
54
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
57
|
-
'trackingNumber': json['trackingNumber'],
|
|
55
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
58
56
|
'trackingUrl': json['trackingUrl'],
|
|
59
57
|
'trackingCompany': json['trackingCompany'],
|
|
60
58
|
'docnum': json['docnum'],
|
|
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'phone': json['phone'],
|
|
58
60
|
'longitude': json['longitude'],
|
|
59
61
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
61
63
|
'email': json['email'],
|
|
62
64
|
'website': json['website'],
|
|
63
65
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,7 +72,7 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
75
|
+
website?: string | null;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
@@ -36,12 +36,8 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
41
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
42
|
return false;
|
|
47
43
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
64
|
'phone': json['phone'],
|
|
69
65
|
'longitude': json['longitude'],
|
|
70
66
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
67
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
68
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
69
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
74
70
|
'netsuiteId': json['netsuiteId'],
|
|
75
71
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
72
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@ export interface AddressResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof AddressResource
|
|
62
62
|
*/
|
|
63
|
-
line2
|
|
63
|
+
line2: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -100,6 +100,7 @@ export function instanceOfAddressResource(value: object): value is AddressResour
|
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
101
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
103
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
103
104
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
104
105
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
105
106
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -124,7 +125,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
124
125
|
'addresseeName': json['addresseeName'],
|
|
125
126
|
'company': json['company'],
|
|
126
127
|
'line1': json['line1'],
|
|
127
|
-
'line2': json['line2']
|
|
128
|
+
'line2': json['line2'],
|
|
128
129
|
'postcode': json['postcode'],
|
|
129
130
|
'suburb': json['suburb'],
|
|
130
131
|
'country': json['country'],
|
|
@@ -186,12 +186,6 @@ export interface AdminOrderResource {
|
|
|
186
186
|
* @memberof AdminOrderResource
|
|
187
187
|
*/
|
|
188
188
|
isNetsuiteLocked: boolean;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {boolean}
|
|
192
|
-
* @memberof AdminOrderResource
|
|
193
|
-
*/
|
|
194
|
-
isPrivilegedAdmin: boolean;
|
|
195
189
|
/**
|
|
196
190
|
*
|
|
197
191
|
* @type {number}
|
|
@@ -377,7 +371,6 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
|
|
|
377
371
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
378
372
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
379
373
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
|
|
380
|
-
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined) return false;
|
|
381
374
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
382
375
|
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
|
|
383
376
|
if (!('subtotalDiscountAmount' in value) || value['subtotalDiscountAmount'] === undefined) return false;
|
|
@@ -435,7 +428,6 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
435
428
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
436
429
|
'netsuiteId': json['netsuiteId'],
|
|
437
430
|
'isNetsuiteLocked': json['isNetsuiteLocked'],
|
|
438
|
-
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
439
431
|
'subtotal': json['subtotal'],
|
|
440
432
|
'productDiscountAmount': json['productDiscountAmount'],
|
|
441
433
|
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
@@ -494,7 +486,6 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
494
486
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
495
487
|
'netsuiteId': value['netsuiteId'],
|
|
496
488
|
'isNetsuiteLocked': value['isNetsuiteLocked'],
|
|
497
|
-
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
498
489
|
'subtotal': value['subtotal'],
|
|
499
490
|
'productDiscountAmount': value['productDiscountAmount'],
|
|
500
491
|
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
@@ -37,6 +37,36 @@ export interface AppliedCouponResource {
|
|
|
37
37
|
* @memberof AppliedCouponResource
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AppliedCouponResource
|
|
44
|
+
*/
|
|
45
|
+
type: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AppliedCouponResource
|
|
50
|
+
*/
|
|
51
|
+
discountType: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AppliedCouponResource
|
|
56
|
+
*/
|
|
57
|
+
discountAmount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof AppliedCouponResource
|
|
62
|
+
*/
|
|
63
|
+
minAmount: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof AppliedCouponResource
|
|
68
|
+
*/
|
|
69
|
+
minProducts: number;
|
|
40
70
|
/**
|
|
41
71
|
*
|
|
42
72
|
* @type {number}
|
|
@@ -52,6 +82,11 @@ export function instanceOfAppliedCouponResource(value: object): value is Applied
|
|
|
52
82
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
83
|
if (!('code' in value) || value['code'] === undefined) return false;
|
|
54
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
86
|
+
if (!('discountType' in value) || value['discountType'] === undefined) return false;
|
|
87
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
|
|
88
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
|
|
89
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined) return false;
|
|
55
90
|
if (!('discountTotal' in value) || value['discountTotal'] === undefined) return false;
|
|
56
91
|
return true;
|
|
57
92
|
}
|
|
@@ -69,6 +104,11 @@ export function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
69
104
|
'id': json['id'],
|
|
70
105
|
'code': json['code'],
|
|
71
106
|
'name': json['name'],
|
|
107
|
+
'type': json['type'],
|
|
108
|
+
'discountType': json['discountType'],
|
|
109
|
+
'discountAmount': json['discountAmount'],
|
|
110
|
+
'minAmount': json['minAmount'],
|
|
111
|
+
'minProducts': json['minProducts'],
|
|
72
112
|
'discountTotal': json['discountTotal'],
|
|
73
113
|
};
|
|
74
114
|
}
|
|
@@ -87,6 +127,11 @@ export function AppliedCouponResourceToJSONTyped(value?: AppliedCouponResource |
|
|
|
87
127
|
'id': value['id'],
|
|
88
128
|
'code': value['code'],
|
|
89
129
|
'name': value['name'],
|
|
130
|
+
'type': value['type'],
|
|
131
|
+
'discountType': value['discountType'],
|
|
132
|
+
'discountAmount': value['discountAmount'],
|
|
133
|
+
'minAmount': value['minAmount'],
|
|
134
|
+
'minProducts': value['minProducts'],
|
|
90
135
|
'discountTotal': value['discountTotal'],
|
|
91
136
|
};
|
|
92
137
|
}
|
|
@@ -114,6 +114,12 @@ export interface FrontendCartResource {
|
|
|
114
114
|
* @memberof FrontendCartResource
|
|
115
115
|
*/
|
|
116
116
|
coupons: Array<FrontendCartResourceCouponsInner>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof FrontendCartResource
|
|
121
|
+
*/
|
|
122
|
+
couponWarning: string;
|
|
117
123
|
/**
|
|
118
124
|
*
|
|
119
125
|
* @type {number}
|
|
@@ -194,6 +200,7 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
|
|
|
194
200
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
195
201
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
196
202
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
203
|
+
if (!('couponWarning' in value) || value['couponWarning'] === undefined) return false;
|
|
197
204
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
198
205
|
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
|
|
199
206
|
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
|
|
@@ -229,6 +236,7 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
229
236
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
230
237
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
231
238
|
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
239
|
+
'couponWarning': json['couponWarning'],
|
|
232
240
|
'subtotal': json['subtotal'],
|
|
233
241
|
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
234
242
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
@@ -265,6 +273,7 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
|
|
|
265
273
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
266
274
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
267
275
|
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
276
|
+
'couponWarning': value['couponWarning'],
|
|
268
277
|
'subtotal': value['subtotal'],
|
|
269
278
|
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
270
279
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
@@ -50,7 +50,7 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -102,7 +102,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
105
|
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
107
106
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
108
107
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
@@ -124,7 +123,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
124
123
|
'id': json['id'],
|
|
125
124
|
'orderId': json['orderId'],
|
|
126
125
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
127
|
-
'trackingNumber': json['trackingNumber'],
|
|
126
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
128
127
|
'trackingUrl': json['trackingUrl'],
|
|
129
128
|
'trackingCompany': json['trackingCompany'],
|
|
130
129
|
'docnum': json['docnum'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,6 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
115
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
116
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -133,7 +134,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'longitude': json['longitude'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
137
138
|
'email': json['email'],
|
|
138
139
|
'website': json['website'],
|
|
139
140
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -149,9 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
155
153
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
156
154
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
157
155
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -176,9 +174,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
174
|
'phone': json['phone'],
|
|
177
175
|
'longitude': json['longitude'],
|
|
178
176
|
'latitude': json['latitude'],
|
|
179
|
-
'tagLine': json['tagLine'],
|
|
177
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
180
178
|
'email': json['email'],
|
|
181
|
-
'website': json['website'],
|
|
179
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
182
180
|
'netsuiteId': json['netsuiteId'],
|
|
183
181
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
184
182
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|