@digital8/lighting-illusions-ts-sdk 0.0.2049 → 0.0.2051
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/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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/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/ExternalApiLogResource.ts +2 -3
- 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
|
@@ -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
|
+
}
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -40,8 +40,6 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -70,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
69
|
'tagLine': json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
71
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
75
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -39,15 +39,13 @@ __exportStar(require("./AssetWithOverlayLinkResource"), exports);
|
|
|
39
39
|
__exportStar(require("./AssetWithOverlayLinkResourceArrayResponse"), exports);
|
|
40
40
|
__exportStar(require("./AttachAttributesToProductRangeRequest"), exports);
|
|
41
41
|
__exportStar(require("./AttachAttributesToProductRangeRequestAttributesInner"), exports);
|
|
42
|
-
__exportStar(require("./
|
|
43
|
-
__exportStar(require("./AttachCartItemRequest"), exports);
|
|
42
|
+
__exportStar(require("./AttachCouponRequest"), exports);
|
|
44
43
|
__exportStar(require("./AttachDocumentablesToDocumentRequest"), exports);
|
|
45
44
|
__exportStar(require("./AttachDocumentablesToDocumentRequestDocumentablesInner"), exports);
|
|
46
45
|
__exportStar(require("./AttachDocumentsToProductChildRequest"), exports);
|
|
47
46
|
__exportStar(require("./AttachDocumentsToProductChildRequestDocumentsInner"), exports);
|
|
48
47
|
__exportStar(require("./AttachDocumentsToProductRangeRequest"), exports);
|
|
49
|
-
__exportStar(require("./
|
|
50
|
-
__exportStar(require("./AttachOrderLineItemRequest"), exports);
|
|
48
|
+
__exportStar(require("./AttachLineItemRequest"), exports);
|
|
51
49
|
__exportStar(require("./AttachProductChildrenRequest"), exports);
|
|
52
50
|
__exportStar(require("./AttachProductChildrenToProductRangeRequest"), exports);
|
|
53
51
|
__exportStar(require("./AttachProductsToProductCategoryRequest"), exports);
|
|
@@ -155,12 +153,11 @@ __exportStar(require("./DeleteAttributeValueRequest"), exports);
|
|
|
155
153
|
__exportStar(require("./DescriptionResource"), exports);
|
|
156
154
|
__exportStar(require("./DescriptionResourceArrayResponse"), exports);
|
|
157
155
|
__exportStar(require("./DetachAttributesFromProductRangeRequest"), exports);
|
|
158
|
-
__exportStar(require("./
|
|
156
|
+
__exportStar(require("./DetachCouponRequest"), exports);
|
|
159
157
|
__exportStar(require("./DetachDocumentablesFromDocumentRequest"), exports);
|
|
160
158
|
__exportStar(require("./DetachDocumentablesFromDocumentRequestDocumentablesInner"), exports);
|
|
161
159
|
__exportStar(require("./DetachDocumentsFromProductChildRequest"), exports);
|
|
162
160
|
__exportStar(require("./DetachDocumentsFromProductRangeRequest"), exports);
|
|
163
|
-
__exportStar(require("./DetachOrderCouponRequest"), exports);
|
|
164
161
|
__exportStar(require("./DetachProductChildrenFromProductRangeRequest"), exports);
|
|
165
162
|
__exportStar(require("./DetachProductsFromProductCategoryRequest"), exports);
|
|
166
163
|
__exportStar(require("./DetachStoresFromSupplierRequest"), exports);
|
|
@@ -597,17 +594,15 @@ __exportStar(require("./UpdateAttributeProductTypeRequest"), exports);
|
|
|
597
594
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
598
595
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
599
596
|
__exportStar(require("./UpdateBlogCategoryRequest"), exports);
|
|
600
|
-
__exportStar(require("./UpdateCartItemRequest"), exports);
|
|
601
597
|
__exportStar(require("./UpdateCartRequest"), exports);
|
|
602
|
-
__exportStar(require("./UpdateCustomerRequest"), exports);
|
|
603
598
|
__exportStar(require("./UpdateDefinitionRequest"), exports);
|
|
604
599
|
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
605
600
|
__exportStar(require("./UpdateLabelRequest"), exports);
|
|
601
|
+
__exportStar(require("./UpdateLineItemRequest"), exports);
|
|
606
602
|
__exportStar(require("./UpdateMenuItemRequest"), exports);
|
|
607
603
|
__exportStar(require("./UpdateMenuRequest"), exports);
|
|
608
604
|
__exportStar(require("./UpdateMenuRequestMenuItemOrderInner"), exports);
|
|
609
605
|
__exportStar(require("./UpdateModelAttributeRequest"), exports);
|
|
610
|
-
__exportStar(require("./UpdateOrderLineItemRequest"), exports);
|
|
611
606
|
__exportStar(require("./UpdateOrderRequest"), exports);
|
|
612
607
|
__exportStar(require("./UpdateOverlayTemplateAssetRequest"), exports);
|
|
613
608
|
__exportStar(require("./UpdateOverlayTemplateRequest"), exports);
|