@digital8/lighting-illusions-ts-sdk 0.0.2498 → 0.0.2499
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -15
- package/README.md +2 -2
- package/dist/apis/AuspostApi.d.ts +29 -0
- package/dist/apis/AuspostApi.js +125 -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 +3 -1
- package/dist/models/AppliedCouponResource.d.ts +0 -30
- package/dist/models/AppliedCouponResource.js +0 -20
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -6
- package/dist/models/FrontendCartResource.js +0 -2
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
- package/dist/models/ProductCategoryLiteResource.js +0 -4
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +0 -6
- package/dist/models/SearchOrdersRequest.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- 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/SuburbValidationResource.d.ts +32 -0
- package/dist/models/SuburbValidationResource.js +51 -0
- package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
- package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
- package/dist/models/ValidateSuburbRequest.d.ts +50 -0
- package/dist/models/ValidateSuburbRequest.js +63 -0
- package/dist/models/index.d.ts +3 -14
- package/dist/models/index.js +3 -14
- package/package.json +1 -1
- package/src/apis/AuspostApi.ts +69 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AppliedCouponResource.ts +0 -45
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -8
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/ProductCategoryLiteResource.ts +0 -9
- package/src/models/ProductChildListResource.ts +0 -9
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +0 -8
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/SuburbValidationResource.ts +66 -0
- package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
- package/src/models/ValidateSuburbRequest.ts +93 -0
- package/src/models/index.ts +3 -14
- package/dist/apis/CouponsApi.d.ts +0 -85
- package/dist/apis/CouponsApi.js +0 -355
- package/dist/models/CouponListResource.d.ts +0 -99
- package/dist/models/CouponListResource.js +0 -91
- package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponListResourceArrayResponse.js +0 -50
- package/dist/models/CouponLiteResource.d.ts +0 -44
- package/dist/models/CouponLiteResource.js +0 -57
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/CouponResource.d.ts +0 -163
- package/dist/models/CouponResource.js +0 -135
- package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponType.d.ts +0 -26
- package/dist/models/CouponType.js +0 -52
- package/dist/models/CreateCouponRequest.d.ts +0 -126
- package/dist/models/CreateCouponRequest.js +0 -107
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
- package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
- package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponResourceResponse.js +0 -57
- package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
- package/dist/models/SearchAllCouponsRequest.js +0 -85
- package/dist/models/SearchCouponsRequest.d.ts +0 -137
- package/dist/models/SearchCouponsRequest.js +0 -97
- package/dist/models/UpdateCouponRequest.d.ts +0 -120
- package/dist/models/UpdateCouponRequest.js +0 -103
- package/src/apis/CouponsApi.ts +0 -286
- package/src/models/CouponListResource.ts +0 -170
- package/src/models/CouponListResourceArrayResponse.ts +0 -73
- package/src/models/CouponLiteResource.ts +0 -83
- package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/CouponResource.ts +0 -288
- package/src/models/CouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponType.ts +0 -54
- package/src/models/CreateCouponRequest.ts +0 -207
- package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
- package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
- package/src/models/PaginatedCouponResourceResponse.ts +0 -90
- package/src/models/SearchAllCouponsRequest.ts +0 -154
- package/src/models/SearchCouponsRequest.ts +0 -202
- package/src/models/UpdateCouponRequest.ts +0 -198
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { CouponResource } from './CouponResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CouponResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface CouponResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<CouponResource>}
|
|
22
|
-
* @memberof CouponResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<CouponResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CouponResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCouponResourceArrayResponse(value: object): value is CouponResourceArrayResponse;
|
|
30
|
-
export declare function CouponResourceArrayResponseFromJSON(json: any): CouponResourceArrayResponse;
|
|
31
|
-
export declare function CouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponResourceArrayResponse;
|
|
32
|
-
export declare function CouponResourceArrayResponseToJSON(json: any): CouponResourceArrayResponse;
|
|
33
|
-
export declare function CouponResourceArrayResponseToJSONTyped(value?: CouponResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfCouponResourceArrayResponse = instanceOfCouponResourceArrayResponse;
|
|
17
|
-
exports.CouponResourceArrayResponseFromJSON = CouponResourceArrayResponseFromJSON;
|
|
18
|
-
exports.CouponResourceArrayResponseFromJSONTyped = CouponResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.CouponResourceArrayResponseToJSON = CouponResourceArrayResponseToJSON;
|
|
20
|
-
exports.CouponResourceArrayResponseToJSONTyped = CouponResourceArrayResponseToJSONTyped;
|
|
21
|
-
var CouponResource_1 = require("./CouponResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CouponResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCouponResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function CouponResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return CouponResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function CouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(CouponResource_1.CouponResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function CouponResourceArrayResponseToJSON(json) {
|
|
40
|
-
return CouponResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function CouponResourceArrayResponseToJSONTyped(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(CouponResource_1.CouponResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const CouponType: {
|
|
17
|
-
readonly Subtotal: "subtotal";
|
|
18
|
-
readonly Product: "product";
|
|
19
|
-
readonly Shipping: "shipping";
|
|
20
|
-
};
|
|
21
|
-
export type CouponType = typeof CouponType[keyof typeof CouponType];
|
|
22
|
-
export declare function instanceOfCouponType(value: any): boolean;
|
|
23
|
-
export declare function CouponTypeFromJSON(json: any): CouponType;
|
|
24
|
-
export declare function CouponTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponType;
|
|
25
|
-
export declare function CouponTypeToJSON(value?: CouponType | null): any;
|
|
26
|
-
export declare function CouponTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CouponType;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CouponType = void 0;
|
|
17
|
-
exports.instanceOfCouponType = instanceOfCouponType;
|
|
18
|
-
exports.CouponTypeFromJSON = CouponTypeFromJSON;
|
|
19
|
-
exports.CouponTypeFromJSONTyped = CouponTypeFromJSONTyped;
|
|
20
|
-
exports.CouponTypeToJSON = CouponTypeToJSON;
|
|
21
|
-
exports.CouponTypeToJSONTyped = CouponTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.CouponType = {
|
|
27
|
-
Subtotal: 'subtotal',
|
|
28
|
-
Product: 'product',
|
|
29
|
-
Shipping: 'shipping'
|
|
30
|
-
};
|
|
31
|
-
function instanceOfCouponType(value) {
|
|
32
|
-
for (var key in exports.CouponType) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(exports.CouponType, key)) {
|
|
34
|
-
if (exports.CouponType[key] === value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
function CouponTypeFromJSON(json) {
|
|
42
|
-
return CouponTypeFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function CouponTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
function CouponTypeToJSON(value) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
function CouponTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { CreateCouponRequestCouponablesInner } from './CreateCouponRequestCouponablesInner';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateCouponRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateCouponRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof CreateCouponRequest
|
|
23
|
-
*/
|
|
24
|
-
siteId: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateCouponRequest
|
|
29
|
-
*/
|
|
30
|
-
name: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CreateCouponRequest
|
|
35
|
-
*/
|
|
36
|
-
code: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreateCouponRequest
|
|
41
|
-
*/
|
|
42
|
-
type: CreateCouponRequestTypeEnum;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateCouponRequest
|
|
47
|
-
*/
|
|
48
|
-
discountType: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof CreateCouponRequest
|
|
53
|
-
*/
|
|
54
|
-
discountAmount: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof CreateCouponRequest
|
|
59
|
-
*/
|
|
60
|
-
minAmount: number;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof CreateCouponRequest
|
|
65
|
-
*/
|
|
66
|
-
minProducts: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof CreateCouponRequest
|
|
71
|
-
*/
|
|
72
|
-
totalUseLimit: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof CreateCouponRequest
|
|
77
|
-
*/
|
|
78
|
-
customerUseLimit: number;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof CreateCouponRequest
|
|
83
|
-
*/
|
|
84
|
-
startDate?: string | null;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof CreateCouponRequest
|
|
89
|
-
*/
|
|
90
|
-
endDate?: string | null;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {boolean}
|
|
94
|
-
* @memberof CreateCouponRequest
|
|
95
|
-
*/
|
|
96
|
-
isForAllProducts?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {boolean}
|
|
100
|
-
* @memberof CreateCouponRequest
|
|
101
|
-
*/
|
|
102
|
-
isForAllCustomers?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @type {Array<CreateCouponRequestCouponablesInner>}
|
|
106
|
-
* @memberof CreateCouponRequest
|
|
107
|
-
*/
|
|
108
|
-
couponables?: Array<CreateCouponRequestCouponablesInner>;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export declare const CreateCouponRequestTypeEnum: {
|
|
114
|
-
readonly Subtotal: "subtotal";
|
|
115
|
-
readonly Product: "product";
|
|
116
|
-
readonly Shipping: "shipping";
|
|
117
|
-
};
|
|
118
|
-
export type CreateCouponRequestTypeEnum = typeof CreateCouponRequestTypeEnum[keyof typeof CreateCouponRequestTypeEnum];
|
|
119
|
-
/**
|
|
120
|
-
* Check if a given object implements the CreateCouponRequest interface.
|
|
121
|
-
*/
|
|
122
|
-
export declare function instanceOfCreateCouponRequest(value: object): value is CreateCouponRequest;
|
|
123
|
-
export declare function CreateCouponRequestFromJSON(json: any): CreateCouponRequest;
|
|
124
|
-
export declare function CreateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCouponRequest;
|
|
125
|
-
export declare function CreateCouponRequestToJSON(json: any): CreateCouponRequest;
|
|
126
|
-
export declare function CreateCouponRequestToJSONTyped(value?: CreateCouponRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateCouponRequestTypeEnum = void 0;
|
|
17
|
-
exports.instanceOfCreateCouponRequest = instanceOfCreateCouponRequest;
|
|
18
|
-
exports.CreateCouponRequestFromJSON = CreateCouponRequestFromJSON;
|
|
19
|
-
exports.CreateCouponRequestFromJSONTyped = CreateCouponRequestFromJSONTyped;
|
|
20
|
-
exports.CreateCouponRequestToJSON = CreateCouponRequestToJSON;
|
|
21
|
-
exports.CreateCouponRequestToJSONTyped = CreateCouponRequestToJSONTyped;
|
|
22
|
-
var CreateCouponRequestCouponablesInner_1 = require("./CreateCouponRequestCouponablesInner");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.CreateCouponRequestTypeEnum = {
|
|
27
|
-
Subtotal: 'subtotal',
|
|
28
|
-
Product: 'product',
|
|
29
|
-
Shipping: 'shipping'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CreateCouponRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
function instanceOfCreateCouponRequest(value) {
|
|
35
|
-
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('minProducts' in value) || value['minProducts'] === undefined)
|
|
50
|
-
return false;
|
|
51
|
-
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined)
|
|
52
|
-
return false;
|
|
53
|
-
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined)
|
|
54
|
-
return false;
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
function CreateCouponRequestFromJSON(json) {
|
|
58
|
-
return CreateCouponRequestFromJSONTyped(json, false);
|
|
59
|
-
}
|
|
60
|
-
function CreateCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
-
if (json == null) {
|
|
62
|
-
return json;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
'siteId': json['site_id'],
|
|
66
|
-
'name': json['name'],
|
|
67
|
-
'code': json['code'],
|
|
68
|
-
'type': json['type'],
|
|
69
|
-
'discountType': json['discount_type'],
|
|
70
|
-
'discountAmount': json['discount_amount'],
|
|
71
|
-
'minAmount': json['min_amount'],
|
|
72
|
-
'minProducts': json['min_products'],
|
|
73
|
-
'totalUseLimit': json['total_use_limit'],
|
|
74
|
-
'customerUseLimit': json['customer_use_limit'],
|
|
75
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
76
|
-
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
77
|
-
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
78
|
-
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
79
|
-
'couponables': json['couponables'] == null ? undefined : (json['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerFromJSON)),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function CreateCouponRequestToJSON(json) {
|
|
83
|
-
return CreateCouponRequestToJSONTyped(json, false);
|
|
84
|
-
}
|
|
85
|
-
function CreateCouponRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
86
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
87
|
-
if (value == null) {
|
|
88
|
-
return value;
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
'site_id': value['siteId'],
|
|
92
|
-
'name': value['name'],
|
|
93
|
-
'code': value['code'],
|
|
94
|
-
'type': value['type'],
|
|
95
|
-
'discount_type': value['discountType'],
|
|
96
|
-
'discount_amount': value['discountAmount'],
|
|
97
|
-
'min_amount': value['minAmount'],
|
|
98
|
-
'min_products': value['minProducts'],
|
|
99
|
-
'total_use_limit': value['totalUseLimit'],
|
|
100
|
-
'customer_use_limit': value['customerUseLimit'],
|
|
101
|
-
'start_date': value['startDate'],
|
|
102
|
-
'end_date': value['endDate'],
|
|
103
|
-
'is_for_all_products': value['isForAllProducts'],
|
|
104
|
-
'is_for_all_customers': value['isForAllCustomers'],
|
|
105
|
-
'couponables': value['couponables'] == null ? undefined : (value['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerToJSON)),
|
|
106
|
-
};
|
|
107
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateCouponRequestCouponablesInner
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateCouponRequestCouponablesInner {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateCouponRequestCouponablesInner
|
|
22
|
-
*/
|
|
23
|
-
type?: CreateCouponRequestCouponablesInnerTypeEnum;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof CreateCouponRequestCouponablesInner
|
|
28
|
-
*/
|
|
29
|
-
id?: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export declare const CreateCouponRequestCouponablesInnerTypeEnum: {
|
|
35
|
-
readonly ProductChild: "productChild";
|
|
36
|
-
readonly ProductCategory: "productCategory";
|
|
37
|
-
readonly Supplier: "supplier";
|
|
38
|
-
readonly Customer: "customer";
|
|
39
|
-
};
|
|
40
|
-
export type CreateCouponRequestCouponablesInnerTypeEnum = typeof CreateCouponRequestCouponablesInnerTypeEnum[keyof typeof CreateCouponRequestCouponablesInnerTypeEnum];
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the CreateCouponRequestCouponablesInner interface.
|
|
43
|
-
*/
|
|
44
|
-
export declare function instanceOfCreateCouponRequestCouponablesInner(value: object): value is CreateCouponRequestCouponablesInner;
|
|
45
|
-
export declare function CreateCouponRequestCouponablesInnerFromJSON(json: any): CreateCouponRequestCouponablesInner;
|
|
46
|
-
export declare function CreateCouponRequestCouponablesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCouponRequestCouponablesInner;
|
|
47
|
-
export declare function CreateCouponRequestCouponablesInnerToJSON(json: any): CreateCouponRequestCouponablesInner;
|
|
48
|
-
export declare function CreateCouponRequestCouponablesInnerToJSONTyped(value?: CreateCouponRequestCouponablesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateCouponRequestCouponablesInnerTypeEnum = void 0;
|
|
17
|
-
exports.instanceOfCreateCouponRequestCouponablesInner = instanceOfCreateCouponRequestCouponablesInner;
|
|
18
|
-
exports.CreateCouponRequestCouponablesInnerFromJSON = CreateCouponRequestCouponablesInnerFromJSON;
|
|
19
|
-
exports.CreateCouponRequestCouponablesInnerFromJSONTyped = CreateCouponRequestCouponablesInnerFromJSONTyped;
|
|
20
|
-
exports.CreateCouponRequestCouponablesInnerToJSON = CreateCouponRequestCouponablesInnerToJSON;
|
|
21
|
-
exports.CreateCouponRequestCouponablesInnerToJSONTyped = CreateCouponRequestCouponablesInnerToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.CreateCouponRequestCouponablesInnerTypeEnum = {
|
|
26
|
-
ProductChild: 'productChild',
|
|
27
|
-
ProductCategory: 'productCategory',
|
|
28
|
-
Supplier: 'supplier',
|
|
29
|
-
Customer: 'customer'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CreateCouponRequestCouponablesInner interface.
|
|
33
|
-
*/
|
|
34
|
-
function instanceOfCreateCouponRequestCouponablesInner(value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
function CreateCouponRequestCouponablesInnerFromJSON(json) {
|
|
38
|
-
return CreateCouponRequestCouponablesInnerFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
function CreateCouponRequestCouponablesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if (json == null) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
46
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function CreateCouponRequestCouponablesInnerToJSON(json) {
|
|
50
|
-
return CreateCouponRequestCouponablesInnerToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function CreateCouponRequestCouponablesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'type': value['type'],
|
|
59
|
-
'id': value['id'],
|
|
60
|
-
};
|
|
61
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
-
import type { CouponListResource } from './CouponListResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedCouponListResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedCouponListResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<CouponListResource>}
|
|
23
|
-
* @memberof PaginatedCouponListResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<CouponListResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedCouponListResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedCouponListResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedCouponListResourceResponse(value: object): value is PaginatedCouponListResourceResponse;
|
|
37
|
-
export declare function PaginatedCouponListResourceResponseFromJSON(json: any): PaginatedCouponListResourceResponse;
|
|
38
|
-
export declare function PaginatedCouponListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCouponListResourceResponse;
|
|
39
|
-
export declare function PaginatedCouponListResourceResponseToJSON(json: any): PaginatedCouponListResourceResponse;
|
|
40
|
-
export declare function PaginatedCouponListResourceResponseToJSONTyped(value?: PaginatedCouponListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfPaginatedCouponListResourceResponse = instanceOfPaginatedCouponListResourceResponse;
|
|
17
|
-
exports.PaginatedCouponListResourceResponseFromJSON = PaginatedCouponListResourceResponseFromJSON;
|
|
18
|
-
exports.PaginatedCouponListResourceResponseFromJSONTyped = PaginatedCouponListResourceResponseFromJSONTyped;
|
|
19
|
-
exports.PaginatedCouponListResourceResponseToJSON = PaginatedCouponListResourceResponseToJSON;
|
|
20
|
-
exports.PaginatedCouponListResourceResponseToJSONTyped = PaginatedCouponListResourceResponseToJSONTyped;
|
|
21
|
-
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
-
var CouponListResource_1 = require("./CouponListResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaginatedCouponListResourceResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaginatedCouponListResourceResponse(value) {
|
|
27
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function PaginatedCouponListResourceResponseFromJSON(json) {
|
|
34
|
-
return PaginatedCouponListResourceResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function PaginatedCouponListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'data': (json['data'].map(CouponListResource_1.CouponListResourceFromJSON)),
|
|
42
|
-
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function PaginatedCouponListResourceResponseToJSON(json) {
|
|
46
|
-
return PaginatedCouponListResourceResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function PaginatedCouponListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'data': (value['data'].map(CouponListResource_1.CouponListResourceToJSON)),
|
|
55
|
-
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
-
import type { CouponResource } from './CouponResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedCouponResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedCouponResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<CouponResource>}
|
|
23
|
-
* @memberof PaginatedCouponResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<CouponResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedCouponResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedCouponResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedCouponResourceResponse(value: object): value is PaginatedCouponResourceResponse;
|
|
37
|
-
export declare function PaginatedCouponResourceResponseFromJSON(json: any): PaginatedCouponResourceResponse;
|
|
38
|
-
export declare function PaginatedCouponResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCouponResourceResponse;
|
|
39
|
-
export declare function PaginatedCouponResourceResponseToJSON(json: any): PaginatedCouponResourceResponse;
|
|
40
|
-
export declare function PaginatedCouponResourceResponseToJSONTyped(value?: PaginatedCouponResourceResponse | null, ignoreDiscriminator?: boolean): any;
|