@digital8/lighting-illusions-ts-sdk 0.0.1838 → 0.0.1840
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 +10 -0
- package/README.md +7 -2
- package/dist/apis/CouponsApi.d.ts +33 -0
- package/dist/apis/CouponsApi.js +138 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- 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 +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/VerifyCouponRequest.d.ts +63 -0
- package/dist/models/VerifyCouponRequest.js +64 -0
- package/dist/models/VerifyCouponRequestProductsInner.d.ts +38 -0
- package/dist/models/VerifyCouponRequestProductsInner.js +51 -0
- package/dist/models/VerifyCouponResource.d.ts +38 -0
- package/dist/models/VerifyCouponResource.js +55 -0
- package/dist/models/VerifyCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/VerifyCouponResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/CouponsApi.md +74 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/VerifyCouponRequest.md +44 -0
- package/docs/VerifyCouponRequestProductsInner.md +36 -0
- package/docs/VerifyCouponResource.md +36 -0
- package/docs/VerifyCouponResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +77 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/VerifyCouponRequest.ts +115 -0
- package/src/models/VerifyCouponRequestProductsInner.ts +73 -0
- package/src/models/VerifyCouponResource.ts +75 -0
- package/src/models/VerifyCouponResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +4 -0
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine?: string | null;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -109,7 +109,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
109
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
112
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
113
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
114
|
return true;
|
|
@@ -134,7 +133,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
134
133
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
134
|
'latitude': json['latitude'],
|
|
136
135
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
136
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
137
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
138
|
'specialDates': json['specialDates'],
|
|
140
139
|
'suppliers': json['suppliers'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -100,6 +100,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
103
104
|
return true;
|
|
104
105
|
}
|
|
105
106
|
|
|
@@ -121,7 +122,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
121
122
|
'latitude': json['latitude'],
|
|
122
123
|
'tagLine': json['tag_line'],
|
|
123
124
|
'email': json['email'],
|
|
124
|
-
'website': json['website']
|
|
125
|
+
'website': json['website'],
|
|
125
126
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
126
127
|
};
|
|
127
128
|
}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {string}
|
|
@@ -138,7 +138,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
138
138
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
139
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
140
140
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
141
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
142
141
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
143
142
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
144
143
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -163,7 +162,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
163
162
|
'latitude': json['latitude'],
|
|
164
163
|
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
165
164
|
'email': json['email'],
|
|
166
|
-
'website': json['website'],
|
|
165
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
167
166
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
168
167
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
169
168
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { VerifyCouponRequestProductsInner } from './VerifyCouponRequestProductsInner';
|
|
17
|
+
import {
|
|
18
|
+
VerifyCouponRequestProductsInnerFromJSON,
|
|
19
|
+
VerifyCouponRequestProductsInnerFromJSONTyped,
|
|
20
|
+
VerifyCouponRequestProductsInnerToJSON,
|
|
21
|
+
VerifyCouponRequestProductsInnerToJSONTyped,
|
|
22
|
+
} from './VerifyCouponRequestProductsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface VerifyCouponRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface VerifyCouponRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VerifyCouponRequest
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VerifyCouponRequest
|
|
40
|
+
*/
|
|
41
|
+
customerId: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VerifyCouponRequest
|
|
46
|
+
*/
|
|
47
|
+
cartId?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<VerifyCouponRequestProductsInner>}
|
|
51
|
+
* @memberof VerifyCouponRequest
|
|
52
|
+
*/
|
|
53
|
+
products?: Array<VerifyCouponRequestProductsInner>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof VerifyCouponRequest
|
|
58
|
+
*/
|
|
59
|
+
couponCode?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<number>}
|
|
63
|
+
* @memberof VerifyCouponRequest
|
|
64
|
+
*/
|
|
65
|
+
couponIds?: Array<number>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the VerifyCouponRequest interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfVerifyCouponRequest(value: object): value is VerifyCouponRequest {
|
|
72
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
73
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function VerifyCouponRequestFromJSON(json: any): VerifyCouponRequest {
|
|
78
|
+
return VerifyCouponRequestFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function VerifyCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponRequest {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'siteId': json['site_id'],
|
|
88
|
+
'customerId': json['customer_id'],
|
|
89
|
+
'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
|
|
90
|
+
'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(VerifyCouponRequestProductsInnerFromJSON)),
|
|
91
|
+
'couponCode': json['coupon_code'] == null ? undefined : json['coupon_code'],
|
|
92
|
+
'couponIds': json['coupon_ids'] == null ? undefined : json['coupon_ids'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function VerifyCouponRequestToJSON(json: any): VerifyCouponRequest {
|
|
97
|
+
return VerifyCouponRequestToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function VerifyCouponRequestToJSONTyped(value?: VerifyCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'site_id': value['siteId'],
|
|
108
|
+
'customer_id': value['customerId'],
|
|
109
|
+
'cart_id': value['cartId'],
|
|
110
|
+
'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(VerifyCouponRequestProductsInnerToJSON)),
|
|
111
|
+
'coupon_code': value['couponCode'],
|
|
112
|
+
'coupon_ids': value['couponIds'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VerifyCouponRequestProductsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyCouponRequestProductsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof VerifyCouponRequestProductsInner
|
|
26
|
+
*/
|
|
27
|
+
productChildId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof VerifyCouponRequestProductsInner
|
|
32
|
+
*/
|
|
33
|
+
quantity?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VerifyCouponRequestProductsInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVerifyCouponRequestProductsInner(value: object): value is VerifyCouponRequestProductsInner {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function VerifyCouponRequestProductsInnerFromJSON(json: any): VerifyCouponRequestProductsInner {
|
|
44
|
+
return VerifyCouponRequestProductsInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function VerifyCouponRequestProductsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponRequestProductsInner {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
54
|
+
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function VerifyCouponRequestProductsInnerToJSON(json: any): VerifyCouponRequestProductsInner {
|
|
59
|
+
return VerifyCouponRequestProductsInnerToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function VerifyCouponRequestProductsInnerToJSONTyped(value?: VerifyCouponRequestProductsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'product_child_id': value['productChildId'],
|
|
70
|
+
'quantity': value['quantity'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VerifyCouponResource
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyCouponResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof VerifyCouponResource
|
|
26
|
+
*/
|
|
27
|
+
couponId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof VerifyCouponResource
|
|
32
|
+
*/
|
|
33
|
+
discountAmount: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VerifyCouponResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVerifyCouponResource(value: object): value is VerifyCouponResource {
|
|
40
|
+
if (!('couponId' in value) || value['couponId'] === undefined) return false;
|
|
41
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VerifyCouponResourceFromJSON(json: any): VerifyCouponResource {
|
|
46
|
+
return VerifyCouponResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VerifyCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'couponId': json['coupon_id'],
|
|
56
|
+
'discountAmount': json['discount_amount'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VerifyCouponResourceToJSON(json: any): VerifyCouponResource {
|
|
61
|
+
return VerifyCouponResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function VerifyCouponResourceToJSONTyped(value?: VerifyCouponResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'coupon_id': value['couponId'],
|
|
72
|
+
'discount_amount': value['discountAmount'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { VerifyCouponResource } from './VerifyCouponResource';
|
|
17
|
+
import {
|
|
18
|
+
VerifyCouponResourceFromJSON,
|
|
19
|
+
VerifyCouponResourceFromJSONTyped,
|
|
20
|
+
VerifyCouponResourceToJSON,
|
|
21
|
+
VerifyCouponResourceToJSONTyped,
|
|
22
|
+
} from './VerifyCouponResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface VerifyCouponResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface VerifyCouponResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<VerifyCouponResource>}
|
|
33
|
+
* @memberof VerifyCouponResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<VerifyCouponResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the VerifyCouponResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfVerifyCouponResourceArrayResponse(value: object): value is VerifyCouponResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VerifyCouponResourceArrayResponseFromJSON(json: any): VerifyCouponResourceArrayResponse {
|
|
46
|
+
return VerifyCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VerifyCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(VerifyCouponResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VerifyCouponResourceArrayResponseToJSON(json: any): VerifyCouponResourceArrayResponse {
|
|
60
|
+
return VerifyCouponResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VerifyCouponResourceArrayResponseToJSONTyped(value?: VerifyCouponResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(VerifyCouponResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -463,6 +463,10 @@ export * from './UpdateStoreRequest';
|
|
|
463
463
|
export * from './UpdateStoreRequestSpecialDatesInner';
|
|
464
464
|
export * from './UpdateSupplierRequest';
|
|
465
465
|
export * from './UpdateTagRequest';
|
|
466
|
+
export * from './VerifyCouponRequest';
|
|
467
|
+
export * from './VerifyCouponRequestProductsInner';
|
|
468
|
+
export * from './VerifyCouponResource';
|
|
469
|
+
export * from './VerifyCouponResourceArrayResponse';
|
|
466
470
|
export * from './WishlistCheckResource';
|
|
467
471
|
export * from './WishlistCheckResourceArrayResponse';
|
|
468
472
|
export * from './WishlistToggleResource';
|