@tillhub/javascript-sdk 4.82.0 → 4.83.0
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/CHANGELOG.md +7 -0
- package/dist/types/v2/orders.d.ts +140 -191
- package/dist/types/v3/transactions.d.ts +183 -244
- package/dist/v2/orders.js.map +1 -1
- package/dist/v3/transactions.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [4.83.0](https://github.com/tillhub/tillhub-sdk-javascript/compare/v4.82.0...v4.83.0) (2023-08-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **order:** refactor orders and transactions ([3d99a99](https://github.com/tillhub/tillhub-sdk-javascript/commit/3d99a99cf7ab64602b8673c690f839a14619f8d0))
|
|
7
|
+
|
|
1
8
|
# [4.82.0](https://github.com/tillhub/tillhub-sdk-javascript/compare/v4.81.0...v4.82.0) (2023-08-07)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -2,17 +2,25 @@ import { Client } from '../client';
|
|
|
2
2
|
import { BaseError } from '../errors';
|
|
3
3
|
import { UriHelper } from '../uri-helper';
|
|
4
4
|
import { ThBaseHandler } from '../base';
|
|
5
|
+
import { TransactionEntity } from '../v3/transactions';
|
|
6
|
+
declare type RecurringFormatType = 'scheduled' | 'unscheduled' | 'oneclick';
|
|
7
|
+
declare type PaymentType = 'unzer' | 'external';
|
|
8
|
+
declare type OrderType = 'refundable' | 'capturable' | 'cancelable';
|
|
9
|
+
declare type OrderStatus = 'completed';
|
|
10
|
+
declare type Currency = 'EUR';
|
|
11
|
+
declare type PaymentMethod = 'card';
|
|
12
|
+
declare type BasketItemStatus = 'collected';
|
|
5
13
|
export interface OrdersOptions {
|
|
6
14
|
user?: string;
|
|
7
15
|
base?: string;
|
|
8
16
|
}
|
|
9
17
|
export interface OrdersResponse {
|
|
10
|
-
data:
|
|
18
|
+
data: OrderEntity[];
|
|
11
19
|
metadata: Record<string, unknown>;
|
|
12
20
|
next?: () => Promise<OrdersResponse>;
|
|
13
21
|
}
|
|
14
22
|
export interface OrderResponse {
|
|
15
|
-
data:
|
|
23
|
+
data: OrderEntity;
|
|
16
24
|
metadata: Record<string, unknown>;
|
|
17
25
|
msg?: string;
|
|
18
26
|
errors?: ErrorObject[];
|
|
@@ -28,24 +36,21 @@ export interface OrdersQuery {
|
|
|
28
36
|
query?: {
|
|
29
37
|
orderId?: string;
|
|
30
38
|
amount?: string;
|
|
31
|
-
currency?:
|
|
32
|
-
paymentMethod?:
|
|
39
|
+
currency?: Currency;
|
|
40
|
+
paymentMethod?: PaymentMethod;
|
|
33
41
|
brand?: string;
|
|
34
42
|
status?: string;
|
|
35
43
|
txnNumber?: string;
|
|
36
44
|
customerName?: string;
|
|
37
45
|
email?: string;
|
|
38
46
|
customerId?: string;
|
|
39
|
-
customerBirthdate?:
|
|
40
|
-
usage?: string;
|
|
47
|
+
customerBirthdate?: Date;
|
|
41
48
|
receiptNumber?: string;
|
|
42
|
-
|
|
43
|
-
registerId?: string;
|
|
49
|
+
staffId?: string;
|
|
44
50
|
location?: string;
|
|
45
|
-
recurring?:
|
|
51
|
+
recurring?: RecurringFormatType;
|
|
46
52
|
paymentId?: string;
|
|
47
53
|
cardNumber?: number;
|
|
48
|
-
account?: string;
|
|
49
54
|
bankName?: string;
|
|
50
55
|
bic?: string;
|
|
51
56
|
insuranceName?: string;
|
|
@@ -58,244 +63,188 @@ export interface OrdersQuery {
|
|
|
58
63
|
basketItemName?: string;
|
|
59
64
|
basketItemType?: string;
|
|
60
65
|
transactionShortId?: string;
|
|
61
|
-
|
|
66
|
+
transactionId?: string;
|
|
62
67
|
terminalId?: string;
|
|
63
68
|
cutoverId?: string;
|
|
64
|
-
cutoverDate?:
|
|
69
|
+
cutoverDate?: Date;
|
|
65
70
|
disputeId?: string;
|
|
66
71
|
disputeType?: string;
|
|
67
72
|
disputeStatus?: string;
|
|
68
73
|
invoiceId?: string;
|
|
74
|
+
q?: string;
|
|
69
75
|
};
|
|
70
76
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
export interface OrderDetails {
|
|
75
|
-
orderMeta?: Order;
|
|
76
|
-
payment?: Payment[] | null;
|
|
77
|
-
basket?: Basket | null;
|
|
78
|
-
customer?: Customer | null;
|
|
79
|
-
transactions?: Transaction[] | null;
|
|
80
|
-
instoreInfo?: StoreInfo[] | null;
|
|
81
|
-
attachments?: Attachment[] | null;
|
|
82
|
-
disputes?: Dispute[] | null;
|
|
83
|
-
}
|
|
84
|
-
export interface Order {
|
|
85
|
-
id?: string;
|
|
86
|
-
orderStatus?: string;
|
|
77
|
+
export interface OrderEntity {
|
|
78
|
+
status?: OrderStatus | null;
|
|
79
|
+
orderId?: string | null;
|
|
87
80
|
totalAmount?: number | null;
|
|
88
|
-
currency?:
|
|
81
|
+
currency?: Currency | null;
|
|
89
82
|
salesChannel?: string | null;
|
|
90
|
-
|
|
83
|
+
origin?: string | null;
|
|
91
84
|
recurring?: RecurringFormatType | null;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
receiptNumber?: number | null;
|
|
102
|
-
staff?: string | null;
|
|
103
|
-
registerId?: string | null;
|
|
104
|
-
entity?: string | null;
|
|
105
|
-
paymentId?: string | null;
|
|
106
|
-
cardNumber?: string | null;
|
|
107
|
-
accountNumber?: string | null;
|
|
108
|
-
bankName?: string | null;
|
|
109
|
-
bic?: string | null;
|
|
110
|
-
insuranceName?: string | null;
|
|
111
|
-
insuranceId?: string | null;
|
|
112
|
-
cashierNumber?: string | null;
|
|
113
|
-
balanceNumber?: number | null;
|
|
114
|
-
basketId?: number | null;
|
|
115
|
-
terminalId?: string | null;
|
|
116
|
-
cutoverId?: string | null;
|
|
117
|
-
cutoverDate?: string | null;
|
|
85
|
+
type?: OrderType | null;
|
|
86
|
+
transactions?: TransactionEntity[] | null;
|
|
87
|
+
payments?: PaymentEntity[] | null;
|
|
88
|
+
customer?: CustomerEntity | null;
|
|
89
|
+
instores?: InStoreEntity[] | null;
|
|
90
|
+
basket?: BasketEntity | null;
|
|
91
|
+
disputes?: DisputeEntity[] | null;
|
|
92
|
+
createdAt?: Date | null;
|
|
93
|
+
updatedAt?: Date | null;
|
|
118
94
|
}
|
|
119
|
-
export interface
|
|
120
|
-
|
|
121
|
-
paymentMethod?:
|
|
95
|
+
export interface PaymentEntity {
|
|
96
|
+
paymentId?: string;
|
|
97
|
+
paymentMethod?: PaymentMethod | null;
|
|
122
98
|
brand?: string | null;
|
|
123
99
|
description?: string | null;
|
|
124
|
-
|
|
125
|
-
insurance?:
|
|
100
|
+
card?: CardEntity | null;
|
|
101
|
+
insurance?: InsuranceEntity | null;
|
|
126
102
|
cashierNumber?: string | null;
|
|
127
103
|
balanceNumber?: number | null;
|
|
128
|
-
|
|
129
|
-
|
|
104
|
+
location?: string | null;
|
|
105
|
+
type?: PaymentType | null;
|
|
106
|
+
order?: OrderEntity | null;
|
|
130
107
|
}
|
|
131
|
-
export interface
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
clearingDate?:
|
|
136
|
-
|
|
137
|
-
|
|
108
|
+
export interface CardEntity {
|
|
109
|
+
cardNumber?: string | null;
|
|
110
|
+
expiryDate?: Date | null;
|
|
111
|
+
cardHolder?: string | null;
|
|
112
|
+
clearingDate?: Date | null;
|
|
113
|
+
descriptor?: string | null;
|
|
114
|
+
bankName?: string | null;
|
|
138
115
|
bic?: string | null;
|
|
139
116
|
}
|
|
140
|
-
export interface
|
|
141
|
-
id?: string;
|
|
117
|
+
export interface InsuranceEntity {
|
|
142
118
|
provider?: string | null;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
119
|
+
insuranceId?: string;
|
|
120
|
+
finalizeDate?: Date | null;
|
|
121
|
+
effectiveInterestRate?: number | null;
|
|
122
|
+
numberInstallments?: number | null;
|
|
146
123
|
}
|
|
147
|
-
export interface
|
|
148
|
-
|
|
149
|
-
|
|
124
|
+
export interface BasketEntity {
|
|
125
|
+
basketId?: string;
|
|
126
|
+
totalGrossValue?: number | null;
|
|
150
127
|
currency?: string | null;
|
|
151
|
-
items?:
|
|
128
|
+
items?: BasketItemEntity[] | null;
|
|
129
|
+
order?: OrderEntity | null;
|
|
152
130
|
}
|
|
153
|
-
export interface
|
|
154
|
-
|
|
155
|
-
status?:
|
|
131
|
+
export interface BasketItemEntity {
|
|
132
|
+
itemId?: string;
|
|
133
|
+
status?: BasketItemStatus | null;
|
|
156
134
|
quantity?: number | null;
|
|
157
|
-
|
|
135
|
+
vatPercentage?: number | null;
|
|
158
136
|
name?: string | null;
|
|
159
137
|
type?: string | null;
|
|
160
|
-
|
|
161
|
-
|
|
138
|
+
descriptor?: string | null;
|
|
139
|
+
unit?: string | null;
|
|
162
140
|
imageUrl?: string | null;
|
|
163
141
|
amountPerUnit?: number | null;
|
|
164
|
-
|
|
142
|
+
unitNumber?: number | null;
|
|
165
143
|
totalAmount?: number | null;
|
|
166
144
|
discount?: number | null;
|
|
167
|
-
|
|
145
|
+
shippingAddress?: AddressEntity | null;
|
|
146
|
+
basket?: BasketEntity | null;
|
|
168
147
|
}
|
|
169
|
-
export interface
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
lastName?: string | null;
|
|
148
|
+
export interface CustomerEntity {
|
|
149
|
+
address: AddressEntity | null;
|
|
150
|
+
birthDate?: Date | null;
|
|
151
|
+
businessCompany?: BusinessCompanyEntity | null;
|
|
174
152
|
company?: string | null;
|
|
153
|
+
country?: string | null;
|
|
154
|
+
customerId?: string;
|
|
155
|
+
displayName?: string | null;
|
|
175
156
|
email?: string | null;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
157
|
+
firstName?: string | null;
|
|
158
|
+
ip?: string | null;
|
|
159
|
+
ipCountry?: string | null;
|
|
179
160
|
language?: string | null;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
161
|
+
lastName?: string | null;
|
|
162
|
+
mobile?: string | null;
|
|
163
|
+
optIn?: boolean | null;
|
|
164
|
+
optIn2?: boolean | null;
|
|
165
|
+
phone?: string | null;
|
|
166
|
+
salutation?: string | null;
|
|
167
|
+
shippingAddress: AddressEntity[] | null;
|
|
168
|
+
shippingNameFirstName?: string | null;
|
|
169
|
+
shippingNameLastName?: string | null;
|
|
170
|
+
shippingNameTitle?: string | null;
|
|
171
|
+
shippingNameCompany?: string | null;
|
|
172
|
+
shippingNameSalutation?: string | null;
|
|
173
|
+
shippingNameBirthDate?: Date | null;
|
|
174
|
+
timezone?: string | null;
|
|
175
|
+
title?: string | null;
|
|
176
|
+
transactions?: TransactionEntity[] | null;
|
|
191
177
|
type?: string | null;
|
|
178
|
+
userName?: string | null;
|
|
192
179
|
}
|
|
193
|
-
export interface
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
amount?: number | null;
|
|
212
|
-
};
|
|
213
|
-
paymentReversalType?: string | null;
|
|
214
|
-
tokenProvider?: string | null;
|
|
215
|
-
shippingInfo?: {
|
|
216
|
-
deliveryTrackingId?: string | null;
|
|
217
|
-
deliveryService?: string | null;
|
|
218
|
-
returnTrackingId?: string | null;
|
|
219
|
-
};
|
|
220
|
-
criteriaMeta?: {
|
|
221
|
-
sdkName?: string | null;
|
|
222
|
-
sdkVersion?: string | null;
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
export interface TransactionId {
|
|
226
|
-
paymentId?: string | null;
|
|
227
|
-
terminalId?: string | null;
|
|
228
|
-
transactionId?: string | null;
|
|
229
|
-
orderId?: string | null;
|
|
230
|
-
uniqueId?: string | null;
|
|
231
|
-
shortId?: string | null;
|
|
232
|
-
refId?: string | null;
|
|
233
|
-
invoiceId?: string | null;
|
|
234
|
-
channelId?: string | null;
|
|
235
|
-
linkpayId?: string | null;
|
|
236
|
-
customerId?: string | null;
|
|
237
|
-
typeId?: string | null;
|
|
238
|
-
metadataId?: string | null;
|
|
239
|
-
basketId?: string | null;
|
|
180
|
+
export interface BusinessCompanyEntity {
|
|
181
|
+
clientCustomerId: string | null;
|
|
182
|
+
commercialRegisterNumber?: string | null;
|
|
183
|
+
commercialSector?: string | null;
|
|
184
|
+
companyName?: string | null;
|
|
185
|
+
companyURL?: string | null;
|
|
186
|
+
districtCourt?: string | null;
|
|
187
|
+
duns?: string | null;
|
|
188
|
+
easyNumber?: string | null;
|
|
189
|
+
executive?: string | null;
|
|
190
|
+
locationCountry?: string | null;
|
|
191
|
+
locationHouseNumber?: string | null;
|
|
192
|
+
locationPoBox?: string | null;
|
|
193
|
+
locationStreet?: string | null;
|
|
194
|
+
locationZip?: string | null;
|
|
195
|
+
registrationType?: string | null;
|
|
196
|
+
taxNumber?: string | null;
|
|
197
|
+
vatId?: string | null;
|
|
240
198
|
}
|
|
241
|
-
export interface
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
threeDS?: string | null;
|
|
250
|
-
resetIndicator?: string | null;
|
|
251
|
-
dsTransactionId?: string | null;
|
|
252
|
-
protocolVersion?: string | null;
|
|
253
|
-
authStatus?: string | null;
|
|
254
|
-
xid?: string | null;
|
|
199
|
+
export interface AddressEntity {
|
|
200
|
+
country?: string | null;
|
|
201
|
+
city?: string | null;
|
|
202
|
+
houseExtension?: string | null;
|
|
203
|
+
state?: string | null;
|
|
204
|
+
street?: string | null;
|
|
205
|
+
street2?: string | null;
|
|
206
|
+
zip?: string | null;
|
|
255
207
|
}
|
|
256
|
-
export interface
|
|
257
|
-
id?: string;
|
|
208
|
+
export interface InStoreEntity {
|
|
258
209
|
branchNumber?: number | null;
|
|
259
210
|
registerId?: string | null;
|
|
260
211
|
staffId?: string | null;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
cutoverDate?: string | null;
|
|
212
|
+
cutOverId?: string | null;
|
|
213
|
+
cutOverDate?: Date | null;
|
|
264
214
|
receiptNumber?: number | null;
|
|
265
215
|
balance?: number | null;
|
|
216
|
+
order?: OrderEntity | null;
|
|
266
217
|
}
|
|
267
|
-
export interface
|
|
268
|
-
id?: string;
|
|
218
|
+
export interface AttachmentEntity {
|
|
269
219
|
fileName?: string | null;
|
|
270
220
|
fileType?: string | null;
|
|
271
|
-
attachmentType?: string | null;
|
|
272
221
|
size?: string | null;
|
|
273
|
-
|
|
222
|
+
type?: string | null;
|
|
223
|
+
dispute?: DisputeEntity | null;
|
|
274
224
|
}
|
|
275
|
-
export interface
|
|
276
|
-
|
|
225
|
+
export interface DisputeEntity {
|
|
226
|
+
disputeId?: string;
|
|
277
227
|
reason?: string | null;
|
|
278
228
|
type?: string | null;
|
|
279
229
|
status?: string | null;
|
|
280
230
|
amount?: number | null;
|
|
281
231
|
currency?: string | null;
|
|
282
|
-
openedOn?:
|
|
283
|
-
dueOn?:
|
|
284
|
-
|
|
285
|
-
messages?:
|
|
286
|
-
events?:
|
|
287
|
-
attachments?:
|
|
232
|
+
openedOn?: Date | null;
|
|
233
|
+
dueOn?: Date | null;
|
|
234
|
+
transactionId?: string | null;
|
|
235
|
+
messages?: MessageEntity[] | null;
|
|
236
|
+
events?: EventEntity[] | null;
|
|
237
|
+
attachments?: AttachmentEntity[] | null;
|
|
238
|
+
order?: OrderEntity | null;
|
|
288
239
|
}
|
|
289
|
-
export interface
|
|
290
|
-
|
|
240
|
+
export interface MessageEntity {
|
|
241
|
+
dispute?: DisputeEntity | null;
|
|
291
242
|
sender?: string | null;
|
|
292
|
-
createdOn?: string | null;
|
|
293
243
|
message?: string | null;
|
|
294
244
|
}
|
|
295
|
-
export interface
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
createdOn?: string | null;
|
|
245
|
+
export interface EventEntity {
|
|
246
|
+
dispute?: DisputeEntity | null;
|
|
247
|
+
eventType?: string | null;
|
|
299
248
|
description?: string | null;
|
|
300
249
|
amount?: number | null;
|
|
301
250
|
}
|
|
@@ -2,17 +2,18 @@ import { Client } from '../client';
|
|
|
2
2
|
import { BaseError } from '../errors';
|
|
3
3
|
import { UriHelper } from '../uri-helper';
|
|
4
4
|
import { ThBaseHandler } from '../base';
|
|
5
|
+
import { OrderEntity, CustomerEntity } from '../v2/orders';
|
|
5
6
|
export interface TransactionsOptions {
|
|
6
7
|
user?: string;
|
|
7
8
|
base?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface TransactionsResponse {
|
|
10
|
-
data:
|
|
11
|
+
data: TransactionEntity[];
|
|
11
12
|
metadata: Record<string, unknown>;
|
|
12
13
|
next?: () => Promise<TransactionsResponse>;
|
|
13
14
|
}
|
|
14
15
|
export interface TransactionResponse {
|
|
15
|
-
data:
|
|
16
|
+
data: TransactionEntity;
|
|
16
17
|
metadata: Record<string, unknown>;
|
|
17
18
|
msg?: string;
|
|
18
19
|
errors?: ErrorObject[];
|
|
@@ -27,7 +28,7 @@ export interface TransactionsQueryHandler {
|
|
|
27
28
|
uri?: string;
|
|
28
29
|
query?: TransactionsQuery;
|
|
29
30
|
}
|
|
30
|
-
export interface TransactionsQuery extends
|
|
31
|
+
export interface TransactionsQuery extends TransactionEntity {
|
|
31
32
|
deleted?: boolean;
|
|
32
33
|
active?: boolean;
|
|
33
34
|
orderFields?: string[] | string;
|
|
@@ -36,278 +37,216 @@ declare type CommerceTypes = 'eCommerce' | 'moto' | 'pos' | 'undefined' | 'unkno
|
|
|
36
37
|
declare type PaymentMethodCodeTypes = 'undefined' | 'alipay' | 'applepay' | 'bancontact' | 'bank_transfer' | 'billpay_installment' | 'billpay_invoice' | 'credit_card' | 'debit_card' | 'easycredit_installment' | 'eps' | 'fleetcard' | 'girocard' | 'giropay' | 'googlepay' | 'ideal' | 'installment' | 'invoice' | 'klarna' | 'klarna_installment' | 'klarna_invoice' | 'loyalty' | 'monthly_invoice' | 'paypal' | 'paypal_express' | 'paysafecard' | 'paysafecash' | 'post_finance_card' | 'post_finance_efinance' | 'prepayment' | 'przelewy24' | 'santander_installment' | 'santander_purchase_on_account' | 'sepa_direct_debit' | 'sofort' | 'wechatpay' | 'unknown';
|
|
37
38
|
declare type PaymentMethodBrandCodeTypes = 'undefined' | 'amex' | 'avs' | 'bancontact' | 'bsw' | 'cartasi' | 'cartebancaire' | 'cartebleue' | 'cup' | 'dankort' | 'diners' | 'discover' | 'dkv' | 'euro6000' | 'four_b' | 'girocard' | 'jcb' | 'maestro' | 'mastercard' | 'postepay' | 'servired' | 'uta' | 'visa' | 'visa_debit' | 'visa_electron' | 'vpay' | 'unknown';
|
|
38
39
|
declare type TransactionTypeTypes = 'authorization' | 'capture' | 'change_schedule' | 'chargeback' | 'chargeback_notification' | 'chargeback_reversal' | 'confirmation' | 'credit' | 'cutover' | 'dcc_inquiry' | 'debit' | 'debit_reversal' | 'deregistration' | 'diagnosis' | 'end_schedule' | 'file_transfer' | 'finalize' | 'initialize' | 'installment_inquiry' | 'notification' | 'reauthorization' | 'receipt' | 'refund' | 'registration' | 'reversal' | 'risk_check' | 'schedule' | 'taxfree_inquiry' | 'three_ds_authentication' | 'update_registration' | 'undefined' | 'unknown';
|
|
39
|
-
declare type
|
|
40
|
+
declare type TransactionState = 'success' | 'waiting' | 'rejected' | 'failed' | 'unknown';
|
|
40
41
|
declare type StatusDetailsErrorTypeTypes = 'invalid_input' | 'configuration_error' | 'business_decline' | 'internal_error' | 'external_error' | 'undefined' | 'unknown';
|
|
41
|
-
declare type
|
|
42
|
-
declare type
|
|
42
|
+
declare type TransactionPaymentProvider = 'intercard' | 'six' | 'concardis' | 'epay' | 'telecash' | 'lavego' | 'undefined' | 'unknown';
|
|
43
|
+
declare type TransactionPaymentAuthorizationMethod = 'online' | 'offline' | 'undefined' | 'unknown';
|
|
43
44
|
declare type PaymentRecurrenceModeTypes = 'NONE' | 'INITIAL' | 'REPEATED' | 'LAST';
|
|
44
45
|
declare type PaymentRecurrenceContractTypes = 'oneclick' | 'recurring' | 'installment' | 'ucof' | 'unknown';
|
|
45
46
|
declare type PaymentThreedsVersionTypes = 'v_1_0_2' | 'v_2_0_0' | 'v_2_1_0' | 'v_2_2_0' | 'unknown';
|
|
46
47
|
declare type PaymentThreedsStatusTypes = 'Y' | 'N' | 'U' | 'A' | 'R' | 'unknown';
|
|
47
48
|
declare type PaymentThreedsChallengeIndicatorTypes = '_01' | '_02' | '_03' | '_04';
|
|
48
|
-
declare type
|
|
49
|
+
declare type TransactionThreedsExemption = 'mit' | 'tra' | 'recurring' | 'lvp' | 'delegation';
|
|
49
50
|
declare type PaymentSepaTypeTypes = 'CORE' | 'COR1' | 'B2B';
|
|
50
51
|
declare type PaymentReversalTypeTypes = 'CANCEL' | 'RETURN' | 'CREDIT';
|
|
51
|
-
declare type
|
|
52
|
+
declare type TransactionPaymentLiability = 'merchant' | 'issuer' | 'unknown';
|
|
52
53
|
declare type JobDurationUnitTypes = 'HOUR' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
|
|
53
54
|
declare type AuthenticationResultIndicatorTypes = '01' | '02' | '05' | '06' | '07' | '00';
|
|
54
55
|
declare type CredentialOnFileInitiationTypes = 'MIT' | 'CIT';
|
|
55
|
-
declare type
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
identificationReferenceId?: string | null;
|
|
68
|
-
identificationShortId?: string | null;
|
|
69
|
-
channelId?: string | null;
|
|
70
|
-
identificationTransactionId?: string | null;
|
|
71
|
-
identificationInvoiceId?: string | null;
|
|
72
|
-
mode?: string | null;
|
|
73
|
-
paymentRecurrenceMode?: PaymentRecurrenceModeTypes | null;
|
|
74
|
-
paymentTerminalId?: string | null;
|
|
75
|
-
paymentCutoverTimestamp?: string | null;
|
|
76
|
-
paymentPresentationUsage?: string | null;
|
|
77
|
-
identificationShopperId?: string | null;
|
|
78
|
-
source?: string | null;
|
|
79
|
-
paymentRecurrenceContract?: PaymentRecurrenceContractTypes | null;
|
|
80
|
-
paymentRecurrenceSequence?: string | null;
|
|
81
|
-
paymentThreedsVersion?: PaymentThreedsVersionTypes | null;
|
|
82
|
-
paymentThreedsStatus?: PaymentThreedsStatusTypes | null;
|
|
83
|
-
paymentThreedsReason?: string | null;
|
|
84
|
-
paymentThreedsXid?: string | null;
|
|
85
|
-
paymentThreedsDsTransactionId?: string | null;
|
|
86
|
-
paymentThreedsDsCavv?: string | null;
|
|
87
|
-
paymentThreedsChallengeIndicator?: PaymentThreedsChallengeIndicatorTypes | null;
|
|
88
|
-
paymentThreedsExemption?: PaymentThreedsExemptionTypes | null;
|
|
89
|
-
paymentThreedsElectronicCommerceIndicator?: string | null;
|
|
90
|
-
processingStatusDescription: string | null;
|
|
91
|
-
processingReturnValueDescription: string | null;
|
|
92
|
-
processingCode: string | null;
|
|
93
|
-
accountNumber?: string | null;
|
|
94
|
-
accountExpiry?: string | null;
|
|
95
|
-
accountIban?: string | null;
|
|
96
|
-
accountHolder?: string | null;
|
|
97
|
-
paymentClearingFxRate?: string | null;
|
|
98
|
-
paymentClearingDate?: string | null;
|
|
99
|
-
paymentClearingDescriptor?: string | null;
|
|
100
|
-
accountBankName?: string | null;
|
|
56
|
+
declare type TransactionOrderCheckoutState = 'pending' | 'resumed' | 'completed';
|
|
57
|
+
declare type TransactionMode = 'INTEGRATOR_TEST' | 'CONNECTOR_TEST' | 'LIVE';
|
|
58
|
+
declare type TransactionResponseType = 'SYNC' | 'ASYNC';
|
|
59
|
+
export interface TransactionMetaData {
|
|
60
|
+
id: string;
|
|
61
|
+
dataschema: string;
|
|
62
|
+
time: Date;
|
|
63
|
+
origin: string;
|
|
64
|
+
traceId: string;
|
|
65
|
+
attributes: object | null;
|
|
66
|
+
}
|
|
67
|
+
export interface TransactionEntity {
|
|
101
68
|
accountBank?: string | null;
|
|
69
|
+
accountBankName?: string | null;
|
|
70
|
+
accountBic?: string | null;
|
|
71
|
+
accountBrand?: string | null;
|
|
72
|
+
accountCardHash?: string | null;
|
|
102
73
|
accountCountry?: string | null;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
74
|
+
accountExpiry?: string | null;
|
|
75
|
+
accountHolder?: string | null;
|
|
76
|
+
accountIban?: string | null;
|
|
77
|
+
accountIdentification?: string | null;
|
|
78
|
+
accountIssuerCountry?: string | null;
|
|
79
|
+
accountNumber?: string | null;
|
|
80
|
+
accountRegistrationId?: string | null;
|
|
110
81
|
accountTokenProvider?: string | null;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
pnpResponseMessage?: string | null;
|
|
120
|
-
pnpResponseCode?: string | null;
|
|
82
|
+
analysisCriteria?: JSON | null;
|
|
83
|
+
authenticationParameters?: string | null;
|
|
84
|
+
authenticationResultIndicator?: AuthenticationResultIndicatorTypes | null;
|
|
85
|
+
authenticationType?: string | null;
|
|
86
|
+
basketId?: string | null;
|
|
87
|
+
channel?: string | null;
|
|
88
|
+
channelId?: string | null;
|
|
89
|
+
channelName?: string | null;
|
|
121
90
|
commerceType?: CommerceTypes | null;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
identificationSenderId?: string | null;
|
|
91
|
+
credentialOnFileBrandTransactionId?: string | null;
|
|
92
|
+
credentialOnFileInitiation?: CredentialOnFileInitiationTypes | null;
|
|
93
|
+
customer?: CustomerEntity | null;
|
|
94
|
+
customerOrigin?: CustomerEntity | null;
|
|
95
|
+
divisionId?: string | null;
|
|
96
|
+
divisionName?: string | null;
|
|
97
|
+
frontendLanguageId?: string | null;
|
|
98
|
+
frontendResponseUrl?: string | null;
|
|
99
|
+
frontendSessionId?: string | null;
|
|
100
|
+
identificationContractId: string | null;
|
|
101
|
+
identificationContractOwner: string | null;
|
|
134
102
|
identificationCreditorId?: string | null;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
103
|
+
identificationCutoverId?: string | null;
|
|
104
|
+
identificationExtMerchantId?: string | null;
|
|
105
|
+
identificationExtShortId?: string | null;
|
|
106
|
+
identificationExtUniqueId?: string | null;
|
|
107
|
+
identificationJobReferenceId?: string | null;
|
|
108
|
+
identificationInvoiceId?: string | null;
|
|
109
|
+
identificationMerchantCategoryCode?: string | null;
|
|
138
110
|
identificationPnpId?: string | null;
|
|
139
111
|
identificationPnpName?: string | null;
|
|
140
|
-
|
|
112
|
+
identificationPnpTxnId?: string | null;
|
|
113
|
+
identificationPnpTxnId2?: string | null;
|
|
114
|
+
identificationReferenceId?: string | null;
|
|
115
|
+
identificationRootId?: string | null;
|
|
116
|
+
identificationSenderId?: string | null;
|
|
141
117
|
identificationScheduledJobName?: string | null;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
paymentClearingAccount?: JSON | null;
|
|
166
|
-
paymentClearingFxDate?: string | null;
|
|
167
|
-
paymentClearingBankName?: string | null;
|
|
168
|
-
paymentClearingCbFeeLocal?: AmountData | null;
|
|
169
|
-
paymentClearingCbFeeLocalOrigin?: JSON | null;
|
|
170
|
-
paymentClearingCbFeeRemote?: AmountData | null;
|
|
171
|
-
paymentClearingCbFeeRemoteOrigin?: JSON | null;
|
|
172
|
-
paymentClearingCbFeeTotal?: AmountData | null;
|
|
173
|
-
paymentClearingCbFeeTotalOrigin?: JSON | null;
|
|
174
|
-
paymentPresentationAmountOrigin?: JSON | null;
|
|
175
|
-
paymentSepaType?: PaymentSepaTypeTypes | null;
|
|
176
|
-
paymentReversalType?: PaymentReversalTypeTypes | null;
|
|
177
|
-
paymentLiability: PaymentLiabilityTypes | null;
|
|
178
|
-
accountIssuerCountry?: string | null;
|
|
179
|
-
accountNumber?: string | null;
|
|
180
|
-
accountHolder?: string | null;
|
|
181
|
-
accountExpiry?: string | null;
|
|
182
|
-
accountBrand?: string | null;
|
|
183
|
-
accountCardHash?: string | null;
|
|
184
|
-
accountBic?: string | null;
|
|
185
|
-
accountIban?: string | null;
|
|
186
|
-
accountRegistrationId?: string | null;
|
|
187
|
-
accountIdentification?: string | null;
|
|
188
|
-
customerOrigin?: JSON | null;
|
|
189
|
-
jobExecution?: JSON | null;
|
|
190
|
-
jobDurationNumber?: number | null;
|
|
118
|
+
identificationShopperId?: string | null;
|
|
119
|
+
identificationShortId?: string | null;
|
|
120
|
+
identificationSource?: string | null;
|
|
121
|
+
identificationTransactionId?: string | null;
|
|
122
|
+
identificationUniqueId?: string | null;
|
|
123
|
+
instalmentInterestRate?: string | null;
|
|
124
|
+
instalmentNumberOfInstalments?: number | null;
|
|
125
|
+
insuranceActivationDate?: Date | null;
|
|
126
|
+
insuranceDueDate?: Date | null;
|
|
127
|
+
insuranceErrorCode?: string | null;
|
|
128
|
+
insuranceErrorMessage?: string | null;
|
|
129
|
+
insuranceFinalizeDate?: Date | null;
|
|
130
|
+
insuranceFirstReminderDate?: Date | null;
|
|
131
|
+
insuranceFourthReminderDate?: Date | null;
|
|
132
|
+
insuranceId?: string | null;
|
|
133
|
+
insuranceInquiryId?: string | null;
|
|
134
|
+
insurancePaymentTargetDate?: Date | null;
|
|
135
|
+
insuranceProvider?: string | null;
|
|
136
|
+
insuranceRealizationDeadlineDate?: Date | null;
|
|
137
|
+
insuranceReservationDate?: Date | null;
|
|
138
|
+
insuranceSecondReminderDate?: Date | null;
|
|
139
|
+
insuranceThirdReminderDate?: Date | null;
|
|
140
|
+
jobDurationNumber?: string | null;
|
|
191
141
|
jobDurationUnit?: JobDurationUnitTypes | null;
|
|
142
|
+
jobEndTime?: string | null;
|
|
143
|
+
jobExecution?: JSON | null;
|
|
192
144
|
jobName?: string | null;
|
|
193
|
-
jobStartTime?: string | null;
|
|
194
145
|
jobNextExecutionTime?: string | null;
|
|
195
|
-
|
|
146
|
+
jobStartTime?: string | null;
|
|
196
147
|
jobType?: string | null;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
analysisCriteria?: JSON | null;
|
|
201
|
-
authenticationResultIndicator?: AuthenticationResultIndicatorTypes | null;
|
|
202
|
-
authenticationParameters?: string | null;
|
|
203
|
-
authenticationType?: string | null;
|
|
204
|
-
marketplaceBaseAmount?: AmountData | null;
|
|
205
|
-
marketplaceBaseAmountOrigin?: JSON | null;
|
|
206
|
-
marketplaceItems?: MarketplaceItemData[] | null;
|
|
207
|
-
basketId?: string | null;
|
|
208
|
-
insuranceInquiryId?: string | null;
|
|
209
|
-
insuranceFinalizeDate?: string | null;
|
|
210
|
-
insuranceDueDate?: string | null;
|
|
211
|
-
insuranceActivationDate?: string | null;
|
|
212
|
-
insuranceFirstReminderDate?: string | null;
|
|
213
|
-
insuranceSecondReminderDate?: string | null;
|
|
214
|
-
insuranceThirdReminderDate?: string | null;
|
|
215
|
-
insuranceFourthReminderDate?: string | null;
|
|
216
|
-
insurancePaymentTargetDate?: string | null;
|
|
217
|
-
insuranceRealizationDeadlineDate?: string | null;
|
|
218
|
-
insuranceReservationDate?: string | null;
|
|
219
|
-
insuranceErrorCode?: string | null;
|
|
220
|
-
insuranceErrorMessage?: string | null;
|
|
221
|
-
credentialOnFileInitiation?: CredentialOnFileInitiationTypes | null;
|
|
222
|
-
credentialOnFileBrandTransactionId?: string | null;
|
|
223
|
-
channelId?: string | null;
|
|
224
|
-
channel?: string | null;
|
|
225
|
-
merchantUnzerId?: string | null;
|
|
226
|
-
merchantUnzerName?: string | null;
|
|
148
|
+
marketplaceBaseAmount?: number | null;
|
|
149
|
+
marketplaceBaseAmountOrigin?: AmountData | null;
|
|
150
|
+
marketplaceItems?: MarketPlaceItemEntity[] | null;
|
|
227
151
|
merchantId?: string | null;
|
|
228
152
|
merchantName?: string | null;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
153
|
+
merchantUnzerId?: string | null;
|
|
154
|
+
merchantUnzerName?: string | null;
|
|
155
|
+
metadata?: TransactionMetaData | null;
|
|
156
|
+
mode?: TransactionMode | null;
|
|
157
|
+
order?: OrderEntity | null;
|
|
158
|
+
orderCheckoutState?: TransactionOrderCheckoutState | null;
|
|
159
|
+
paymentAuthorizationCode?: string | null;
|
|
160
|
+
paymentAuthorizationMethod?: TransactionPaymentAuthorizationMethod | null;
|
|
161
|
+
paymentCardAcceptorId?: string | null;
|
|
162
|
+
paymentClearingAccount?: JSON | null;
|
|
163
|
+
paymentClearingAmount?: number | null;
|
|
164
|
+
paymentClearingAmountOrigin?: AmountData | null;
|
|
165
|
+
paymentClearingBankName?: string | null;
|
|
166
|
+
paymentClearingCbFeeLocal?: number | null;
|
|
167
|
+
paymentClearingCbFeeLocalOrigin?: AmountData | null;
|
|
168
|
+
paymentClearingCbFeeRemote?: number | null;
|
|
169
|
+
paymentClearingCbFeeRemoteOrigin?: AmountData | null;
|
|
170
|
+
paymentClearingCbFeeTotal?: number | null;
|
|
171
|
+
paymentClearingCbFeeTotalOrigin?: AmountData | null;
|
|
172
|
+
paymentClearingCurrency?: string | null;
|
|
173
|
+
paymentClearingDate?: Date | null;
|
|
174
|
+
paymentClearingDescriptor?: string | null;
|
|
175
|
+
paymentClearingFxSource?: string | null;
|
|
176
|
+
paymentClearingFxDate?: Date | null;
|
|
177
|
+
paymentClearingFxRate?: string | null;
|
|
178
|
+
paymentClearingSupport?: string | null;
|
|
179
|
+
paymentCode?: string | null;
|
|
180
|
+
paymentCutoverTimestamp?: string | null;
|
|
181
|
+
paymentDccAmount?: number | null;
|
|
182
|
+
paymentDccAmountOrigin?: AmountData | null;
|
|
183
|
+
paymentDccCurrency?: string | null;
|
|
184
|
+
paymentLiability?: TransactionPaymentLiability | null;
|
|
185
|
+
paymentMethodBrandCode?: PaymentMethodBrandCodeTypes | null;
|
|
186
|
+
paymentMethodCode?: PaymentMethodCodeTypes | null;
|
|
187
|
+
paymentMethodFactoring?: boolean | null;
|
|
188
|
+
paymentMethodSecured?: boolean | null;
|
|
189
|
+
paymentNetworkServiceProvider?: TransactionPaymentProvider | null;
|
|
190
|
+
paymentPosEntryMode?: string | null;
|
|
191
|
+
paymentPresentationAmount?: number | null;
|
|
192
|
+
paymentPresentationAmountOrigin?: AmountData | null;
|
|
193
|
+
paymentPresentationCurrency?: string | null;
|
|
194
|
+
paymentPresentationUsage?: string | null;
|
|
195
|
+
paymentRecurrenceContract?: PaymentRecurrenceContractTypes | null;
|
|
196
|
+
paymentRecurrenceMode?: PaymentRecurrenceModeTypes | null;
|
|
197
|
+
paymentRecurrenceSequence?: string | null;
|
|
198
|
+
paymentReferenceSystemTraceAuditNumber?: string | null;
|
|
199
|
+
paymentReversalType?: PaymentReversalTypeTypes | null;
|
|
200
|
+
paymentSepaType?: PaymentSepaTypeTypes | null;
|
|
201
|
+
paymentSystemTraceAuditNumber?: string | null;
|
|
202
|
+
paymentTerminalId?: string | null;
|
|
203
|
+
paymentThreedsCavv?: string | null;
|
|
204
|
+
paymentThreedsChallengeIndicator?: PaymentThreedsChallengeIndicatorTypes | null;
|
|
205
|
+
paymentThreedsDsTransactionId?: string | null;
|
|
206
|
+
paymentThreedsElectronicCommerceIndicator?: string | null;
|
|
207
|
+
paymentThreedsExemption?: TransactionThreedsExemption | null;
|
|
208
|
+
paymentThreedsReason?: string | null;
|
|
209
|
+
paymentThreedsStatus?: PaymentThreedsStatusTypes | null;
|
|
210
|
+
paymentThreedsVersion?: PaymentThreedsVersionTypes | null;
|
|
211
|
+
paymentThreedsXid?: string | null;
|
|
212
|
+
paymentUploadTimestamp?: string | null;
|
|
213
|
+
pnpResponseCode?: string | null;
|
|
214
|
+
pnpResponseMessage?: string | null;
|
|
215
|
+
processingCode?: string | null;
|
|
216
|
+
processingConfirmationStatus?: string | null;
|
|
217
|
+
processingChargeBack?: string | null;
|
|
218
|
+
processingResult?: string | null;
|
|
219
|
+
processingReasonCode?: string | null;
|
|
220
|
+
processingReasonDescription?: string | null;
|
|
221
|
+
processingRedirectParameters?: JSON | null;
|
|
222
|
+
processingRedirectUrl?: string | null;
|
|
223
|
+
processingReturnValueCode?: string | null;
|
|
224
|
+
processingReturnValueDescription?: string | null;
|
|
225
|
+
processingSecured?: string | null;
|
|
226
|
+
processingStatusCode?: string | null;
|
|
227
|
+
processingStatusDescription?: string | null;
|
|
228
|
+
response?: TransactionResponseType | null;
|
|
229
|
+
requestTimestamp?: string | null;
|
|
230
|
+
shippingCarrier?: string | null;
|
|
231
|
+
shippingTrackingId?: string | null;
|
|
232
|
+
source?: string | null;
|
|
233
|
+
state?: TransactionState | null;
|
|
234
|
+
statusDetailsErrorType?: StatusDetailsErrorTypeTypes | null;
|
|
235
|
+
statusDetailsOriginReturnValue?: string | null;
|
|
236
|
+
transactionType?: TransactionTypeTypes | null;
|
|
232
237
|
}
|
|
233
238
|
export interface AmountData {
|
|
234
239
|
amount?: number | null;
|
|
235
240
|
scale?: number | null;
|
|
236
241
|
}
|
|
237
|
-
export interface
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
shippingAddress?: AddressData[] | null;
|
|
243
|
-
contact?: ContactData | null;
|
|
244
|
-
actor?: ActorData | null;
|
|
245
|
-
optIn?: boolean | null;
|
|
246
|
-
optIn2?: boolean | null;
|
|
247
|
-
type?: string;
|
|
248
|
-
company?: BusinessCompanyEntity | null;
|
|
249
|
-
}
|
|
250
|
-
export interface BusinessCompanyEntity {
|
|
251
|
-
companyName: string | null;
|
|
252
|
-
location: BusinessLocationData | null;
|
|
253
|
-
registrationType: string | null;
|
|
254
|
-
commercialRegisterNumber: string | null;
|
|
255
|
-
districtCourt: string | null;
|
|
256
|
-
companyURL: string | null;
|
|
257
|
-
clientCustomerId: string | null;
|
|
258
|
-
duns: string | null;
|
|
259
|
-
easyNumber: string | null;
|
|
260
|
-
vatId: string | null;
|
|
261
|
-
taxNumber: string | null;
|
|
262
|
-
executive: string | null;
|
|
263
|
-
commercialSector: string | null;
|
|
264
|
-
}
|
|
265
|
-
export interface BusinessLocationData {
|
|
266
|
-
street: string | null;
|
|
267
|
-
houseNumber: string | null;
|
|
268
|
-
zip: string | null;
|
|
269
|
-
city: string | null;
|
|
270
|
-
poBox: string | null;
|
|
271
|
-
country: string | null;
|
|
272
|
-
}
|
|
273
|
-
export interface ContactData {
|
|
274
|
-
email?: string | null;
|
|
275
|
-
ip?: string | null;
|
|
276
|
-
ipCountry?: string | null;
|
|
277
|
-
phone?: string | null;
|
|
278
|
-
mobile?: string | null;
|
|
279
|
-
}
|
|
280
|
-
export interface ActorData {
|
|
281
|
-
displayName?: string | null;
|
|
282
|
-
language?: string | null;
|
|
283
|
-
country?: string | null;
|
|
284
|
-
timezone?: string | null;
|
|
285
|
-
userName?: string | null;
|
|
286
|
-
}
|
|
287
|
-
export interface NameData {
|
|
288
|
-
firstName?: string | null;
|
|
289
|
-
lastName?: string | null;
|
|
290
|
-
title?: string | null;
|
|
291
|
-
company?: string | null;
|
|
292
|
-
salutation?: string | null;
|
|
293
|
-
birthdate?: string | null;
|
|
294
|
-
}
|
|
295
|
-
export interface AddressData {
|
|
296
|
-
street?: string | null;
|
|
297
|
-
zip?: string | null;
|
|
298
|
-
city?: string | null;
|
|
299
|
-
state?: string | null;
|
|
300
|
-
country?: string | null;
|
|
301
|
-
houseExtension?: string | null;
|
|
302
|
-
street2?: string | null;
|
|
303
|
-
}
|
|
304
|
-
export interface MarketplaceItemData {
|
|
305
|
-
itemId?: string | null;
|
|
242
|
+
export interface MarketPlaceItemEntity {
|
|
243
|
+
amount?: number | null;
|
|
244
|
+
amountOrigin?: AmountData | null;
|
|
245
|
+
baseAmount?: number | null;
|
|
246
|
+
baseAmountOrigin?: AmountData | null;
|
|
306
247
|
channel?: string | null;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
baseAmount?: AmountData | null;
|
|
310
|
-
baseAmountOrigin?: JSON | null;
|
|
248
|
+
itemId?: string | null;
|
|
249
|
+
transaction?: TransactionEntity | null;
|
|
311
250
|
transactionId?: string | null;
|
|
312
251
|
usage?: string | null;
|
|
313
252
|
}
|
package/dist/v2/orders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.js","sourceRoot":"","sources":["../../src/v2/orders.ts"],"names":[],"mappings":";;;;AACA,oCAAqC;AACrC,4CAAyC;AACzC,gCAAuC;
|
|
1
|
+
{"version":3,"file":"orders.js","sourceRoot":"","sources":["../../src/v2/orders.ts"],"names":[],"mappings":";;;;AACA,oCAAqC;AACrC,4CAAyC;AACzC,gCAAuC;AA4QvC;IAA4B,kCAAa;IAOvC,gBAAa,OAAsB,EAAE,IAAY;;QAAjD,YACE,kBAAM,IAAI,EAAE;YACV,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,IAAI,QAAE,OAAO,CAAC,IAAI,mCAAI,yBAAyB;SAChD,CAAC,SAOH;QANC,KAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAEhB,KAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,YAAY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AAoC;QAD7B,wBAAA,EAAA,iCAAyC;QADlD,YAIE,kBAAM,OAAO,EAAE,UAAU,CAAC,SAE3B;QALQ,aAAO,GAAP,OAAO,CAAkC;QAF3C,UAAI,GAAG,kBAAkB,CAAA;QAM9B,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;;IACzD,CAAC;IACH,uBAAC;AAAD,CAAC,AATD,CAAsC,kBAAS,GAS9C;AATY,4CAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/v3/transactions.ts"],"names":[],"mappings":";;;;AACA,oCAAqC;AACrC,4CAAyC;AACzC,gCAAuC;
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/v3/transactions.ts"],"names":[],"mappings":";;;;AACA,oCAAqC;AACrC,4CAAyC;AACzC,gCAAuC;AAqQvC;IAAkC,wCAAa;IAO7C,sBAAa,OAA4B,EAAE,IAAY;;QAAvD,YACE,kBAAM,IAAI,EAAE;YACV,QAAQ,EAAE,YAAY,CAAC,YAAY;YACnC,IAAI,QAAE,OAAO,CAAC,IAAI,mCAAI,yBAAyB;SAChD,CAAC,SAOH;QANC,KAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAEhB,KAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAA;QACzC,KAAI,CAAC,OAAO,CAAC,IAAI,SAAG,KAAI,CAAC,OAAO,CAAC,IAAI,mCAAI,yBAAyB,CAAA;QAClE,KAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,KAAI,CAAC,QAAQ,EAAE,KAAI,CAAC,OAAO,CAAC,CAAA;;IAC7D,CAAC;IAEK,6BAAM,GAAZ,UAAc,KAA4C;;;;;;;;wBAElD,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC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