@digital8/lighting-illusions-ts-sdk 0.0.2417 → 0.0.2418
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 +0 -15
- package/README.md +2 -2
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +2 -6
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/AppliedCouponResource.d.ts +0 -30
- package/dist/models/AppliedCouponResource.js +0 -20
- package/dist/models/FrontendCartResource.d.ts +0 -6
- package/dist/models/FrontendCartResource.js +0 -4
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +6 -2
- package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
- package/dist/models/ProductCategoryLiteResource.js +0 -4
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +0 -6
- package/dist/models/SearchOrdersRequest.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +0 -14
- package/dist/models/index.js +0 -14
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +4 -6
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/AppliedCouponResource.ts +0 -45
- package/src/models/FrontendCartResource.ts +0 -9
- package/src/models/OrderFulfillmentResource.ts +6 -4
- package/src/models/ProductCategoryLiteResource.ts +0 -9
- package/src/models/ProductChildListResource.ts +0 -9
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +0 -8
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +0 -14
- package/dist/apis/CouponsApi.d.ts +0 -85
- package/dist/apis/CouponsApi.js +0 -355
- package/dist/models/CouponListResource.d.ts +0 -99
- package/dist/models/CouponListResource.js +0 -91
- package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponListResourceArrayResponse.js +0 -50
- package/dist/models/CouponLiteResource.d.ts +0 -44
- package/dist/models/CouponLiteResource.js +0 -57
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/CouponResource.d.ts +0 -163
- package/dist/models/CouponResource.js +0 -135
- package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponType.d.ts +0 -26
- package/dist/models/CouponType.js +0 -52
- package/dist/models/CreateCouponRequest.d.ts +0 -126
- package/dist/models/CreateCouponRequest.js +0 -107
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
- package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
- package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponResourceResponse.js +0 -57
- package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
- package/dist/models/SearchAllCouponsRequest.js +0 -85
- package/dist/models/SearchCouponsRequest.d.ts +0 -137
- package/dist/models/SearchCouponsRequest.js +0 -97
- package/dist/models/UpdateCouponRequest.d.ts +0 -120
- package/dist/models/UpdateCouponRequest.js +0 -103
- package/src/apis/CouponsApi.ts +0 -286
- package/src/models/CouponListResource.ts +0 -170
- package/src/models/CouponListResourceArrayResponse.ts +0 -73
- package/src/models/CouponLiteResource.ts +0 -83
- package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/CouponResource.ts +0 -288
- package/src/models/CouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponType.ts +0 -54
- package/src/models/CreateCouponRequest.ts +0 -207
- package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
- package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
- package/src/models/PaginatedCouponResourceResponse.ts +0 -90
- package/src/models/SearchAllCouponsRequest.ts +0 -154
- package/src/models/SearchCouponsRequest.ts +0 -202
- package/src/models/UpdateCouponRequest.ts +0 -198
package/.openapi-generator/FILES
CHANGED
|
@@ -8,7 +8,6 @@ src/apis/AssetApi.ts
|
|
|
8
8
|
src/apis/AttributeApi.ts
|
|
9
9
|
src/apis/BlogCategoryApi.ts
|
|
10
10
|
src/apis/CartsApi.ts
|
|
11
|
-
src/apis/CouponsApi.ts
|
|
12
11
|
src/apis/CustomersApi.ts
|
|
13
12
|
src/apis/DefinitionApi.ts
|
|
14
13
|
src/apis/DocumentApi.ts
|
|
@@ -118,13 +117,6 @@ src/models/CategoryFrontendResourceArrayResponse.ts
|
|
|
118
117
|
src/models/CategoryWithChildrenFrontendResource.ts
|
|
119
118
|
src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts
|
|
120
119
|
src/models/CouponDiscountType.ts
|
|
121
|
-
src/models/CouponListResource.ts
|
|
122
|
-
src/models/CouponListResourceArrayResponse.ts
|
|
123
|
-
src/models/CouponLiteResource.ts
|
|
124
|
-
src/models/CouponLiteResourceArrayResponse.ts
|
|
125
|
-
src/models/CouponResource.ts
|
|
126
|
-
src/models/CouponResourceArrayResponse.ts
|
|
127
|
-
src/models/CouponType.ts
|
|
128
120
|
src/models/CreateAssetFileRequest.ts
|
|
129
121
|
src/models/CreateAssetForAssetableRequest.ts
|
|
130
122
|
src/models/CreateAttributeRequest.ts
|
|
@@ -135,8 +127,6 @@ src/models/CreateBlogCategoryRequestSeoInner.ts
|
|
|
135
127
|
src/models/CreateCartRequest.ts
|
|
136
128
|
src/models/CreateCartRequestItemsInner.ts
|
|
137
129
|
src/models/CreateCartRequestShippingAddress.ts
|
|
138
|
-
src/models/CreateCouponRequest.ts
|
|
139
|
-
src/models/CreateCouponRequestCouponablesInner.ts
|
|
140
130
|
src/models/CreateCustomerRequest.ts
|
|
141
131
|
src/models/CreateDefinitionRequest.ts
|
|
142
132
|
src/models/CreateDocumentFileRequest.ts
|
|
@@ -328,8 +318,6 @@ src/models/PaginatedBlogCategoryResourceResponse.ts
|
|
|
328
318
|
src/models/PaginatedBlogFrontendResourceResponse.ts
|
|
329
319
|
src/models/PaginatedCartListResourceResponse.ts
|
|
330
320
|
src/models/PaginatedCategoryFrontendResourceResponse.ts
|
|
331
|
-
src/models/PaginatedCouponListResourceResponse.ts
|
|
332
|
-
src/models/PaginatedCouponResourceResponse.ts
|
|
333
321
|
src/models/PaginatedCustomerListResourceResponse.ts
|
|
334
322
|
src/models/PaginatedCustomerReviewableItemFrontendResourceResponse.ts
|
|
335
323
|
src/models/PaginatedDefinitionListResourceResponse.ts
|
|
@@ -533,7 +521,6 @@ src/models/SearchAdminNotesRequest.ts
|
|
|
533
521
|
src/models/SearchAllAttributeValuesRequest.ts
|
|
534
522
|
src/models/SearchAllAttributesRequest.ts
|
|
535
523
|
src/models/SearchAllBlogCategoriesRequest.ts
|
|
536
|
-
src/models/SearchAllCouponsRequest.ts
|
|
537
524
|
src/models/SearchAllDefinitionsRequest.ts
|
|
538
525
|
src/models/SearchAllDocumentsRequest.ts
|
|
539
526
|
src/models/SearchAllFrontendComponentsRequest.ts
|
|
@@ -556,7 +543,6 @@ src/models/SearchAttributeValuesRequest.ts
|
|
|
556
543
|
src/models/SearchAttributesRequest.ts
|
|
557
544
|
src/models/SearchBlogCategoriesRequest.ts
|
|
558
545
|
src/models/SearchCartsRequest.ts
|
|
559
|
-
src/models/SearchCouponsRequest.ts
|
|
560
546
|
src/models/SearchCustomersRequest.ts
|
|
561
547
|
src/models/SearchDefinitionsRequest.ts
|
|
562
548
|
src/models/SearchDocumentsRequest.ts
|
|
@@ -654,7 +640,6 @@ src/models/UpdateAttributeRequest.ts
|
|
|
654
640
|
src/models/UpdateAttributeValueRequest.ts
|
|
655
641
|
src/models/UpdateBlogCategoryRequest.ts
|
|
656
642
|
src/models/UpdateCartRequest.ts
|
|
657
|
-
src/models/UpdateCouponRequest.ts
|
|
658
643
|
src/models/UpdateDefinitionRequest.ts
|
|
659
644
|
src/models/UpdateDocumentRequest.ts
|
|
660
645
|
src/models/UpdateLabelRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2418
|
|
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.2418 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -21,7 +21,6 @@ __exportStar(require("./AssetApi"), exports);
|
|
|
21
21
|
__exportStar(require("./AttributeApi"), exports);
|
|
22
22
|
__exportStar(require("./BlogCategoryApi"), exports);
|
|
23
23
|
__exportStar(require("./CartsApi"), exports);
|
|
24
|
-
__exportStar(require("./CouponsApi"), exports);
|
|
25
24
|
__exportStar(require("./CustomersApi"), exports);
|
|
26
25
|
__exportStar(require("./DefinitionApi"), exports);
|
|
27
26
|
__exportStar(require("./DocumentApi"), exports);
|
|
@@ -24,6 +24,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -46,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
48
|
return {
|
|
47
49
|
'company': json['company'] == null ? undefined : json['company'],
|
|
48
50
|
'line1': json['line1'],
|
|
49
|
-
'line2': json['line2']
|
|
51
|
+
'line2': json['line2'],
|
|
50
52
|
'postcode': json['postcode'],
|
|
51
53
|
'suburb': json['suburb'],
|
|
52
54
|
'country': json['country'],
|
|
@@ -44,7 +44,7 @@ export interface AddressResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof AddressResource
|
|
46
46
|
*/
|
|
47
|
-
company
|
|
47
|
+
company?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface AddressResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof AddressResource
|
|
58
58
|
*/
|
|
59
|
-
line2
|
|
59
|
+
line2?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -24,12 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
28
|
return false;
|
|
31
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
34
30
|
return false;
|
|
35
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -54,9 +50,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
50
|
'type': json['type'] == null ? undefined : json['type'],
|
|
55
51
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
56
52
|
'addresseeName': json['addresseeName'],
|
|
57
|
-
'company': json['company'],
|
|
53
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
58
54
|
'line1': json['line1'],
|
|
59
|
-
'line2': json['line2'],
|
|
55
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
60
56
|
'postcode': json['postcode'],
|
|
61
57
|
'suburb': json['suburb'],
|
|
62
58
|
'country': json['country'],
|
|
@@ -121,6 +121,12 @@ 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;
|
|
124
130
|
/**
|
|
125
131
|
*
|
|
126
132
|
* @type {number}
|
|
@@ -54,6 +54,8 @@ 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;
|
|
57
59
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
58
60
|
return false;
|
|
59
61
|
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined)
|
|
@@ -136,6 +138,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
136
138
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
137
139
|
'netsuiteId': json['netsuiteId'],
|
|
138
140
|
'isNetsuiteLocked': json['isNetsuiteLocked'],
|
|
141
|
+
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
139
142
|
'subtotal': json['subtotal'],
|
|
140
143
|
'productDiscountAmount': json['productDiscountAmount'],
|
|
141
144
|
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
@@ -192,6 +195,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
192
195
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
193
196
|
'netsuiteId': value['netsuiteId'],
|
|
194
197
|
'isNetsuiteLocked': value['isNetsuiteLocked'],
|
|
198
|
+
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
195
199
|
'subtotal': value['subtotal'],
|
|
196
200
|
'productDiscountAmount': value['productDiscountAmount'],
|
|
197
201
|
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
@@ -33,36 +33,6 @@ 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;
|
|
66
36
|
/**
|
|
67
37
|
*
|
|
68
38
|
* @type {number}
|
|
@@ -28,16 +28,6 @@ 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;
|
|
41
31
|
if (!('discountTotal' in value) || value['discountTotal'] === undefined)
|
|
42
32
|
return false;
|
|
43
33
|
return true;
|
|
@@ -53,11 +43,6 @@ function AppliedCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
43
|
'id': json['id'],
|
|
54
44
|
'code': json['code'],
|
|
55
45
|
'name': json['name'],
|
|
56
|
-
'type': json['type'],
|
|
57
|
-
'discountType': json['discountType'],
|
|
58
|
-
'discountAmount': json['discountAmount'],
|
|
59
|
-
'minAmount': json['minAmount'],
|
|
60
|
-
'minProducts': json['minProducts'],
|
|
61
46
|
'discountTotal': json['discountTotal'],
|
|
62
47
|
};
|
|
63
48
|
}
|
|
@@ -73,11 +58,6 @@ function AppliedCouponResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
58
|
'id': value['id'],
|
|
74
59
|
'code': value['code'],
|
|
75
60
|
'name': value['name'],
|
|
76
|
-
'type': value['type'],
|
|
77
|
-
'discountType': value['discountType'],
|
|
78
|
-
'discountAmount': value['discountAmount'],
|
|
79
|
-
'minAmount': value['minAmount'],
|
|
80
|
-
'minProducts': value['minProducts'],
|
|
81
61
|
'discountTotal': value['discountTotal'],
|
|
82
62
|
};
|
|
83
63
|
}
|
|
@@ -85,12 +85,6 @@ 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;
|
|
94
88
|
/**
|
|
95
89
|
*
|
|
96
90
|
* @type {number}
|
|
@@ -42,8 +42,6 @@ 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;
|
|
47
45
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
48
46
|
return false;
|
|
49
47
|
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined)
|
|
@@ -87,7 +85,6 @@ function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
85
|
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
88
86
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
89
87
|
'coupons': (json['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerFromJSON)),
|
|
90
|
-
'couponWarning': json['couponWarning'],
|
|
91
88
|
'subtotal': json['subtotal'],
|
|
92
89
|
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
93
90
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
@@ -121,7 +118,6 @@ function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
121
118
|
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
122
119
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
123
120
|
'coupons': (value['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerToJSON)),
|
|
124
|
-
'couponWarning': value['couponWarning'],
|
|
125
121
|
'subtotal': value['subtotal'],
|
|
126
122
|
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
127
123
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
@@ -39,13 +39,13 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
@@ -29,6 +29,10 @@ 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
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
|
+
return false;
|
|
32
36
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
33
37
|
return false;
|
|
34
38
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
@@ -50,8 +54,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
'id': json['id'],
|
|
51
55
|
'orderId': json['orderId'],
|
|
52
56
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
|
-
'trackingNumber': json['trackingNumber']
|
|
54
|
-
'trackingUrl': json['trackingUrl']
|
|
57
|
+
'trackingNumber': json['trackingNumber'],
|
|
58
|
+
'trackingUrl': json['trackingUrl'],
|
|
55
59
|
'trackingCompany': json['trackingCompany'],
|
|
56
60
|
'docnum': json['docnum'],
|
|
57
61
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,12 +39,6 @@ export interface ProductCategoryLiteResource {
|
|
|
39
39
|
* @memberof ProductCategoryLiteResource
|
|
40
40
|
*/
|
|
41
41
|
isAutomated: boolean;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof ProductCategoryLiteResource
|
|
46
|
-
*/
|
|
47
|
-
isParent: boolean;
|
|
48
42
|
}
|
|
49
43
|
/**
|
|
50
44
|
* Check if a given object implements the ProductCategoryLiteResource interface.
|
|
@@ -28,8 +28,6 @@ function instanceOfProductCategoryLiteResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('isAutomated' in value) || value['isAutomated'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('isParent' in value) || value['isParent'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
return true;
|
|
34
32
|
}
|
|
35
33
|
function ProductCategoryLiteResourceFromJSON(json) {
|
|
@@ -44,7 +42,6 @@ function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
'name': json['name'],
|
|
45
43
|
'siteId': json['siteId'],
|
|
46
44
|
'isAutomated': json['isAutomated'],
|
|
47
|
-
'isParent': json['isParent'],
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
function ProductCategoryLiteResourceToJSON(json) {
|
|
@@ -60,6 +57,5 @@ function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
57
|
'name': value['name'],
|
|
61
58
|
'siteId': value['siteId'],
|
|
62
59
|
'isAutomated': value['isAutomated'],
|
|
63
|
-
'isParent': value['isParent'],
|
|
64
60
|
};
|
|
65
61
|
}
|
|
@@ -30,8 +30,6 @@ function instanceOfProductChildListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('model' in value) || value['model'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
@@ -58,7 +56,6 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
56
|
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
59
57
|
'sku': json['sku'],
|
|
60
58
|
'name': json['name'],
|
|
61
|
-
'fullName': json['fullName'],
|
|
62
59
|
'model': json['model'],
|
|
63
60
|
'stock': json['stock'],
|
|
64
61
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
@@ -82,7 +79,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
79
|
'parentId': value['parentId'],
|
|
83
80
|
'sku': value['sku'],
|
|
84
81
|
'name': value['name'],
|
|
85
|
-
'fullName': value['fullName'],
|
|
86
82
|
'model': value['model'],
|
|
87
83
|
'stock': value['stock'],
|
|
88
84
|
'isDisabled': value['isDisabled'],
|
|
@@ -117,12 +117,6 @@ export interface SearchCartsRequest {
|
|
|
117
117
|
* @memberof SearchCartsRequest
|
|
118
118
|
*/
|
|
119
119
|
includesRelations?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {number}
|
|
123
|
-
* @memberof SearchCartsRequest
|
|
124
|
-
*/
|
|
125
|
-
couponId?: number | null;
|
|
126
120
|
}
|
|
127
121
|
/**
|
|
128
122
|
* @export
|
|
@@ -66,7 +66,6 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
67
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
68
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
function SearchCartsRequestToJSON(json) {
|
|
@@ -95,6 +94,5 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
94
|
'related_id': value['relatedId'],
|
|
96
95
|
'related_type': value['relatedType'],
|
|
97
96
|
'includes_relations': value['includesRelations'],
|
|
98
|
-
'coupon_id': value['couponId'],
|
|
99
97
|
};
|
|
100
98
|
}
|
|
@@ -129,12 +129,6 @@ export interface SearchOrdersRequest {
|
|
|
129
129
|
* @memberof SearchOrdersRequest
|
|
130
130
|
*/
|
|
131
131
|
includesRelations?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {number}
|
|
135
|
-
* @memberof SearchOrdersRequest
|
|
136
|
-
*/
|
|
137
|
-
couponId?: number | null;
|
|
138
132
|
}
|
|
139
133
|
/**
|
|
140
134
|
* @export
|
|
@@ -69,7 +69,6 @@ function SearchOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
70
70
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
71
71
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
72
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
73
72
|
};
|
|
74
73
|
}
|
|
75
74
|
function SearchOrdersRequestToJSON(json) {
|
|
@@ -100,6 +99,5 @@ function SearchOrdersRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
99
|
'related_id': value['relatedId'],
|
|
101
100
|
'related_type': value['relatedType'],
|
|
102
101
|
'includes_relations': value['includesRelations'],
|
|
103
|
-
'coupon_id': value['couponId'],
|
|
104
102
|
};
|
|
105
103
|
}
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
63
61
|
'longitude': json['longitude'],
|
|
64
|
-
'tagLine': json['tagLine'],
|
|
62
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
65
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
66
64
|
'specialDates': json['specialDates'],
|
|
67
65
|
'suppliers': json['suppliers'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website?: string | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -33,9 +33,9 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('
|
|
38
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
41
|
return false;
|
|
@@ -57,9 +57,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'phone': json['phone'],
|
|
58
58
|
'longitude': json['longitude'],
|
|
59
59
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
60
|
+
'tagLine': json['tagLine'],
|
|
61
61
|
'email': json['email'],
|
|
62
|
-
'website': json['website'],
|
|
62
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
63
63
|
'netsuiteId': json['netsuiteId'],
|
|
64
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -36,8 +36,6 @@ 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
41
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -66,7 +64,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
64
|
'phone': json['phone'],
|
|
67
65
|
'longitude': json['longitude'],
|
|
68
66
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine'],
|
|
67
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
70
68
|
'email': json['email'],
|
|
71
69
|
'website': json['website'] == null ? undefined : json['website'],
|
|
72
70
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -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'],
|