@digital8/lighting-illusions-ts-sdk 0.0.2316 → 0.0.2318
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 +4 -4
- package/README.md +4 -4
- package/dist/models/AdminOrderResource.d.ts +3 -2
- package/dist/models/AdminOrderResource.js +3 -2
- package/dist/models/CartCouponResource.d.ts +50 -0
- package/dist/models/{AppliedCouponResource.js → CartCouponResource.js} +13 -13
- package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +2 -6
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{AppliedCouponResource.md → CartCouponResource.md} +4 -4
- package/docs/{AppliedCouponResourceArrayResponse.md → CartCouponResourceArrayResponse.md} +5 -5
- package/docs/FrontendOrderResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AdminOrderResource.ts +11 -4
- package/src/models/{AppliedCouponResource.ts → CartCouponResource.ts} +14 -14
- package/src/models/CartCouponResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +4 -6
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +2 -2
- package/dist/models/AppliedCouponResource.d.ts +0 -50
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/AppliedCouponResourceArrayResponse.js +0 -50
- package/src/models/AppliedCouponResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -16,8 +16,6 @@ docs/AdminOrderResource.md
|
|
|
16
16
|
docs/AdminOrderResourceArrayResponse.md
|
|
17
17
|
docs/AdminUserLiteResource.md
|
|
18
18
|
docs/AdminUserLiteResourceArrayResponse.md
|
|
19
|
-
docs/AppliedCouponResource.md
|
|
20
|
-
docs/AppliedCouponResourceArrayResponse.md
|
|
21
19
|
docs/AssetApi.md
|
|
22
20
|
docs/AssetFileForUploadResource.md
|
|
23
21
|
docs/AssetFileForUploadResourceArrayResponse.md
|
|
@@ -71,6 +69,8 @@ docs/BlogResource.md
|
|
|
71
69
|
docs/BlogResourceArrayResponse.md
|
|
72
70
|
docs/CartCouponLiteResource.md
|
|
73
71
|
docs/CartCouponLiteResourceArrayResponse.md
|
|
72
|
+
docs/CartCouponResource.md
|
|
73
|
+
docs/CartCouponResourceArrayResponse.md
|
|
74
74
|
docs/CartListResource.md
|
|
75
75
|
docs/CartListResourceArrayResponse.md
|
|
76
76
|
docs/CartOrderSource.md
|
|
@@ -715,8 +715,6 @@ src/models/AdminOrderResource.ts
|
|
|
715
715
|
src/models/AdminOrderResourceArrayResponse.ts
|
|
716
716
|
src/models/AdminUserLiteResource.ts
|
|
717
717
|
src/models/AdminUserLiteResourceArrayResponse.ts
|
|
718
|
-
src/models/AppliedCouponResource.ts
|
|
719
|
-
src/models/AppliedCouponResourceArrayResponse.ts
|
|
720
718
|
src/models/AssetFileForUploadResource.ts
|
|
721
719
|
src/models/AssetFileForUploadResourceArrayResponse.ts
|
|
722
720
|
src/models/AssetFrontendResource.ts
|
|
@@ -767,6 +765,8 @@ src/models/BlogResource.ts
|
|
|
767
765
|
src/models/BlogResourceArrayResponse.ts
|
|
768
766
|
src/models/CartCouponLiteResource.ts
|
|
769
767
|
src/models/CartCouponLiteResourceArrayResponse.ts
|
|
768
|
+
src/models/CartCouponResource.ts
|
|
769
|
+
src/models/CartCouponResourceArrayResponse.ts
|
|
770
770
|
src/models/CartListResource.ts
|
|
771
771
|
src/models/CartListResourceArrayResponse.ts
|
|
772
772
|
src/models/CartOrderSource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2318
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -307,8 +307,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
307
307
|
- [AdminOrderResourceArrayResponse](docs/AdminOrderResourceArrayResponse.md)
|
|
308
308
|
- [AdminUserLiteResource](docs/AdminUserLiteResource.md)
|
|
309
309
|
- [AdminUserLiteResourceArrayResponse](docs/AdminUserLiteResourceArrayResponse.md)
|
|
310
|
-
- [AppliedCouponResource](docs/AppliedCouponResource.md)
|
|
311
|
-
- [AppliedCouponResourceArrayResponse](docs/AppliedCouponResourceArrayResponse.md)
|
|
312
310
|
- [AssetFileForUploadResource](docs/AssetFileForUploadResource.md)
|
|
313
311
|
- [AssetFileForUploadResourceArrayResponse](docs/AssetFileForUploadResourceArrayResponse.md)
|
|
314
312
|
- [AssetFrontendResource](docs/AssetFrontendResource.md)
|
|
@@ -359,6 +357,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
359
357
|
- [BlogResourceArrayResponse](docs/BlogResourceArrayResponse.md)
|
|
360
358
|
- [CartCouponLiteResource](docs/CartCouponLiteResource.md)
|
|
361
359
|
- [CartCouponLiteResourceArrayResponse](docs/CartCouponLiteResourceArrayResponse.md)
|
|
360
|
+
- [CartCouponResource](docs/CartCouponResource.md)
|
|
361
|
+
- [CartCouponResourceArrayResponse](docs/CartCouponResourceArrayResponse.md)
|
|
362
362
|
- [CartListResource](docs/CartListResource.md)
|
|
363
363
|
- [CartListResourceArrayResponse](docs/CartListResourceArrayResponse.md)
|
|
364
364
|
- [CartOrderSource](docs/CartOrderSource.md)
|
|
@@ -942,7 +942,7 @@ and is automatically generated by the
|
|
|
942
942
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
943
943
|
|
|
944
944
|
- API version: `1.0.0`
|
|
945
|
-
- Package version: `0.0.
|
|
945
|
+
- Package version: `0.0.2318`
|
|
946
946
|
- Generator version: `7.22.0`
|
|
947
947
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
948
948
|
|
|
@@ -15,6 +15,7 @@ import type { SiteLiteResource } from './SiteLiteResource';
|
|
|
15
15
|
import type { TransactionLiteResource } from './TransactionLiteResource';
|
|
16
16
|
import type { AdminOrderLineItemResource } from './AdminOrderLineItemResource';
|
|
17
17
|
import type { OrderStatusLiteResource } from './OrderStatusLiteResource';
|
|
18
|
+
import type { CartCouponResource } from './CartCouponResource';
|
|
18
19
|
import type { CustomerResource } from './CustomerResource';
|
|
19
20
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
20
21
|
import type { OmnisendSyncLiteResource } from './OmnisendSyncLiteResource';
|
|
@@ -255,10 +256,10 @@ export interface AdminOrderResource {
|
|
|
255
256
|
lineItems: Array<AdminOrderLineItemResource> | null;
|
|
256
257
|
/**
|
|
257
258
|
*
|
|
258
|
-
* @type {
|
|
259
|
+
* @type {Array<CartCouponResource>}
|
|
259
260
|
* @memberof AdminOrderResource
|
|
260
261
|
*/
|
|
261
|
-
coupons:
|
|
262
|
+
coupons: Array<CartCouponResource> | null;
|
|
262
263
|
/**
|
|
263
264
|
*
|
|
264
265
|
* @type {Array<DiscountResource>}
|
|
@@ -24,6 +24,7 @@ var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
|
24
24
|
var TransactionLiteResource_1 = require("./TransactionLiteResource");
|
|
25
25
|
var AdminOrderLineItemResource_1 = require("./AdminOrderLineItemResource");
|
|
26
26
|
var OrderStatusLiteResource_1 = require("./OrderStatusLiteResource");
|
|
27
|
+
var CartCouponResource_1 = require("./CartCouponResource");
|
|
27
28
|
var CustomerResource_1 = require("./CustomerResource");
|
|
28
29
|
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
29
30
|
var OmnisendSyncLiteResource_1 = require("./OmnisendSyncLiteResource");
|
|
@@ -158,7 +159,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
158
159
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
159
160
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceFromJSON)(json['status']),
|
|
160
161
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(AdminOrderLineItemResource_1.AdminOrderLineItemResourceFromJSON)),
|
|
161
|
-
'coupons': json['coupons'],
|
|
162
|
+
'coupons': (json['coupons'] == null ? null : json['coupons'].map(CartCouponResource_1.CartCouponResourceFromJSON)),
|
|
162
163
|
'discounts': (json['discounts'] == null ? null : json['discounts'].map(DiscountResource_1.DiscountResourceFromJSON)),
|
|
163
164
|
'transactions': (json['transactions'] == null ? null : json['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
|
|
164
165
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
@@ -213,7 +214,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
213
214
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
214
215
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceToJSON)(value['status']),
|
|
215
216
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(AdminOrderLineItemResource_1.AdminOrderLineItemResourceToJSON)),
|
|
216
|
-
'coupons': value['coupons'],
|
|
217
|
+
'coupons': (value['coupons'] == null ? null : value['coupons'].map(CartCouponResource_1.CartCouponResourceToJSON)),
|
|
217
218
|
'discounts': (value['discounts'] == null ? null : value['discounts'].map(DiscountResource_1.DiscountResourceToJSON)),
|
|
218
219
|
'transactions': (value['transactions'] == null ? null : value['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
|
|
219
220
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
@@ -0,0 +1,50 @@
|
|
|
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 CartCouponResource
|
|
16
|
+
*/
|
|
17
|
+
export interface CartCouponResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CartCouponResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CartCouponResource
|
|
28
|
+
*/
|
|
29
|
+
code: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CartCouponResource
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CartCouponResource
|
|
40
|
+
*/
|
|
41
|
+
discountTotal: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CartCouponResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCartCouponResource(value: object): value is CartCouponResource;
|
|
47
|
+
export declare function CartCouponResourceFromJSON(json: any): CartCouponResource;
|
|
48
|
+
export declare function CartCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponResource;
|
|
49
|
+
export declare function CartCouponResourceToJSON(json: any): CartCouponResource;
|
|
50
|
+
export declare function CartCouponResourceToJSONTyped(value?: CartCouponResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,15 +13,15 @@
|
|
|
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.instanceOfCartCouponResource = instanceOfCartCouponResource;
|
|
17
|
+
exports.CartCouponResourceFromJSON = CartCouponResourceFromJSON;
|
|
18
|
+
exports.CartCouponResourceFromJSONTyped = CartCouponResourceFromJSONTyped;
|
|
19
|
+
exports.CartCouponResourceToJSON = CartCouponResourceToJSON;
|
|
20
|
+
exports.CartCouponResourceToJSONTyped = CartCouponResourceToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the CartCouponResource interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfCartCouponResource(value) {
|
|
25
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('code' in value) || value['code'] === undefined)
|
|
@@ -32,10 +32,10 @@ function instanceOfAppliedCouponResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function CartCouponResourceFromJSON(json) {
|
|
36
|
+
return CartCouponResourceFromJSONTyped(json, false);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function CartCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
if (json == null) {
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
@@ -46,10 +46,10 @@ function AppliedCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'discountTotal': json['discountTotal'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
49
|
+
function CartCouponResourceToJSON(json) {
|
|
50
|
+
return CartCouponResourceToJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function CartCouponResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
53
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
54
|
if (value == null) {
|
|
55
55
|
return value;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { CartCouponResource } from './CartCouponResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CartCouponResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CartCouponResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CartCouponResource>}
|
|
22
|
+
* @memberof CartCouponResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CartCouponResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CartCouponResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCartCouponResourceArrayResponse(value: object): value is CartCouponResourceArrayResponse;
|
|
30
|
+
export declare function CartCouponResourceArrayResponseFromJSON(json: any): CartCouponResourceArrayResponse;
|
|
31
|
+
export declare function CartCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponResourceArrayResponse;
|
|
32
|
+
export declare function CartCouponResourceArrayResponseToJSON(json: any): CartCouponResourceArrayResponse;
|
|
33
|
+
export declare function CartCouponResourceArrayResponseToJSONTyped(value?: CartCouponResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfCartCouponResourceArrayResponse = instanceOfCartCouponResourceArrayResponse;
|
|
17
|
+
exports.CartCouponResourceArrayResponseFromJSON = CartCouponResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CartCouponResourceArrayResponseFromJSONTyped = CartCouponResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CartCouponResourceArrayResponseToJSON = CartCouponResourceArrayResponseToJSON;
|
|
20
|
+
exports.CartCouponResourceArrayResponseToJSONTyped = CartCouponResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CartCouponResource_1 = require("./CartCouponResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CartCouponResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCartCouponResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CartCouponResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CartCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CartCouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CartCouponResource_1.CartCouponResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CartCouponResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CartCouponResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CartCouponResourceArrayResponseToJSONTyped(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(CartCouponResource_1.CartCouponResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { FrontendLineItemResource } from './FrontendLineItemResource';
|
|
13
|
+
import type { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
13
14
|
import type { CustomerListResource } from './CustomerListResource';
|
|
14
|
-
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
15
15
|
import type { AddressResource } from './AddressResource';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
@@ -99,10 +99,10 @@ export interface FrontendOrderResource {
|
|
|
99
99
|
lineItems: Array<FrontendLineItemResource> | null;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
|
-
* @type {Array<
|
|
102
|
+
* @type {Array<CartCouponLiteResource>}
|
|
103
103
|
* @memberof FrontendOrderResource
|
|
104
104
|
*/
|
|
105
|
-
coupons: Array<
|
|
105
|
+
coupons: Array<CartCouponLiteResource> | null;
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* @type {number}
|
|
@@ -19,8 +19,8 @@ exports.FrontendOrderResourceFromJSONTyped = FrontendOrderResourceFromJSONTyped;
|
|
|
19
19
|
exports.FrontendOrderResourceToJSON = FrontendOrderResourceToJSON;
|
|
20
20
|
exports.FrontendOrderResourceToJSONTyped = FrontendOrderResourceToJSONTyped;
|
|
21
21
|
var FrontendLineItemResource_1 = require("./FrontendLineItemResource");
|
|
22
|
+
var CartCouponLiteResource_1 = require("./CartCouponLiteResource");
|
|
22
23
|
var CustomerListResource_1 = require("./CustomerListResource");
|
|
23
|
-
var FrontendCartResourceCouponsInner_1 = require("./FrontendCartResourceCouponsInner");
|
|
24
24
|
var AddressResource_1 = require("./AddressResource");
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the FrontendOrderResource interface.
|
|
@@ -91,7 +91,7 @@ function FrontendOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
91
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
92
92
|
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
93
93
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
94
|
-
'coupons': (json['coupons'].map(
|
|
94
|
+
'coupons': (json['coupons'] == null ? null : json['coupons'].map(CartCouponLiteResource_1.CartCouponLiteResourceFromJSON)),
|
|
95
95
|
'subtotal': json['subtotal'],
|
|
96
96
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
97
97
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
@@ -126,7 +126,7 @@ function FrontendOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
126
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
127
127
|
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
128
128
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
129
|
-
'coupons': (value['coupons'].map(
|
|
129
|
+
'coupons': (value['coupons'] == null ? null : value['coupons'].map(CartCouponLiteResource_1.CartCouponLiteResourceToJSON)),
|
|
130
130
|
'subtotal': value['subtotal'],
|
|
131
131
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
132
132
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
@@ -39,13 +39,13 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
@@ -29,10 +29,6 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
|
-
return false;
|
|
36
32
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
37
33
|
return false;
|
|
38
34
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -52,8 +48,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
48
|
'id': json['id'],
|
|
53
49
|
'orderId': json['orderId'],
|
|
54
50
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
55
|
-
'trackingNumber': json['trackingNumber'],
|
|
56
|
-
'trackingUrl': json['trackingUrl'],
|
|
51
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
52
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
57
53
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
58
54
|
'docnum': json['docnum'],
|
|
59
55
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -34,6 +34,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
58
60
|
'latitude': json['latitude'],
|
|
59
61
|
'longitude': json['longitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
61
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
62
64
|
'specialDates': json['specialDates'],
|
|
63
65
|
'suppliers': json['suppliers'],
|
|
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -55,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
'phone': json['phone'],
|
|
56
58
|
'longitude': json['longitude'],
|
|
57
59
|
'latitude': json['latitude'],
|
|
58
|
-
'tagLine': json['tagLine']
|
|
60
|
+
'tagLine': json['tagLine'],
|
|
59
61
|
'email': json['email'],
|
|
60
62
|
'website': json['website'] == null ? undefined : json['website'],
|
|
61
63
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ export * from './AdminOrderResource';
|
|
|
11
11
|
export * from './AdminOrderResourceArrayResponse';
|
|
12
12
|
export * from './AdminUserLiteResource';
|
|
13
13
|
export * from './AdminUserLiteResourceArrayResponse';
|
|
14
|
-
export * from './AppliedCouponResource';
|
|
15
|
-
export * from './AppliedCouponResourceArrayResponse';
|
|
16
14
|
export * from './AssetFileForUploadResource';
|
|
17
15
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
18
16
|
export * from './AssetFrontendResource';
|
|
@@ -63,6 +61,8 @@ export * from './BlogResource';
|
|
|
63
61
|
export * from './BlogResourceArrayResponse';
|
|
64
62
|
export * from './CartCouponLiteResource';
|
|
65
63
|
export * from './CartCouponLiteResourceArrayResponse';
|
|
64
|
+
export * from './CartCouponResource';
|
|
65
|
+
export * from './CartCouponResourceArrayResponse';
|
|
66
66
|
export * from './CartListResource';
|
|
67
67
|
export * from './CartListResourceArrayResponse';
|
|
68
68
|
export * from './CartOrderSource';
|
package/dist/models/index.js
CHANGED
|
@@ -29,8 +29,6 @@ __exportStar(require("./AdminOrderResource"), exports);
|
|
|
29
29
|
__exportStar(require("./AdminOrderResourceArrayResponse"), exports);
|
|
30
30
|
__exportStar(require("./AdminUserLiteResource"), exports);
|
|
31
31
|
__exportStar(require("./AdminUserLiteResourceArrayResponse"), exports);
|
|
32
|
-
__exportStar(require("./AppliedCouponResource"), exports);
|
|
33
|
-
__exportStar(require("./AppliedCouponResourceArrayResponse"), exports);
|
|
34
32
|
__exportStar(require("./AssetFileForUploadResource"), exports);
|
|
35
33
|
__exportStar(require("./AssetFileForUploadResourceArrayResponse"), exports);
|
|
36
34
|
__exportStar(require("./AssetFrontendResource"), exports);
|
|
@@ -81,6 +79,8 @@ __exportStar(require("./BlogResource"), exports);
|
|
|
81
79
|
__exportStar(require("./BlogResourceArrayResponse"), exports);
|
|
82
80
|
__exportStar(require("./CartCouponLiteResource"), exports);
|
|
83
81
|
__exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
|
|
82
|
+
__exportStar(require("./CartCouponResource"), exports);
|
|
83
|
+
__exportStar(require("./CartCouponResourceArrayResponse"), exports);
|
|
84
84
|
__exportStar(require("./CartListResource"), exports);
|
|
85
85
|
__exportStar(require("./CartListResourceArrayResponse"), exports);
|
|
86
86
|
__exportStar(require("./CartOrderSource"), exports);
|
|
@@ -44,7 +44,7 @@ Name | Type
|
|
|
44
44
|
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
45
45
|
`status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
|
|
46
46
|
`lineItems` | [Array<AdminOrderLineItemResource>](AdminOrderLineItemResource.md)
|
|
47
|
-
`coupons` |
|
|
47
|
+
`coupons` | [Array<CartCouponResource>](CartCouponResource.md)
|
|
48
48
|
`discounts` | [Array<DiscountResource>](DiscountResource.md)
|
|
49
49
|
`transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
50
50
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# CartCouponResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -14,7 +14,7 @@ Name | Type
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import type {
|
|
17
|
+
import type { CartCouponResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
18
|
|
|
19
19
|
// TODO: Update the object below with actual values
|
|
20
20
|
const example = {
|
|
@@ -22,7 +22,7 @@ const example = {
|
|
|
22
22
|
"code": null,
|
|
23
23
|
"name": null,
|
|
24
24
|
"discountTotal": null,
|
|
25
|
-
} satisfies
|
|
25
|
+
} satisfies CartCouponResource
|
|
26
26
|
|
|
27
27
|
console.log(example)
|
|
28
28
|
|
|
@@ -31,7 +31,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
31
31
|
console.log(exampleJSON)
|
|
32
32
|
|
|
33
33
|
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as CartCouponResource
|
|
35
35
|
console.log(exampleParsed)
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# CartCouponResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<CartCouponResource>](CartCouponResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { CartCouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies CartCouponResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CartCouponResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -19,7 +19,7 @@ Name | Type
|
|
|
19
19
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
20
20
|
`billingAddress` | [AddressResource](AddressResource.md)
|
|
21
21
|
`lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
22
|
-
`coupons` | [Array<
|
|
22
|
+
`coupons` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
|
|
23
23
|
`subtotal` | number
|
|
24
24
|
`promotionalDiscount` | number
|
|
25
25
|
`couponSubtotalDiscount` | number
|
package/package.json
CHANGED
|
@@ -55,6 +55,13 @@ import {
|
|
|
55
55
|
OrderStatusLiteResourceToJSON,
|
|
56
56
|
OrderStatusLiteResourceToJSONTyped,
|
|
57
57
|
} from './OrderStatusLiteResource';
|
|
58
|
+
import type { CartCouponResource } from './CartCouponResource';
|
|
59
|
+
import {
|
|
60
|
+
CartCouponResourceFromJSON,
|
|
61
|
+
CartCouponResourceFromJSONTyped,
|
|
62
|
+
CartCouponResourceToJSON,
|
|
63
|
+
CartCouponResourceToJSONTyped,
|
|
64
|
+
} from './CartCouponResource';
|
|
58
65
|
import type { CustomerResource } from './CustomerResource';
|
|
59
66
|
import {
|
|
60
67
|
CustomerResourceFromJSON,
|
|
@@ -320,10 +327,10 @@ export interface AdminOrderResource {
|
|
|
320
327
|
lineItems: Array<AdminOrderLineItemResource> | null;
|
|
321
328
|
/**
|
|
322
329
|
*
|
|
323
|
-
* @type {
|
|
330
|
+
* @type {Array<CartCouponResource>}
|
|
324
331
|
* @memberof AdminOrderResource
|
|
325
332
|
*/
|
|
326
|
-
coupons:
|
|
333
|
+
coupons: Array<CartCouponResource> | null;
|
|
327
334
|
/**
|
|
328
335
|
*
|
|
329
336
|
* @type {Array<DiscountResource>}
|
|
@@ -450,7 +457,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
450
457
|
'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
|
|
451
458
|
'status': OrderStatusLiteResourceFromJSON(json['status']),
|
|
452
459
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(AdminOrderLineItemResourceFromJSON)),
|
|
453
|
-
'coupons': json['coupons'],
|
|
460
|
+
'coupons': (json['coupons'] == null ? null : (json['coupons'] as Array<any>).map(CartCouponResourceFromJSON)),
|
|
454
461
|
'discounts': (json['discounts'] == null ? null : (json['discounts'] as Array<any>).map(DiscountResourceFromJSON)),
|
|
455
462
|
'transactions': (json['transactions'] == null ? null : (json['transactions'] as Array<any>).map(TransactionLiteResourceFromJSON)),
|
|
456
463
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
@@ -508,7 +515,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
508
515
|
'admin': LiAdminUserLiteResourceToJSON(value['admin']),
|
|
509
516
|
'status': OrderStatusLiteResourceToJSON(value['status']),
|
|
510
517
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(AdminOrderLineItemResourceToJSON)),
|
|
511
|
-
'coupons': value['coupons'],
|
|
518
|
+
'coupons': (value['coupons'] == null ? null : (value['coupons'] as Array<any>).map(CartCouponResourceToJSON)),
|
|
512
519
|
'discounts': (value['discounts'] == null ? null : (value['discounts'] as Array<any>).map(DiscountResourceToJSON)),
|
|
513
520
|
'transactions': (value['transactions'] == null ? null : (value['transactions'] as Array<any>).map(TransactionLiteResourceToJSON)),
|
|
514
521
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
@@ -16,39 +16,39 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface CartCouponResource
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface CartCouponResource {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof CartCouponResource
|
|
26
26
|
*/
|
|
27
27
|
id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof CartCouponResource
|
|
32
32
|
*/
|
|
33
33
|
code: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof CartCouponResource
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof CartCouponResource
|
|
44
44
|
*/
|
|
45
45
|
discountTotal: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Check if a given object implements the
|
|
49
|
+
* Check if a given object implements the CartCouponResource interface.
|
|
50
50
|
*/
|
|
51
|
-
export function
|
|
51
|
+
export function instanceOfCartCouponResource(value: object): value is CartCouponResource {
|
|
52
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
53
|
if (!('code' in value) || value['code'] === undefined) return false;
|
|
54
54
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
@@ -56,11 +56,11 @@ export function instanceOfAppliedCouponResource(value: object): value is Applied
|
|
|
56
56
|
return true;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export function
|
|
60
|
-
return
|
|
59
|
+
export function CartCouponResourceFromJSON(json: any): CartCouponResource {
|
|
60
|
+
return CartCouponResourceFromJSONTyped(json, false);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export function
|
|
63
|
+
export function CartCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponResource {
|
|
64
64
|
if (json == null) {
|
|
65
65
|
return json;
|
|
66
66
|
}
|
|
@@ -73,11 +73,11 @@ export function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export function
|
|
77
|
-
return
|
|
76
|
+
export function CartCouponResourceToJSON(json: any): CartCouponResource {
|
|
77
|
+
return CartCouponResourceToJSONTyped(json, false);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export function
|
|
80
|
+
export function CartCouponResourceToJSONTyped(value?: CartCouponResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
81
|
if (value == null) {
|
|
82
82
|
return value;
|
|
83
83
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CartCouponResource } from './CartCouponResource';
|
|
17
|
+
import {
|
|
18
|
+
CartCouponResourceFromJSON,
|
|
19
|
+
CartCouponResourceFromJSONTyped,
|
|
20
|
+
CartCouponResourceToJSON,
|
|
21
|
+
CartCouponResourceToJSONTyped,
|
|
22
|
+
} from './CartCouponResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CartCouponResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CartCouponResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CartCouponResource>}
|
|
33
|
+
* @memberof CartCouponResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CartCouponResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CartCouponResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCartCouponResourceArrayResponse(value: object): value is CartCouponResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CartCouponResourceArrayResponseFromJSON(json: any): CartCouponResourceArrayResponse {
|
|
46
|
+
return CartCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CartCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartCouponResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CartCouponResourceArrayResponseToJSON(json: any): CartCouponResourceArrayResponse {
|
|
60
|
+
return CartCouponResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CartCouponResourceArrayResponseToJSONTyped(value?: CartCouponResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(CartCouponResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
FrontendLineItemResourceToJSON,
|
|
21
21
|
FrontendLineItemResourceToJSONTyped,
|
|
22
22
|
} from './FrontendLineItemResource';
|
|
23
|
+
import type { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
CartCouponLiteResourceFromJSON,
|
|
26
|
+
CartCouponLiteResourceFromJSONTyped,
|
|
27
|
+
CartCouponLiteResourceToJSON,
|
|
28
|
+
CartCouponLiteResourceToJSONTyped,
|
|
29
|
+
} from './CartCouponLiteResource';
|
|
23
30
|
import type { CustomerListResource } from './CustomerListResource';
|
|
24
31
|
import {
|
|
25
32
|
CustomerListResourceFromJSON,
|
|
@@ -27,13 +34,6 @@ import {
|
|
|
27
34
|
CustomerListResourceToJSON,
|
|
28
35
|
CustomerListResourceToJSONTyped,
|
|
29
36
|
} from './CustomerListResource';
|
|
30
|
-
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
31
|
-
import {
|
|
32
|
-
FrontendCartResourceCouponsInnerFromJSON,
|
|
33
|
-
FrontendCartResourceCouponsInnerFromJSONTyped,
|
|
34
|
-
FrontendCartResourceCouponsInnerToJSON,
|
|
35
|
-
FrontendCartResourceCouponsInnerToJSONTyped,
|
|
36
|
-
} from './FrontendCartResourceCouponsInner';
|
|
37
37
|
import type { AddressResource } from './AddressResource';
|
|
38
38
|
import {
|
|
39
39
|
AddressResourceFromJSON,
|
|
@@ -128,10 +128,10 @@ export interface FrontendOrderResource {
|
|
|
128
128
|
lineItems: Array<FrontendLineItemResource> | null;
|
|
129
129
|
/**
|
|
130
130
|
*
|
|
131
|
-
* @type {Array<
|
|
131
|
+
* @type {Array<CartCouponLiteResource>}
|
|
132
132
|
* @memberof FrontendOrderResource
|
|
133
133
|
*/
|
|
134
|
-
coupons: Array<
|
|
134
|
+
coupons: Array<CartCouponLiteResource> | null;
|
|
135
135
|
/**
|
|
136
136
|
*
|
|
137
137
|
* @type {number}
|
|
@@ -245,7 +245,7 @@ export function FrontendOrderResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
245
245
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
246
246
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
247
247
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
248
|
-
'coupons': ((json['coupons'] as Array<any>).map(
|
|
248
|
+
'coupons': (json['coupons'] == null ? null : (json['coupons'] as Array<any>).map(CartCouponLiteResourceFromJSON)),
|
|
249
249
|
'subtotal': json['subtotal'],
|
|
250
250
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
251
251
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
@@ -283,7 +283,7 @@ export function FrontendOrderResourceToJSONTyped(value?: FrontendOrderResource |
|
|
|
283
283
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
284
284
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
285
285
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
286
|
-
'coupons': ((value['coupons'] as Array<any>).map(
|
|
286
|
+
'coupons': (value['coupons'] == null ? null : (value['coupons'] as Array<any>).map(CartCouponLiteResourceToJSON)),
|
|
287
287
|
'subtotal': value['subtotal'],
|
|
288
288
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
289
289
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
@@ -50,13 +50,13 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -102,8 +102,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
|
-
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
107
105
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
106
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
109
107
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -123,8 +121,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
123
121
|
'id': json['id'],
|
|
124
122
|
'orderId': json['orderId'],
|
|
125
123
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
|
-
'trackingNumber': json['trackingNumber'],
|
|
127
|
-
'trackingUrl': json['trackingUrl'],
|
|
124
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
125
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
128
126
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
129
127
|
'docnum': json['docnum'],
|
|
130
128
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -109,6 +109,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
109
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
112
113
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
113
114
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
114
115
|
return true;
|
|
@@ -133,7 +134,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
133
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
134
135
|
'latitude': json['latitude'],
|
|
135
136
|
'longitude': json['longitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
137
138
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
138
139
|
'specialDates': json['specialDates'],
|
|
139
140
|
'suppliers': json['suppliers'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,6 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
115
116
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
@@ -132,7 +133,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
132
133
|
'phone': json['phone'],
|
|
133
134
|
'longitude': json['longitude'],
|
|
134
135
|
'latitude': json['latitude'],
|
|
135
|
-
'tagLine': json['tagLine']
|
|
136
|
+
'tagLine': json['tagLine'],
|
|
136
137
|
'email': json['email'],
|
|
137
138
|
'website': json['website'] == null ? undefined : json['website'],
|
|
138
139
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -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['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -13,8 +13,6 @@ export * from './AdminOrderResource';
|
|
|
13
13
|
export * from './AdminOrderResourceArrayResponse';
|
|
14
14
|
export * from './AdminUserLiteResource';
|
|
15
15
|
export * from './AdminUserLiteResourceArrayResponse';
|
|
16
|
-
export * from './AppliedCouponResource';
|
|
17
|
-
export * from './AppliedCouponResourceArrayResponse';
|
|
18
16
|
export * from './AssetFileForUploadResource';
|
|
19
17
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
20
18
|
export * from './AssetFrontendResource';
|
|
@@ -65,6 +63,8 @@ export * from './BlogResource';
|
|
|
65
63
|
export * from './BlogResourceArrayResponse';
|
|
66
64
|
export * from './CartCouponLiteResource';
|
|
67
65
|
export * from './CartCouponLiteResourceArrayResponse';
|
|
66
|
+
export * from './CartCouponResource';
|
|
67
|
+
export * from './CartCouponResourceArrayResponse';
|
|
68
68
|
export * from './CartListResource';
|
|
69
69
|
export * from './CartListResourceArrayResponse';
|
|
70
70
|
export * from './CartOrderSource';
|
|
@@ -1,50 +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 AppliedCouponResource
|
|
16
|
-
*/
|
|
17
|
-
export interface AppliedCouponResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof AppliedCouponResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof AppliedCouponResource
|
|
28
|
-
*/
|
|
29
|
-
code: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof AppliedCouponResource
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof AppliedCouponResource
|
|
40
|
-
*/
|
|
41
|
-
discountTotal: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the AppliedCouponResource interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfAppliedCouponResource(value: object): value is AppliedCouponResource;
|
|
47
|
-
export declare function AppliedCouponResourceFromJSON(json: any): AppliedCouponResource;
|
|
48
|
-
export declare function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppliedCouponResource;
|
|
49
|
-
export declare function AppliedCouponResourceToJSON(json: any): AppliedCouponResource;
|
|
50
|
-
export declare function AppliedCouponResourceToJSONTyped(value?: AppliedCouponResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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 { AppliedCouponResource } from './AppliedCouponResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AppliedCouponResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface AppliedCouponResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<AppliedCouponResource>}
|
|
22
|
-
* @memberof AppliedCouponResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<AppliedCouponResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the AppliedCouponResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfAppliedCouponResourceArrayResponse(value: object): value is AppliedCouponResourceArrayResponse;
|
|
30
|
-
export declare function AppliedCouponResourceArrayResponseFromJSON(json: any): AppliedCouponResourceArrayResponse;
|
|
31
|
-
export declare function AppliedCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppliedCouponResourceArrayResponse;
|
|
32
|
-
export declare function AppliedCouponResourceArrayResponseToJSON(json: any): AppliedCouponResourceArrayResponse;
|
|
33
|
-
export declare function AppliedCouponResourceArrayResponseToJSONTyped(value?: AppliedCouponResourceArrayResponse | 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.instanceOfAppliedCouponResourceArrayResponse = instanceOfAppliedCouponResourceArrayResponse;
|
|
17
|
-
exports.AppliedCouponResourceArrayResponseFromJSON = AppliedCouponResourceArrayResponseFromJSON;
|
|
18
|
-
exports.AppliedCouponResourceArrayResponseFromJSONTyped = AppliedCouponResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.AppliedCouponResourceArrayResponseToJSON = AppliedCouponResourceArrayResponseToJSON;
|
|
20
|
-
exports.AppliedCouponResourceArrayResponseToJSONTyped = AppliedCouponResourceArrayResponseToJSONTyped;
|
|
21
|
-
var AppliedCouponResource_1 = require("./AppliedCouponResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the AppliedCouponResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfAppliedCouponResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function AppliedCouponResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return AppliedCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function AppliedCouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(AppliedCouponResource_1.AppliedCouponResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function AppliedCouponResourceArrayResponseToJSON(json) {
|
|
40
|
-
return AppliedCouponResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function AppliedCouponResourceArrayResponseToJSONTyped(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(AppliedCouponResource_1.AppliedCouponResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AppliedCouponResource } from './AppliedCouponResource';
|
|
17
|
-
import {
|
|
18
|
-
AppliedCouponResourceFromJSON,
|
|
19
|
-
AppliedCouponResourceFromJSONTyped,
|
|
20
|
-
AppliedCouponResourceToJSON,
|
|
21
|
-
AppliedCouponResourceToJSONTyped,
|
|
22
|
-
} from './AppliedCouponResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface AppliedCouponResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface AppliedCouponResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<AppliedCouponResource>}
|
|
33
|
-
* @memberof AppliedCouponResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<AppliedCouponResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the AppliedCouponResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfAppliedCouponResourceArrayResponse(value: object): value is AppliedCouponResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function AppliedCouponResourceArrayResponseFromJSON(json: any): AppliedCouponResourceArrayResponse {
|
|
46
|
-
return AppliedCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function AppliedCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppliedCouponResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AppliedCouponResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function AppliedCouponResourceArrayResponseToJSON(json: any): AppliedCouponResourceArrayResponse {
|
|
60
|
-
return AppliedCouponResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function AppliedCouponResourceArrayResponseToJSONTyped(value?: AppliedCouponResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(AppliedCouponResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|