@tapsilat/tapsilat-js 2026.7.7 → 2026.10.26
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 +9 -0
- package/README.md +217 -46
- package/dist/TapsilatSDK.d.ts +158 -40
- package/dist/TapsilatSDK.d.ts.map +1 -1
- package/dist/__mocks__/HttpClient.d.ts +1 -0
- package/dist/__mocks__/HttpClient.d.ts.map +1 -1
- package/dist/errors/TapsilatError.d.ts +12 -1
- package/dist/errors/TapsilatError.d.ts.map +1 -1
- package/dist/http/HttpClient.d.ts +19 -1
- package/dist/http/HttpClient.d.ts.map +1 -1
- package/dist/http/interceptors.d.ts.map +1 -1
- package/dist/index.cjs +1442 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2029 -133
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1429 -129
- package/dist/index.js.map +1 -1
- package/dist/services/MarketplaceService.d.ts +59 -0
- package/dist/services/MarketplaceService.d.ts.map +1 -0
- package/dist/services/ServiceBase.d.ts +21 -0
- package/dist/services/ServiceBase.d.ts.map +1 -0
- package/dist/services/SubmerchantService.d.ts +31 -0
- package/dist/services/SubmerchantService.d.ts.map +1 -0
- package/dist/services/TokenizationService.d.ts +14 -0
- package/dist/services/TokenizationService.d.ts.map +1 -0
- package/dist/services/VposService.d.ts +26 -0
- package/dist/services/VposService.d.ts.map +1 -0
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/types/elements.d.ts +144 -0
- package/dist/types/elements.d.ts.map +1 -0
- package/dist/types/index.d.ts +90 -44
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/panel.d.ts +839 -0
- package/dist/types/panel.d.ts.map +1 -0
- package/dist/utils/currency.d.ts +25 -0
- package/dist/utils/currency.d.ts.map +1 -0
- package/dist/utils/redact.d.ts +16 -0
- package/dist/utils/redact.d.ts.map +1 -0
- package/dist/utils/response.d.ts +12 -0
- package/dist/utils/response.d.ts.map +1 -1
- package/dist/utils/validators.d.ts +12 -0
- package/dist/utils/validators.d.ts.map +1 -1
- package/dist/utils/verify.d.ts +31 -8
- package/dist/utils/verify.d.ts.map +1 -1
- package/dist/webhooks/OrderStatus.d.ts +98 -0
- package/dist/webhooks/OrderStatus.d.ts.map +1 -0
- package/dist/webhooks/WebhookEvent.d.ts +58 -0
- package/dist/webhooks/WebhookEvent.d.ts.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,839 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request and response types for the panel REST API groups added for parity
|
|
3
|
+
* with the other Tapsilat SDKs: order payments and charging, card installments,
|
|
4
|
+
* organization currencies and users, submerchants, suborganizations, VPOS,
|
|
5
|
+
* card tokenization and the version 2 marketplace API.
|
|
6
|
+
*
|
|
7
|
+
* Field names match the JSON wire format. Response fields are optional because
|
|
8
|
+
* the server omits empty values.
|
|
9
|
+
*/
|
|
10
|
+
/** Identifies an order by any one of its identifiers */
|
|
11
|
+
export interface OrderPaymentsRequest {
|
|
12
|
+
order_id?: string;
|
|
13
|
+
order_reference_id?: string;
|
|
14
|
+
conversation_id?: string;
|
|
15
|
+
}
|
|
16
|
+
/** A payment made against an order */
|
|
17
|
+
export interface OrderPayment {
|
|
18
|
+
id?: string;
|
|
19
|
+
date?: string;
|
|
20
|
+
payment_mode?: string;
|
|
21
|
+
amount?: number;
|
|
22
|
+
card_id?: string;
|
|
23
|
+
masked_card?: string;
|
|
24
|
+
card_holder_name?: string;
|
|
25
|
+
card_type?: string;
|
|
26
|
+
card_brand?: string;
|
|
27
|
+
card_bank?: string;
|
|
28
|
+
card_network?: string;
|
|
29
|
+
paid?: boolean;
|
|
30
|
+
type?: string;
|
|
31
|
+
acquirer_response?: string;
|
|
32
|
+
vpos_commission_amount?: number;
|
|
33
|
+
vpos_commission_rate?: number;
|
|
34
|
+
vpos_commission_fee_type?: string;
|
|
35
|
+
organization_commission_amount?: number;
|
|
36
|
+
organization_commission_rate?: number;
|
|
37
|
+
organization_commission_fee_type?: string;
|
|
38
|
+
total_amount?: number;
|
|
39
|
+
acquirer_commission_amount?: number;
|
|
40
|
+
acquirer_commission_rate?: number;
|
|
41
|
+
acquirer_commission_fee_type?: string;
|
|
42
|
+
acquirer_name?: string;
|
|
43
|
+
customer_paid_commission_amount?: number;
|
|
44
|
+
merchant_paid_commission_amount?: number;
|
|
45
|
+
merchant_net_amount?: number;
|
|
46
|
+
}
|
|
47
|
+
/** Payments made against an order with their totals */
|
|
48
|
+
export interface OrderPaymentsResponse {
|
|
49
|
+
payments?: OrderPayment[];
|
|
50
|
+
total_amount?: number;
|
|
51
|
+
total_customer_paid_commission_amount?: number;
|
|
52
|
+
total_merchant_paid_commission_amount?: number;
|
|
53
|
+
total_merchant_net_amount?: number;
|
|
54
|
+
order_amount?: number;
|
|
55
|
+
}
|
|
56
|
+
/** Charges an order, for example with its saved card */
|
|
57
|
+
export interface OrderChargeRequest {
|
|
58
|
+
order_reference_id: string;
|
|
59
|
+
retry?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/** Charge result; the server sends these keys in camelCase */
|
|
62
|
+
export interface OrderChargeResponse {
|
|
63
|
+
isSuccess?: boolean;
|
|
64
|
+
message?: string;
|
|
65
|
+
statusCode?: string;
|
|
66
|
+
errorCode?: string;
|
|
67
|
+
}
|
|
68
|
+
/** Submits or withdraws settlement approval for an item payment */
|
|
69
|
+
export interface SubmerchantPaymentAction {
|
|
70
|
+
locale: string;
|
|
71
|
+
conversation_id: string;
|
|
72
|
+
payment_transaction_id: string;
|
|
73
|
+
acquirer: string;
|
|
74
|
+
}
|
|
75
|
+
export interface SubmerchantPaymentActionResponse {
|
|
76
|
+
operation_id?: string;
|
|
77
|
+
status?: string;
|
|
78
|
+
locale?: string;
|
|
79
|
+
system_time?: number;
|
|
80
|
+
conversation_id?: string;
|
|
81
|
+
payment_transaction_id?: string;
|
|
82
|
+
acquirer?: string;
|
|
83
|
+
}
|
|
84
|
+
/** Changes the seller or payout of a completed marketplace item */
|
|
85
|
+
export interface SubmerchantPaymentItemUpdate {
|
|
86
|
+
locale: string;
|
|
87
|
+
conversation_id: string;
|
|
88
|
+
payment_transaction_id: string;
|
|
89
|
+
sub_merchant_key: string;
|
|
90
|
+
/** Positive decimal amount as a string, for example "60.25" */
|
|
91
|
+
sub_merchant_price: string;
|
|
92
|
+
acquirer: string;
|
|
93
|
+
}
|
|
94
|
+
export interface SubmerchantPaymentItemUpdateResponse {
|
|
95
|
+
operation_id?: string;
|
|
96
|
+
status?: string;
|
|
97
|
+
locale?: string;
|
|
98
|
+
system_time?: number;
|
|
99
|
+
conversation_id?: string;
|
|
100
|
+
payment_transaction_id?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface OrderSubmerchantListItem {
|
|
103
|
+
id?: string;
|
|
104
|
+
name?: string;
|
|
105
|
+
email?: string;
|
|
106
|
+
submerchant_type?: string;
|
|
107
|
+
submerchant_key?: string;
|
|
108
|
+
labels?: string;
|
|
109
|
+
status?: string;
|
|
110
|
+
acquirer?: string;
|
|
111
|
+
}
|
|
112
|
+
/** Paginated submerchants of the organization's orders; rows are under `row` */
|
|
113
|
+
export interface OrderSubmerchantListResponse {
|
|
114
|
+
page?: number;
|
|
115
|
+
per_page?: number;
|
|
116
|
+
total?: number;
|
|
117
|
+
total_pages?: number;
|
|
118
|
+
row?: OrderSubmerchantListItem[];
|
|
119
|
+
}
|
|
120
|
+
export interface CardInstallmentsRequest {
|
|
121
|
+
/** The card's first digits (at least 8) */
|
|
122
|
+
bin: string;
|
|
123
|
+
amount: number;
|
|
124
|
+
/** Currency unit or name, for example "TRY" */
|
|
125
|
+
currency: string;
|
|
126
|
+
is_three_d?: boolean;
|
|
127
|
+
}
|
|
128
|
+
export interface CardInstallment {
|
|
129
|
+
installment?: number;
|
|
130
|
+
amount?: string;
|
|
131
|
+
total_amount?: string;
|
|
132
|
+
commission_rate?: number;
|
|
133
|
+
monthly_payment?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface CardInstallmentsResponse {
|
|
136
|
+
is_installment_available?: boolean;
|
|
137
|
+
installments?: CardInstallment[];
|
|
138
|
+
}
|
|
139
|
+
export interface InstallmentTableRequest {
|
|
140
|
+
amount: number;
|
|
141
|
+
/** Currency unit or name, for example "TRY" */
|
|
142
|
+
currency: string;
|
|
143
|
+
is_three_d?: boolean;
|
|
144
|
+
}
|
|
145
|
+
export interface InstallmentTableRow {
|
|
146
|
+
installment?: number;
|
|
147
|
+
installment_amount?: string;
|
|
148
|
+
total_amount?: string;
|
|
149
|
+
commission_rate?: number;
|
|
150
|
+
is_interest_free?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface InstallmentTableGroup {
|
|
153
|
+
bank?: string;
|
|
154
|
+
program?: string;
|
|
155
|
+
program_code?: string;
|
|
156
|
+
rows?: InstallmentTableRow[];
|
|
157
|
+
}
|
|
158
|
+
export interface InstallmentTableResponse {
|
|
159
|
+
groups?: InstallmentTableGroup[];
|
|
160
|
+
}
|
|
161
|
+
export interface OrganizationCurrency {
|
|
162
|
+
id?: string;
|
|
163
|
+
name?: string;
|
|
164
|
+
code?: string;
|
|
165
|
+
symbol?: string;
|
|
166
|
+
currency_unit?: string;
|
|
167
|
+
}
|
|
168
|
+
export interface OrganizationCurrenciesResponse {
|
|
169
|
+
currencies?: OrganizationCurrency[];
|
|
170
|
+
}
|
|
171
|
+
export interface OrganizationCurrencyPreset {
|
|
172
|
+
currency_code?: string;
|
|
173
|
+
currency_unit?: string;
|
|
174
|
+
name?: string;
|
|
175
|
+
minor_unit?: number;
|
|
176
|
+
}
|
|
177
|
+
export interface OrganizationCurrencyPresetsResponse {
|
|
178
|
+
items?: OrganizationCurrencyPreset[];
|
|
179
|
+
}
|
|
180
|
+
export interface CreateOrganizationCurrencyResponse {
|
|
181
|
+
code?: number;
|
|
182
|
+
message?: string;
|
|
183
|
+
created?: boolean;
|
|
184
|
+
currency?: OrganizationCurrency;
|
|
185
|
+
}
|
|
186
|
+
/** Creates an access token for an organization user; `expire` is in minutes */
|
|
187
|
+
export interface OrgUserTokenCreateRequest {
|
|
188
|
+
email?: string;
|
|
189
|
+
expire?: number;
|
|
190
|
+
invalidate_old_tokens?: boolean;
|
|
191
|
+
user_id?: string;
|
|
192
|
+
}
|
|
193
|
+
export interface OrgUserTokenCreateResponse {
|
|
194
|
+
code?: number;
|
|
195
|
+
message?: string;
|
|
196
|
+
token?: string;
|
|
197
|
+
user_id?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface OrgCreateUserResponse {
|
|
200
|
+
code?: number;
|
|
201
|
+
message?: string;
|
|
202
|
+
user_id?: string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Creates or replaces a submerchant. `currency_id` accepts a currency UUID or
|
|
206
|
+
* an organization currency unit such as "TRY".
|
|
207
|
+
*/
|
|
208
|
+
export interface SubmerchantCreateRequest {
|
|
209
|
+
locale: string;
|
|
210
|
+
conversation_id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
email: string;
|
|
213
|
+
gsm_number: string;
|
|
214
|
+
address?: string;
|
|
215
|
+
iban?: string;
|
|
216
|
+
tax_office?: string;
|
|
217
|
+
legal_company_title?: string;
|
|
218
|
+
currency_id?: string;
|
|
219
|
+
sub_merchant_external_id?: string;
|
|
220
|
+
identity_number?: string;
|
|
221
|
+
/** PERSONAL, PRIVATE_COMPANY or LIMITED_OR_JOINT_STOCK_COMPANY */
|
|
222
|
+
sub_merchant_type?: string;
|
|
223
|
+
tax_number?: string;
|
|
224
|
+
sub_merchant_key?: string;
|
|
225
|
+
organization_id?: string;
|
|
226
|
+
status?: string;
|
|
227
|
+
system_time?: number;
|
|
228
|
+
contact_name?: string;
|
|
229
|
+
contact_surname?: string;
|
|
230
|
+
}
|
|
231
|
+
/** Replaces the submerchant profile; send every field */
|
|
232
|
+
export type SubmerchantUpdateRequest = SubmerchantCreateRequest;
|
|
233
|
+
export interface Submerchant {
|
|
234
|
+
id?: string;
|
|
235
|
+
locale?: string;
|
|
236
|
+
conversation_id?: string;
|
|
237
|
+
name?: string;
|
|
238
|
+
email?: string;
|
|
239
|
+
gsm_number?: string;
|
|
240
|
+
address?: string;
|
|
241
|
+
iban?: string;
|
|
242
|
+
tax_office?: string;
|
|
243
|
+
legal_company_title?: string;
|
|
244
|
+
currency_id?: string;
|
|
245
|
+
sub_merchant_external_id?: string;
|
|
246
|
+
identity_number?: string;
|
|
247
|
+
sub_merchant_type?: string;
|
|
248
|
+
tax_number?: string;
|
|
249
|
+
sub_merchant_key?: string;
|
|
250
|
+
organization_id?: string;
|
|
251
|
+
labels?: string;
|
|
252
|
+
status?: string;
|
|
253
|
+
system_time?: number;
|
|
254
|
+
acquirer?: string;
|
|
255
|
+
contact_name?: string;
|
|
256
|
+
contact_surname?: string;
|
|
257
|
+
}
|
|
258
|
+
export interface SubmerchantListItem {
|
|
259
|
+
id?: string;
|
|
260
|
+
name?: string;
|
|
261
|
+
email?: string;
|
|
262
|
+
submerchant_type?: string;
|
|
263
|
+
submerchant_key?: string;
|
|
264
|
+
labels?: string;
|
|
265
|
+
status?: string;
|
|
266
|
+
acquirer?: string;
|
|
267
|
+
}
|
|
268
|
+
/** Paginated submerchants; rows are under `row` */
|
|
269
|
+
export interface SubmerchantListResponse {
|
|
270
|
+
page?: number;
|
|
271
|
+
per_page?: number;
|
|
272
|
+
total?: number;
|
|
273
|
+
total_pages?: number;
|
|
274
|
+
row?: SubmerchantListItem[];
|
|
275
|
+
}
|
|
276
|
+
/** Returned by submerchant create, update and delete */
|
|
277
|
+
export interface SubmerchantMutationResponse {
|
|
278
|
+
code?: number;
|
|
279
|
+
message?: string;
|
|
280
|
+
}
|
|
281
|
+
/** Selects a VPOS account in one environment for marketplace seller provisioning */
|
|
282
|
+
export interface MarketplaceAccountTarget {
|
|
283
|
+
vpos_id: string;
|
|
284
|
+
/** TEST or PROD */
|
|
285
|
+
environment: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Creates a marketplace seller. Omit both `vpos_id` and `provider_accounts` to
|
|
289
|
+
* create only the logical seller; never combine them.
|
|
290
|
+
*/
|
|
291
|
+
export interface MarketplaceSubmerchantCreateRequest extends SubmerchantCreateRequest {
|
|
292
|
+
provider_accounts?: MarketplaceAccountTarget[];
|
|
293
|
+
labels?: string[];
|
|
294
|
+
vpos_id?: string;
|
|
295
|
+
/** auto or manual */
|
|
296
|
+
approval_mode?: string | null;
|
|
297
|
+
release_policy_id?: string | null;
|
|
298
|
+
idempotency_key?: string;
|
|
299
|
+
}
|
|
300
|
+
export interface MarketplaceSubmerchantProvisioning {
|
|
301
|
+
vpos_id?: string;
|
|
302
|
+
vpos_submerchant_id?: string;
|
|
303
|
+
provider?: string;
|
|
304
|
+
status?: string;
|
|
305
|
+
provider_submerchant_key?: string;
|
|
306
|
+
retryable?: boolean;
|
|
307
|
+
error_message?: string;
|
|
308
|
+
}
|
|
309
|
+
export interface MarketplaceSubmerchantCreateResponse {
|
|
310
|
+
id?: string;
|
|
311
|
+
suborganization_id?: string;
|
|
312
|
+
vpos_submerchant_id?: string;
|
|
313
|
+
routing_reference?: string;
|
|
314
|
+
provisionings?: MarketplaceSubmerchantProvisioning[];
|
|
315
|
+
}
|
|
316
|
+
/** Records an item business event such as `service_completed` */
|
|
317
|
+
export interface SubmerchantPayoutEventRequest {
|
|
318
|
+
idempotency_key: string;
|
|
319
|
+
order_reference: string;
|
|
320
|
+
item_id: string;
|
|
321
|
+
event_type: string;
|
|
322
|
+
/** RFC3339 timestamp */
|
|
323
|
+
occurred_at?: string;
|
|
324
|
+
payload?: Record<string, unknown>;
|
|
325
|
+
}
|
|
326
|
+
export interface SubmerchantPayoutEventResponse {
|
|
327
|
+
id?: string;
|
|
328
|
+
idempotency_key?: string;
|
|
329
|
+
order_reference?: string;
|
|
330
|
+
item_id?: string;
|
|
331
|
+
event_type?: string;
|
|
332
|
+
occurred_at?: string;
|
|
333
|
+
payload?: Record<string, unknown>;
|
|
334
|
+
}
|
|
335
|
+
export interface SuborganizationListItem {
|
|
336
|
+
id?: string;
|
|
337
|
+
name?: string;
|
|
338
|
+
address?: string;
|
|
339
|
+
city?: string;
|
|
340
|
+
country?: string;
|
|
341
|
+
phone?: string;
|
|
342
|
+
currency?: string;
|
|
343
|
+
logo?: string;
|
|
344
|
+
}
|
|
345
|
+
export interface SuborganizationListResponse {
|
|
346
|
+
page?: number;
|
|
347
|
+
per_page?: number;
|
|
348
|
+
total?: number;
|
|
349
|
+
total_pages?: number;
|
|
350
|
+
rows?: SuborganizationListItem[];
|
|
351
|
+
}
|
|
352
|
+
export interface SuborganizationDetail {
|
|
353
|
+
id?: string;
|
|
354
|
+
name?: string;
|
|
355
|
+
parent_id?: string;
|
|
356
|
+
public_status?: number;
|
|
357
|
+
availability_status?: number;
|
|
358
|
+
created_at?: string;
|
|
359
|
+
updated_at?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface SubmerchantSuborganizationMapping {
|
|
362
|
+
submerchant_id?: string;
|
|
363
|
+
suborganization_id?: string;
|
|
364
|
+
}
|
|
365
|
+
export interface SuborganizationSubmerchantMapping {
|
|
366
|
+
suborganization_id?: string;
|
|
367
|
+
submerchant_id?: string;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* VPOS configuration. Updates replace the stored configuration, so fields
|
|
371
|
+
* left out are stored as empty or false: read the VPOS first and send every
|
|
372
|
+
* field back. `currencies` accepts currency UUIDs or units such as "TRY".
|
|
373
|
+
*/
|
|
374
|
+
export interface VposCreateRequest {
|
|
375
|
+
name: string;
|
|
376
|
+
bank_name?: string;
|
|
377
|
+
env_mode?: string;
|
|
378
|
+
merchant?: string;
|
|
379
|
+
merchant_code?: string;
|
|
380
|
+
merchant_key?: string;
|
|
381
|
+
auth_key?: string;
|
|
382
|
+
terminal?: string;
|
|
383
|
+
company?: string;
|
|
384
|
+
username?: string;
|
|
385
|
+
password?: string;
|
|
386
|
+
store_key?: string;
|
|
387
|
+
api_key?: string;
|
|
388
|
+
api_secret?: string;
|
|
389
|
+
guid?: string;
|
|
390
|
+
pid?: string;
|
|
391
|
+
client_id?: string;
|
|
392
|
+
client_code?: string;
|
|
393
|
+
type?: string;
|
|
394
|
+
block_date?: number;
|
|
395
|
+
priority?: number;
|
|
396
|
+
main?: boolean;
|
|
397
|
+
force_three_d?: boolean;
|
|
398
|
+
marketplace?: boolean;
|
|
399
|
+
pf?: boolean;
|
|
400
|
+
payment_mode?: string;
|
|
401
|
+
prefix?: string;
|
|
402
|
+
acquirer_id: string;
|
|
403
|
+
card_schemes?: string[];
|
|
404
|
+
currencies: string[];
|
|
405
|
+
failover?: boolean;
|
|
406
|
+
pf_id?: string;
|
|
407
|
+
redirect_uri?: string;
|
|
408
|
+
tls?: boolean;
|
|
409
|
+
tls_key?: string;
|
|
410
|
+
tls_cert?: string;
|
|
411
|
+
root_ca?: string;
|
|
412
|
+
main_installment?: boolean;
|
|
413
|
+
main_without_installment?: boolean;
|
|
414
|
+
}
|
|
415
|
+
export type VposUpdateRequest = VposCreateRequest;
|
|
416
|
+
export interface Vpos extends Partial<VposCreateRequest> {
|
|
417
|
+
id?: string;
|
|
418
|
+
provider?: string;
|
|
419
|
+
}
|
|
420
|
+
export interface VposListItem {
|
|
421
|
+
id?: string;
|
|
422
|
+
name?: string;
|
|
423
|
+
bank_name?: string;
|
|
424
|
+
env_mode?: string;
|
|
425
|
+
provider?: string;
|
|
426
|
+
payment_mode?: string;
|
|
427
|
+
}
|
|
428
|
+
export interface VposListParams {
|
|
429
|
+
page?: number;
|
|
430
|
+
per_page?: number;
|
|
431
|
+
suborganization_id?: string;
|
|
432
|
+
}
|
|
433
|
+
export interface VposListResponse {
|
|
434
|
+
page?: number;
|
|
435
|
+
per_page?: number;
|
|
436
|
+
total?: number;
|
|
437
|
+
total_pages?: number;
|
|
438
|
+
rows?: VposListItem[];
|
|
439
|
+
}
|
|
440
|
+
export interface VposMutationResponse {
|
|
441
|
+
code?: number;
|
|
442
|
+
message?: string;
|
|
443
|
+
}
|
|
444
|
+
export interface VposAcquirer {
|
|
445
|
+
id?: string;
|
|
446
|
+
name?: string;
|
|
447
|
+
prefix?: string;
|
|
448
|
+
}
|
|
449
|
+
export interface VposAcquirerListResponse {
|
|
450
|
+
items?: VposAcquirer[];
|
|
451
|
+
}
|
|
452
|
+
export interface CardScheme {
|
|
453
|
+
id?: string;
|
|
454
|
+
name?: string;
|
|
455
|
+
}
|
|
456
|
+
export interface CardSchemeListResponse {
|
|
457
|
+
items?: CardScheme[];
|
|
458
|
+
}
|
|
459
|
+
export interface VposAcquirerTemplateDefaults {
|
|
460
|
+
payment_mode?: string;
|
|
461
|
+
main?: boolean;
|
|
462
|
+
marketplace?: boolean;
|
|
463
|
+
force_three_d?: boolean;
|
|
464
|
+
credentials?: Record<string, string>;
|
|
465
|
+
}
|
|
466
|
+
export interface VposAcquirerTemplate {
|
|
467
|
+
acquirer_id?: string;
|
|
468
|
+
name?: string;
|
|
469
|
+
prefix?: string;
|
|
470
|
+
required_fields?: string[];
|
|
471
|
+
optional_fields?: string[];
|
|
472
|
+
defaults?: VposAcquirerTemplateDefaults;
|
|
473
|
+
}
|
|
474
|
+
export interface VposAcquirerTemplateListResponse {
|
|
475
|
+
items?: VposAcquirerTemplate[];
|
|
476
|
+
}
|
|
477
|
+
export interface VposSubmerchantCreateRequest {
|
|
478
|
+
external_reference_id?: string;
|
|
479
|
+
submerchant_id?: string;
|
|
480
|
+
terminal_no?: string;
|
|
481
|
+
vpos_id: string;
|
|
482
|
+
mcc?: string;
|
|
483
|
+
tax_id?: string;
|
|
484
|
+
national_id?: string;
|
|
485
|
+
title?: string;
|
|
486
|
+
switch_id?: string;
|
|
487
|
+
city?: string;
|
|
488
|
+
country?: string;
|
|
489
|
+
country_isocode?: string;
|
|
490
|
+
postal_code?: string;
|
|
491
|
+
address?: string;
|
|
492
|
+
submerchant_url?: string;
|
|
493
|
+
submerchant_nin?: string;
|
|
494
|
+
}
|
|
495
|
+
export interface VposSubmerchantUpdateRequest {
|
|
496
|
+
external_reference_id?: string;
|
|
497
|
+
submerchant_id?: string;
|
|
498
|
+
terminal_no?: string;
|
|
499
|
+
mcc?: string;
|
|
500
|
+
tax_id?: string;
|
|
501
|
+
national_id?: string;
|
|
502
|
+
title?: string;
|
|
503
|
+
switch_id?: string;
|
|
504
|
+
}
|
|
505
|
+
export interface VposSubmerchant {
|
|
506
|
+
id?: string;
|
|
507
|
+
external_reference_id?: string;
|
|
508
|
+
submerchant_id?: string;
|
|
509
|
+
terminal_no?: string;
|
|
510
|
+
vpos_id?: string;
|
|
511
|
+
mcc?: string;
|
|
512
|
+
tax_id?: string;
|
|
513
|
+
national_id?: string;
|
|
514
|
+
title?: string;
|
|
515
|
+
switch_id?: string;
|
|
516
|
+
}
|
|
517
|
+
export interface VposSubmerchantListItem {
|
|
518
|
+
id?: string;
|
|
519
|
+
external_reference_id?: string;
|
|
520
|
+
submerchant_id?: string;
|
|
521
|
+
terminal_no?: string;
|
|
522
|
+
vpos_id?: string;
|
|
523
|
+
}
|
|
524
|
+
export interface VposSubmerchantListParams {
|
|
525
|
+
page?: number;
|
|
526
|
+
per_page?: number;
|
|
527
|
+
vpos_id?: string;
|
|
528
|
+
external_reference_id?: string;
|
|
529
|
+
}
|
|
530
|
+
export interface VposSubmerchantListResponse {
|
|
531
|
+
page?: number;
|
|
532
|
+
per_page?: number;
|
|
533
|
+
total?: number;
|
|
534
|
+
total_pages?: number;
|
|
535
|
+
rows?: VposSubmerchantListItem[];
|
|
536
|
+
}
|
|
537
|
+
export interface VposSubmerchantMutationResponse {
|
|
538
|
+
code?: number;
|
|
539
|
+
message?: string;
|
|
540
|
+
}
|
|
541
|
+
export interface CardTokenizeRequest {
|
|
542
|
+
card_number: string;
|
|
543
|
+
holder_name: string;
|
|
544
|
+
expiry_month: string;
|
|
545
|
+
/** Two or four digits */
|
|
546
|
+
expiry_year: string;
|
|
547
|
+
cvv: string;
|
|
548
|
+
name?: string;
|
|
549
|
+
default?: boolean;
|
|
550
|
+
/** 1 = 3D secure, 2 = half secure, 3 = non-secure */
|
|
551
|
+
mode?: number;
|
|
552
|
+
user_id?: string;
|
|
553
|
+
user_email?: string;
|
|
554
|
+
redirect_success_url?: string;
|
|
555
|
+
redirect_failure_url?: string;
|
|
556
|
+
}
|
|
557
|
+
export interface CardTokenizeResponse {
|
|
558
|
+
threedform_url?: string;
|
|
559
|
+
threedform_html?: string;
|
|
560
|
+
is_success?: boolean;
|
|
561
|
+
message?: string;
|
|
562
|
+
status_code?: string;
|
|
563
|
+
error_code?: string;
|
|
564
|
+
order_reference_id?: string;
|
|
565
|
+
card_id?: string;
|
|
566
|
+
}
|
|
567
|
+
export interface SavedCard {
|
|
568
|
+
id?: string;
|
|
569
|
+
name?: string;
|
|
570
|
+
holder_name?: string;
|
|
571
|
+
masked_number?: string;
|
|
572
|
+
last_four?: string;
|
|
573
|
+
brand?: string;
|
|
574
|
+
bin?: string;
|
|
575
|
+
is_default?: boolean;
|
|
576
|
+
}
|
|
577
|
+
export interface ListSavedCardsResponse {
|
|
578
|
+
page?: number;
|
|
579
|
+
per_page?: number;
|
|
580
|
+
total?: number;
|
|
581
|
+
total_pages?: number;
|
|
582
|
+
rows?: SavedCard[];
|
|
583
|
+
}
|
|
584
|
+
export interface DeleteSavedCardResponse {
|
|
585
|
+
success?: boolean;
|
|
586
|
+
message?: string;
|
|
587
|
+
}
|
|
588
|
+
export interface MarketplaceSeller {
|
|
589
|
+
id?: string;
|
|
590
|
+
routing_reference?: string;
|
|
591
|
+
/** Opaque revision string; send it back unchanged */
|
|
592
|
+
revision?: string;
|
|
593
|
+
name?: string;
|
|
594
|
+
email?: string;
|
|
595
|
+
gsm_number?: string;
|
|
596
|
+
address?: string;
|
|
597
|
+
iban?: string;
|
|
598
|
+
currency_id?: string;
|
|
599
|
+
sub_merchant_type?: string;
|
|
600
|
+
sub_merchant_external_id?: string;
|
|
601
|
+
identity_number?: string;
|
|
602
|
+
tax_number?: string;
|
|
603
|
+
tax_office?: string;
|
|
604
|
+
legal_company_title?: string;
|
|
605
|
+
contact_name?: string;
|
|
606
|
+
contact_surname?: string;
|
|
607
|
+
locale?: string;
|
|
608
|
+
conversation_id?: string;
|
|
609
|
+
status?: string;
|
|
610
|
+
labels?: string[];
|
|
611
|
+
approval_mode?: string | null;
|
|
612
|
+
release_policy_id?: string | null;
|
|
613
|
+
}
|
|
614
|
+
export interface MarketplaceSellerList {
|
|
615
|
+
rows?: MarketplaceSeller[];
|
|
616
|
+
page?: number;
|
|
617
|
+
per_page?: number;
|
|
618
|
+
total?: number;
|
|
619
|
+
total_pages?: number;
|
|
620
|
+
}
|
|
621
|
+
export interface MarketplaceSellerListParams {
|
|
622
|
+
page?: number;
|
|
623
|
+
per_page?: number;
|
|
624
|
+
/** Exact external ID match */
|
|
625
|
+
external_id?: string;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Replaces the seller profile at `revision` (from getMarketplaceSubmerchant).
|
|
629
|
+
* Omit account selectors (`vpos_id`, `provider_accounts`).
|
|
630
|
+
*/
|
|
631
|
+
export interface MarketplaceProfileUpdate extends Omit<MarketplaceSubmerchantCreateRequest, "vpos_id" | "provider_accounts"> {
|
|
632
|
+
/** Opaque revision string, sent back exactly as received */
|
|
633
|
+
revision: string;
|
|
634
|
+
}
|
|
635
|
+
export interface MarketplaceProfileUpdateResponse {
|
|
636
|
+
approval_required?: boolean;
|
|
637
|
+
}
|
|
638
|
+
export interface MarketplaceSellerContract {
|
|
639
|
+
supported?: boolean;
|
|
640
|
+
remote?: boolean;
|
|
641
|
+
fields?: Record<string, boolean>;
|
|
642
|
+
immutable_fields?: string[];
|
|
643
|
+
currencies?: string[];
|
|
644
|
+
}
|
|
645
|
+
export interface MarketplaceContracts {
|
|
646
|
+
contracts?: Record<string, MarketplaceSellerContract>;
|
|
647
|
+
}
|
|
648
|
+
export interface MarketplaceContractFilter {
|
|
649
|
+
/** Currency UUID or unit such as "TRY" */
|
|
650
|
+
currency_id: string;
|
|
651
|
+
seller_type: string;
|
|
652
|
+
operation: string;
|
|
653
|
+
vpos_ids: string[];
|
|
654
|
+
}
|
|
655
|
+
export interface MarketplaceSynchronization {
|
|
656
|
+
status?: string;
|
|
657
|
+
operation?: string;
|
|
658
|
+
error_message?: string;
|
|
659
|
+
needs_update?: boolean;
|
|
660
|
+
attempts?: number;
|
|
661
|
+
verified_at?: string;
|
|
662
|
+
missing_fields?: string[];
|
|
663
|
+
}
|
|
664
|
+
export interface MarketplaceSellerAccount {
|
|
665
|
+
vpos_id?: string;
|
|
666
|
+
name?: string;
|
|
667
|
+
provider?: string;
|
|
668
|
+
environment?: string;
|
|
669
|
+
eligible?: boolean;
|
|
670
|
+
mapped?: boolean;
|
|
671
|
+
status?: string;
|
|
672
|
+
attempts?: number;
|
|
673
|
+
updated_at?: string;
|
|
674
|
+
error_message?: string;
|
|
675
|
+
retryable?: boolean;
|
|
676
|
+
revision?: string;
|
|
677
|
+
seller_revision?: string;
|
|
678
|
+
account_revision?: string;
|
|
679
|
+
actions?: string[];
|
|
680
|
+
contracts?: Record<string, MarketplaceSellerContract>;
|
|
681
|
+
contract_error?: string;
|
|
682
|
+
sync?: MarketplaceSynchronization;
|
|
683
|
+
registration_profile_changed?: boolean;
|
|
684
|
+
registration_missing_fields?: string[];
|
|
685
|
+
provider_submerchant_key?: string;
|
|
686
|
+
}
|
|
687
|
+
export interface MarketplaceSellerAccounts {
|
|
688
|
+
rows?: MarketplaceSellerAccount[];
|
|
689
|
+
}
|
|
690
|
+
/** Confirms a listed account action using the account's latest revision and environment */
|
|
691
|
+
export interface MarketplaceAccountAction {
|
|
692
|
+
/** create, retry, resubmit, update, retrieve or retry_sync */
|
|
693
|
+
action: string;
|
|
694
|
+
environment: string;
|
|
695
|
+
revision: string;
|
|
696
|
+
}
|
|
697
|
+
export interface MarketplacePayout {
|
|
698
|
+
/** Opaque revision string; send it back unchanged */
|
|
699
|
+
revision?: string;
|
|
700
|
+
active_operation_id?: string;
|
|
701
|
+
id?: string;
|
|
702
|
+
provider?: string;
|
|
703
|
+
organization_id?: string;
|
|
704
|
+
submerchant_id?: string;
|
|
705
|
+
submerchant_name?: string;
|
|
706
|
+
order_id?: string;
|
|
707
|
+
order_reference_id?: string;
|
|
708
|
+
order_display?: string;
|
|
709
|
+
amount?: string;
|
|
710
|
+
currency?: string;
|
|
711
|
+
approval_mode?: string;
|
|
712
|
+
approval_rule_id?: string;
|
|
713
|
+
approval_rule_name?: string;
|
|
714
|
+
release_policy_id?: string;
|
|
715
|
+
release_policy_name?: string;
|
|
716
|
+
eligibility_status?: string;
|
|
717
|
+
required_event?: string;
|
|
718
|
+
item_id?: string;
|
|
719
|
+
business_eligible_at?: string;
|
|
720
|
+
eligible_at?: string;
|
|
721
|
+
release_status?: string;
|
|
722
|
+
status?: string;
|
|
723
|
+
provider_reference?: string;
|
|
724
|
+
attempts?: number;
|
|
725
|
+
released_at?: string;
|
|
726
|
+
created_at?: string;
|
|
727
|
+
error_message?: string;
|
|
728
|
+
}
|
|
729
|
+
export interface MarketplacePayoutFilter {
|
|
730
|
+
order_id?: string;
|
|
731
|
+
submerchant_id?: string;
|
|
732
|
+
vpos_id?: string;
|
|
733
|
+
provider?: string;
|
|
734
|
+
status?: string;
|
|
735
|
+
release_status?: string;
|
|
736
|
+
approval_mode?: string;
|
|
737
|
+
/** Currency unit such as "TRY" */
|
|
738
|
+
currency?: string;
|
|
739
|
+
eligibility?: string;
|
|
740
|
+
search?: string;
|
|
741
|
+
min_amount?: string;
|
|
742
|
+
max_amount?: string;
|
|
743
|
+
/** YYYY-MM-DD */
|
|
744
|
+
start_date?: string;
|
|
745
|
+
/** YYYY-MM-DD */
|
|
746
|
+
end_date?: string;
|
|
747
|
+
page?: number;
|
|
748
|
+
per_page?: number;
|
|
749
|
+
}
|
|
750
|
+
export interface MarketplacePayoutList {
|
|
751
|
+
rows?: MarketplacePayout[];
|
|
752
|
+
page?: number;
|
|
753
|
+
per_page?: number;
|
|
754
|
+
total?: number;
|
|
755
|
+
total_pages?: number;
|
|
756
|
+
}
|
|
757
|
+
export interface MarketplacePayoutApproval {
|
|
758
|
+
/** At most 100 payout IDs */
|
|
759
|
+
ids: string[];
|
|
760
|
+
}
|
|
761
|
+
export interface MarketplacePayoutAcceptance {
|
|
762
|
+
status?: string;
|
|
763
|
+
}
|
|
764
|
+
export interface MarketplaceApprovalPolicy {
|
|
765
|
+
id?: string;
|
|
766
|
+
name?: string;
|
|
767
|
+
priority?: number;
|
|
768
|
+
enabled?: boolean;
|
|
769
|
+
provider?: string;
|
|
770
|
+
min_amount?: string | null;
|
|
771
|
+
max_amount?: string | null;
|
|
772
|
+
currency_id?: string | null;
|
|
773
|
+
submerchant_ids?: string[];
|
|
774
|
+
labels_any?: string[];
|
|
775
|
+
mode?: string;
|
|
776
|
+
}
|
|
777
|
+
export interface MarketplaceApprovalPolicies {
|
|
778
|
+
rows?: MarketplaceApprovalPolicy[];
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Creates or replaces an approval rule. `currency_id` must be a UUID on the
|
|
782
|
+
* wire; the SDK resolves units such as "TRY" before sending.
|
|
783
|
+
*/
|
|
784
|
+
export interface MarketplaceApprovalPolicyInput {
|
|
785
|
+
name: string;
|
|
786
|
+
priority: number;
|
|
787
|
+
enabled?: boolean | null;
|
|
788
|
+
provider?: string;
|
|
789
|
+
min_amount?: string | null;
|
|
790
|
+
max_amount?: string | null;
|
|
791
|
+
currency_id?: string;
|
|
792
|
+
submerchant_ids?: string[];
|
|
793
|
+
labels_any?: string[];
|
|
794
|
+
mode: string;
|
|
795
|
+
}
|
|
796
|
+
export interface MarketplaceReleasePolicy {
|
|
797
|
+
id?: string;
|
|
798
|
+
name?: string;
|
|
799
|
+
enabled?: boolean;
|
|
800
|
+
default?: boolean;
|
|
801
|
+
minimum_delay_seconds?: number;
|
|
802
|
+
explicit_not_before?: string;
|
|
803
|
+
required_external_event?: string;
|
|
804
|
+
}
|
|
805
|
+
export interface MarketplaceReleasePolicies {
|
|
806
|
+
rows?: MarketplaceReleasePolicy[];
|
|
807
|
+
}
|
|
808
|
+
export interface MarketplaceReleasePolicyInput {
|
|
809
|
+
name: string;
|
|
810
|
+
enabled?: boolean;
|
|
811
|
+
default?: boolean;
|
|
812
|
+
minimum_delay_seconds?: number;
|
|
813
|
+
explicit_not_before?: string;
|
|
814
|
+
required_external_event?: string;
|
|
815
|
+
}
|
|
816
|
+
export interface MarketplaceApprovalSettings {
|
|
817
|
+
/** auto or manual */
|
|
818
|
+
default_mode?: string;
|
|
819
|
+
}
|
|
820
|
+
export interface MarketplacePayoutOperationInput {
|
|
821
|
+
/** disapprove or update_item */
|
|
822
|
+
kind: string;
|
|
823
|
+
idempotency_key: string;
|
|
824
|
+
/** The payout's current revision, sent back exactly as received */
|
|
825
|
+
revision: string;
|
|
826
|
+
seller_reference?: string;
|
|
827
|
+
net_amount?: string;
|
|
828
|
+
}
|
|
829
|
+
export interface MarketplacePayoutOperation {
|
|
830
|
+
id?: string;
|
|
831
|
+
payout_id?: string;
|
|
832
|
+
kind?: string;
|
|
833
|
+
status?: string;
|
|
834
|
+
attempts?: number;
|
|
835
|
+
error_message?: string;
|
|
836
|
+
created_at?: string;
|
|
837
|
+
updated_at?: string;
|
|
838
|
+
}
|
|
839
|
+
//# sourceMappingURL=panel.d.ts.map
|