@digital8/lighting-illusions-ts-sdk 0.0.1911 → 0.0.1913
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 +28 -0
- package/README.md +18 -2
- package/dist/apis/TransactionsApi.d.ts +64 -0
- package/dist/apis/TransactionsApi.js +257 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- package/dist/models/IndexTransactionRequest.d.ts +127 -0
- package/dist/models/IndexTransactionRequest.js +91 -0
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +30 -0
- package/dist/models/PaymentMethod.js +56 -0
- package/dist/models/PaymentSource.d.ts +26 -0
- package/dist/models/PaymentSource.js +52 -0
- package/dist/models/PaymentStatus.d.ts +25 -0
- package/dist/models/PaymentStatus.js +51 -0
- package/dist/models/RefundTransactionRequest.d.ts +38 -0
- package/dist/models/RefundTransactionRequest.js +53 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +6 -2
- 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 +6 -2
- package/dist/models/StoreTransactionRequest.d.ts +81 -0
- package/dist/models/StoreTransactionRequest.js +78 -0
- package/dist/models/TransactionListResource.d.ts +152 -0
- package/dist/models/TransactionListResource.js +109 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +152 -0
- package/dist/models/TransactionResource.js +109 -0
- package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionResourceArrayResponse.js +50 -0
- package/dist/models/TransactionType.d.ts +25 -0
- package/dist/models/TransactionType.js +51 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/docs/IndexTransactionRequest.md +60 -0
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/PaginatedTransactionResourceResponse.md +36 -0
- package/docs/PaymentMethod.md +32 -0
- package/docs/PaymentSource.md +32 -0
- package/docs/PaymentStatus.md +32 -0
- package/docs/RefundTransactionRequest.md +36 -0
- package/docs/StoreTransactionRequest.md +46 -0
- package/docs/TransactionListResource.md +74 -0
- package/docs/TransactionListResourceArrayResponse.md +34 -0
- package/docs/TransactionResource.md +74 -0
- package/docs/TransactionResourceArrayResponse.md +34 -0
- package/docs/TransactionType.md +32 -0
- package/docs/TransactionsApi.md +209 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +186 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +6 -4
- package/src/models/IndexTransactionRequest.ts +190 -0
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +58 -0
- package/src/models/PaymentSource.ts +54 -0
- package/src/models/PaymentStatus.ts +53 -0
- package/src/models/RefundTransactionRequest.ts +74 -0
- package/src/models/StoreFrontendResource.ts +6 -4
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreTransactionRequest.ts +131 -0
- package/src/models/TransactionListResource.ts +235 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +235 -0
- package/src/models/TransactionResourceArrayResponse.ts +73 -0
- package/src/models/TransactionType.ts +53 -0
- package/src/models/index.ts +13 -0
|
@@ -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
|
+
|
|
@@ -0,0 +1,235 @@
|
|
|
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 TransactionResource
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransactionResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof TransactionResource
|
|
32
|
+
*/
|
|
33
|
+
orderId?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TransactionResource
|
|
38
|
+
*/
|
|
39
|
+
cartId?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof TransactionResource
|
|
44
|
+
*/
|
|
45
|
+
adminId?: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TransactionResource
|
|
50
|
+
*/
|
|
51
|
+
paymentSource: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof TransactionResource
|
|
56
|
+
*/
|
|
57
|
+
paymentMethod: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof TransactionResource
|
|
62
|
+
*/
|
|
63
|
+
type: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof TransactionResource
|
|
68
|
+
*/
|
|
69
|
+
status: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof TransactionResource
|
|
74
|
+
*/
|
|
75
|
+
amount: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof TransactionResource
|
|
80
|
+
*/
|
|
81
|
+
surcharge: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof TransactionResource
|
|
86
|
+
*/
|
|
87
|
+
totalAmount: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof TransactionResource
|
|
92
|
+
*/
|
|
93
|
+
refundedAmount: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof TransactionResource
|
|
98
|
+
*/
|
|
99
|
+
unrefundedAmount: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof TransactionResource
|
|
104
|
+
*/
|
|
105
|
+
reference: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof TransactionResource
|
|
110
|
+
*/
|
|
111
|
+
description?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof TransactionResource
|
|
116
|
+
*/
|
|
117
|
+
extendedData?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof TransactionResource
|
|
122
|
+
*/
|
|
123
|
+
riskScore?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof TransactionResource
|
|
128
|
+
*/
|
|
129
|
+
fraudDecision?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof TransactionResource
|
|
134
|
+
*/
|
|
135
|
+
refundedTransactionId?: number | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {Date}
|
|
139
|
+
* @memberof TransactionResource
|
|
140
|
+
*/
|
|
141
|
+
createdAt?: Date | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {Date}
|
|
145
|
+
* @memberof TransactionResource
|
|
146
|
+
*/
|
|
147
|
+
updatedAt?: Date | null;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Check if a given object implements the TransactionResource interface.
|
|
152
|
+
*/
|
|
153
|
+
export function instanceOfTransactionResource(value: object): value is TransactionResource {
|
|
154
|
+
if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
|
|
155
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
156
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
157
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
158
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
159
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
|
|
160
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
161
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
|
|
162
|
+
if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined) return false;
|
|
163
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
164
|
+
return true;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function TransactionResourceFromJSON(json: any): TransactionResource {
|
|
168
|
+
return TransactionResourceFromJSONTyped(json, false);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResource {
|
|
172
|
+
if (json == null) {
|
|
173
|
+
return json;
|
|
174
|
+
}
|
|
175
|
+
return {
|
|
176
|
+
|
|
177
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
178
|
+
'orderId': json['order_id'] == null ? undefined : json['order_id'],
|
|
179
|
+
'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
|
|
180
|
+
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
181
|
+
'paymentSource': json['payment_source'],
|
|
182
|
+
'paymentMethod': json['payment_method'],
|
|
183
|
+
'type': json['type'],
|
|
184
|
+
'status': json['status'],
|
|
185
|
+
'amount': json['amount'],
|
|
186
|
+
'surcharge': json['surcharge'],
|
|
187
|
+
'totalAmount': json['total_amount'],
|
|
188
|
+
'refundedAmount': json['refunded_amount'],
|
|
189
|
+
'unrefundedAmount': json['unrefunded_amount'],
|
|
190
|
+
'reference': json['reference'],
|
|
191
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
192
|
+
'extendedData': json['extended_data'] == null ? undefined : json['extended_data'],
|
|
193
|
+
'riskScore': json['risk_score'] == null ? undefined : json['risk_score'],
|
|
194
|
+
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
195
|
+
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
196
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
197
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function TransactionResourceToJSON(json: any): TransactionResource {
|
|
202
|
+
return TransactionResourceToJSONTyped(json, false);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export function TransactionResourceToJSONTyped(value?: TransactionResource | null, ignoreDiscriminator: boolean = false): any {
|
|
206
|
+
if (value == null) {
|
|
207
|
+
return value;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return {
|
|
211
|
+
|
|
212
|
+
'id': value['id'],
|
|
213
|
+
'order_id': value['orderId'],
|
|
214
|
+
'cart_id': value['cartId'],
|
|
215
|
+
'admin_id': value['adminId'],
|
|
216
|
+
'payment_source': value['paymentSource'],
|
|
217
|
+
'payment_method': value['paymentMethod'],
|
|
218
|
+
'type': value['type'],
|
|
219
|
+
'status': value['status'],
|
|
220
|
+
'amount': value['amount'],
|
|
221
|
+
'surcharge': value['surcharge'],
|
|
222
|
+
'total_amount': value['totalAmount'],
|
|
223
|
+
'refunded_amount': value['refundedAmount'],
|
|
224
|
+
'unrefunded_amount': value['unrefundedAmount'],
|
|
225
|
+
'reference': value['reference'],
|
|
226
|
+
'description': value['description'],
|
|
227
|
+
'extended_data': value['extendedData'],
|
|
228
|
+
'risk_score': value['riskScore'],
|
|
229
|
+
'fraud_decision': value['fraudDecision'],
|
|
230
|
+
'refunded_transaction_id': value['refundedTransactionId'],
|
|
231
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
232
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
@@ -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 { TransactionResource } from './TransactionResource';
|
|
17
|
+
import {
|
|
18
|
+
TransactionResourceFromJSON,
|
|
19
|
+
TransactionResourceFromJSONTyped,
|
|
20
|
+
TransactionResourceToJSON,
|
|
21
|
+
TransactionResourceToJSONTyped,
|
|
22
|
+
} from './TransactionResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface TransactionResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface TransactionResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<TransactionResource>}
|
|
33
|
+
* @memberof TransactionResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<TransactionResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the TransactionResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfTransactionResourceArrayResponse(value: object): value is TransactionResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TransactionResourceArrayResponseFromJSON(json: any): TransactionResourceArrayResponse {
|
|
46
|
+
return TransactionResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TransactionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function TransactionResourceArrayResponseToJSON(json: any): TransactionResourceArrayResponse {
|
|
60
|
+
return TransactionResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function TransactionResourceArrayResponseToJSONTyped(value?: TransactionResourceArrayResponse | 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(TransactionResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const TransactionType = {
|
|
21
|
+
Transaction: 'transaction',
|
|
22
|
+
Refund: 'refund'
|
|
23
|
+
} as const;
|
|
24
|
+
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfTransactionType(value: any): boolean {
|
|
28
|
+
for (const key in TransactionType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(TransactionType, key)) {
|
|
30
|
+
if (TransactionType[key as keyof typeof TransactionType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TransactionTypeFromJSON(json: any): TransactionType {
|
|
39
|
+
return TransactionTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TransactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionType {
|
|
43
|
+
return json as TransactionType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function TransactionTypeToJSON(value?: TransactionType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function TransactionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionType {
|
|
51
|
+
return value as TransactionType;
|
|
52
|
+
}
|
|
53
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -158,6 +158,7 @@ export * from './IndexSiteRequest';
|
|
|
158
158
|
export * from './IndexStoreRequest';
|
|
159
159
|
export * from './IndexSupplierRequest';
|
|
160
160
|
export * from './IndexTagRequest';
|
|
161
|
+
export * from './IndexTransactionRequest';
|
|
161
162
|
export * from './LabelListResource';
|
|
162
163
|
export * from './LabelListResourceArrayResponse';
|
|
163
164
|
export * from './LabelLiteResource';
|
|
@@ -263,7 +264,12 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
263
264
|
export * from './PaginatedTagListResourceResponse';
|
|
264
265
|
export * from './PaginatedTagLiteResourceResponse';
|
|
265
266
|
export * from './PaginatedTagResourceResponse';
|
|
267
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
268
|
+
export * from './PaginatedTransactionResourceResponse';
|
|
266
269
|
export * from './PagingMetadata';
|
|
270
|
+
export * from './PaymentMethod';
|
|
271
|
+
export * from './PaymentSource';
|
|
272
|
+
export * from './PaymentStatus';
|
|
267
273
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
268
274
|
export * from './PreviewAutomationRulesResource';
|
|
269
275
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
@@ -363,6 +369,7 @@ export * from './RedirectFrontendResource';
|
|
|
363
369
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
364
370
|
export * from './RedirectListResource';
|
|
365
371
|
export * from './RedirectListResourceArrayResponse';
|
|
372
|
+
export * from './RefundTransactionRequest';
|
|
366
373
|
export * from './SEOResource';
|
|
367
374
|
export * from './SEOResourceArrayResponse';
|
|
368
375
|
export * from './SearchLinkablesMenuItemRequest';
|
|
@@ -433,6 +440,7 @@ export * from './StoreStoreRequestSpecialDatesInner';
|
|
|
433
440
|
export * from './StoreStoreSpecialDateRequest';
|
|
434
441
|
export * from './StoreSupplierRequest';
|
|
435
442
|
export * from './StoreTagRequest';
|
|
443
|
+
export * from './StoreTransactionRequest';
|
|
436
444
|
export * from './SupplierFrontendResource';
|
|
437
445
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
438
446
|
export * from './SupplierListResource';
|
|
@@ -450,6 +458,11 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
450
458
|
export * from './TagResource';
|
|
451
459
|
export * from './TagResourceArrayResponse';
|
|
452
460
|
export * from './TagType';
|
|
461
|
+
export * from './TransactionListResource';
|
|
462
|
+
export * from './TransactionListResourceArrayResponse';
|
|
463
|
+
export * from './TransactionResource';
|
|
464
|
+
export * from './TransactionResourceArrayResponse';
|
|
465
|
+
export * from './TransactionType';
|
|
453
466
|
export * from './UpdateAssetForAssetableRequest';
|
|
454
467
|
export * from './UpdateAttributeRequest';
|
|
455
468
|
export * from './UpdateAttributeValueRequest';
|