@digital8/lighting-illusions-ts-sdk 0.0.1845 → 0.0.1846
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 +2 -74
- package/README.md +3 -52
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +0 -6
- package/dist/models/IndexExternalApiLogRequest.js +0 -2
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
- package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
- package/dist/models/SitePaymentConfigResource.d.ts +0 -6
- package/dist/models/SitePaymentConfigResource.js +0 -4
- package/dist/models/StoreListResource.d.ts +13 -1
- package/dist/models/StoreListResource.js +14 -4
- package/dist/models/StoreResource.d.ts +13 -1
- package/dist/models/StoreResource.js +14 -8
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +7 -5
- package/dist/models/StoreStockType.d.ts +25 -0
- package/dist/models/StoreStockType.js +51 -0
- package/dist/models/StoreStoreRequest.d.ts +12 -0
- package/dist/models/StoreStoreRequest.js +4 -0
- package/dist/models/UpdateSiteRequest.d.ts +0 -6
- package/dist/models/UpdateSiteRequest.js +0 -4
- package/dist/models/UpdateStoreRequest.d.ts +12 -0
- package/dist/models/UpdateStoreRequest.js +4 -0
- package/dist/models/index.d.ts +1 -35
- package/dist/models/index.js +1 -35
- package/docs/IndexExternalApiLogRequest.md +0 -2
- package/docs/ProductChildSiteDetailLiteResource.md +0 -2
- package/docs/SitePaymentConfigResource.md +0 -2
- package/docs/StoreListResource.md +4 -0
- package/docs/StoreResource.md +4 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/{AddressType.md → StoreStockType.md} +4 -4
- package/docs/StoreStoreRequest.md +4 -0
- package/docs/UpdateSiteRequest.md +0 -2
- package/docs/UpdateStoreRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/index.ts +0 -2
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexExternalApiLogRequest.ts +0 -8
- package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
- package/src/models/SitePaymentConfigResource.ts +0 -9
- package/src/models/StoreListResource.ts +24 -5
- package/src/models/StoreResource.ts +26 -9
- package/src/models/StoreSpecialDateResource.ts +8 -7
- package/src/models/StoreStockType.ts +53 -0
- package/src/models/StoreStoreRequest.ts +16 -0
- package/src/models/UpdateSiteRequest.ts +0 -9
- package/src/models/UpdateStoreRequest.ts +16 -0
- package/src/models/index.ts +1 -35
- package/dist/apis/CartsApi.d.ts +0 -190
- package/dist/apis/CartsApi.js +0 -745
- package/dist/apis/CustomersApi.d.ts +0 -79
- package/dist/apis/CustomersApi.js +0 -316
- package/dist/models/AddressType.d.ts +0 -25
- package/dist/models/AddressType.js +0 -51
- package/dist/models/AdminCartResource.d.ts +0 -234
- package/dist/models/AdminCartResource.js +0 -169
- package/dist/models/AdminCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminCartResourceArrayResponse.js +0 -50
- package/dist/models/AttachCouponCartRequest.d.ts +0 -32
- package/dist/models/AttachCouponCartRequest.js +0 -51
- package/dist/models/AttachItemCartRequest.d.ts +0 -44
- package/dist/models/AttachItemCartRequest.js +0 -57
- package/dist/models/CartListResource.d.ts +0 -143
- package/dist/models/CartListResource.js +0 -110
- package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartListResourceArrayResponse.js +0 -50
- package/dist/models/CartOrderSource.d.ts +0 -29
- package/dist/models/CartOrderSource.js +0 -55
- package/dist/models/CartStatus.d.ts +0 -26
- package/dist/models/CartStatus.js +0 -52
- package/dist/models/CustomerListResource.d.ts +0 -76
- package/dist/models/CustomerListResource.js +0 -77
- package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerListResourceArrayResponse.js +0 -50
- package/dist/models/CustomerResource.d.ts +0 -76
- package/dist/models/CustomerResource.js +0 -77
- package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerResourceArrayResponse.js +0 -50
- 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/IndexCartRequest.d.ts +0 -154
- package/dist/models/IndexCartRequest.js +0 -105
- package/dist/models/IndexCustomerRequest.d.ts +0 -99
- package/dist/models/IndexCustomerRequest.js +0 -83
- package/dist/models/LiAddressResource.d.ts +0 -86
- package/dist/models/LiAddressResource.js +0 -83
- package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
- package/dist/models/LiAddressResourceArrayResponse.js +0 -50
- package/dist/models/LineItemListResource.d.ts +0 -75
- package/dist/models/LineItemListResource.js +0 -78
- package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCartListResourceResponse.js +0 -57
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
- 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/dist/models/ShippingType.d.ts +0 -28
- package/dist/models/ShippingType.js +0 -54
- package/dist/models/StoreCartRequest.d.ts +0 -142
- package/dist/models/StoreCartRequest.js +0 -106
- package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
- package/dist/models/StoreCartRequestCustomer.js +0 -55
- package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
- package/dist/models/StoreCartRequestItemsInner.js +0 -57
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -68
- package/dist/models/StoreCartRequestShippingAddress.js +0 -61
- package/dist/models/StoreCustomerRequest.d.ts +0 -56
- package/dist/models/StoreCustomerRequest.js +0 -65
- package/dist/models/UpdateCartRequest.d.ts +0 -117
- package/dist/models/UpdateCartRequest.js +0 -93
- package/dist/models/UpdateCustomerRequest.d.ts +0 -56
- package/dist/models/UpdateCustomerRequest.js +0 -63
- package/dist/models/UpdateItemCartRequest.d.ts +0 -38
- package/dist/models/UpdateItemCartRequest.js +0 -53
- package/docs/AdminCartResource.md +0 -100
- package/docs/AdminCartResourceArrayResponse.md +0 -34
- package/docs/AttachCouponCartRequest.md +0 -34
- package/docs/AttachItemCartRequest.md +0 -38
- package/docs/CartListResource.md +0 -70
- package/docs/CartListResourceArrayResponse.md +0 -34
- package/docs/CartOrderSource.md +0 -32
- package/docs/CartStatus.md +0 -32
- package/docs/CartsApi.md +0 -755
- package/docs/CustomerListResource.md +0 -48
- package/docs/CustomerListResourceArrayResponse.md +0 -34
- package/docs/CustomerResource.md +0 -48
- package/docs/CustomerResourceArrayResponse.md +0 -34
- package/docs/CustomersApi.md +0 -275
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/IndexCartRequest.md +0 -66
- package/docs/IndexCustomerRequest.md +0 -50
- package/docs/LiAddressResource.md +0 -52
- package/docs/LiAddressResourceArrayResponse.md +0 -34
- package/docs/LineItemListResource.md +0 -48
- package/docs/LineItemListResourceArrayResponse.md +0 -34
- package/docs/PaginatedCartListResourceResponse.md +0 -36
- package/docs/PaginatedCustomerListResourceResponse.md +0 -36
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/docs/ShippingType.md +0 -32
- package/docs/StoreCartRequest.md +0 -62
- package/docs/StoreCartRequestCustomer.md +0 -40
- package/docs/StoreCartRequestItemsInner.md +0 -38
- package/docs/StoreCartRequestShippingAddress.md +0 -46
- package/docs/StoreCustomerRequest.md +0 -42
- package/docs/UpdateCartRequest.md +0 -54
- package/docs/UpdateCustomerRequest.md +0 -42
- package/docs/UpdateItemCartRequest.md +0 -36
- package/src/apis/CartsApi.ts +0 -624
- package/src/apis/CustomersApi.ts +0 -232
- package/src/models/AddressType.ts +0 -53
- package/src/models/AdminCartResource.ts +0 -383
- package/src/models/AdminCartResourceArrayResponse.ts +0 -73
- package/src/models/AttachCouponCartRequest.ts +0 -66
- package/src/models/AttachItemCartRequest.ts +0 -83
- package/src/models/CartListResource.ts +0 -242
- package/src/models/CartListResourceArrayResponse.ts +0 -73
- package/src/models/CartOrderSource.ts +0 -57
- package/src/models/CartStatus.ts +0 -54
- package/src/models/CustomerListResource.ts +0 -142
- package/src/models/CustomerListResourceArrayResponse.ts +0 -73
- package/src/models/CustomerResource.ts +0 -142
- package/src/models/CustomerResourceArrayResponse.ts +0 -73
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/IndexCartRequest.ts +0 -224
- package/src/models/IndexCustomerRequest.ts +0 -152
- package/src/models/LiAddressResource.ts +0 -145
- package/src/models/LiAddressResourceArrayResponse.ts +0 -73
- package/src/models/LineItemListResource.ts +0 -136
- package/src/models/LineItemListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedCartListResourceResponse.ts +0 -90
- package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
- package/src/models/ShippingType.ts +0 -56
- package/src/models/StoreCartRequest.ts +0 -228
- package/src/models/StoreCartRequestCustomer.ts +0 -89
- package/src/models/StoreCartRequestItemsInner.ts +0 -83
- package/src/models/StoreCartRequestShippingAddress.ts +0 -113
- package/src/models/StoreCustomerRequest.ts +0 -101
- package/src/models/UpdateCartRequest.ts +0 -187
- package/src/models/UpdateCustomerRequest.ts +0 -100
- package/src/models/UpdateItemCartRequest.ts +0 -74
|
@@ -1,234 +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
|
-
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
-
import type { LineItemListResource } from './LineItemListResource';
|
|
14
|
-
import type { CustomerListResource } from './CustomerListResource';
|
|
15
|
-
import type { AddressResource } from './AddressResource';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface AdminCartResource
|
|
20
|
-
*/
|
|
21
|
-
export interface AdminCartResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof AdminCartResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof AdminCartResource
|
|
32
|
-
*/
|
|
33
|
-
siteId: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof AdminCartResource
|
|
38
|
-
*/
|
|
39
|
-
customerId?: number | null;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof AdminCartResource
|
|
44
|
-
*/
|
|
45
|
-
source: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof AdminCartResource
|
|
50
|
-
*/
|
|
51
|
-
sessionToken?: string | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof AdminCartResource
|
|
56
|
-
*/
|
|
57
|
-
paymentToken?: string | null;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Date}
|
|
61
|
-
* @memberof AdminCartResource
|
|
62
|
-
*/
|
|
63
|
-
expiryDate: Date;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Date}
|
|
67
|
-
* @memberof AdminCartResource
|
|
68
|
-
*/
|
|
69
|
-
checkoutCompletedAt?: Date | null;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Date}
|
|
73
|
-
* @memberof AdminCartResource
|
|
74
|
-
*/
|
|
75
|
-
createdAt?: Date | null;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Date}
|
|
79
|
-
* @memberof AdminCartResource
|
|
80
|
-
*/
|
|
81
|
-
updatedAt?: Date | null;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof AdminCartResource
|
|
86
|
-
*/
|
|
87
|
-
adminId?: number | null;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof AdminCartResource
|
|
92
|
-
*/
|
|
93
|
-
shippingType: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof AdminCartResource
|
|
98
|
-
*/
|
|
99
|
-
shippingSubtotal?: number | null;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {boolean}
|
|
103
|
-
* @memberof AdminCartResource
|
|
104
|
-
*/
|
|
105
|
-
overrideShipping: boolean;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {number}
|
|
109
|
-
* @memberof AdminCartResource
|
|
110
|
-
*/
|
|
111
|
-
insuranceAmount: number;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {boolean}
|
|
115
|
-
* @memberof AdminCartResource
|
|
116
|
-
*/
|
|
117
|
-
overrideInsurance: boolean;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {boolean}
|
|
121
|
-
* @memberof AdminCartResource
|
|
122
|
-
*/
|
|
123
|
-
useAsBillingAddress: boolean;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {object}
|
|
127
|
-
* @memberof AdminCartResource
|
|
128
|
-
*/
|
|
129
|
-
admin: object;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {SiteLiteResource}
|
|
133
|
-
* @memberof AdminCartResource
|
|
134
|
-
*/
|
|
135
|
-
site: SiteLiteResource | null;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {CustomerListResource}
|
|
139
|
-
* @memberof AdminCartResource
|
|
140
|
-
*/
|
|
141
|
-
customer: CustomerListResource | null;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {Array<LineItemListResource>}
|
|
145
|
-
* @memberof AdminCartResource
|
|
146
|
-
*/
|
|
147
|
-
lineItems: Array<LineItemListResource> | null;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {object}
|
|
151
|
-
* @memberof AdminCartResource
|
|
152
|
-
*/
|
|
153
|
-
coupons: object;
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @type {AddressResource}
|
|
157
|
-
* @memberof AdminCartResource
|
|
158
|
-
*/
|
|
159
|
-
shippingAddress: AddressResource | null;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {AddressResource}
|
|
163
|
-
* @memberof AdminCartResource
|
|
164
|
-
*/
|
|
165
|
-
billingAddress: AddressResource | null;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {number}
|
|
169
|
-
* @memberof AdminCartResource
|
|
170
|
-
*/
|
|
171
|
-
discountPreview: number;
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {number}
|
|
175
|
-
* @memberof AdminCartResource
|
|
176
|
-
*/
|
|
177
|
-
subtotal: number;
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @type {number}
|
|
181
|
-
* @memberof AdminCartResource
|
|
182
|
-
*/
|
|
183
|
-
shippingAmount: number;
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @type {number}
|
|
187
|
-
* @memberof AdminCartResource
|
|
188
|
-
*/
|
|
189
|
-
total: number;
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* @type {number}
|
|
193
|
-
* @memberof AdminCartResource
|
|
194
|
-
*/
|
|
195
|
-
discountAmount: number;
|
|
196
|
-
/**
|
|
197
|
-
*
|
|
198
|
-
* @type {number}
|
|
199
|
-
* @memberof AdminCartResource
|
|
200
|
-
*/
|
|
201
|
-
productDiscountAmount: number;
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @type {number}
|
|
205
|
-
* @memberof AdminCartResource
|
|
206
|
-
*/
|
|
207
|
-
shippingDiscountAmount: number;
|
|
208
|
-
/**
|
|
209
|
-
*
|
|
210
|
-
* @type {number}
|
|
211
|
-
* @memberof AdminCartResource
|
|
212
|
-
*/
|
|
213
|
-
cartDiscountAmount: number;
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @type {number}
|
|
217
|
-
* @memberof AdminCartResource
|
|
218
|
-
*/
|
|
219
|
-
finalTotalAmount: number;
|
|
220
|
-
/**
|
|
221
|
-
*
|
|
222
|
-
* @type {string}
|
|
223
|
-
* @memberof AdminCartResource
|
|
224
|
-
*/
|
|
225
|
-
status: string;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Check if a given object implements the AdminCartResource interface.
|
|
229
|
-
*/
|
|
230
|
-
export declare function instanceOfAdminCartResource(value: object): value is AdminCartResource;
|
|
231
|
-
export declare function AdminCartResourceFromJSON(json: any): AdminCartResource;
|
|
232
|
-
export declare function AdminCartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCartResource;
|
|
233
|
-
export declare function AdminCartResourceToJSON(json: any): AdminCartResource;
|
|
234
|
-
export declare function AdminCartResourceToJSONTyped(value?: AdminCartResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,169 +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.instanceOfAdminCartResource = instanceOfAdminCartResource;
|
|
17
|
-
exports.AdminCartResourceFromJSON = AdminCartResourceFromJSON;
|
|
18
|
-
exports.AdminCartResourceFromJSONTyped = AdminCartResourceFromJSONTyped;
|
|
19
|
-
exports.AdminCartResourceToJSON = AdminCartResourceToJSON;
|
|
20
|
-
exports.AdminCartResourceToJSONTyped = AdminCartResourceToJSONTyped;
|
|
21
|
-
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
-
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
-
var CustomerListResource_1 = require("./CustomerListResource");
|
|
24
|
-
var AddressResource_1 = require("./AddressResource");
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the AdminCartResource interface.
|
|
27
|
-
*/
|
|
28
|
-
function instanceOfAdminCartResource(value) {
|
|
29
|
-
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('source' in value) || value['source'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('shippingType' in value) || value['shippingType'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('admin' in value) || value['admin'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('site' in value) || value['site'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('customer' in value) || value['customer'] === undefined)
|
|
50
|
-
return false;
|
|
51
|
-
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
52
|
-
return false;
|
|
53
|
-
if (!('coupons' in value) || value['coupons'] === undefined)
|
|
54
|
-
return false;
|
|
55
|
-
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
|
|
56
|
-
return false;
|
|
57
|
-
if (!('billingAddress' in value) || value['billingAddress'] === undefined)
|
|
58
|
-
return false;
|
|
59
|
-
if (!('discountPreview' in value) || value['discountPreview'] === undefined)
|
|
60
|
-
return false;
|
|
61
|
-
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
62
|
-
return false;
|
|
63
|
-
if (!('shippingAmount' in value) || value['shippingAmount'] === undefined)
|
|
64
|
-
return false;
|
|
65
|
-
if (!('total' in value) || value['total'] === undefined)
|
|
66
|
-
return false;
|
|
67
|
-
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
68
|
-
return false;
|
|
69
|
-
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined)
|
|
70
|
-
return false;
|
|
71
|
-
if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined)
|
|
72
|
-
return false;
|
|
73
|
-
if (!('cartDiscountAmount' in value) || value['cartDiscountAmount'] === undefined)
|
|
74
|
-
return false;
|
|
75
|
-
if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined)
|
|
76
|
-
return false;
|
|
77
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
78
|
-
return false;
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
function AdminCartResourceFromJSON(json) {
|
|
82
|
-
return AdminCartResourceFromJSONTyped(json, false);
|
|
83
|
-
}
|
|
84
|
-
function AdminCartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
85
|
-
if (json == null) {
|
|
86
|
-
return json;
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
90
|
-
'siteId': json['site_id'],
|
|
91
|
-
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
92
|
-
'source': json['source'],
|
|
93
|
-
'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
|
|
94
|
-
'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
|
|
95
|
-
'expiryDate': (new Date(json['expiry_date'])),
|
|
96
|
-
'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
|
|
97
|
-
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
98
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
99
|
-
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
100
|
-
'shippingType': json['shipping_type'],
|
|
101
|
-
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
102
|
-
'overrideShipping': json['override_shipping'],
|
|
103
|
-
'insuranceAmount': json['insurance_amount'],
|
|
104
|
-
'overrideInsurance': json['override_insurance'],
|
|
105
|
-
'useAsBillingAddress': json['use_as_billing_address'],
|
|
106
|
-
'admin': json['admin'],
|
|
107
|
-
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
108
|
-
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
109
|
-
'lineItems': (json['line_items'] == null ? null : json['line_items'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
110
|
-
'coupons': json['coupons'],
|
|
111
|
-
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shipping_address']),
|
|
112
|
-
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billing_address']),
|
|
113
|
-
'discountPreview': json['discount_preview'],
|
|
114
|
-
'subtotal': json['subtotal'],
|
|
115
|
-
'shippingAmount': json['shipping_amount'],
|
|
116
|
-
'total': json['total'],
|
|
117
|
-
'discountAmount': json['discount_amount'],
|
|
118
|
-
'productDiscountAmount': json['product_discount_amount'],
|
|
119
|
-
'shippingDiscountAmount': json['shipping_discount_amount'],
|
|
120
|
-
'cartDiscountAmount': json['cart_discount_amount'],
|
|
121
|
-
'finalTotalAmount': json['final_total_amount'],
|
|
122
|
-
'status': json['status'],
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function AdminCartResourceToJSON(json) {
|
|
126
|
-
return AdminCartResourceToJSONTyped(json, false);
|
|
127
|
-
}
|
|
128
|
-
function AdminCartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
129
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
130
|
-
if (value == null) {
|
|
131
|
-
return value;
|
|
132
|
-
}
|
|
133
|
-
return {
|
|
134
|
-
'id': value['id'],
|
|
135
|
-
'site_id': value['siteId'],
|
|
136
|
-
'customer_id': value['customerId'],
|
|
137
|
-
'source': value['source'],
|
|
138
|
-
'session_token': value['sessionToken'],
|
|
139
|
-
'payment_token': value['paymentToken'],
|
|
140
|
-
'expiry_date': value['expiryDate'].toISOString(),
|
|
141
|
-
'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
142
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
143
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
144
|
-
'admin_id': value['adminId'],
|
|
145
|
-
'shipping_type': value['shippingType'],
|
|
146
|
-
'shipping_subtotal': value['shippingSubtotal'],
|
|
147
|
-
'override_shipping': value['overrideShipping'],
|
|
148
|
-
'insurance_amount': value['insuranceAmount'],
|
|
149
|
-
'override_insurance': value['overrideInsurance'],
|
|
150
|
-
'use_as_billing_address': value['useAsBillingAddress'],
|
|
151
|
-
'admin': value['admin'],
|
|
152
|
-
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
153
|
-
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
154
|
-
'line_items': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
155
|
-
'coupons': value['coupons'],
|
|
156
|
-
'shipping_address': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
157
|
-
'billing_address': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
158
|
-
'discount_preview': value['discountPreview'],
|
|
159
|
-
'subtotal': value['subtotal'],
|
|
160
|
-
'shipping_amount': value['shippingAmount'],
|
|
161
|
-
'total': value['total'],
|
|
162
|
-
'discount_amount': value['discountAmount'],
|
|
163
|
-
'product_discount_amount': value['productDiscountAmount'],
|
|
164
|
-
'shipping_discount_amount': value['shippingDiscountAmount'],
|
|
165
|
-
'cart_discount_amount': value['cartDiscountAmount'],
|
|
166
|
-
'final_total_amount': value['finalTotalAmount'],
|
|
167
|
-
'status': value['status'],
|
|
168
|
-
};
|
|
169
|
-
}
|
|
@@ -1,33 +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
|
-
import type { AdminCartResource } from './AdminCartResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AdminCartResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface AdminCartResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<AdminCartResource>}
|
|
22
|
-
* @memberof AdminCartResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<AdminCartResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the AdminCartResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfAdminCartResourceArrayResponse(value: object): value is AdminCartResourceArrayResponse;
|
|
30
|
-
export declare function AdminCartResourceArrayResponseFromJSON(json: any): AdminCartResourceArrayResponse;
|
|
31
|
-
export declare function AdminCartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCartResourceArrayResponse;
|
|
32
|
-
export declare function AdminCartResourceArrayResponseToJSON(json: any): AdminCartResourceArrayResponse;
|
|
33
|
-
export declare function AdminCartResourceArrayResponseToJSONTyped(value?: AdminCartResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfAdminCartResourceArrayResponse = instanceOfAdminCartResourceArrayResponse;
|
|
17
|
-
exports.AdminCartResourceArrayResponseFromJSON = AdminCartResourceArrayResponseFromJSON;
|
|
18
|
-
exports.AdminCartResourceArrayResponseFromJSONTyped = AdminCartResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.AdminCartResourceArrayResponseToJSON = AdminCartResourceArrayResponseToJSON;
|
|
20
|
-
exports.AdminCartResourceArrayResponseToJSONTyped = AdminCartResourceArrayResponseToJSONTyped;
|
|
21
|
-
var AdminCartResource_1 = require("./AdminCartResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the AdminCartResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfAdminCartResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function AdminCartResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return AdminCartResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function AdminCartResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(AdminCartResource_1.AdminCartResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function AdminCartResourceArrayResponseToJSON(json) {
|
|
40
|
-
return AdminCartResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function AdminCartResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(AdminCartResource_1.AdminCartResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -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 AttachCouponCartRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface AttachCouponCartRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<number>}
|
|
21
|
-
* @memberof AttachCouponCartRequest
|
|
22
|
-
*/
|
|
23
|
-
couponIds: Array<number>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the AttachCouponCartRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfAttachCouponCartRequest(value: object): value is AttachCouponCartRequest;
|
|
29
|
-
export declare function AttachCouponCartRequestFromJSON(json: any): AttachCouponCartRequest;
|
|
30
|
-
export declare function AttachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponCartRequest;
|
|
31
|
-
export declare function AttachCouponCartRequestToJSON(json: any): AttachCouponCartRequest;
|
|
32
|
-
export declare function AttachCouponCartRequestToJSONTyped(value?: AttachCouponCartRequest | 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.instanceOfAttachCouponCartRequest = instanceOfAttachCouponCartRequest;
|
|
17
|
-
exports.AttachCouponCartRequestFromJSON = AttachCouponCartRequestFromJSON;
|
|
18
|
-
exports.AttachCouponCartRequestFromJSONTyped = AttachCouponCartRequestFromJSONTyped;
|
|
19
|
-
exports.AttachCouponCartRequestToJSON = AttachCouponCartRequestToJSON;
|
|
20
|
-
exports.AttachCouponCartRequestToJSONTyped = AttachCouponCartRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the AttachCouponCartRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAttachCouponCartRequest(value) {
|
|
25
|
-
if (!('couponIds' in value) || value['couponIds'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function AttachCouponCartRequestFromJSON(json) {
|
|
30
|
-
return AttachCouponCartRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function AttachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponIds': json['coupon_ids'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function AttachCouponCartRequestToJSON(json) {
|
|
41
|
-
return AttachCouponCartRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function AttachCouponCartRequestToJSONTyped(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,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 AttachItemCartRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface AttachItemCartRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof AttachItemCartRequest
|
|
22
|
-
*/
|
|
23
|
-
productChildId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof AttachItemCartRequest
|
|
28
|
-
*/
|
|
29
|
-
quantity: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof AttachItemCartRequest
|
|
34
|
-
*/
|
|
35
|
-
productPrice?: number | null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the AttachItemCartRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfAttachItemCartRequest(value: object): value is AttachItemCartRequest;
|
|
41
|
-
export declare function AttachItemCartRequestFromJSON(json: any): AttachItemCartRequest;
|
|
42
|
-
export declare function AttachItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachItemCartRequest;
|
|
43
|
-
export declare function AttachItemCartRequestToJSON(json: any): AttachItemCartRequest;
|
|
44
|
-
export declare function AttachItemCartRequestToJSONTyped(value?: AttachItemCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +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.instanceOfAttachItemCartRequest = instanceOfAttachItemCartRequest;
|
|
17
|
-
exports.AttachItemCartRequestFromJSON = AttachItemCartRequestFromJSON;
|
|
18
|
-
exports.AttachItemCartRequestFromJSONTyped = AttachItemCartRequestFromJSONTyped;
|
|
19
|
-
exports.AttachItemCartRequestToJSON = AttachItemCartRequestToJSON;
|
|
20
|
-
exports.AttachItemCartRequestToJSONTyped = AttachItemCartRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the AttachItemCartRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAttachItemCartRequest(value) {
|
|
25
|
-
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function AttachItemCartRequestFromJSON(json) {
|
|
32
|
-
return AttachItemCartRequestFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function AttachItemCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'productChildId': json['product_child_id'],
|
|
40
|
-
'quantity': json['quantity'],
|
|
41
|
-
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function AttachItemCartRequestToJSON(json) {
|
|
45
|
-
return AttachItemCartRequestToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function AttachItemCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'product_child_id': value['productChildId'],
|
|
54
|
-
'quantity': value['quantity'],
|
|
55
|
-
'product_price': value['productPrice'],
|
|
56
|
-
};
|
|
57
|
-
}
|