@digital8/lighting-illusions-ts-sdk 0.0.2519 → 0.0.2521
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 +0 -15
- package/README.md +2 -2
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AppliedCouponResource.d.ts +0 -30
- package/dist/models/AppliedCouponResource.js +0 -20
- package/dist/models/FrontendCartResource.d.ts +0 -6
- package/dist/models/FrontendCartResource.js +0 -2
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +6 -2
- 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 +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/index.d.ts +0 -14
- package/dist/models/index.js +0 -14
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AppliedCouponResource.ts +0 -45
- package/src/models/FrontendCartResource.ts +0 -8
- package/src/models/OrderFulfillmentResource.ts +6 -4
- 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 +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/index.ts +0 -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,85 +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.SearchAllCouponsRequestSortDirectionEnum = exports.SearchAllCouponsRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfSearchAllCouponsRequest = instanceOfSearchAllCouponsRequest;
|
|
18
|
-
exports.SearchAllCouponsRequestFromJSON = SearchAllCouponsRequestFromJSON;
|
|
19
|
-
exports.SearchAllCouponsRequestFromJSONTyped = SearchAllCouponsRequestFromJSONTyped;
|
|
20
|
-
exports.SearchAllCouponsRequestToJSON = SearchAllCouponsRequestToJSON;
|
|
21
|
-
exports.SearchAllCouponsRequestToJSONTyped = SearchAllCouponsRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.SearchAllCouponsRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
Name: 'name',
|
|
28
|
-
Code: 'code',
|
|
29
|
-
Type: 'type',
|
|
30
|
-
StartDate: 'start_date',
|
|
31
|
-
EndDate: 'end_date',
|
|
32
|
-
CreatedAt: 'created_at'
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
exports.SearchAllCouponsRequestSortDirectionEnum = {
|
|
38
|
-
Asc: 'asc',
|
|
39
|
-
Desc: 'desc'
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the SearchAllCouponsRequest interface.
|
|
43
|
-
*/
|
|
44
|
-
function instanceOfSearchAllCouponsRequest(value) {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
function SearchAllCouponsRequestFromJSON(json) {
|
|
48
|
-
return SearchAllCouponsRequestFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function SearchAllCouponsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if (json == null) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
56
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
57
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
58
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
59
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
60
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
61
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
62
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
63
|
-
'isAbandonedCart': json['is_abandoned_cart'] == null ? undefined : json['is_abandoned_cart'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function SearchAllCouponsRequestToJSON(json) {
|
|
67
|
-
return SearchAllCouponsRequestToJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
function SearchAllCouponsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
|
-
if (value == null) {
|
|
72
|
-
return value;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
'search': value['search'],
|
|
76
|
-
'sortBy': value['sortBy'],
|
|
77
|
-
'sortDirection': value['sortDirection'],
|
|
78
|
-
'related_id': value['relatedId'],
|
|
79
|
-
'related_type': value['relatedType'],
|
|
80
|
-
'includes_relations': value['includesRelations'],
|
|
81
|
-
'type': value['type'],
|
|
82
|
-
'site_id': value['siteId'],
|
|
83
|
-
'is_abandoned_cart': value['isAbandonedCart'],
|
|
84
|
-
};
|
|
85
|
-
}
|
|
@@ -1,137 +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 SearchCouponsRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface SearchCouponsRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SearchCouponsRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SearchCouponsRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: SearchCouponsRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SearchCouponsRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: SearchCouponsRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof SearchCouponsRequest
|
|
40
|
-
*/
|
|
41
|
-
perPage?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof SearchCouponsRequest
|
|
46
|
-
*/
|
|
47
|
-
page?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<string>}
|
|
51
|
-
* @memberof SearchCouponsRequest
|
|
52
|
-
*/
|
|
53
|
-
type?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof SearchCouponsRequest
|
|
58
|
-
*/
|
|
59
|
-
siteId?: Array<string>;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<string>}
|
|
63
|
-
* @memberof SearchCouponsRequest
|
|
64
|
-
*/
|
|
65
|
-
isAbandonedCart?: Array<string>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Date}
|
|
69
|
-
* @memberof SearchCouponsRequest
|
|
70
|
-
*/
|
|
71
|
-
beforeStartDate?: Date;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Date}
|
|
75
|
-
* @memberof SearchCouponsRequest
|
|
76
|
-
*/
|
|
77
|
-
afterStartDate?: Date;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Date}
|
|
81
|
-
* @memberof SearchCouponsRequest
|
|
82
|
-
*/
|
|
83
|
-
beforeEndDate?: Date;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {Date}
|
|
87
|
-
* @memberof SearchCouponsRequest
|
|
88
|
-
*/
|
|
89
|
-
afterEndDate?: Date;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof SearchCouponsRequest
|
|
94
|
-
*/
|
|
95
|
-
relatedId?: number;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof SearchCouponsRequest
|
|
100
|
-
*/
|
|
101
|
-
relatedType?: string;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {boolean}
|
|
105
|
-
* @memberof SearchCouponsRequest
|
|
106
|
-
*/
|
|
107
|
-
includesRelations?: boolean;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @export
|
|
111
|
-
*/
|
|
112
|
-
export declare const SearchCouponsRequestSortByEnum: {
|
|
113
|
-
readonly Id: "id";
|
|
114
|
-
readonly Name: "name";
|
|
115
|
-
readonly Code: "code";
|
|
116
|
-
readonly Type: "type";
|
|
117
|
-
readonly StartDate: "start_date";
|
|
118
|
-
readonly EndDate: "end_date";
|
|
119
|
-
readonly CreatedAt: "created_at";
|
|
120
|
-
};
|
|
121
|
-
export type SearchCouponsRequestSortByEnum = typeof SearchCouponsRequestSortByEnum[keyof typeof SearchCouponsRequestSortByEnum];
|
|
122
|
-
/**
|
|
123
|
-
* @export
|
|
124
|
-
*/
|
|
125
|
-
export declare const SearchCouponsRequestSortDirectionEnum: {
|
|
126
|
-
readonly Asc: "asc";
|
|
127
|
-
readonly Desc: "desc";
|
|
128
|
-
};
|
|
129
|
-
export type SearchCouponsRequestSortDirectionEnum = typeof SearchCouponsRequestSortDirectionEnum[keyof typeof SearchCouponsRequestSortDirectionEnum];
|
|
130
|
-
/**
|
|
131
|
-
* Check if a given object implements the SearchCouponsRequest interface.
|
|
132
|
-
*/
|
|
133
|
-
export declare function instanceOfSearchCouponsRequest(value: object): value is SearchCouponsRequest;
|
|
134
|
-
export declare function SearchCouponsRequestFromJSON(json: any): SearchCouponsRequest;
|
|
135
|
-
export declare function SearchCouponsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchCouponsRequest;
|
|
136
|
-
export declare function SearchCouponsRequestToJSON(json: any): SearchCouponsRequest;
|
|
137
|
-
export declare function SearchCouponsRequestToJSONTyped(value?: SearchCouponsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,97 +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.SearchCouponsRequestSortDirectionEnum = exports.SearchCouponsRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfSearchCouponsRequest = instanceOfSearchCouponsRequest;
|
|
18
|
-
exports.SearchCouponsRequestFromJSON = SearchCouponsRequestFromJSON;
|
|
19
|
-
exports.SearchCouponsRequestFromJSONTyped = SearchCouponsRequestFromJSONTyped;
|
|
20
|
-
exports.SearchCouponsRequestToJSON = SearchCouponsRequestToJSON;
|
|
21
|
-
exports.SearchCouponsRequestToJSONTyped = SearchCouponsRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.SearchCouponsRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
Name: 'name',
|
|
28
|
-
Code: 'code',
|
|
29
|
-
Type: 'type',
|
|
30
|
-
StartDate: 'start_date',
|
|
31
|
-
EndDate: 'end_date',
|
|
32
|
-
CreatedAt: 'created_at'
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
exports.SearchCouponsRequestSortDirectionEnum = {
|
|
38
|
-
Asc: 'asc',
|
|
39
|
-
Desc: 'desc'
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the SearchCouponsRequest interface.
|
|
43
|
-
*/
|
|
44
|
-
function instanceOfSearchCouponsRequest(value) {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
function SearchCouponsRequestFromJSON(json) {
|
|
48
|
-
return SearchCouponsRequestFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function SearchCouponsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if (json == null) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
56
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
57
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
58
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
59
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
60
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
61
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
62
|
-
'isAbandonedCart': json['is_abandoned_cart'] == null ? undefined : json['is_abandoned_cart'],
|
|
63
|
-
'beforeStartDate': json['before_start_date'] == null ? undefined : (new Date(json['before_start_date'])),
|
|
64
|
-
'afterStartDate': json['after_start_date'] == null ? undefined : (new Date(json['after_start_date'])),
|
|
65
|
-
'beforeEndDate': json['before_end_date'] == null ? undefined : (new Date(json['before_end_date'])),
|
|
66
|
-
'afterEndDate': json['after_end_date'] == null ? undefined : (new Date(json['after_end_date'])),
|
|
67
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
68
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
69
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function SearchCouponsRequestToJSON(json) {
|
|
73
|
-
return SearchCouponsRequestToJSONTyped(json, false);
|
|
74
|
-
}
|
|
75
|
-
function SearchCouponsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
76
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
77
|
-
if (value == null) {
|
|
78
|
-
return value;
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
'search': value['search'],
|
|
82
|
-
'sortBy': value['sortBy'],
|
|
83
|
-
'sortDirection': value['sortDirection'],
|
|
84
|
-
'per_page': value['perPage'],
|
|
85
|
-
'page': value['page'],
|
|
86
|
-
'type': value['type'],
|
|
87
|
-
'site_id': value['siteId'],
|
|
88
|
-
'is_abandoned_cart': value['isAbandonedCart'],
|
|
89
|
-
'before_start_date': value['beforeStartDate'] == null ? undefined : ((value['beforeStartDate']).toISOString()),
|
|
90
|
-
'after_start_date': value['afterStartDate'] == null ? undefined : ((value['afterStartDate']).toISOString()),
|
|
91
|
-
'before_end_date': value['beforeEndDate'] == null ? undefined : ((value['beforeEndDate']).toISOString()),
|
|
92
|
-
'after_end_date': value['afterEndDate'] == null ? undefined : ((value['afterEndDate']).toISOString()),
|
|
93
|
-
'related_id': value['relatedId'],
|
|
94
|
-
'related_type': value['relatedType'],
|
|
95
|
-
'includes_relations': value['includesRelations'],
|
|
96
|
-
};
|
|
97
|
-
}
|
|
@@ -1,120 +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 UpdateCouponRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface UpdateCouponRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UpdateCouponRequest
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UpdateCouponRequest
|
|
29
|
-
*/
|
|
30
|
-
code: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof UpdateCouponRequest
|
|
35
|
-
*/
|
|
36
|
-
type: UpdateCouponRequestTypeEnum;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof UpdateCouponRequest
|
|
41
|
-
*/
|
|
42
|
-
discountType: string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof UpdateCouponRequest
|
|
47
|
-
*/
|
|
48
|
-
discountAmount: number;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof UpdateCouponRequest
|
|
53
|
-
*/
|
|
54
|
-
minAmount: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof UpdateCouponRequest
|
|
59
|
-
*/
|
|
60
|
-
minProducts: number;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof UpdateCouponRequest
|
|
65
|
-
*/
|
|
66
|
-
totalUseLimit: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof UpdateCouponRequest
|
|
71
|
-
*/
|
|
72
|
-
customerUseLimit: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof UpdateCouponRequest
|
|
77
|
-
*/
|
|
78
|
-
startDate?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof UpdateCouponRequest
|
|
83
|
-
*/
|
|
84
|
-
endDate?: string | null;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {boolean}
|
|
88
|
-
* @memberof UpdateCouponRequest
|
|
89
|
-
*/
|
|
90
|
-
isForAllProducts?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {boolean}
|
|
94
|
-
* @memberof UpdateCouponRequest
|
|
95
|
-
*/
|
|
96
|
-
isForAllCustomers?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {Array<CreateCouponRequestCouponablesInner>}
|
|
100
|
-
* @memberof UpdateCouponRequest
|
|
101
|
-
*/
|
|
102
|
-
couponables?: Array<CreateCouponRequestCouponablesInner>;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
|
-
export declare const UpdateCouponRequestTypeEnum: {
|
|
108
|
-
readonly Subtotal: "subtotal";
|
|
109
|
-
readonly Product: "product";
|
|
110
|
-
readonly Shipping: "shipping";
|
|
111
|
-
};
|
|
112
|
-
export type UpdateCouponRequestTypeEnum = typeof UpdateCouponRequestTypeEnum[keyof typeof UpdateCouponRequestTypeEnum];
|
|
113
|
-
/**
|
|
114
|
-
* Check if a given object implements the UpdateCouponRequest interface.
|
|
115
|
-
*/
|
|
116
|
-
export declare function instanceOfUpdateCouponRequest(value: object): value is UpdateCouponRequest;
|
|
117
|
-
export declare function UpdateCouponRequestFromJSON(json: any): UpdateCouponRequest;
|
|
118
|
-
export declare function UpdateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCouponRequest;
|
|
119
|
-
export declare function UpdateCouponRequestToJSON(json: any): UpdateCouponRequest;
|
|
120
|
-
export declare function UpdateCouponRequestToJSONTyped(value?: UpdateCouponRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,103 +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.UpdateCouponRequestTypeEnum = void 0;
|
|
17
|
-
exports.instanceOfUpdateCouponRequest = instanceOfUpdateCouponRequest;
|
|
18
|
-
exports.UpdateCouponRequestFromJSON = UpdateCouponRequestFromJSON;
|
|
19
|
-
exports.UpdateCouponRequestFromJSONTyped = UpdateCouponRequestFromJSONTyped;
|
|
20
|
-
exports.UpdateCouponRequestToJSON = UpdateCouponRequestToJSON;
|
|
21
|
-
exports.UpdateCouponRequestToJSONTyped = UpdateCouponRequestToJSONTyped;
|
|
22
|
-
var CreateCouponRequestCouponablesInner_1 = require("./CreateCouponRequestCouponablesInner");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.UpdateCouponRequestTypeEnum = {
|
|
27
|
-
Subtotal: 'subtotal',
|
|
28
|
-
Product: 'product',
|
|
29
|
-
Shipping: 'shipping'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the UpdateCouponRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
function instanceOfUpdateCouponRequest(value) {
|
|
35
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('minProducts' in value) || value['minProducts'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined)
|
|
50
|
-
return false;
|
|
51
|
-
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined)
|
|
52
|
-
return false;
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
function UpdateCouponRequestFromJSON(json) {
|
|
56
|
-
return UpdateCouponRequestFromJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
function UpdateCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
-
if (json == null) {
|
|
60
|
-
return json;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'name': json['name'],
|
|
64
|
-
'code': json['code'],
|
|
65
|
-
'type': json['type'],
|
|
66
|
-
'discountType': json['discount_type'],
|
|
67
|
-
'discountAmount': json['discount_amount'],
|
|
68
|
-
'minAmount': json['min_amount'],
|
|
69
|
-
'minProducts': json['min_products'],
|
|
70
|
-
'totalUseLimit': json['total_use_limit'],
|
|
71
|
-
'customerUseLimit': json['customer_use_limit'],
|
|
72
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
73
|
-
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
74
|
-
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
75
|
-
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
76
|
-
'couponables': json['couponables'] == null ? undefined : (json['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerFromJSON)),
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function UpdateCouponRequestToJSON(json) {
|
|
80
|
-
return UpdateCouponRequestToJSONTyped(json, false);
|
|
81
|
-
}
|
|
82
|
-
function UpdateCouponRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
83
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
84
|
-
if (value == null) {
|
|
85
|
-
return value;
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
'name': value['name'],
|
|
89
|
-
'code': value['code'],
|
|
90
|
-
'type': value['type'],
|
|
91
|
-
'discount_type': value['discountType'],
|
|
92
|
-
'discount_amount': value['discountAmount'],
|
|
93
|
-
'min_amount': value['minAmount'],
|
|
94
|
-
'min_products': value['minProducts'],
|
|
95
|
-
'total_use_limit': value['totalUseLimit'],
|
|
96
|
-
'customer_use_limit': value['customerUseLimit'],
|
|
97
|
-
'start_date': value['startDate'],
|
|
98
|
-
'end_date': value['endDate'],
|
|
99
|
-
'is_for_all_products': value['isForAllProducts'],
|
|
100
|
-
'is_for_all_customers': value['isForAllCustomers'],
|
|
101
|
-
'couponables': value['couponables'] == null ? undefined : (value['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerToJSON)),
|
|
102
|
-
};
|
|
103
|
-
}
|