@tapsilat/tapsilat-js 2026.4.2 → 2026.7.7

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.
@@ -109,7 +109,12 @@ export interface Address {
109
109
  * @interface BillingAddress
110
110
  */
111
111
  export interface BillingAddress extends Address {
112
- billing_type: "PERSONAL" | "CORPORATE";
112
+ billing_type: "PERSONAL" | "BUSINESS" | "CORPORATE";
113
+ citizenship?: string;
114
+ neighbourhood?: string;
115
+ street1?: string;
116
+ street2?: string;
117
+ street3?: string;
113
118
  vat_number?: string;
114
119
  tax_office?: string;
115
120
  title?: string;
@@ -125,12 +130,20 @@ export interface BasketItem {
125
130
  name?: string;
126
131
  category1?: string;
127
132
  category2?: string;
133
+ commission_amount?: number;
134
+ coupon?: string;
135
+ mcc?: string;
128
136
  item_type?: string;
137
+ paid_amount?: number;
138
+ payer?: BasketItemPayerDTO;
129
139
  price?: number;
130
140
  quantity?: number;
141
+ quantity_float?: number;
131
142
  coupon_discount?: number;
132
143
  data?: string;
133
144
  quantity_unit?: string;
145
+ sub_merchant_key?: string;
146
+ sub_merchant_price?: string;
134
147
  }
135
148
  /**
136
149
  * @category Payment Processing
@@ -138,7 +151,7 @@ export interface BasketItem {
138
151
  * @description Different payment methods that can be enabled for an order
139
152
  * @typedef {string} PaymentOption
140
153
  */
141
- export type PaymentOption = "PAY_WITH_WALLET" | "PAY_WITH_CARD" | "PAY_WITH_LOAN" | "PAY_WITH_CASH" | "PAY_WITH_BANK";
154
+ export type PaymentOption = "credit_card" | "bank_transfer" | "cash" | "debit_card" | "PAY_WITH_WALLET" | "PAY_WITH_CARD" | "PAY_WITH_LOAN" | "PAY_WITH_CASH" | "PAY_WITH_BANK";
142
155
  /**
143
156
  * @category Refunds
144
157
  * @summary Information needed to process a refund
@@ -248,12 +261,14 @@ export interface Buyer {
248
261
  id?: string;
249
262
  name: string;
250
263
  surname: string;
264
+ birth_date?: string;
251
265
  email: string;
252
266
  gsm_number?: string;
253
267
  identity_number?: string;
254
268
  registration_address?: string;
255
269
  city?: string;
256
270
  country?: string;
271
+ title?: string;
257
272
  zip_code?: string;
258
273
  ip?: string;
259
274
  registration_date?: string;
@@ -275,20 +290,30 @@ export interface OrderCreateRequest {
275
290
  locale: Locale;
276
291
  three_d_force?: boolean;
277
292
  currency: Currency;
278
- shipping_address?: Address;
293
+ checkout_design?: CheckoutDesignDTO;
294
+ shipping_address?: ShippingAddressDTO;
279
295
  basket_items?: BasketItem[];
280
296
  billing_address?: BillingAddress;
281
297
  buyer: Buyer;
282
298
  consents?: OrderConsent[];
283
299
  conversation_id?: string;
300
+ external_reference_id?: string;
301
+ order_cards?: OrderCardDTO[];
302
+ paid_amount?: number;
284
303
  partial_payment?: boolean;
304
+ payment_mode?: string;
285
305
  payment_methods?: boolean;
286
306
  payment_options?: PaymentOption[];
287
307
  payment_success_url?: string;
288
308
  payment_failure_url?: string;
309
+ payment_terms?: PaymentTermDTO[];
310
+ pf_sub_merchant?: OrderPFSubMerchantDTO;
311
+ redirect_failure_url?: string;
312
+ redirect_success_url?: string;
289
313
  enabled_installments?: number[];
290
314
  metadata?: OrderMetadata[];
291
315
  sub_organization?: SubOrganizationDTO;
316
+ submerchants?: SubmerchantDTO[];
292
317
  }
293
318
  /**
294
319
  * @category Order Management
@@ -297,7 +322,11 @@ export interface OrderCreateRequest {
297
322
  * @interface OrderCreateResponse
298
323
  */
299
324
  export interface OrderCreateResponse {
300
- order_id: string;
325
+ code?: number;
326
+ id?: string;
327
+ message?: string;
328
+ organization_id?: string;
329
+ order_id?: string;
301
330
  reference_id: string;
302
331
  checkout_url?: string;
303
332
  conversation_id?: string;
@@ -326,6 +355,111 @@ export interface Order extends OrderCreateResponse {
326
355
  organization?: string;
327
356
  unpaid_amount?: number;
328
357
  }
358
+ /**
359
+ * @category Order Management
360
+ * @summary Response payload for order detail retrieval
361
+ * @description Swagger-aligned response schema for GET /order/{id}
362
+ * @interface GetOrderResponse
363
+ */
364
+ export interface GetOrderResponse {
365
+ amount?: string;
366
+ basket_items?: BasketItemDTO[];
367
+ billing_address?: BillingAddressDTO;
368
+ buyer?: BuyerDTO;
369
+ checkout_design?: CheckoutDesignDTO;
370
+ checkout_url?: string;
371
+ conversation_id?: string;
372
+ created_at?: string;
373
+ currency?: string;
374
+ external_reference_id?: string;
375
+ locale?: string;
376
+ metadata?: MetadataDTO[];
377
+ paid_amount?: string;
378
+ payment_failure_url?: string;
379
+ payment_options?: string[];
380
+ payment_success_url?: string;
381
+ payment_terms?: PaymentTermDTO[];
382
+ redirect_failure_url?: string;
383
+ redirect_success_url?: string;
384
+ reference_id?: string;
385
+ refunded_amount?: string;
386
+ shipping_address?: ShippingAddressDTO;
387
+ status?: number;
388
+ status_enum?: string;
389
+ total?: string;
390
+ }
391
+ /**
392
+ * @category Order Management
393
+ * @summary Query parameters for order listing
394
+ * @description Swagger-aligned query options for GET /order/list
395
+ * @interface GetOrdersRequest
396
+ */
397
+ export interface GetOrdersRequest {
398
+ page?: number;
399
+ per_page?: number;
400
+ start_date?: string;
401
+ end_date?: string;
402
+ organization_id?: string;
403
+ related_reference_id?: string;
404
+ buyer_id?: string;
405
+ status?: number;
406
+ }
407
+ /**
408
+ * @category Order Management
409
+ * @summary Single list item returned by order listing
410
+ * @description Swagger-aligned row schema for GET /order/list
411
+ * @interface GetOrdersListItem
412
+ */
413
+ export interface GetOrdersListItem {
414
+ checkout_url?: string;
415
+ email?: string;
416
+ id?: string;
417
+ metadata?: MetadataDTO[];
418
+ name?: string;
419
+ organization?: string;
420
+ organization_id?: string;
421
+ paid_amount?: number;
422
+ paid_term_count?: number;
423
+ reference_id?: string;
424
+ refund_date?: string;
425
+ status?: number;
426
+ total?: string;
427
+ total_term_count?: number;
428
+ unpaid_amount?: number;
429
+ }
430
+ /**
431
+ * @category Order Management
432
+ * @summary Response payload for order listing
433
+ * @description Swagger-aligned response schema for GET /order/list
434
+ * @interface GetOrdersResponse
435
+ */
436
+ export interface GetOrdersResponse {
437
+ page?: number;
438
+ per_page?: number;
439
+ rows?: GetOrdersListItem[];
440
+ total?: number;
441
+ total_pages?: number;
442
+ }
443
+ /**
444
+ * @category Order Management
445
+ * @summary Request payload for order cancellation
446
+ * @description Swagger-aligned request schema for POST /order/cancel
447
+ * @interface CancelOrderRequest
448
+ */
449
+ export interface CancelOrderRequest {
450
+ reference_id: string;
451
+ }
452
+ /**
453
+ * @category Order Management
454
+ * @summary Response payload for order cancellation
455
+ * @description Swagger-aligned response schema for POST /order/cancel
456
+ * @interface CancelOrderResponse
457
+ */
458
+ export interface CancelOrderResponse {
459
+ is_success?: boolean;
460
+ message?: string;
461
+ status?: string;
462
+ }
329
463
  /**
330
464
  * @category Refunds
331
465
  * @summary Refund request information for an order
@@ -335,6 +469,8 @@ export interface Order extends OrderCreateResponse {
335
469
  export interface OrderRefundRequest {
336
470
  reference_id: string;
337
471
  amount: number;
472
+ order_item_id?: string;
473
+ order_item_payment_id?: string;
338
474
  }
339
475
  /**
340
476
  * @category Refunds
@@ -343,23 +479,43 @@ export interface OrderRefundRequest {
343
479
  * @interface OrderRefundResponse
344
480
  */
345
481
  export interface OrderRefundResponse {
346
- refundId: string;
347
- referenceId: string;
348
- status: string;
349
- amount: number;
350
- currency: Currency;
351
- createdAt: string;
482
+ is_success?: boolean;
483
+ message?: string;
484
+ refundId?: string;
485
+ referenceId?: string;
486
+ status?: string;
487
+ amount?: number;
488
+ currency?: Currency;
489
+ createdAt?: string;
352
490
  }
353
491
  /**
354
492
  * @category Order Management
355
493
  * @summary Order status information
356
- * @description Provides the current status of an order and when it was last updated
494
+ * @description Swagger-aligned response payload for GET /order/{id}/status
357
495
  * @interface OrderStatusResponse
358
496
  */
359
497
  export interface OrderStatusResponse {
360
- referenceId: string;
361
- status: string;
362
- lastUpdatedAt: string;
498
+ error_code?: string;
499
+ status?: string;
500
+ }
501
+ /**
502
+ * @category System
503
+ * @summary System order status item
504
+ * @description Represents a single status entry returned by the system order statuses endpoint
505
+ * @interface SystemOrderStatus
506
+ */
507
+ export interface SystemOrderStatus {
508
+ code?: number;
509
+ message?: string;
510
+ }
511
+ /**
512
+ * @category System
513
+ * @summary Response for system order statuses
514
+ * @description API response payload for listing available system order statuses
515
+ * @interface GetSystemOrderStatusesResponse
516
+ */
517
+ export interface GetSystemOrderStatusesResponse {
518
+ rows?: SystemOrderStatus[];
363
519
  }
364
520
  /**
365
521
  * @category Payment Processing
@@ -380,6 +536,58 @@ export interface OrderPaymentDetail {
380
536
  cardAssociation: string;
381
537
  };
382
538
  }
539
+ export interface OrderPaymentDetailInfoResponse {
540
+ id?: string;
541
+ paid_date?: string;
542
+ paid_date_timestamp?: number;
543
+ reference_id?: string;
544
+ refunded_amount?: number;
545
+ status?: string;
546
+ }
547
+ export interface OrderPaymentDetailOrderPaymentStatusResponse {
548
+ acquirere_response?: string;
549
+ code?: string;
550
+ expiry_month?: string;
551
+ expiry_year?: string;
552
+ is_error?: boolean;
553
+ masked_pan?: string;
554
+ message?: string;
555
+ }
556
+ export interface OrderPaymentDetailsResponse {
557
+ auth_code?: string;
558
+ batch_no?: string;
559
+ card_holder_name?: string;
560
+ card_number?: string;
561
+ is_three_ds?: boolean;
562
+ mdstatus?: string;
563
+ order_id?: string;
564
+ payment_id?: string;
565
+ payment_transaction_id?: string;
566
+ reference_id?: string;
567
+ rrn?: string;
568
+ }
569
+ export interface OrderPaymentDetailRuleResponse {
570
+ id?: string;
571
+ name?: string;
572
+ }
573
+ export interface OrderPaymentDetailVposResponse {
574
+ acquirer?: string;
575
+ bank_code?: string;
576
+ commission_rate?: string;
577
+ id?: string;
578
+ name?: string;
579
+ }
580
+ export interface GetOrderPaymentDetailsResponse {
581
+ conversation_id?: string;
582
+ id?: string;
583
+ order?: OrderPaymentDetailInfoResponse;
584
+ order_payment_status?: OrderPaymentDetailOrderPaymentStatusResponse;
585
+ organization_id?: string;
586
+ paymentDetails?: OrderPaymentDetailsResponse;
587
+ rule?: OrderPaymentDetailRuleResponse;
588
+ vpos?: OrderPaymentDetailVposResponse;
589
+ vposResponse?: string;
590
+ }
383
591
  /**
384
592
  * @category API DTOs
385
593
  * @summary API representation of buyer information
@@ -402,6 +610,9 @@ export interface BuyerDTO {
402
610
  registration_date?: string;
403
611
  title?: string;
404
612
  zip_code?: string;
613
+ income_type?: string;
614
+ education?: string;
615
+ occupation?: string;
405
616
  }
406
617
  /**
407
618
  * @category API DTOs
@@ -416,6 +627,30 @@ export interface BasketItemPayerDTO {
416
627
  title?: string;
417
628
  type?: string;
418
629
  vat?: string;
630
+ name?: string;
631
+ surname?: string;
632
+ identity_number?: string;
633
+ email?: string;
634
+ phone?: string;
635
+ }
636
+ /**
637
+ * @category API DTOs
638
+ * @summary Payment record for a basket item
639
+ * @description Payment details attached to a specific basket item
640
+ * @interface BasketItemPaymentDTO
641
+ */
642
+ export interface BasketItemPaymentDTO {
643
+ amount?: number;
644
+ card_brand?: string;
645
+ id?: string;
646
+ masked_bin?: string;
647
+ paid_date?: string;
648
+ refundable_amount?: number;
649
+ refunded?: boolean;
650
+ refunded_amount?: number;
651
+ refunded_date?: string;
652
+ status?: number;
653
+ type?: string;
419
654
  }
420
655
  /**
421
656
  * @category API DTOs
@@ -431,14 +666,20 @@ export interface BasketItemDTO {
431
666
  coupon_discount?: number;
432
667
  data?: string;
433
668
  id?: string;
669
+ item_payments?: BasketItemPaymentDTO[];
434
670
  item_type?: string;
671
+ mcc?: string;
435
672
  name?: string;
436
673
  paid_amount?: number;
674
+ paidable_amount?: number;
437
675
  payer?: BasketItemPayerDTO;
438
676
  price?: number;
439
677
  quantity?: number;
440
678
  quantity_float?: number;
441
679
  quantity_unit?: string;
680
+ refundable_amount?: number;
681
+ refunded_amount?: number;
682
+ status?: number;
442
683
  sub_merchant_key?: string;
443
684
  sub_merchant_price?: string;
444
685
  }
@@ -457,6 +698,10 @@ export interface BillingAddressDTO {
457
698
  contact_phone?: string;
458
699
  country?: string;
459
700
  district?: string;
701
+ neighbourhood?: string;
702
+ street1?: string;
703
+ street2?: string;
704
+ street3?: string;
460
705
  tax_office?: string;
461
706
  title?: string;
462
707
  vat_number?: string;
@@ -530,10 +775,12 @@ export interface OrderPFSubMerchantDTO {
530
775
  id?: string;
531
776
  mcc?: string;
532
777
  name?: string;
778
+ national_id?: string;
533
779
  org_id?: string;
534
780
  postal_code?: string;
535
781
  submerchant_nin?: string;
536
782
  submerchant_url?: string;
783
+ switch_id?: string;
537
784
  terminal_no?: string;
538
785
  }
539
786
  /**
@@ -615,15 +862,18 @@ export interface OrderCreateDTO {
615
862
  enabled_installments?: number[];
616
863
  external_reference_id?: string;
617
864
  metadata?: MetadataDTO[];
618
- order_cards?: OrderCardDTO;
865
+ order_cards?: OrderCardDTO[];
619
866
  paid_amount?: number;
620
867
  partial_payment?: boolean;
621
868
  payment_failure_url?: string;
869
+ payment_mode?: string;
622
870
  payment_methods?: boolean;
623
871
  payment_options?: string[];
624
872
  payment_success_url?: string;
625
873
  payment_terms?: PaymentTermDTO[];
626
874
  pf_sub_merchant?: OrderPFSubMerchantDTO;
875
+ redirect_failure_url?: string;
876
+ redirect_success_url?: string;
627
877
  shipping_address?: ShippingAddressDTO;
628
878
  sub_organization?: SubOrganizationDTO;
629
879
  submerchants?: SubmerchantDTO[];
@@ -642,6 +892,25 @@ export interface RefundOrderDTO {
642
892
  order_item_id?: string;
643
893
  order_item_payment_id?: string;
644
894
  }
895
+ /**
896
+ * @category Refunds
897
+ * @summary Data structure for requesting a full refund
898
+ * @description Contains the order reference required to fully refund an order
899
+ * @interface RefundAllOrderDTO
900
+ */
901
+ export interface RefundAllOrderDTO {
902
+ reference_id: string;
903
+ }
904
+ /**
905
+ * @category Payment Processing
906
+ * @summary Data structure for order payment detail query
907
+ * @description Request payload for POST /order/payment-details
908
+ * @interface OrderPaymentDetailDTO
909
+ */
910
+ export interface OrderPaymentDetailDTO {
911
+ conversation_id?: string;
912
+ reference_id?: string;
913
+ }
645
914
  /**
646
915
  * @category Payment Terms
647
916
  * @summary Data for creating a payment term
@@ -716,6 +985,34 @@ export interface PaymentTermResponse {
716
985
  paid_date?: string;
717
986
  data?: string;
718
987
  }
988
+ /**
989
+ * @category Payment Terms
990
+ * @summary Protobuf timestamp payload
991
+ * @description Timestamp structure used by term APIs (`seconds` + `nanos`)
992
+ * @interface TimestampDTO
993
+ */
994
+ export interface TimestampDTO {
995
+ nanos?: number;
996
+ seconds?: number;
997
+ }
998
+ /**
999
+ * @category Payment Terms
1000
+ * @summary Response payload for order term retrieval
1001
+ * @description Swagger-aligned response schema for GET /order/term
1002
+ * @interface GetOrderTermResponse
1003
+ */
1004
+ export interface GetOrderTermResponse {
1005
+ amount?: number;
1006
+ due_date?: TimestampDTO;
1007
+ paid_date?: TimestampDTO;
1008
+ required?: boolean;
1009
+ status?: string;
1010
+ term_sequence?: number;
1011
+ }
1012
+ export interface OrderPaymentTermActionResponse {
1013
+ code?: number;
1014
+ message?: string;
1015
+ }
719
1016
  /**
720
1017
  * @category Payment Terms
721
1018
  * @summary Request data for deleting a payment term
@@ -723,6 +1020,7 @@ export interface PaymentTermResponse {
723
1020
  * @interface PaymentTermDeleteRequest
724
1021
  */
725
1022
  export interface PaymentTermDeleteRequest {
1023
+ order_id?: string;
726
1024
  term_reference_id: string;
727
1025
  }
728
1026
  /**
@@ -732,11 +1030,14 @@ export interface PaymentTermDeleteRequest {
732
1030
  * @interface PaymentTermRefundResponse
733
1031
  */
734
1032
  export interface PaymentTermRefundResponse {
735
- refund_id: string;
736
- term_reference_id: string;
737
- amount: number;
738
- status: string;
739
- created_at: string;
1033
+ code?: number;
1034
+ is_success?: boolean;
1035
+ message?: string;
1036
+ refund_id?: string;
1037
+ term_reference_id?: string;
1038
+ amount?: number;
1039
+ status?: string;
1040
+ created_at?: string;
740
1041
  refund_reference_id?: string;
741
1042
  }
742
1043
  /**
@@ -766,9 +1067,11 @@ export interface OrderTerminateRequest {
766
1067
  * @interface OrderTerminateResponse
767
1068
  */
768
1069
  export interface OrderTerminateResponse {
769
- reference_id: string;
770
- status: string;
771
- terminated_at: string;
1070
+ code?: number;
1071
+ message?: string;
1072
+ reference_id?: string;
1073
+ status?: string;
1074
+ terminated_at?: string;
772
1075
  reason?: string;
773
1076
  }
774
1077
  /**
@@ -803,6 +1106,10 @@ export interface SubscriptionCancelRequest {
803
1106
  external_reference_id?: string;
804
1107
  reference_id?: string;
805
1108
  }
1109
+ export interface CancelSubscriptionResponse {
1110
+ code?: number;
1111
+ message?: string;
1112
+ }
806
1113
  export interface SubscriptionBilling {
807
1114
  address?: string;
808
1115
  city?: string;
@@ -865,6 +1172,29 @@ export interface SubscriptionDetail {
865
1172
  period?: number;
866
1173
  title?: string;
867
1174
  }
1175
+ export interface SubscriptionListItem {
1176
+ amount?: string;
1177
+ currency?: string;
1178
+ external_reference_id?: string;
1179
+ is_active?: boolean;
1180
+ payment_date?: number;
1181
+ payment_status?: string;
1182
+ period?: number;
1183
+ reference_id?: string;
1184
+ title?: string;
1185
+ }
1186
+ export interface ListSubscriptionsRequest {
1187
+ page?: number;
1188
+ per_page?: number;
1189
+ [key: string]: unknown;
1190
+ }
1191
+ export interface ListSubscriptionsResponse {
1192
+ page?: number;
1193
+ per_page?: number;
1194
+ rows?: SubscriptionListItem[];
1195
+ total?: number;
1196
+ total_pages?: number;
1197
+ }
868
1198
  export interface SubscriptionCreateResponse {
869
1199
  code?: number;
870
1200
  message?: string;
@@ -885,18 +1215,43 @@ export interface OrganizationSettings {
885
1215
  subscription_domain?: string;
886
1216
  }
887
1217
  export interface OrderTransaction {
888
- id: string;
889
- date: string;
890
- amount: number;
891
- type: string;
892
- status: string;
1218
+ amount?: string;
1219
+ amount_float?: number;
1220
+ currency?: string;
1221
+ date?: string;
1222
+ id?: string;
1223
+ receiver?: string;
1224
+ reference_id?: string;
1225
+ sender?: string;
1226
+ status?: string;
893
1227
  [key: string]: unknown;
894
1228
  }
1229
+ export interface GetOrderTransactionsResponse {
1230
+ orderTX?: OrderTransaction[];
1231
+ }
895
1232
  export interface OrderSubmerchant {
896
- id: string;
897
- name: string;
1233
+ acquirer?: string;
1234
+ email?: string;
1235
+ id?: string;
1236
+ labels?: string;
1237
+ name?: string;
1238
+ status?: string;
1239
+ submerchant_key?: string;
1240
+ submerchant_type?: string;
1241
+ [key: string]: unknown;
1242
+ }
1243
+ export interface GetOrderSubmerchantsRequest {
1244
+ page?: number;
1245
+ per_page?: number;
898
1246
  [key: string]: unknown;
899
1247
  }
1248
+ export interface GetOrderSubmerchantsResponse {
1249
+ page?: number;
1250
+ per_page?: number;
1251
+ row?: OrderSubmerchant[];
1252
+ total?: number;
1253
+ total_pages?: number;
1254
+ }
900
1255
  /**
901
1256
  * @category Order Management
902
1257
  * @summary Request for order accounting
@@ -906,6 +1261,16 @@ export interface OrderSubmerchant {
906
1261
  export interface OrderAccountingRequest {
907
1262
  order_reference_id: string;
908
1263
  }
1264
+ /**
1265
+ * @category Order Management
1266
+ * @summary Response for order accounting
1267
+ * @description API response payload returned after order accounting operation
1268
+ * @interface OrderAccountingResponse
1269
+ */
1270
+ export interface OrderAccountingResponse {
1271
+ code?: number;
1272
+ message?: string;
1273
+ }
909
1274
  /**
910
1275
  * @category Order Management
911
1276
  * @summary Request to add an item to the basket
@@ -936,6 +1301,35 @@ export interface UpdateBasketItemRequest {
936
1301
  order_reference_id: string;
937
1302
  basket_item: BasketItemDTO;
938
1303
  }
1304
+ export interface AddBasketItemResponse {
1305
+ code?: number;
1306
+ message?: string;
1307
+ }
1308
+ export interface RemoveBasketItemResponse {
1309
+ code?: number;
1310
+ message?: string;
1311
+ }
1312
+ export interface UpdateBasketItemResponse {
1313
+ code?: number;
1314
+ message?: string;
1315
+ }
1316
+ export interface OrderManualCallbackRequest {
1317
+ conversation_id?: string;
1318
+ reference_id: string;
1319
+ }
1320
+ export interface OrderManualCallbackResponse {
1321
+ code?: number;
1322
+ message?: string;
1323
+ }
1324
+ export interface OrderRelatedUpdateRequest {
1325
+ reference_id: string;
1326
+ related_reference_id: string;
1327
+ }
1328
+ export interface OrderRelatedUpdateResponse {
1329
+ code?: number;
1330
+ is_success?: boolean;
1331
+ message?: string;
1332
+ }
939
1333
  /**
940
1334
  * @category Organization
941
1335
  * @summary Webhook callback URL configuration
@@ -955,7 +1349,10 @@ export interface CallbackURLDTO {
955
1349
  */
956
1350
  export declare enum BusinessType {
957
1351
  INDIVIDUAL = 0,
958
- CORPORATE = 1
1352
+ CORPORATE = 1,
1353
+ NON_PROFIT = 2,
1354
+ GOVERNMENT = 3,
1355
+ UNKNOWN = 4
959
1356
  }
960
1357
  /**
961
1358
  * @category Organization
@@ -976,6 +1373,39 @@ export interface OrgCreateBusinessRequest {
976
1373
  tax_office: string;
977
1374
  zip_code: string;
978
1375
  }
1376
+ export interface OrgCreateBusinessResponse {
1377
+ code?: number;
1378
+ message?: string;
1379
+ }
1380
+ export interface OrganizationResponse {
1381
+ message?: string;
1382
+ }
1383
+ export interface OrganizationCurrency {
1384
+ code?: string;
1385
+ currency_unit?: string;
1386
+ id?: string;
1387
+ name?: string;
1388
+ symbol?: string;
1389
+ }
1390
+ export interface GetOrganizationCurrenciesResponse {
1391
+ currencies?: OrganizationCurrency[];
1392
+ }
1393
+ export interface UserLimit {
1394
+ currency?: string;
1395
+ id?: string;
1396
+ max_daily_transaction_amount?: number;
1397
+ max_daily_transaction_count?: number;
1398
+ max_expense_amount?: number;
1399
+ max_income_amount?: number;
1400
+ max_monthly_transaction_amount?: number;
1401
+ max_monthly_transaction_count?: number;
1402
+ max_topup_amount?: number;
1403
+ max_wallet_balance?: number;
1404
+ max_withdrawal_amount?: number;
1405
+ }
1406
+ export interface GetUserLimitResponse {
1407
+ user_limits?: UserLimit[];
1408
+ }
979
1409
  /**
980
1410
  * @category Organization
981
1411
  * @summary Request for user limit information
@@ -996,6 +1426,44 @@ export interface SetLimitUserRequest {
996
1426
  limit_id: string;
997
1427
  user_id: string;
998
1428
  }
1429
+ export interface SetLimitUserResponse {
1430
+ code?: number;
1431
+ message?: string;
1432
+ }
1433
+ export interface OrganizationLimit extends UserLimit {
1434
+ name?: string;
1435
+ }
1436
+ export interface GetOrganizationLimitsResponse {
1437
+ limits?: OrganizationLimit[];
1438
+ }
1439
+ export interface GetMetaResponse {
1440
+ data?: string;
1441
+ }
1442
+ export interface OrganizationScope {
1443
+ create?: boolean;
1444
+ delete?: boolean;
1445
+ entity?: string;
1446
+ read?: boolean;
1447
+ update?: boolean;
1448
+ }
1449
+ export interface GetOrganizationScopesResponse {
1450
+ scopes?: OrganizationScope[];
1451
+ }
1452
+ export interface GetSuborganizationsRequest {
1453
+ page?: number;
1454
+ per_page?: number;
1455
+ }
1456
+ export interface OrganizationSuborganization {
1457
+ id?: string;
1458
+ name?: string;
1459
+ }
1460
+ export interface GetSubOrganizationListResponse {
1461
+ page?: number;
1462
+ per_page?: number;
1463
+ rows?: OrganizationSuborganization[];
1464
+ total?: number;
1465
+ total_pages?: number;
1466
+ }
999
1467
  /**
1000
1468
  * @category Organization
1001
1469
  * @summary Request for VPOS list
@@ -1006,13 +1474,20 @@ export interface GetVposRequest {
1006
1474
  currency_id: string;
1007
1475
  [key: string]: unknown;
1008
1476
  }
1477
+ export interface OrganizationVpos {
1478
+ id?: string;
1479
+ name?: string;
1480
+ }
1481
+ export interface GetVposResponse {
1482
+ organization_vpos?: OrganizationVpos[];
1483
+ }
1009
1484
  /**
1010
1485
  * @category Organization
1011
1486
  * @summary Request to create an organization user
1012
1487
  * @description Comprehensive data for creating a new user within an organization
1013
- * @interface OrgCreateUserReq
1488
+ * @interface OrgCreateUserRequest
1014
1489
  */
1015
- export interface OrgCreateUserReq {
1490
+ export interface OrgCreateUserRequest {
1016
1491
  conversation_id: string;
1017
1492
  email: string;
1018
1493
  first_name: string;
@@ -1022,24 +1497,43 @@ export interface OrgCreateUserReq {
1022
1497
  phone: string;
1023
1498
  reference_id: string;
1024
1499
  }
1500
+ export interface OrgCreateUserResponse {
1501
+ code?: number;
1502
+ message?: string;
1503
+ user_id?: string;
1504
+ }
1505
+ export type OrgCreateUserReq = OrgCreateUserRequest;
1506
+ export type OrgCreateUserRes = OrgCreateUserResponse;
1025
1507
  /**
1026
1508
  * @category Organization
1027
1509
  * @summary Request to verify a user
1028
1510
  * @description Data required to verify a user's account
1029
- * @interface OrgUserVerifyReq
1511
+ * @interface OrgUserVerifyRequest
1030
1512
  */
1031
- export interface OrgUserVerifyReq {
1513
+ export interface OrgUserVerifyRequest {
1032
1514
  user_id: string;
1033
1515
  }
1516
+ export interface OrgUserVerifyResponse {
1517
+ code?: number;
1518
+ message?: string;
1519
+ }
1520
+ export type OrgUserVerifyReq = OrgUserVerifyRequest;
1521
+ export type OrgUserVerifyRes = OrgUserVerifyResponse;
1034
1522
  /**
1035
1523
  * @category Organization
1036
1524
  * @summary Request to verify user's mobile number
1037
1525
  * @description Data required to initiate or complete mobile number verification
1038
- * @interface OrgUserMobileVerifyReq
1526
+ * @interface OrgUserMobileVerifyRequest
1039
1527
  */
1040
- export interface OrgUserMobileVerifyReq {
1528
+ export interface OrgUserMobileVerifyRequest {
1041
1529
  user_id: string;
1042
1530
  }
1531
+ export interface OrgUserMobileVerifyResponse {
1532
+ code?: number;
1533
+ message?: string;
1534
+ }
1535
+ export type OrgUserMobileVerifyReq = OrgUserMobileVerifyRequest;
1536
+ export type OrgUserMobileVerifyRes = OrgUserMobileVerifyResponse;
1043
1537
  /**
1044
1538
  * @category Order Management
1045
1539
  * @summary Request for order post-authorization
@@ -1050,4 +1544,155 @@ export interface OrderPostAuthRequest {
1050
1544
  amount: number;
1051
1545
  reference_id: string;
1052
1546
  }
1547
+ /**
1548
+ * @category Order Management
1549
+ * @summary Response for order post-authorization
1550
+ * @description API response payload returned after post-authorization operation
1551
+ * @interface OrderPostAuthResponse
1552
+ */
1553
+ export interface OrderPostAuthResponse {
1554
+ code?: number;
1555
+ is_success?: boolean;
1556
+ message?: string;
1557
+ }
1558
+ export interface OrderPaymentOptionsUpdateDTO {
1559
+ payment_options: string[];
1560
+ reference_id: string;
1561
+ }
1562
+ export interface SplitOrderItemPaymentDTO {
1563
+ amount: number;
1564
+ order_id: string;
1565
+ order_item_payment_id: string;
1566
+ }
1567
+ export interface OrderCallbackResponse {
1568
+ [key: string]: unknown;
1569
+ }
1570
+ export interface OrderVposQueryResponse {
1571
+ [key: string]: unknown;
1572
+ }
1573
+ export interface OrganizationCurrencyPreset {
1574
+ id?: string;
1575
+ name?: string;
1576
+ code?: string;
1577
+ [key: string]: unknown;
1578
+ }
1579
+ export interface GetOrganizationCurrencyPresetsResponse {
1580
+ presets?: OrganizationCurrencyPreset[];
1581
+ }
1582
+ export interface GetSuborganizationDetailsResponse {
1583
+ [key: string]: unknown;
1584
+ }
1585
+ export interface GetSuborganizationSubmerchantsResponse {
1586
+ [key: string]: unknown;
1587
+ }
1588
+ export interface SystemBasketItemType {
1589
+ code?: string | number;
1590
+ message?: string;
1591
+ }
1592
+ export interface GetSystemBasketItemTypesResponse {
1593
+ rows?: SystemBasketItemType[];
1594
+ }
1595
+ export interface SystemErrorCode {
1596
+ code?: string | number;
1597
+ message?: string;
1598
+ }
1599
+ export interface GetSystemErrorCodesResponse {
1600
+ rows?: SystemErrorCode[];
1601
+ }
1602
+ export interface SystemPaymentTermStatus {
1603
+ code?: string | number;
1604
+ message?: string;
1605
+ }
1606
+ export interface GetSystemPaymentTermStatusesResponse {
1607
+ rows?: SystemPaymentTermStatus[];
1608
+ }
1609
+ export interface SystemProductType {
1610
+ code?: string | number;
1611
+ message?: string;
1612
+ }
1613
+ export interface GetSystemProductTypesResponse {
1614
+ rows?: SystemProductType[];
1615
+ }
1616
+ export interface SystemShortcutType {
1617
+ code?: string | number;
1618
+ message?: string;
1619
+ }
1620
+ export interface GetSystemShortcutTypesResponse {
1621
+ rows?: SystemShortcutType[];
1622
+ }
1623
+ export interface SystemTransactionPaymentType {
1624
+ code?: string | number;
1625
+ message?: string;
1626
+ }
1627
+ export interface GetSystemTransactionPaymentTypesResponse {
1628
+ rows?: SystemTransactionPaymentType[];
1629
+ }
1630
+ export interface SystemTransactionPurpose {
1631
+ code?: string | number;
1632
+ message?: string;
1633
+ }
1634
+ export interface GetSystemTransactionPurposesResponse {
1635
+ rows?: SystemTransactionPurpose[];
1636
+ }
1637
+ export interface SystemTransactionStatus {
1638
+ code?: string | number;
1639
+ message?: string;
1640
+ }
1641
+ export interface GetSystemTransactionStatusesResponse {
1642
+ rows?: SystemTransactionStatus[];
1643
+ }
1644
+ export interface GetOrderPaymentsRequest {
1645
+ order_id: string;
1646
+ }
1647
+ export interface GetOrderPaymentsResponse {
1648
+ [key: string]: unknown;
1649
+ }
1650
+ export interface OrderOIPDTO {
1651
+ amount: number;
1652
+ type: number;
1653
+ basket_item_id?: string;
1654
+ order_id?: string;
1655
+ order_item_id?: string;
1656
+ }
1657
+ export interface OrderOIPResponse {
1658
+ [key: string]: unknown;
1659
+ }
1660
+ export interface SubmerchantCreateDTO {
1661
+ address: string;
1662
+ city: string;
1663
+ country: string;
1664
+ email: string;
1665
+ gsm_number: string;
1666
+ iban: string;
1667
+ identity_number: string;
1668
+ name: string;
1669
+ contact_name: string;
1670
+ contact_surname: string;
1671
+ sub_merchant_type: string;
1672
+ tax_office: string;
1673
+ zip_code: string;
1674
+ district?: string;
1675
+ iban_name?: string;
1676
+ }
1677
+ export type SubmerchantUpdateDTO = Partial<SubmerchantCreateDTO>;
1678
+ export interface GetSubmerchantResponse {
1679
+ [key: string]: unknown;
1680
+ }
1681
+ export interface ListSubmerchantsResponse {
1682
+ data?: unknown[];
1683
+ total?: number;
1684
+ page?: number;
1685
+ per_page?: number;
1686
+ }
1687
+ export interface OrgUserTokenCreateReq {
1688
+ email: string;
1689
+ expire?: number;
1690
+ language?: string;
1691
+ metadata?: Record<string, unknown>;
1692
+ title?: string;
1693
+ type?: string;
1694
+ }
1695
+ export interface OrgUserTokenCreateResponse {
1696
+ [key: string]: unknown;
1697
+ }
1053
1698
  //# sourceMappingURL=index.d.ts.map