@digital8/lighting-illusions-ts-sdk 0.0.2370 → 0.0.2372
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 -4
- package/README.md +24 -4
- package/dist/apis/CouponsApi.d.ts +116 -0
- package/dist/apis/CouponsApi.js +440 -0
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +2 -3
- package/dist/models/AdminOrderResource.js +2 -3
- package/dist/models/AppliedCouponResource.d.ts +50 -0
- package/dist/models/{CartCouponResource.js → AppliedCouponResource.js} +13 -13
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/AppliedCouponResourceArrayResponse.js +50 -0
- 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/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 +6 -2
- 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/SearchAllCouponsRequest.d.ts +101 -0
- package/dist/models/SearchAllCouponsRequest.js +85 -0
- package/dist/models/SearchAllRolesRequest.d.ts +2 -0
- package/dist/models/SearchAllRolesRequest.js +3 -1
- 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 -0
- package/dist/models/SearchOrdersRequest.js +2 -0
- package/dist/models/SearchRolesRequest.d.ts +2 -0
- package/dist/models/SearchRolesRequest.js +3 -1
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +6 -2
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/UpdateCouponRequest.d.ts +128 -0
- package/dist/models/UpdateCouponRequest.js +110 -0
- package/dist/models/index.d.ts +16 -2
- package/dist/models/index.js +16 -2
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{CartCouponResource.md → AppliedCouponResource.md} +4 -4
- package/docs/AppliedCouponResourceArrayResponse.md +34 -0
- package/docs/CouponListResource.md +56 -0
- package/docs/{CartCouponResourceArrayResponse.md → CouponListResourceArrayResponse.md} +5 -5
- package/docs/CouponLiteResource.md +38 -0
- 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/FrontendOrderResource.md +1 -1
- package/docs/PaginatedCouponListResourceResponse.md +36 -0
- package/docs/PaginatedCouponResourceResponse.md +36 -0
- package/docs/SearchAllCouponsRequest.md +50 -0
- package/docs/SearchCartsRequest.md +2 -0
- package/docs/SearchCouponsRequest.md +62 -0
- package/docs/SearchOrdersRequest.md +2 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/SupplierApi.md +2 -2
- package/docs/UpdateCouponRequest.md +60 -0
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +345 -0
- package/src/apis/SupplierApi.ts +1 -1
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +4 -11
- package/src/models/{CartCouponResource.ts → AppliedCouponResource.ts} +14 -14
- package/src/models/AppliedCouponResourceArrayResponse.ts +73 -0
- 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/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +6 -4
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponResourceResponse.ts +90 -0
- package/src/models/SearchAllCouponsRequest.ts +154 -0
- package/src/models/SearchAllRolesRequest.ts +3 -1
- package/src/models/SearchCartsRequest.ts +8 -0
- package/src/models/SearchCouponsRequest.ts +202 -0
- package/src/models/SearchOrdersRequest.ts +8 -0
- package/src/models/SearchRolesRequest.ts +3 -1
- package/src/models/StoreListResource.ts +6 -4
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateCouponRequest.ts +207 -0
- package/src/models/index.ts +16 -2
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
|
@@ -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.instanceOfAppliedCouponResource = instanceOfAppliedCouponResource;
|
|
17
|
+
exports.AppliedCouponResourceFromJSON = AppliedCouponResourceFromJSON;
|
|
18
|
+
exports.AppliedCouponResourceFromJSONTyped = AppliedCouponResourceFromJSONTyped;
|
|
19
|
+
exports.AppliedCouponResourceToJSON = AppliedCouponResourceToJSON;
|
|
20
|
+
exports.AppliedCouponResourceToJSONTyped = AppliedCouponResourceToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the AppliedCouponResource interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfAppliedCouponResource(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 instanceOfCartCouponResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function AppliedCouponResourceFromJSON(json) {
|
|
36
|
+
return AppliedCouponResourceFromJSONTyped(json, false);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function AppliedCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
if (json == null) {
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
@@ -46,10 +46,10 @@ function CartCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'discountTotal': json['discountTotal'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
49
|
+
function AppliedCouponResourceToJSON(json) {
|
|
50
|
+
return AppliedCouponResourceToJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function AppliedCouponResourceToJSONTyped(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 { 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;
|
|
@@ -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.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
|
+
}
|
|
@@ -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
|
+
}
|