@digital8/lighting-illusions-ts-sdk 0.0.2348 → 0.0.2349
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 +34 -14
- package/README.md +24 -9
- package/dist/apis/CouponsApi.d.ts +116 -0
- package/dist/apis/CouponsApi.js +440 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +2 -6
- 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/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CategoryAutomationFieldType.d.ts +0 -2
- package/dist/models/CategoryAutomationFieldType.js +1 -3
- package/dist/models/CouponListResource.d.ts +99 -0
- package/dist/models/CouponListResource.js +90 -0
- package/dist/models/CouponListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponListResourceArrayResponse.js +50 -0
- package/dist/models/CouponLiteResource.d.ts +44 -0
- package/dist/models/CouponLiteResource.js +57 -0
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CouponResource.d.ts +163 -0
- package/dist/models/CouponResource.js +134 -0
- package/dist/models/CouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponResourceArrayResponse.js +50 -0
- package/dist/models/CouponType.d.ts +26 -0
- package/dist/models/CouponType.js +52 -0
- package/dist/models/CreateCouponRequest.d.ts +134 -0
- package/dist/models/CreateCouponRequest.js +114 -0
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +48 -0
- package/dist/models/CreateCouponRequestCouponablesInner.js +61 -0
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +0 -2
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +1 -3
- package/dist/models/CreateSupplierRequest.d.ts +0 -6
- package/dist/models/CreateSupplierRequest.js +0 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -18
- package/dist/models/FrontendCartResource.js +0 -12
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +6 -4
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -12
- package/dist/models/OrderStatusWithCountResource.js +0 -8
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponListResourceResponse.js +57 -0
- package/dist/models/PaginatedCouponResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponResourceResponse.js +57 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllCouponsRequest.d.ts +101 -0
- package/dist/models/SearchAllCouponsRequest.js +85 -0
- package/dist/models/SearchAllOrdersRequest.d.ts +0 -6
- package/dist/models/SearchAllOrdersRequest.js +0 -2
- package/dist/models/SearchCartsRequest.d.ts +6 -0
- package/dist/models/SearchCartsRequest.js +2 -0
- package/dist/models/SearchCouponsRequest.d.ts +137 -0
- package/dist/models/SearchCouponsRequest.js +97 -0
- package/dist/models/SearchOrdersRequest.d.ts +6 -6
- package/dist/models/SearchOrdersRequest.js +2 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/SupplierFrontendResource.d.ts +0 -6
- package/dist/models/SupplierFrontendResource.js +0 -4
- package/dist/models/SupplierResource.d.ts +0 -6
- package/dist/models/SupplierResource.js +0 -4
- package/dist/models/UpdateCouponRequest.d.ts +128 -0
- package/dist/models/UpdateCouponRequest.js +110 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateSupplierRequest.d.ts +0 -6
- package/dist/models/UpdateSupplierRequest.js +0 -2
- package/dist/models/index.d.ts +16 -6
- package/dist/models/index.js +16 -6
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{AppliedCouponResource.md → CartCouponResource.md} +4 -4
- package/docs/{AppliedCouponResourceArrayResponse.md → CartCouponResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +0 -2
- package/docs/CouponListResource.md +56 -0
- package/docs/{ProductClassLiteResourceArrayResponse.md → CouponListResourceArrayResponse.md} +5 -5
- package/docs/{ProductClassLiteResource.md → CouponLiteResource.md} +6 -6
- package/docs/CouponLiteResourceArrayResponse.md +34 -0
- package/docs/CouponResource.md +76 -0
- package/docs/CouponResourceArrayResponse.md +34 -0
- package/docs/CouponType.md +32 -0
- package/docs/CouponsApi.md +407 -0
- package/docs/CreateCouponRequest.md +62 -0
- package/docs/CreateCouponRequestCouponablesInner.md +36 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateSupplierRequest.md +0 -2
- package/docs/FrontendCartResource.md +0 -6
- package/docs/FrontendOrderResource.md +1 -1
- package/docs/OrderStatusWithCountResource.md +0 -4
- package/docs/{PaginatedProductClassLiteResourceResponse.md → PaginatedCouponListResourceResponse.md} +5 -5
- package/docs/PaginatedCouponResourceResponse.md +36 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/{SearchAllProductClassesRequest.md → SearchAllCouponsRequest.md} +10 -4
- package/docs/SearchAllOrdersRequest.md +0 -2
- package/docs/SearchCartsRequest.md +2 -0
- package/docs/SearchCouponsRequest.md +62 -0
- package/docs/SearchOrdersRequest.md +2 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/SupplierFrontendResource.md +0 -2
- package/docs/SupplierResource.md +0 -2
- package/docs/UpdateCouponRequest.md +60 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +345 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +4 -6
- 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/CartListResource.ts +0 -9
- package/src/models/CategoryAutomationFieldType.ts +1 -3
- package/src/models/CouponListResource.ts +170 -0
- package/src/models/CouponListResourceArrayResponse.ts +73 -0
- package/src/models/CouponLiteResource.ts +83 -0
- package/src/models/CouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CouponResource.ts +288 -0
- package/src/models/CouponResourceArrayResponse.ts +73 -0
- package/src/models/CouponType.ts +54 -0
- package/src/models/CreateCouponRequest.ts +216 -0
- package/src/models/CreateCouponRequestCouponablesInner.ts +86 -0
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +1 -3
- package/src/models/CreateSupplierRequest.ts +0 -8
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -27
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +8 -7
- package/src/models/OrderStatusWithCountResource.ts +0 -18
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponResourceResponse.ts +90 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllCouponsRequest.ts +154 -0
- package/src/models/SearchAllOrdersRequest.ts +0 -8
- package/src/models/SearchCartsRequest.ts +8 -0
- package/src/models/SearchCouponsRequest.ts +202 -0
- package/src/models/SearchOrdersRequest.ts +8 -8
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/SupplierFrontendResource.ts +0 -9
- package/src/models/SupplierResource.ts +0 -9
- package/src/models/UpdateCouponRequest.ts +207 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateSupplierRequest.ts +0 -8
- package/src/models/index.ts +16 -6
- package/dist/apis/ProductClassApi.d.ts +0 -34
- package/dist/apis/ProductClassApi.js +0 -139
- package/dist/models/AppliedCouponResource.d.ts +0 -50
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/AppliedCouponResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +0 -57
- package/dist/models/ProductClassLiteResource.d.ts +0 -44
- package/dist/models/ProductClassLiteResource.js +0 -57
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductClassLiteResourceArrayResponse.js +0 -50
- package/dist/models/SearchAllProductClassesRequest.d.ts +0 -78
- package/dist/models/SearchAllProductClassesRequest.js +0 -74
- package/docs/ProductClassApi.md +0 -74
- package/src/apis/ProductClassApi.ts +0 -76
- package/src/models/AppliedCouponResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +0 -90
- package/src/models/ProductClassLiteResource.ts +0 -83
- package/src/models/ProductClassLiteResourceArrayResponse.ts +0 -73
- package/src/models/SearchAllProductClassesRequest.ts +0 -125
|
@@ -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
|
+
}
|
|
@@ -27,8 +27,6 @@ var CustomerListResource_1 = require("./CustomerListResource");
|
|
|
27
27
|
function instanceOfCartListResource(value) {
|
|
28
28
|
if (!('source' in value) || value['source'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
if (!('site' in value) || value['site'] === undefined)
|
|
33
31
|
return false;
|
|
34
32
|
if (!('customer' in value) || value['customer'] === undefined)
|
|
@@ -54,7 +52,6 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'source': json['source'],
|
|
55
53
|
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
56
54
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
57
|
-
'expiryDate': (new Date(json['expiryDate'])),
|
|
58
55
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
59
56
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
60
57
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
@@ -76,7 +73,6 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
76
73
|
'source': value['source'],
|
|
77
74
|
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
78
75
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
79
|
-
'expiryDate': value['expiryDate'].toISOString(),
|
|
80
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
81
77
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
82
78
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
@@ -21,8 +21,6 @@ export declare const CategoryAutomationFieldType: {
|
|
|
21
21
|
readonly Tag: "tag";
|
|
22
22
|
readonly Supplier: "supplier";
|
|
23
23
|
readonly Label: "label";
|
|
24
|
-
readonly ProductType: "product_type";
|
|
25
|
-
readonly ProductClass: "product_class";
|
|
26
24
|
};
|
|
27
25
|
export type CategoryAutomationFieldType = typeof CategoryAutomationFieldType[keyof typeof CategoryAutomationFieldType];
|
|
28
26
|
export declare function instanceOfCategoryAutomationFieldType(value: any): boolean;
|
|
@@ -30,9 +30,7 @@ exports.CategoryAutomationFieldType = {
|
|
|
30
30
|
Attribute: 'attribute',
|
|
31
31
|
Tag: 'tag',
|
|
32
32
|
Supplier: 'supplier',
|
|
33
|
-
Label: 'label'
|
|
34
|
-
ProductType: 'product_type',
|
|
35
|
-
ProductClass: 'product_class'
|
|
33
|
+
Label: 'label'
|
|
36
34
|
};
|
|
37
35
|
function instanceOfCategoryAutomationFieldType(value) {
|
|
38
36
|
for (var key in exports.CategoryAutomationFieldType) {
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CouponListResource
|
|
17
|
+
*/
|
|
18
|
+
export interface CouponListResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CouponListResource
|
|
23
|
+
*/
|
|
24
|
+
id?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CouponListResource
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CouponListResource
|
|
35
|
+
*/
|
|
36
|
+
code: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CouponListResource
|
|
41
|
+
*/
|
|
42
|
+
type: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CouponListResource
|
|
47
|
+
*/
|
|
48
|
+
discountType: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof CouponListResource
|
|
53
|
+
*/
|
|
54
|
+
discountAmount: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof CouponListResource
|
|
59
|
+
*/
|
|
60
|
+
startDate?: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof CouponListResource
|
|
65
|
+
*/
|
|
66
|
+
endDate?: Date | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof CouponListResource
|
|
71
|
+
*/
|
|
72
|
+
isAbandonedCart: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {SiteLiteResource}
|
|
76
|
+
* @memberof CouponListResource
|
|
77
|
+
*/
|
|
78
|
+
site: SiteLiteResource | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof CouponListResource
|
|
83
|
+
*/
|
|
84
|
+
ordersCount: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof CouponListResource
|
|
89
|
+
*/
|
|
90
|
+
cartsCount: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the CouponListResource interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfCouponListResource(value: object): value is CouponListResource;
|
|
96
|
+
export declare function CouponListResourceFromJSON(json: any): CouponListResource;
|
|
97
|
+
export declare function CouponListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponListResource;
|
|
98
|
+
export declare function CouponListResourceToJSON(json: any): CouponListResource;
|
|
99
|
+
export declare function CouponListResourceToJSONTyped(value?: CouponListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.instanceOfCouponListResource = instanceOfCouponListResource;
|
|
17
|
+
exports.CouponListResourceFromJSON = CouponListResourceFromJSON;
|
|
18
|
+
exports.CouponListResourceFromJSONTyped = CouponListResourceFromJSONTyped;
|
|
19
|
+
exports.CouponListResourceToJSON = CouponListResourceToJSON;
|
|
20
|
+
exports.CouponListResourceToJSONTyped = CouponListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CouponListResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCouponListResource(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('isAbandonedCart' in value) || value['isAbandonedCart'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('ordersCount' in value) || value['ordersCount'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('cartsCount' in value) || value['cartsCount'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function CouponListResourceFromJSON(json) {
|
|
47
|
+
return CouponListResourceFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function CouponListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'code': json['code'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'discountType': json['discountType'],
|
|
59
|
+
'discountAmount': json['discountAmount'],
|
|
60
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
61
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
62
|
+
'isAbandonedCart': json['isAbandonedCart'],
|
|
63
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
64
|
+
'ordersCount': json['ordersCount'],
|
|
65
|
+
'cartsCount': json['cartsCount'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function CouponListResourceToJSON(json) {
|
|
69
|
+
return CouponListResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function CouponListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
72
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'name': value['name'],
|
|
79
|
+
'code': value['code'],
|
|
80
|
+
'type': value['type'],
|
|
81
|
+
'discountType': value['discountType'],
|
|
82
|
+
'discountAmount': value['discountAmount'],
|
|
83
|
+
'startDate': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
84
|
+
'endDate': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
85
|
+
'isAbandonedCart': value['isAbandonedCart'],
|
|
86
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
87
|
+
'ordersCount': value['ordersCount'],
|
|
88
|
+
'cartsCount': value['cartsCount'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -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 { CouponListResource } from './CouponListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CouponListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CouponListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CouponListResource>}
|
|
22
|
+
* @memberof CouponListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CouponListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CouponListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCouponListResourceArrayResponse(value: object): value is CouponListResourceArrayResponse;
|
|
30
|
+
export declare function CouponListResourceArrayResponseFromJSON(json: any): CouponListResourceArrayResponse;
|
|
31
|
+
export declare function CouponListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponListResourceArrayResponse;
|
|
32
|
+
export declare function CouponListResourceArrayResponseToJSON(json: any): CouponListResourceArrayResponse;
|
|
33
|
+
export declare function CouponListResourceArrayResponseToJSONTyped(value?: CouponListResourceArrayResponse | 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.instanceOfCouponListResourceArrayResponse = instanceOfCouponListResourceArrayResponse;
|
|
17
|
+
exports.CouponListResourceArrayResponseFromJSON = CouponListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CouponListResourceArrayResponseFromJSONTyped = CouponListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CouponListResourceArrayResponseToJSON = CouponListResourceArrayResponseToJSON;
|
|
20
|
+
exports.CouponListResourceArrayResponseToJSONTyped = CouponListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CouponListResource_1 = require("./CouponListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CouponListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCouponListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CouponListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CouponListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CouponListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CouponListResource_1.CouponListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CouponListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CouponListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CouponListResourceArrayResponseToJSONTyped(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(CouponListResource_1.CouponListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CouponLiteResource
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponLiteResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CouponLiteResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CouponLiteResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CouponLiteResource
|
|
34
|
+
*/
|
|
35
|
+
code: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CouponLiteResource interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCouponLiteResource(value: object): value is CouponLiteResource;
|
|
41
|
+
export declare function CouponLiteResourceFromJSON(json: any): CouponLiteResource;
|
|
42
|
+
export declare function CouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponLiteResource;
|
|
43
|
+
export declare function CouponLiteResourceToJSON(json: any): CouponLiteResource;
|
|
44
|
+
export declare function CouponLiteResourceToJSONTyped(value?: CouponLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfCouponLiteResource = instanceOfCouponLiteResource;
|
|
17
|
+
exports.CouponLiteResourceFromJSON = CouponLiteResourceFromJSON;
|
|
18
|
+
exports.CouponLiteResourceFromJSONTyped = CouponLiteResourceFromJSONTyped;
|
|
19
|
+
exports.CouponLiteResourceToJSON = CouponLiteResourceToJSON;
|
|
20
|
+
exports.CouponLiteResourceToJSONTyped = CouponLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CouponLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCouponLiteResource(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CouponLiteResourceFromJSON(json) {
|
|
32
|
+
return CouponLiteResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CouponLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'code': json['code'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CouponLiteResourceToJSON(json) {
|
|
45
|
+
return CouponLiteResourceToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CouponLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'code': value['code'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 { CouponLiteResource } from './CouponLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CouponLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CouponLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CouponLiteResource>}
|
|
22
|
+
* @memberof CouponLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CouponLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CouponLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCouponLiteResourceArrayResponse(value: object): value is CouponLiteResourceArrayResponse;
|
|
30
|
+
export declare function CouponLiteResourceArrayResponseFromJSON(json: any): CouponLiteResourceArrayResponse;
|
|
31
|
+
export declare function CouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponLiteResourceArrayResponse;
|
|
32
|
+
export declare function CouponLiteResourceArrayResponseToJSON(json: any): CouponLiteResourceArrayResponse;
|
|
33
|
+
export declare function CouponLiteResourceArrayResponseToJSONTyped(value?: CouponLiteResourceArrayResponse | 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.instanceOfCouponLiteResourceArrayResponse = instanceOfCouponLiteResourceArrayResponse;
|
|
17
|
+
exports.CouponLiteResourceArrayResponseFromJSON = CouponLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CouponLiteResourceArrayResponseFromJSONTyped = CouponLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CouponLiteResourceArrayResponseToJSON = CouponLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.CouponLiteResourceArrayResponseToJSONTyped = CouponLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CouponLiteResource_1 = require("./CouponLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CouponLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCouponLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CouponLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CouponLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CouponLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CouponLiteResource_1.CouponLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CouponLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CouponLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CouponLiteResourceArrayResponseToJSONTyped(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(CouponLiteResource_1.CouponLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|