@digital8/lighting-illusions-ts-sdk 0.0.2049 → 0.0.2050
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 +8 -18
- package/README.md +8 -14
- package/dist/apis/CartsApi.d.ts +8 -8
- package/dist/apis/CartsApi.js +8 -8
- package/dist/apis/CustomersApi.d.ts +0 -17
- package/dist/apis/CustomersApi.js +0 -62
- package/dist/apis/OrdersApi.d.ts +8 -8
- package/dist/apis/OrdersApi.js +10 -10
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderResource.d.ts +1 -13
- package/dist/models/AdminOrderResource.js +3 -11
- package/dist/models/AttachCouponRequest.d.ts +32 -0
- package/dist/models/AttachCouponRequest.js +51 -0
- package/dist/models/AttachLineItemRequest.d.ts +44 -0
- package/dist/models/{AttachCartItemRequest.js → AttachLineItemRequest.js} +13 -13
- package/dist/models/CartListResource.d.ts +0 -48
- package/dist/models/CartListResource.js +0 -26
- package/dist/models/CartResource.d.ts +2 -2
- package/dist/models/CartResource.js +2 -2
- package/dist/models/DetachCouponRequest.d.ts +32 -0
- package/dist/models/DetachCouponRequest.js +51 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/UpdateLineItemRequest.d.ts +38 -0
- package/dist/models/{UpdateCartItemRequest.js → UpdateLineItemRequest.js} +13 -13
- package/dist/models/index.d.ts +4 -9
- package/dist/models/index.js +4 -9
- package/docs/AdminOrderResource.md +2 -6
- package/docs/{AttachCartCouponRequest.md → AttachCouponRequest.md} +4 -4
- package/docs/{AttachCartItemRequest.md → AttachLineItemRequest.md} +4 -4
- package/docs/CartListResource.md +0 -16
- package/docs/CartResource.md +2 -2
- package/docs/CartsApi.md +16 -16
- package/docs/CustomersApi.md +0 -69
- package/docs/{DetachCartCouponRequest.md → DetachCouponRequest.md} +4 -4
- package/docs/OrdersApi.md +18 -18
- package/docs/{UpdateCartItemRequest.md → UpdateLineItemRequest.md} +4 -4
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +25 -25
- package/src/apis/CustomersApi.ts +0 -58
- package/src/apis/OrdersApi.ts +26 -26
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderResource.ts +4 -22
- package/src/models/AttachCouponRequest.ts +66 -0
- package/src/models/{AttachCartItemRequest.ts → AttachLineItemRequest.ts} +13 -13
- package/src/models/CartListResource.ts +0 -69
- package/src/models/CartResource.ts +4 -4
- package/src/models/DetachCouponRequest.ts +66 -0
- package/src/models/StoreResource.ts +2 -3
- package/src/models/{UpdateCartItemRequest.ts → UpdateLineItemRequest.ts} +12 -12
- package/src/models/index.ts +4 -9
- package/dist/models/AttachCartCouponRequest.d.ts +0 -32
- package/dist/models/AttachCartCouponRequest.js +0 -51
- package/dist/models/AttachCartItemRequest.d.ts +0 -44
- package/dist/models/AttachOrderCouponRequest.d.ts +0 -32
- package/dist/models/AttachOrderCouponRequest.js +0 -51
- package/dist/models/AttachOrderLineItemRequest.d.ts +0 -44
- package/dist/models/AttachOrderLineItemRequest.js +0 -57
- package/dist/models/DetachCartCouponRequest.d.ts +0 -32
- package/dist/models/DetachCartCouponRequest.js +0 -51
- package/dist/models/DetachOrderCouponRequest.d.ts +0 -32
- package/dist/models/DetachOrderCouponRequest.js +0 -51
- package/dist/models/UpdateCartItemRequest.d.ts +0 -38
- package/dist/models/UpdateCustomerRequest.d.ts +0 -56
- package/dist/models/UpdateCustomerRequest.js +0 -63
- package/dist/models/UpdateOrderLineItemRequest.d.ts +0 -38
- package/dist/models/UpdateOrderLineItemRequest.js +0 -53
- package/docs/AttachOrderCouponRequest.md +0 -34
- package/docs/AttachOrderLineItemRequest.md +0 -38
- package/docs/DetachOrderCouponRequest.md +0 -34
- package/docs/UpdateCustomerRequest.md +0 -42
- package/docs/UpdateOrderLineItemRequest.md +0 -36
- package/src/models/AttachCartCouponRequest.ts +0 -66
- package/src/models/AttachOrderCouponRequest.ts +0 -66
- package/src/models/AttachOrderLineItemRequest.ts +0 -83
- package/src/models/DetachCartCouponRequest.ts +0 -66
- package/src/models/DetachOrderCouponRequest.ts +0 -66
- package/src/models/UpdateCustomerRequest.ts +0 -100
- package/src/models/UpdateOrderLineItemRequest.ts +0 -74
|
@@ -42,7 +42,7 @@ function instanceOfAdminOrderResource(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
-
if (!('
|
|
45
|
+
if (!('lockedInsuranceAmount' in value) || value['lockedInsuranceAmount'] === undefined)
|
|
46
46
|
return false;
|
|
47
47
|
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
48
48
|
return false;
|
|
@@ -82,10 +82,6 @@ function instanceOfAdminOrderResource(value) {
|
|
|
82
82
|
return false;
|
|
83
83
|
if (!('totalOutstanding' in value) || value['totalOutstanding'] === undefined)
|
|
84
84
|
return false;
|
|
85
|
-
if (!('discountPreview' in value) || value['discountPreview'] === undefined)
|
|
86
|
-
return false;
|
|
87
|
-
if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined)
|
|
88
|
-
return false;
|
|
89
85
|
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined)
|
|
90
86
|
return false;
|
|
91
87
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -130,7 +126,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
130
126
|
'shippingType': json['shippingType'],
|
|
131
127
|
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
132
128
|
'overrideShipping': json['overrideShipping'],
|
|
133
|
-
'
|
|
129
|
+
'lockedInsuranceAmount': json['lockedInsuranceAmount'],
|
|
134
130
|
'includeInsurance': json['includeInsurance'],
|
|
135
131
|
'overrideInsurance': json['overrideInsurance'],
|
|
136
132
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
@@ -150,8 +146,6 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
150
146
|
'grandTotal': json['grandTotal'],
|
|
151
147
|
'totalPaid': json['totalPaid'],
|
|
152
148
|
'totalOutstanding': json['totalOutstanding'],
|
|
153
|
-
'discountPreview': json['discountPreview'],
|
|
154
|
-
'shippingEstimate': json['shippingEstimate'],
|
|
155
149
|
'insuranceEstimate': json['insuranceEstimate'],
|
|
156
150
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
157
151
|
'customer': (0, CustomerResource_1.CustomerResourceFromJSON)(json['customer']),
|
|
@@ -185,7 +179,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
185
179
|
'shippingType': value['shippingType'],
|
|
186
180
|
'shippingSubtotal': value['shippingSubtotal'],
|
|
187
181
|
'overrideShipping': value['overrideShipping'],
|
|
188
|
-
'
|
|
182
|
+
'lockedInsuranceAmount': value['lockedInsuranceAmount'],
|
|
189
183
|
'includeInsurance': value['includeInsurance'],
|
|
190
184
|
'overrideInsurance': value['overrideInsurance'],
|
|
191
185
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
@@ -205,8 +199,6 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
205
199
|
'grandTotal': value['grandTotal'],
|
|
206
200
|
'totalPaid': value['totalPaid'],
|
|
207
201
|
'totalOutstanding': value['totalOutstanding'],
|
|
208
|
-
'discountPreview': value['discountPreview'],
|
|
209
|
-
'shippingEstimate': value['shippingEstimate'],
|
|
210
202
|
'insuranceEstimate': value['insuranceEstimate'],
|
|
211
203
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
212
204
|
'customer': (0, CustomerResource_1.CustomerResourceToJSON)(value['customer']),
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 AttachCouponRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachCouponRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AttachCouponRequest
|
|
22
|
+
*/
|
|
23
|
+
couponCode: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachCouponRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachCouponRequest(value: object): value is AttachCouponRequest;
|
|
29
|
+
export declare function AttachCouponRequestFromJSON(json: any): AttachCouponRequest;
|
|
30
|
+
export declare function AttachCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponRequest;
|
|
31
|
+
export declare function AttachCouponRequestToJSON(json: any): AttachCouponRequest;
|
|
32
|
+
export declare function AttachCouponRequestToJSONTyped(value?: AttachCouponRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
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.instanceOfAttachCouponRequest = instanceOfAttachCouponRequest;
|
|
17
|
+
exports.AttachCouponRequestFromJSON = AttachCouponRequestFromJSON;
|
|
18
|
+
exports.AttachCouponRequestFromJSONTyped = AttachCouponRequestFromJSONTyped;
|
|
19
|
+
exports.AttachCouponRequestToJSON = AttachCouponRequestToJSON;
|
|
20
|
+
exports.AttachCouponRequestToJSONTyped = AttachCouponRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachCouponRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachCouponRequest(value) {
|
|
25
|
+
if (!('couponCode' in value) || value['couponCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachCouponRequestFromJSON(json) {
|
|
30
|
+
return AttachCouponRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'couponCode': json['coupon_code'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AttachCouponRequestToJSON(json) {
|
|
41
|
+
return AttachCouponRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AttachCouponRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'coupon_code': value['couponCode'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 AttachLineItemRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachLineItemRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AttachLineItemRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AttachLineItemRequest
|
|
28
|
+
*/
|
|
29
|
+
quantity: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AttachLineItemRequest
|
|
34
|
+
*/
|
|
35
|
+
productPrice?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AttachLineItemRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAttachLineItemRequest(value: object): value is AttachLineItemRequest;
|
|
41
|
+
export declare function AttachLineItemRequestFromJSON(json: any): AttachLineItemRequest;
|
|
42
|
+
export declare function AttachLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachLineItemRequest;
|
|
43
|
+
export declare function AttachLineItemRequestToJSON(json: any): AttachLineItemRequest;
|
|
44
|
+
export declare function AttachLineItemRequestToJSONTyped(value?: AttachLineItemRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfAttachLineItemRequest = instanceOfAttachLineItemRequest;
|
|
17
|
+
exports.AttachLineItemRequestFromJSON = AttachLineItemRequestFromJSON;
|
|
18
|
+
exports.AttachLineItemRequestFromJSONTyped = AttachLineItemRequestFromJSONTyped;
|
|
19
|
+
exports.AttachLineItemRequestToJSON = AttachLineItemRequestToJSON;
|
|
20
|
+
exports.AttachLineItemRequestToJSONTyped = AttachLineItemRequestToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the AttachLineItemRequest interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfAttachLineItemRequest(value) {
|
|
25
25
|
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function AttachLineItemRequestFromJSON(json) {
|
|
32
|
+
return AttachLineItemRequestFromJSONTyped(json, false);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function AttachLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
if (json == null) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
@@ -41,10 +41,10 @@ function AttachCartItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function AttachLineItemRequestToJSON(json) {
|
|
45
|
+
return AttachLineItemRequestToJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function AttachLineItemRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
49
|
if (value == null) {
|
|
50
50
|
return value;
|
|
@@ -36,54 +36,6 @@ export interface CartListResource {
|
|
|
36
36
|
* @memberof CartListResource
|
|
37
37
|
*/
|
|
38
38
|
source: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof CartListResource
|
|
43
|
-
*/
|
|
44
|
-
shippingType?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof CartListResource
|
|
49
|
-
*/
|
|
50
|
-
shippingSubtotal?: number | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
* @memberof CartListResource
|
|
55
|
-
*/
|
|
56
|
-
overrideShipping: boolean;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof CartListResource
|
|
61
|
-
*/
|
|
62
|
-
insuranceAmount?: number | null;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {boolean}
|
|
66
|
-
* @memberof CartListResource
|
|
67
|
-
*/
|
|
68
|
-
includeInsurance: boolean;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {boolean}
|
|
72
|
-
* @memberof CartListResource
|
|
73
|
-
*/
|
|
74
|
-
overrideInsurance: boolean;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {boolean}
|
|
78
|
-
* @memberof CartListResource
|
|
79
|
-
*/
|
|
80
|
-
useAsBillingAddress: boolean;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Date}
|
|
84
|
-
* @memberof CartListResource
|
|
85
|
-
*/
|
|
86
|
-
expiryDate: Date;
|
|
87
39
|
/**
|
|
88
40
|
*
|
|
89
41
|
* @type {Date}
|
|
@@ -27,16 +27,6 @@ var CustomerListResource_1 = require("./CustomerListResource");
|
|
|
27
27
|
function instanceOfCartListResource(value) {
|
|
28
28
|
if (!('source' in value) || value['source'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
39
|
-
return false;
|
|
40
30
|
if (!('site' in value) || value['site'] === undefined)
|
|
41
31
|
return false;
|
|
42
32
|
if (!('customer' in value) || value['customer'] === undefined)
|
|
@@ -60,14 +50,6 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
50
|
'id': json['id'] == null ? undefined : json['id'],
|
|
61
51
|
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
62
52
|
'source': json['source'],
|
|
63
|
-
'shippingType': json['shippingType'] == null ? undefined : json['shippingType'],
|
|
64
|
-
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
65
|
-
'overrideShipping': json['overrideShipping'],
|
|
66
|
-
'insuranceAmount': json['insuranceAmount'] == null ? undefined : json['insuranceAmount'],
|
|
67
|
-
'includeInsurance': json['includeInsurance'],
|
|
68
|
-
'overrideInsurance': json['overrideInsurance'],
|
|
69
|
-
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
70
|
-
'expiryDate': (new Date(json['expiryDate'])),
|
|
71
53
|
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
72
54
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
73
55
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -89,14 +71,6 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
71
|
'id': value['id'],
|
|
90
72
|
'guestEmail': value['guestEmail'],
|
|
91
73
|
'source': value['source'],
|
|
92
|
-
'shippingType': value['shippingType'],
|
|
93
|
-
'shippingSubtotal': value['shippingSubtotal'],
|
|
94
|
-
'overrideShipping': value['overrideShipping'],
|
|
95
|
-
'insuranceAmount': value['insuranceAmount'],
|
|
96
|
-
'includeInsurance': value['includeInsurance'],
|
|
97
|
-
'overrideInsurance': value['overrideInsurance'],
|
|
98
|
-
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
99
|
-
'expiryDate': value['expiryDate'].toISOString(),
|
|
100
74
|
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
101
75
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
102
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
@@ -94,10 +94,10 @@ export interface CartResource {
|
|
|
94
94
|
overrideShipping: boolean;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @type {
|
|
97
|
+
* @type {string}
|
|
98
98
|
* @memberof CartResource
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
lockedInsuranceAmount?: string | null;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {boolean}
|
|
@@ -99,7 +99,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
99
99
|
'shippingType': json['shippingType'],
|
|
100
100
|
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
101
101
|
'overrideShipping': json['overrideShipping'],
|
|
102
|
-
'
|
|
102
|
+
'lockedInsuranceAmount': json['lockedInsuranceAmount'] == null ? undefined : json['lockedInsuranceAmount'],
|
|
103
103
|
'includeInsurance': json['includeInsurance'],
|
|
104
104
|
'overrideInsurance': json['overrideInsurance'],
|
|
105
105
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
@@ -144,7 +144,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
144
144
|
'shippingType': value['shippingType'],
|
|
145
145
|
'shippingSubtotal': value['shippingSubtotal'],
|
|
146
146
|
'overrideShipping': value['overrideShipping'],
|
|
147
|
-
'
|
|
147
|
+
'lockedInsuranceAmount': value['lockedInsuranceAmount'],
|
|
148
148
|
'includeInsurance': value['includeInsurance'],
|
|
149
149
|
'overrideInsurance': value['overrideInsurance'],
|
|
150
150
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 DetachCouponRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DetachCouponRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof DetachCouponRequest
|
|
22
|
+
*/
|
|
23
|
+
couponIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DetachCouponRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDetachCouponRequest(value: object): value is DetachCouponRequest;
|
|
29
|
+
export declare function DetachCouponRequestFromJSON(json: any): DetachCouponRequest;
|
|
30
|
+
export declare function DetachCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponRequest;
|
|
31
|
+
export declare function DetachCouponRequestToJSON(json: any): DetachCouponRequest;
|
|
32
|
+
export declare function DetachCouponRequestToJSONTyped(value?: DetachCouponRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
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.instanceOfDetachCouponRequest = instanceOfDetachCouponRequest;
|
|
17
|
+
exports.DetachCouponRequestFromJSON = DetachCouponRequestFromJSON;
|
|
18
|
+
exports.DetachCouponRequestFromJSONTyped = DetachCouponRequestFromJSONTyped;
|
|
19
|
+
exports.DetachCouponRequestToJSON = DetachCouponRequestToJSON;
|
|
20
|
+
exports.DetachCouponRequestToJSONTyped = DetachCouponRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DetachCouponRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDetachCouponRequest(value) {
|
|
25
|
+
if (!('couponIds' in value) || value['couponIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DetachCouponRequestFromJSON(json) {
|
|
30
|
+
return DetachCouponRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DetachCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'couponIds': json['coupon_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DetachCouponRequestToJSON(json) {
|
|
41
|
+
return DetachCouponRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DetachCouponRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'coupon_ids': value['couponIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 (!('website' in value) || value['website'] === undefined)
|
|
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'phone': json['phone'],
|
|
69
67
|
'longitude': json['longitude'],
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
69
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
71
|
'website': json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 UpdateLineItemRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateLineItemRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateLineItemRequest
|
|
22
|
+
*/
|
|
23
|
+
quantity: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateLineItemRequest
|
|
28
|
+
*/
|
|
29
|
+
productPrice?: number | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateLineItemRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateLineItemRequest(value: object): value is UpdateLineItemRequest;
|
|
35
|
+
export declare function UpdateLineItemRequestFromJSON(json: any): UpdateLineItemRequest;
|
|
36
|
+
export declare function UpdateLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLineItemRequest;
|
|
37
|
+
export declare function UpdateLineItemRequestToJSON(json: any): UpdateLineItemRequest;
|
|
38
|
+
export declare function UpdateLineItemRequestToJSONTyped(value?: UpdateLineItemRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfUpdateLineItemRequest = instanceOfUpdateLineItemRequest;
|
|
17
|
+
exports.UpdateLineItemRequestFromJSON = UpdateLineItemRequestFromJSON;
|
|
18
|
+
exports.UpdateLineItemRequestFromJSONTyped = UpdateLineItemRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateLineItemRequestToJSON = UpdateLineItemRequestToJSON;
|
|
20
|
+
exports.UpdateLineItemRequestToJSONTyped = UpdateLineItemRequestToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the UpdateLineItemRequest interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfUpdateLineItemRequest(value) {
|
|
25
25
|
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
29
|
+
function UpdateLineItemRequestFromJSON(json) {
|
|
30
|
+
return UpdateLineItemRequestFromJSONTyped(json, false);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function UpdateLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if (json == null) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -38,10 +38,10 @@ function UpdateCartItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function UpdateLineItemRequestToJSON(json) {
|
|
42
|
+
return UpdateLineItemRequestToJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function UpdateLineItemRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
45
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
46
|
if (value == null) {
|
|
47
47
|
return value;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -21,15 +21,13 @@ export * from './AssetWithOverlayLinkResource';
|
|
|
21
21
|
export * from './AssetWithOverlayLinkResourceArrayResponse';
|
|
22
22
|
export * from './AttachAttributesToProductRangeRequest';
|
|
23
23
|
export * from './AttachAttributesToProductRangeRequestAttributesInner';
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './AttachCartItemRequest';
|
|
24
|
+
export * from './AttachCouponRequest';
|
|
26
25
|
export * from './AttachDocumentablesToDocumentRequest';
|
|
27
26
|
export * from './AttachDocumentablesToDocumentRequestDocumentablesInner';
|
|
28
27
|
export * from './AttachDocumentsToProductChildRequest';
|
|
29
28
|
export * from './AttachDocumentsToProductChildRequestDocumentsInner';
|
|
30
29
|
export * from './AttachDocumentsToProductRangeRequest';
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './AttachOrderLineItemRequest';
|
|
30
|
+
export * from './AttachLineItemRequest';
|
|
33
31
|
export * from './AttachProductChildrenRequest';
|
|
34
32
|
export * from './AttachProductChildrenToProductRangeRequest';
|
|
35
33
|
export * from './AttachProductsToProductCategoryRequest';
|
|
@@ -137,12 +135,11 @@ export * from './DeleteAttributeValueRequest';
|
|
|
137
135
|
export * from './DescriptionResource';
|
|
138
136
|
export * from './DescriptionResourceArrayResponse';
|
|
139
137
|
export * from './DetachAttributesFromProductRangeRequest';
|
|
140
|
-
export * from './
|
|
138
|
+
export * from './DetachCouponRequest';
|
|
141
139
|
export * from './DetachDocumentablesFromDocumentRequest';
|
|
142
140
|
export * from './DetachDocumentablesFromDocumentRequestDocumentablesInner';
|
|
143
141
|
export * from './DetachDocumentsFromProductChildRequest';
|
|
144
142
|
export * from './DetachDocumentsFromProductRangeRequest';
|
|
145
|
-
export * from './DetachOrderCouponRequest';
|
|
146
143
|
export * from './DetachProductChildrenFromProductRangeRequest';
|
|
147
144
|
export * from './DetachProductsFromProductCategoryRequest';
|
|
148
145
|
export * from './DetachStoresFromSupplierRequest';
|
|
@@ -579,17 +576,15 @@ export * from './UpdateAttributeProductTypeRequest';
|
|
|
579
576
|
export * from './UpdateAttributeRequest';
|
|
580
577
|
export * from './UpdateAttributeValueRequest';
|
|
581
578
|
export * from './UpdateBlogCategoryRequest';
|
|
582
|
-
export * from './UpdateCartItemRequest';
|
|
583
579
|
export * from './UpdateCartRequest';
|
|
584
|
-
export * from './UpdateCustomerRequest';
|
|
585
580
|
export * from './UpdateDefinitionRequest';
|
|
586
581
|
export * from './UpdateDocumentRequest';
|
|
587
582
|
export * from './UpdateLabelRequest';
|
|
583
|
+
export * from './UpdateLineItemRequest';
|
|
588
584
|
export * from './UpdateMenuItemRequest';
|
|
589
585
|
export * from './UpdateMenuRequest';
|
|
590
586
|
export * from './UpdateMenuRequestMenuItemOrderInner';
|
|
591
587
|
export * from './UpdateModelAttributeRequest';
|
|
592
|
-
export * from './UpdateOrderLineItemRequest';
|
|
593
588
|
export * from './UpdateOrderRequest';
|
|
594
589
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
595
590
|
export * from './UpdateOverlayTemplateRequest';
|