@digital8/lighting-illusions-ts-sdk 0.0.1859 → 0.0.1860
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 -14
- package/README.md +3 -10
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +5 -3
- package/dist/models/AddressResource.d.ts +6 -0
- package/dist/models/AddressResource.js +2 -0
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/CartResource.d.ts +4 -34
- package/dist/models/CartResource.js +10 -32
- package/dist/models/LineItemListResource.d.ts +3 -27
- package/dist/models/LineItemListResource.js +3 -19
- package/dist/models/StoreCartRequest.d.ts +12 -0
- package/dist/models/StoreCartRequest.js +4 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +12 -0
- package/dist/models/UpdateCartRequest.js +4 -0
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/docs/AddressResource.md +2 -0
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartResource.md +6 -16
- package/docs/CartsApi.md +8 -8
- package/docs/LineItemListResource.md +1 -9
- package/docs/StoreCartRequest.md +4 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCartRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -12
- package/src/models/AddressResource.ts +8 -0
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/CartResource.ts +14 -60
- package/src/models/LineItemListResource.ts +10 -46
- package/src/models/StoreCartRequest.ts +16 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCartRequest.ts +16 -0
- package/src/models/index.ts +0 -7
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/LineItemDiscountResource.d.ts +0 -44
- package/dist/models/LineItemDiscountResource.js +0 -59
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
- package/dist/models/ProductChildCartLiteResource.js +0 -77
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/LineItemDiscountResource.md +0 -38
- package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/LineItemDiscountResource.ts +0 -84
- package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { ProductChildListResource } from './ProductChildListResource';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
ProductChildListResourceFromJSON,
|
|
19
|
+
ProductChildListResourceFromJSONTyped,
|
|
20
|
+
ProductChildListResourceToJSON,
|
|
21
|
+
ProductChildListResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildListResource';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -47,34 +47,10 @@ export interface LineItemListResource {
|
|
|
47
47
|
productPrice: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
51
|
-
* @memberof LineItemListResource
|
|
52
|
-
*/
|
|
53
|
-
productDiscount: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof LineItemListResource
|
|
58
|
-
*/
|
|
59
|
-
totalDiscount: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {number}
|
|
63
|
-
* @memberof LineItemListResource
|
|
64
|
-
*/
|
|
65
|
-
lineSubtotal: number;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {object}
|
|
69
|
-
* @memberof LineItemListResource
|
|
70
|
-
*/
|
|
71
|
-
discounts: object;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {ProductChildCartLiteResource}
|
|
50
|
+
* @type {ProductChildListResource}
|
|
75
51
|
* @memberof LineItemListResource
|
|
76
52
|
*/
|
|
77
|
-
productChild:
|
|
53
|
+
productChild: ProductChildListResource | null;
|
|
78
54
|
}
|
|
79
55
|
|
|
80
56
|
/**
|
|
@@ -83,10 +59,6 @@ export interface LineItemListResource {
|
|
|
83
59
|
export function instanceOfLineItemListResource(value: object): value is LineItemListResource {
|
|
84
60
|
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
85
61
|
if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
|
|
86
|
-
if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
|
|
87
|
-
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
|
|
88
|
-
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
|
|
89
|
-
if (!('discounts' in value) || value['discounts'] === undefined) return false;
|
|
90
62
|
if (!('productChild' in value) || value['productChild'] === undefined) return false;
|
|
91
63
|
return true;
|
|
92
64
|
}
|
|
@@ -104,11 +76,7 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
104
76
|
'id': json['id'] == null ? undefined : json['id'],
|
|
105
77
|
'quantity': json['quantity'],
|
|
106
78
|
'productPrice': json['product_price'],
|
|
107
|
-
'
|
|
108
|
-
'totalDiscount': json['total_discount'],
|
|
109
|
-
'lineSubtotal': json['line_subtotal'],
|
|
110
|
-
'discounts': json['discounts'],
|
|
111
|
-
'productChild': ProductChildCartLiteResourceFromJSON(json['product_child']),
|
|
79
|
+
'productChild': ProductChildListResourceFromJSON(json['product_child']),
|
|
112
80
|
};
|
|
113
81
|
}
|
|
114
82
|
|
|
@@ -126,11 +94,7 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
|
|
|
126
94
|
'id': value['id'],
|
|
127
95
|
'quantity': value['quantity'],
|
|
128
96
|
'product_price': value['productPrice'],
|
|
129
|
-
'
|
|
130
|
-
'total_discount': value['totalDiscount'],
|
|
131
|
-
'line_subtotal': value['lineSubtotal'],
|
|
132
|
-
'discounts': value['discounts'],
|
|
133
|
-
'product_child': ProductChildCartLiteResourceToJSON(value['productChild']),
|
|
97
|
+
'product_child': ProductChildListResourceToJSON(value['productChild']),
|
|
134
98
|
};
|
|
135
99
|
}
|
|
136
100
|
|
|
@@ -125,6 +125,18 @@ export interface StoreCartRequest {
|
|
|
125
125
|
* @memberof StoreCartRequest
|
|
126
126
|
*/
|
|
127
127
|
useAsBillingAddress?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {number}
|
|
131
|
+
* @memberof StoreCartRequest
|
|
132
|
+
*/
|
|
133
|
+
shippingAddressId?: number | null;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {number}
|
|
137
|
+
* @memberof StoreCartRequest
|
|
138
|
+
*/
|
|
139
|
+
billingAddressId?: number | null;
|
|
128
140
|
/**
|
|
129
141
|
*
|
|
130
142
|
* @type {StoreCartRequestShippingAddress}
|
|
@@ -199,6 +211,8 @@ export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
199
211
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
200
212
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
201
213
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
214
|
+
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
215
|
+
'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
|
|
202
216
|
'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
203
217
|
'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
|
|
204
218
|
};
|
|
@@ -229,6 +243,8 @@ export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ign
|
|
|
229
243
|
'insurance_amount': value['insuranceAmount'],
|
|
230
244
|
'override_insurance': value['overrideInsurance'],
|
|
231
245
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
246
|
+
'shipping_address_id': value['shippingAddressId'],
|
|
247
|
+
'billing_address_id': value['billingAddressId'],
|
|
232
248
|
'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
|
|
233
249
|
'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
|
|
234
250
|
};
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -100,6 +100,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
103
104
|
return true;
|
|
104
105
|
}
|
|
105
106
|
|
|
@@ -121,7 +122,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
121
122
|
'latitude': json['latitude'],
|
|
122
123
|
'tagLine': json['tag_line'],
|
|
123
124
|
'email': json['email'],
|
|
124
|
-
'website': json['website']
|
|
125
|
+
'website': json['website'],
|
|
125
126
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
126
127
|
};
|
|
127
128
|
}
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['display_start_date'],
|
|
94
95
|
'displayEndDate': json['display_end_date'],
|
|
@@ -94,6 +94,18 @@ export interface UpdateCartRequest {
|
|
|
94
94
|
* @memberof UpdateCartRequest
|
|
95
95
|
*/
|
|
96
96
|
useAsBillingAddress?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof UpdateCartRequest
|
|
101
|
+
*/
|
|
102
|
+
shippingAddressId?: number | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof UpdateCartRequest
|
|
107
|
+
*/
|
|
108
|
+
billingAddressId?: number | null;
|
|
97
109
|
/**
|
|
98
110
|
*
|
|
99
111
|
* @type {StoreCartRequestShippingAddress}
|
|
@@ -162,6 +174,8 @@ export function UpdateCartRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
162
174
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
163
175
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
164
176
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
177
|
+
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
178
|
+
'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
|
|
165
179
|
'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
166
180
|
'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
|
|
167
181
|
};
|
|
@@ -188,6 +202,8 @@ export function UpdateCartRequestToJSONTyped(value?: UpdateCartRequest | null, i
|
|
|
188
202
|
'insurance_amount': value['insuranceAmount'],
|
|
189
203
|
'override_insurance': value['overrideInsurance'],
|
|
190
204
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
205
|
+
'shipping_address_id': value['shippingAddressId'],
|
|
206
|
+
'billing_address_id': value['billingAddressId'],
|
|
191
207
|
'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
|
|
192
208
|
'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
|
|
193
209
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -74,7 +74,6 @@ export * from './DestroyAttributeValueRequest';
|
|
|
74
74
|
export * from './DetachAccessoriesProductRangeRequest';
|
|
75
75
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
76
76
|
export * from './DetachAttributesProductRangeRequest';
|
|
77
|
-
export * from './DetachCouponCartRequest';
|
|
78
77
|
export * from './DetachDocumentablesDocumentRequest';
|
|
79
78
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
80
79
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -82,8 +81,6 @@ export * from './DetachDocumentsProductRangeRequest';
|
|
|
82
81
|
export * from './DetachProductsProductCategoryRequest';
|
|
83
82
|
export * from './DetachStoresSupplierRequest';
|
|
84
83
|
export * from './DetachSuppliersStoreRequest';
|
|
85
|
-
export * from './DiscountType';
|
|
86
|
-
export * from './DiscountValueType';
|
|
87
84
|
export * from './DocumentFileForUploadResource';
|
|
88
85
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
89
86
|
export * from './DocumentFrontendResource';
|
|
@@ -159,8 +156,6 @@ export * from './LabelResource';
|
|
|
159
156
|
export * from './LabelResourceArrayResponse';
|
|
160
157
|
export * from './LiAddressResource';
|
|
161
158
|
export * from './LiAddressResourceArrayResponse';
|
|
162
|
-
export * from './LineItemDiscountResource';
|
|
163
|
-
export * from './LineItemDiscountResourceArrayResponse';
|
|
164
159
|
export * from './LineItemListResource';
|
|
165
160
|
export * from './LineItemListResourceArrayResponse';
|
|
166
161
|
export * from './ListAssetsProductRegistrationRequest';
|
|
@@ -270,8 +265,6 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
270
265
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
271
266
|
export * from './ProductChildAttributeResource';
|
|
272
267
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
273
|
-
export * from './ProductChildCartLiteResource';
|
|
274
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
275
268
|
export * from './ProductChildListResource';
|
|
276
269
|
export * from './ProductChildListResourceArrayResponse';
|
|
277
270
|
export * from './ProductChildLiteResource';
|
|
@@ -1,32 +0,0 @@
|
|
|
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 DetachCouponCartRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface DetachCouponCartRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<number>}
|
|
21
|
-
* @memberof DetachCouponCartRequest
|
|
22
|
-
*/
|
|
23
|
-
couponIds: Array<number>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the DetachCouponCartRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest;
|
|
29
|
-
export declare function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest;
|
|
30
|
-
export declare function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest;
|
|
31
|
-
export declare function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest;
|
|
32
|
-
export declare function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.instanceOfDetachCouponCartRequest = instanceOfDetachCouponCartRequest;
|
|
17
|
-
exports.DetachCouponCartRequestFromJSON = DetachCouponCartRequestFromJSON;
|
|
18
|
-
exports.DetachCouponCartRequestFromJSONTyped = DetachCouponCartRequestFromJSONTyped;
|
|
19
|
-
exports.DetachCouponCartRequestToJSON = DetachCouponCartRequestToJSON;
|
|
20
|
-
exports.DetachCouponCartRequestToJSONTyped = DetachCouponCartRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the DetachCouponCartRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfDetachCouponCartRequest(value) {
|
|
25
|
-
if (!('couponIds' in value) || value['couponIds'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function DetachCouponCartRequestFromJSON(json) {
|
|
30
|
-
return DetachCouponCartRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function DetachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponIds': json['coupon_ids'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function DetachCouponCartRequestToJSON(json) {
|
|
41
|
-
return DetachCouponCartRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function DetachCouponCartRequestToJSONTyped(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
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
*/
|
|
16
|
-
export declare const DiscountType: {
|
|
17
|
-
readonly Shipping: "shipping";
|
|
18
|
-
readonly Subtotal: "subtotal";
|
|
19
|
-
readonly Product: "product";
|
|
20
|
-
};
|
|
21
|
-
export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
22
|
-
export declare function instanceOfDiscountType(value: any): boolean;
|
|
23
|
-
export declare function DiscountTypeFromJSON(json: any): DiscountType;
|
|
24
|
-
export declare function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType;
|
|
25
|
-
export declare function DiscountTypeToJSON(value?: DiscountType | null): any;
|
|
26
|
-
export declare function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType;
|
|
@@ -1,52 +0,0 @@
|
|
|
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.DiscountType = void 0;
|
|
17
|
-
exports.instanceOfDiscountType = instanceOfDiscountType;
|
|
18
|
-
exports.DiscountTypeFromJSON = DiscountTypeFromJSON;
|
|
19
|
-
exports.DiscountTypeFromJSONTyped = DiscountTypeFromJSONTyped;
|
|
20
|
-
exports.DiscountTypeToJSON = DiscountTypeToJSON;
|
|
21
|
-
exports.DiscountTypeToJSONTyped = DiscountTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.DiscountType = {
|
|
27
|
-
Shipping: 'shipping',
|
|
28
|
-
Subtotal: 'subtotal',
|
|
29
|
-
Product: 'product'
|
|
30
|
-
};
|
|
31
|
-
function instanceOfDiscountType(value) {
|
|
32
|
-
for (var key in exports.DiscountType) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(exports.DiscountType, key)) {
|
|
34
|
-
if (exports.DiscountType[key] === value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
function DiscountTypeFromJSON(json) {
|
|
42
|
-
return DiscountTypeFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function DiscountTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
function DiscountTypeToJSON(value) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
function DiscountTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
*/
|
|
16
|
-
export declare const DiscountValueType: {
|
|
17
|
-
readonly FixedValue: "fixed_value";
|
|
18
|
-
readonly Percentage: "percentage";
|
|
19
|
-
};
|
|
20
|
-
export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
|
|
21
|
-
export declare function instanceOfDiscountValueType(value: any): boolean;
|
|
22
|
-
export declare function DiscountValueTypeFromJSON(json: any): DiscountValueType;
|
|
23
|
-
export declare function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType;
|
|
24
|
-
export declare function DiscountValueTypeToJSON(value?: DiscountValueType | null): any;
|
|
25
|
-
export declare function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.DiscountValueType = void 0;
|
|
17
|
-
exports.instanceOfDiscountValueType = instanceOfDiscountValueType;
|
|
18
|
-
exports.DiscountValueTypeFromJSON = DiscountValueTypeFromJSON;
|
|
19
|
-
exports.DiscountValueTypeFromJSONTyped = DiscountValueTypeFromJSONTyped;
|
|
20
|
-
exports.DiscountValueTypeToJSON = DiscountValueTypeToJSON;
|
|
21
|
-
exports.DiscountValueTypeToJSONTyped = DiscountValueTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.DiscountValueType = {
|
|
27
|
-
FixedValue: 'fixed_value',
|
|
28
|
-
Percentage: 'percentage'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfDiscountValueType(value) {
|
|
31
|
-
for (var key in exports.DiscountValueType) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.DiscountValueType, key)) {
|
|
33
|
-
if (exports.DiscountValueType[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function DiscountValueTypeFromJSON(json) {
|
|
41
|
-
return DiscountValueTypeFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function DiscountValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function DiscountValueTypeToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function DiscountValueTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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 LineItemDiscountResource
|
|
16
|
-
*/
|
|
17
|
-
export interface LineItemDiscountResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof LineItemDiscountResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LineItemDiscountResource
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof LineItemDiscountResource
|
|
34
|
-
*/
|
|
35
|
-
discountTotal: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the LineItemDiscountResource interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfLineItemDiscountResource(value: object): value is LineItemDiscountResource;
|
|
41
|
-
export declare function LineItemDiscountResourceFromJSON(json: any): LineItemDiscountResource;
|
|
42
|
-
export declare function LineItemDiscountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResource;
|
|
43
|
-
export declare function LineItemDiscountResourceToJSON(json: any): LineItemDiscountResource;
|
|
44
|
-
export declare function LineItemDiscountResourceToJSONTyped(value?: LineItemDiscountResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +0,0 @@
|
|
|
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.instanceOfLineItemDiscountResource = instanceOfLineItemDiscountResource;
|
|
17
|
-
exports.LineItemDiscountResourceFromJSON = LineItemDiscountResourceFromJSON;
|
|
18
|
-
exports.LineItemDiscountResourceFromJSONTyped = LineItemDiscountResourceFromJSONTyped;
|
|
19
|
-
exports.LineItemDiscountResourceToJSON = LineItemDiscountResourceToJSON;
|
|
20
|
-
exports.LineItemDiscountResourceToJSONTyped = LineItemDiscountResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the LineItemDiscountResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfLineItemDiscountResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('discountTotal' in value) || value['discountTotal'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function LineItemDiscountResourceFromJSON(json) {
|
|
34
|
-
return LineItemDiscountResourceFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function LineItemDiscountResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'id': json['id'],
|
|
42
|
-
'name': json['name'],
|
|
43
|
-
'discountTotal': json['discount_total'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function LineItemDiscountResourceToJSON(json) {
|
|
47
|
-
return LineItemDiscountResourceToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function LineItemDiscountResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'id': value['id'],
|
|
56
|
-
'name': value['name'],
|
|
57
|
-
'discount_total': value['discountTotal'],
|
|
58
|
-
};
|
|
59
|
-
}
|