@digital8/lighting-illusions-ts-sdk 0.0.2517 → 0.0.2519
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 +15 -0
- package/README.md +2 -2
- package/dist/apis/CartsApi.d.ts +11 -0
- package/dist/apis/CartsApi.js +46 -0
- package/dist/apis/CouponsApi.d.ts +85 -0
- package/dist/apis/CouponsApi.js +355 -0
- package/dist/apis/OrdersApi.d.ts +11 -0
- package/dist/apis/OrdersApi.js +46 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AppliedCouponResource.d.ts +30 -0
- package/dist/models/AppliedCouponResource.js +20 -0
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/CouponListResource.d.ts +99 -0
- package/dist/models/CouponListResource.js +91 -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 +135 -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 +126 -0
- package/dist/models/CreateCouponRequest.js +107 -0
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +48 -0
- package/dist/models/CreateCouponRequestCouponablesInner.js +61 -0
- package/dist/models/FrontendCartResource.d.ts +6 -0
- package/dist/models/FrontendCartResource.js +2 -0
- 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/ProductCategoryLiteResource.d.ts +6 -0
- package/dist/models/ProductCategoryLiteResource.js +4 -0
- package/dist/models/ProductChildListResource.d.ts +6 -0
- package/dist/models/ProductChildListResource.js +4 -0
- package/dist/models/SearchAllCouponsRequest.d.ts +101 -0
- package/dist/models/SearchAllCouponsRequest.js +85 -0
- 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/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCouponRequest.d.ts +120 -0
- package/dist/models/UpdateCouponRequest.js +103 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +41 -0
- package/src/apis/CouponsApi.ts +286 -0
- package/src/apis/OrdersApi.ts +41 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AppliedCouponResource.ts +45 -0
- package/src/models/CartResource.ts +9 -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 +207 -0
- package/src/models/CreateCouponRequestCouponablesInner.ts +86 -0
- package/src/models/FrontendCartResource.ts +8 -0
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponResourceResponse.ts +90 -0
- package/src/models/ProductCategoryLiteResource.ts +9 -0
- package/src/models/ProductChildListResource.ts +9 -0
- package/src/models/SearchAllCouponsRequest.ts +154 -0
- package/src/models/SearchCartsRequest.ts +8 -0
- package/src/models/SearchCouponsRequest.ts +202 -0
- package/src/models/SearchOrdersRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCouponRequest.ts +198 -0
- package/src/models/index.ts +14 -0
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./AttributeApi"), exports);
|
|
|
22
22
|
__exportStar(require("./AuspostApi"), exports);
|
|
23
23
|
__exportStar(require("./BlogCategoryApi"), exports);
|
|
24
24
|
__exportStar(require("./CartsApi"), exports);
|
|
25
|
+
__exportStar(require("./CouponsApi"), exports);
|
|
25
26
|
__exportStar(require("./CustomersApi"), exports);
|
|
26
27
|
__exportStar(require("./DefinitionApi"), exports);
|
|
27
28
|
__exportStar(require("./DocumentApi"), exports);
|
|
@@ -22,8 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
|
-
'company': json['company'],
|
|
47
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
50
48
|
'line1': json['line1'],
|
|
51
49
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
52
50
|
'postcode': json['postcode'],
|
|
@@ -33,6 +33,36 @@ export interface AppliedCouponResource {
|
|
|
33
33
|
* @memberof AppliedCouponResource
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AppliedCouponResource
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AppliedCouponResource
|
|
46
|
+
*/
|
|
47
|
+
discountType: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AppliedCouponResource
|
|
52
|
+
*/
|
|
53
|
+
discountAmount: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AppliedCouponResource
|
|
58
|
+
*/
|
|
59
|
+
minAmount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof AppliedCouponResource
|
|
64
|
+
*/
|
|
65
|
+
minProducts: number;
|
|
36
66
|
/**
|
|
37
67
|
*
|
|
38
68
|
* @type {number}
|
|
@@ -28,6 +28,16 @@ function instanceOfAppliedCouponResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('name' in value) || value['name'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined)
|
|
40
|
+
return false;
|
|
31
41
|
if (!('discountTotal' in value) || value['discountTotal'] === undefined)
|
|
32
42
|
return false;
|
|
33
43
|
return true;
|
|
@@ -43,6 +53,11 @@ function AppliedCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
53
|
'id': json['id'],
|
|
44
54
|
'code': json['code'],
|
|
45
55
|
'name': json['name'],
|
|
56
|
+
'type': json['type'],
|
|
57
|
+
'discountType': json['discountType'],
|
|
58
|
+
'discountAmount': json['discountAmount'],
|
|
59
|
+
'minAmount': json['minAmount'],
|
|
60
|
+
'minProducts': json['minProducts'],
|
|
46
61
|
'discountTotal': json['discountTotal'],
|
|
47
62
|
};
|
|
48
63
|
}
|
|
@@ -58,6 +73,11 @@ function AppliedCouponResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
58
73
|
'id': value['id'],
|
|
59
74
|
'code': value['code'],
|
|
60
75
|
'name': value['name'],
|
|
76
|
+
'type': value['type'],
|
|
77
|
+
'discountType': value['discountType'],
|
|
78
|
+
'discountAmount': value['discountAmount'],
|
|
79
|
+
'minAmount': value['minAmount'],
|
|
80
|
+
'minProducts': value['minProducts'],
|
|
61
81
|
'discountTotal': value['discountTotal'],
|
|
62
82
|
};
|
|
63
83
|
}
|
|
@@ -224,6 +224,12 @@ export interface CartResource {
|
|
|
224
224
|
* @memberof CartResource
|
|
225
225
|
*/
|
|
226
226
|
status: string;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @type {boolean}
|
|
230
|
+
* @memberof CartResource
|
|
231
|
+
*/
|
|
232
|
+
isPrivilegedAdmin: boolean;
|
|
227
233
|
}
|
|
228
234
|
/**
|
|
229
235
|
* Check if a given object implements the CartResource interface.
|
|
@@ -77,6 +77,8 @@ function instanceOfCartResource(value) {
|
|
|
77
77
|
return false;
|
|
78
78
|
if (!('status' in value) || value['status'] === undefined)
|
|
79
79
|
return false;
|
|
80
|
+
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined)
|
|
81
|
+
return false;
|
|
80
82
|
return true;
|
|
81
83
|
}
|
|
82
84
|
function CartResourceFromJSON(json) {
|
|
@@ -121,6 +123,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
121
123
|
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
122
124
|
'finalTotalAmount': json['finalTotalAmount'],
|
|
123
125
|
'status': json['status'],
|
|
126
|
+
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
129
|
function CartResourceToJSON(json) {
|
|
@@ -167,5 +170,6 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
167
170
|
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
168
171
|
'finalTotalAmount': value['finalTotalAmount'],
|
|
169
172
|
'status': value['status'],
|
|
173
|
+
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
170
174
|
};
|
|
171
175
|
}
|
|
@@ -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,91 @@
|
|
|
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
|
+
var _a, _b;
|
|
73
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'type': value['type'],
|
|
82
|
+
'discountType': value['discountType'],
|
|
83
|
+
'discountAmount': value['discountAmount'],
|
|
84
|
+
'startDate': value['startDate'] === null ? null : ((_a = value['startDate']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
85
|
+
'endDate': value['endDate'] === null ? null : ((_b = value['endDate']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
86
|
+
'isAbandonedCart': value['isAbandonedCart'],
|
|
87
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
88
|
+
'ordersCount': value['ordersCount'],
|
|
89
|
+
'cartsCount': value['cartsCount'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -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
|
+
}
|