@digital8/lighting-illusions-ts-sdk 0.0.2024 → 0.0.2026
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 +6 -14
- package/README.md +5 -9
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressResource.d.ts +8 -2
- package/dist/models/AddressResource.js +4 -6
- package/dist/models/AdminNoteResource.d.ts +0 -12
- package/dist/models/AdminNoteResource.js +0 -8
- package/dist/models/AdminOrderResource.d.ts +3 -3
- package/dist/models/AdminOrderResource.js +3 -3
- package/dist/models/CartResource.d.ts +3 -3
- package/dist/models/CartResource.js +3 -3
- package/dist/models/CustomerListResource.d.ts +0 -7
- package/dist/models/CustomerListResource.js +0 -5
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/ProductChildLineItemLiteResource.d.ts +0 -18
- package/dist/models/ProductChildLineItemLiteResource.js +0 -12
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/TransactionListResource.d.ts +80 -0
- package/dist/models/TransactionListResource.js +81 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionLiteResource.d.ts +6 -0
- package/dist/models/TransactionLiteResource.js +2 -0
- package/dist/models/index.d.ts +3 -7
- package/dist/models/index.js +3 -7
- package/docs/AddressResource.md +2 -0
- package/docs/AdminNoteResource.md +0 -4
- package/docs/AdminOrderResource.md +1 -1
- package/docs/CartResource.md +1 -1
- package/docs/CustomerListResource.md +0 -2
- package/docs/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionListResourceResponse.md} +7 -5
- package/docs/ProductChildLineItemLiteResource.md +0 -6
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/TransactionListResource.md +50 -0
- package/docs/{CartCouponLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
- package/docs/TransactionLiteResource.md +2 -0
- package/docs/TransactionsApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressResource.ts +12 -6
- package/src/models/AdminNoteResource.ts +0 -18
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/CartResource.ts +11 -11
- package/src/models/CustomerListResource.ts +0 -16
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/ProductChildLineItemLiteResource.ts +0 -27
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/TransactionListResource.ts +137 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionLiteResource.ts +8 -0
- package/src/models/index.ts +3 -7
- package/dist/models/CartCouponLiteResource.d.ts +0 -56
- package/dist/models/CartCouponLiteResource.js +0 -67
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResource.d.ts +0 -138
- package/dist/models/FrontendCartResource.js +0 -119
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +0 -56
- package/dist/models/FrontendCartResourceCouponsInner.js +0 -57
- package/dist/models/FrontendLineItemResource.d.ts +0 -81
- package/dist/models/FrontendLineItemResource.js +0 -82
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
- package/docs/CartCouponLiteResource.md +0 -42
- package/docs/FrontendCartResource.md +0 -68
- package/docs/FrontendCartResourceArrayResponse.md +0 -34
- package/docs/FrontendCartResourceCouponsInner.md +0 -42
- package/docs/FrontendLineItemResource.md +0 -50
- package/src/models/CartCouponLiteResource.ts +0 -102
- package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResource.ts +0 -246
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResourceCouponsInner.ts +0 -97
- package/src/models/FrontendLineItemResource.ts +0 -145
- package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
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 StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
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,137 @@
|
|
|
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 TransactionListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransactionListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TransactionListResource
|
|
32
|
+
*/
|
|
33
|
+
paymentSource: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TransactionListResource
|
|
38
|
+
*/
|
|
39
|
+
paymentMethod: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TransactionListResource
|
|
44
|
+
*/
|
|
45
|
+
type: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TransactionListResource
|
|
50
|
+
*/
|
|
51
|
+
status: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof TransactionListResource
|
|
56
|
+
*/
|
|
57
|
+
totalAmount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof TransactionListResource
|
|
62
|
+
*/
|
|
63
|
+
refundedAmount: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof TransactionListResource
|
|
68
|
+
*/
|
|
69
|
+
reference: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof TransactionListResource
|
|
74
|
+
*/
|
|
75
|
+
createdAt?: Date | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
|
|
82
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
83
|
+
if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
|
|
84
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
85
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
86
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
87
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
88
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
|
|
89
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function TransactionListResourceFromJSON(json: any): TransactionListResource {
|
|
94
|
+
return TransactionListResourceFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': json['id'],
|
|
104
|
+
'paymentSource': json['paymentSource'],
|
|
105
|
+
'paymentMethod': json['paymentMethod'],
|
|
106
|
+
'type': json['type'],
|
|
107
|
+
'status': json['status'],
|
|
108
|
+
'totalAmount': json['totalAmount'],
|
|
109
|
+
'refundedAmount': json['refundedAmount'],
|
|
110
|
+
'reference': json['reference'],
|
|
111
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function TransactionListResourceToJSON(json: any): TransactionListResource {
|
|
116
|
+
return TransactionListResourceToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': value['id'],
|
|
127
|
+
'paymentSource': value['paymentSource'],
|
|
128
|
+
'paymentMethod': value['paymentMethod'],
|
|
129
|
+
'type': value['type'],
|
|
130
|
+
'status': value['status'],
|
|
131
|
+
'totalAmount': value['totalAmount'],
|
|
132
|
+
'refundedAmount': value['refundedAmount'],
|
|
133
|
+
'reference': value['reference'],
|
|
134
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -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 { TransactionListResource } from './TransactionListResource';
|
|
17
|
+
import {
|
|
18
|
+
TransactionListResourceFromJSON,
|
|
19
|
+
TransactionListResourceFromJSONTyped,
|
|
20
|
+
TransactionListResourceToJSON,
|
|
21
|
+
TransactionListResourceToJSONTyped,
|
|
22
|
+
} from './TransactionListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface TransactionListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface TransactionListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<TransactionListResource>}
|
|
33
|
+
* @memberof TransactionListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<TransactionListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse {
|
|
46
|
+
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse {
|
|
60
|
+
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | 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(TransactionListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface TransactionLiteResource
|
|
20
20
|
*/
|
|
21
21
|
export interface TransactionLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransactionLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -107,6 +113,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
107
113
|
}
|
|
108
114
|
return {
|
|
109
115
|
|
|
116
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
110
117
|
'paymentSource': json['paymentSource'],
|
|
111
118
|
'paymentMethod': json['paymentMethod'],
|
|
112
119
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
@@ -131,6 +138,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
131
138
|
|
|
132
139
|
return {
|
|
133
140
|
|
|
141
|
+
'id': value['id'],
|
|
134
142
|
'paymentSource': value['paymentSource'],
|
|
135
143
|
'paymentMethod': value['paymentMethod'],
|
|
136
144
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
package/src/models/index.ts
CHANGED
|
@@ -61,8 +61,6 @@ export * from './BlogFrontendResource';
|
|
|
61
61
|
export * from './BlogFrontendResourceArrayResponse';
|
|
62
62
|
export * from './BlogResource';
|
|
63
63
|
export * from './BlogResourceArrayResponse';
|
|
64
|
-
export * from './CartCouponLiteResource';
|
|
65
|
-
export * from './CartCouponLiteResourceArrayResponse';
|
|
66
64
|
export * from './CartCouponResource';
|
|
67
65
|
export * from './CartCouponResourceArrayResponse';
|
|
68
66
|
export * from './CartListResource';
|
|
@@ -169,15 +167,10 @@ export * from './ExternalApiLogResource';
|
|
|
169
167
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
170
168
|
export * from './ExternalApiProvider';
|
|
171
169
|
export * from './ExternalApiSyncStatus';
|
|
172
|
-
export * from './FrontendCartResource';
|
|
173
|
-
export * from './FrontendCartResourceArrayResponse';
|
|
174
|
-
export * from './FrontendCartResourceCouponsInner';
|
|
175
170
|
export * from './FrontendComponentLiteResource';
|
|
176
171
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
177
172
|
export * from './FrontendComponentResource';
|
|
178
173
|
export * from './FrontendComponentResourceArrayResponse';
|
|
179
|
-
export * from './FrontendLineItemResource';
|
|
180
|
-
export * from './FrontendLineItemResourceArrayResponse';
|
|
181
174
|
export * from './GenericResponse';
|
|
182
175
|
export * from './GetUniqueEndpointsRequest';
|
|
183
176
|
export * from './GlobalSearchCategoryResource';
|
|
@@ -336,6 +329,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
336
329
|
export * from './PaginatedTagListResourceResponse';
|
|
337
330
|
export * from './PaginatedTagLiteResourceResponse';
|
|
338
331
|
export * from './PaginatedTagResourceResponse';
|
|
332
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
339
333
|
export * from './PaginatedTransactionResourceResponse';
|
|
340
334
|
export * from './PagingMetadata';
|
|
341
335
|
export * from './PaymentMethod';
|
|
@@ -571,6 +565,8 @@ export * from './TagResource';
|
|
|
571
565
|
export * from './TagResourceArrayResponse';
|
|
572
566
|
export * from './TagType';
|
|
573
567
|
export * from './Thumbnail';
|
|
568
|
+
export * from './TransactionListResource';
|
|
569
|
+
export * from './TransactionListResourceArrayResponse';
|
|
574
570
|
export * from './TransactionLiteResource';
|
|
575
571
|
export * from './TransactionLiteResourceArrayResponse';
|
|
576
572
|
export * from './TransactionResource';
|
|
@@ -1,56 +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 CartCouponLiteResource
|
|
16
|
-
*/
|
|
17
|
-
export interface CartCouponLiteResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CartCouponLiteResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CartCouponLiteResource
|
|
28
|
-
*/
|
|
29
|
-
code: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CartCouponLiteResource
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof CartCouponLiteResource
|
|
40
|
-
*/
|
|
41
|
-
discount: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CartCouponLiteResource
|
|
46
|
-
*/
|
|
47
|
-
appliesTo: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the CartCouponLiteResource interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfCartCouponLiteResource(value: object): value is CartCouponLiteResource;
|
|
53
|
-
export declare function CartCouponLiteResourceFromJSON(json: any): CartCouponLiteResource;
|
|
54
|
-
export declare function CartCouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResource;
|
|
55
|
-
export declare function CartCouponLiteResourceToJSON(json: any): CartCouponLiteResource;
|
|
56
|
-
export declare function CartCouponLiteResourceToJSONTyped(value?: CartCouponLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,67 +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.instanceOfCartCouponLiteResource = instanceOfCartCouponLiteResource;
|
|
17
|
-
exports.CartCouponLiteResourceFromJSON = CartCouponLiteResourceFromJSON;
|
|
18
|
-
exports.CartCouponLiteResourceFromJSONTyped = CartCouponLiteResourceFromJSONTyped;
|
|
19
|
-
exports.CartCouponLiteResourceToJSON = CartCouponLiteResourceToJSON;
|
|
20
|
-
exports.CartCouponLiteResourceToJSONTyped = CartCouponLiteResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the CartCouponLiteResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfCartCouponLiteResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('discount' in value) || value['discount'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('appliesTo' in value) || value['appliesTo'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
function CartCouponLiteResourceFromJSON(json) {
|
|
38
|
-
return CartCouponLiteResourceFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
function CartCouponLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if (json == null) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'id': json['id'],
|
|
46
|
-
'code': json['code'],
|
|
47
|
-
'name': json['name'],
|
|
48
|
-
'discount': json['discount'],
|
|
49
|
-
'appliesTo': json['appliesTo'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function CartCouponLiteResourceToJSON(json) {
|
|
53
|
-
return CartCouponLiteResourceToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
function CartCouponLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
'id': value['id'],
|
|
62
|
-
'code': value['code'],
|
|
63
|
-
'name': value['name'],
|
|
64
|
-
'discount': value['discount'],
|
|
65
|
-
'appliesTo': value['appliesTo'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -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 { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CartCouponLiteResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface CartCouponLiteResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<CartCouponLiteResource>}
|
|
22
|
-
* @memberof CartCouponLiteResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<CartCouponLiteResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCartCouponLiteResourceArrayResponse(value: object): value is CartCouponLiteResourceArrayResponse;
|
|
30
|
-
export declare function CartCouponLiteResourceArrayResponseFromJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
31
|
-
export declare function CartCouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResourceArrayResponse;
|
|
32
|
-
export declare function CartCouponLiteResourceArrayResponseToJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
33
|
-
export declare function CartCouponLiteResourceArrayResponseToJSONTyped(value?: CartCouponLiteResourceArrayResponse | 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.instanceOfCartCouponLiteResourceArrayResponse = instanceOfCartCouponLiteResourceArrayResponse;
|
|
17
|
-
exports.CartCouponLiteResourceArrayResponseFromJSON = CartCouponLiteResourceArrayResponseFromJSON;
|
|
18
|
-
exports.CartCouponLiteResourceArrayResponseFromJSONTyped = CartCouponLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.CartCouponLiteResourceArrayResponseToJSON = CartCouponLiteResourceArrayResponseToJSON;
|
|
20
|
-
exports.CartCouponLiteResourceArrayResponseToJSONTyped = CartCouponLiteResourceArrayResponseToJSONTyped;
|
|
21
|
-
var CartCouponLiteResource_1 = require("./CartCouponLiteResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCartCouponLiteResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function CartCouponLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return CartCouponLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function CartCouponLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(CartCouponLiteResource_1.CartCouponLiteResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function CartCouponLiteResourceArrayResponseToJSON(json) {
|
|
40
|
-
return CartCouponLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function CartCouponLiteResourceArrayResponseToJSONTyped(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(CartCouponLiteResource_1.CartCouponLiteResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,138 +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 { FrontendLineItemResource } from './FrontendLineItemResource';
|
|
13
|
-
import type { CustomerListResource } from './CustomerListResource';
|
|
14
|
-
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
15
|
-
import type { AddressResource } from './AddressResource';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface FrontendCartResource
|
|
20
|
-
*/
|
|
21
|
-
export interface FrontendCartResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof FrontendCartResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof FrontendCartResource
|
|
32
|
-
*/
|
|
33
|
-
lifecycleStatus: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof FrontendCartResource
|
|
38
|
-
*/
|
|
39
|
-
siteId: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof FrontendCartResource
|
|
44
|
-
*/
|
|
45
|
-
sessionToken?: string | null;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {CustomerListResource}
|
|
49
|
-
* @memberof FrontendCartResource
|
|
50
|
-
*/
|
|
51
|
-
customer: CustomerListResource | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof FrontendCartResource
|
|
56
|
-
*/
|
|
57
|
-
shippingType: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {AddressResource}
|
|
61
|
-
* @memberof FrontendCartResource
|
|
62
|
-
*/
|
|
63
|
-
shippingAddress: AddressResource | null;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {AddressResource}
|
|
67
|
-
* @memberof FrontendCartResource
|
|
68
|
-
*/
|
|
69
|
-
billingAddress: AddressResource | null;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Array<FrontendLineItemResource>}
|
|
73
|
-
* @memberof FrontendCartResource
|
|
74
|
-
*/
|
|
75
|
-
lineItems: Array<FrontendLineItemResource> | null;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Array<FrontendCartResourceCouponsInner>}
|
|
79
|
-
* @memberof FrontendCartResource
|
|
80
|
-
*/
|
|
81
|
-
coupons: Array<FrontendCartResourceCouponsInner>;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof FrontendCartResource
|
|
86
|
-
*/
|
|
87
|
-
subtotal: number;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof FrontendCartResource
|
|
92
|
-
*/
|
|
93
|
-
promotionalDiscount: number;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof FrontendCartResource
|
|
98
|
-
*/
|
|
99
|
-
couponSubtotalDiscount: number;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {number}
|
|
103
|
-
* @memberof FrontendCartResource
|
|
104
|
-
*/
|
|
105
|
-
couponShippingDiscount: number;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {number}
|
|
109
|
-
* @memberof FrontendCartResource
|
|
110
|
-
*/
|
|
111
|
-
shipping: number;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {number}
|
|
115
|
-
* @memberof FrontendCartResource
|
|
116
|
-
*/
|
|
117
|
-
transitInsurance: number;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {number}
|
|
121
|
-
* @memberof FrontendCartResource
|
|
122
|
-
*/
|
|
123
|
-
gst: number;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {number}
|
|
127
|
-
* @memberof FrontendCartResource
|
|
128
|
-
*/
|
|
129
|
-
grandTotal: number;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Check if a given object implements the FrontendCartResource interface.
|
|
133
|
-
*/
|
|
134
|
-
export declare function instanceOfFrontendCartResource(value: object): value is FrontendCartResource;
|
|
135
|
-
export declare function FrontendCartResourceFromJSON(json: any): FrontendCartResource;
|
|
136
|
-
export declare function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResource;
|
|
137
|
-
export declare function FrontendCartResourceToJSON(json: any): FrontendCartResource;
|
|
138
|
-
export declare function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | null, ignoreDiscriminator?: boolean): any;
|