@deliverart/sdk-js-payment 2.5.34 → 2.6.1

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/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
2
- import { Paginated } from '@deliverart/sdk-js-global-types';
3
2
  export { PaymentMethod, PaymentStatus, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses } from '@deliverart/sdk-js-global-types';
4
3
  import { z } from 'zod';
5
4
  import { AbstractApiRequest } from '@deliverart/sdk-js-core';
@@ -663,7 +662,7 @@ declare class GetPaymentConfigBankTransferDetails extends AbstractApiRequest<typ
663
662
  type GetPaymentConfigBankTransferListQueryParams = PaymentConfigsQueryParams;
664
663
  declare const getPaymentConfigBankTransferListInputSchema: z.ZodUndefined;
665
664
  type GetPaymentConfigBankTransferListInput = z.input<typeof getPaymentConfigBankTransferListInputSchema>;
666
- declare const getPaymentConfigBankTransferListResponseSchema: z.ZodObject<{
665
+ declare const getPaymentConfigBankTransferListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
667
666
  data: z.ZodArray<z.ZodObject<{
668
667
  id: z.ZodString;
669
668
  configurationCompleted: z.ZodBoolean;
@@ -685,14 +684,26 @@ declare const getPaymentConfigBankTransferListResponseSchema: z.ZodObject<{
685
684
  currentPage: z.ZodCoercedNumber<unknown>;
686
685
  lastPage: z.ZodCoercedNumber<unknown>;
687
686
  }, z.core.$strip>;
688
- }, z.core.$strip>;
687
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
688
+ id: z.ZodString;
689
+ configurationCompleted: z.ZodBoolean;
690
+ createdAt: z.ZodString;
691
+ updatedAt: z.ZodString;
692
+ method: z.ZodLiteral<"bank_transfer">;
693
+ iban: z.ZodString;
694
+ bic: z.ZodString;
695
+ accountHolder: z.ZodString;
696
+ bankName: z.ZodString;
697
+ bankAddress: z.ZodNullable<z.ZodString>;
698
+ currency: z.ZodString;
699
+ }, z.core.$strip>>]>;
689
700
  type GetPaymentConfigBankTransferListResponse = z.infer<typeof getPaymentConfigBankTransferListResponseSchema>;
690
701
  declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof getPaymentConfigBankTransferListInputSchema, typeof getPaymentConfigBankTransferListResponseSchema, GetPaymentConfigBankTransferListQueryParams> {
691
- readonly method = "GET";
692
- readonly contentType = "application/json";
693
- readonly accept = "application/json";
702
+ readonly method: "GET";
703
+ readonly contentType: "application/json";
704
+ readonly accept: "application/json";
694
705
  readonly inputSchema: z.ZodUndefined;
695
- readonly outputSchema: z.ZodObject<{
706
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
696
707
  data: z.ZodArray<z.ZodObject<{
697
708
  id: z.ZodString;
698
709
  configurationCompleted: z.ZodBoolean;
@@ -714,7 +725,19 @@ declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof
714
725
  currentPage: z.ZodCoercedNumber<unknown>;
715
726
  lastPage: z.ZodCoercedNumber<unknown>;
716
727
  }, z.core.$strip>;
717
- }, z.core.$strip>;
728
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
729
+ id: z.ZodString;
730
+ configurationCompleted: z.ZodBoolean;
731
+ createdAt: z.ZodString;
732
+ updatedAt: z.ZodString;
733
+ method: z.ZodLiteral<"bank_transfer">;
734
+ iban: z.ZodString;
735
+ bic: z.ZodString;
736
+ accountHolder: z.ZodString;
737
+ bankName: z.ZodString;
738
+ bankAddress: z.ZodNullable<z.ZodString>;
739
+ currency: z.ZodString;
740
+ }, z.core.$strip>>]>;
718
741
  readonly querySchema: z.ZodObject<{
719
742
  method: z.ZodOptional<z.ZodEnum<{
720
743
  stripe: "stripe";
@@ -742,11 +765,24 @@ declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof
742
765
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
743
766
  }, z.core.$strip>;
744
767
  readonly headersSchema: undefined;
768
+ readonly listItemSchema: z.ZodObject<{
769
+ id: z.ZodString;
770
+ configurationCompleted: z.ZodBoolean;
771
+ createdAt: z.ZodString;
772
+ updatedAt: z.ZodString;
773
+ method: z.ZodLiteral<"bank_transfer">;
774
+ iban: z.ZodString;
775
+ bic: z.ZodString;
776
+ accountHolder: z.ZodString;
777
+ bankName: z.ZodString;
778
+ bankAddress: z.ZodNullable<z.ZodString>;
779
+ currency: z.ZodString;
780
+ }, z.core.$strip>;
781
+ readonly paginationDefaultEnabled = true;
745
782
  constructor(options?: {
746
783
  query?: GetPaymentConfigBankTransferListQueryParams;
747
784
  });
748
785
  getPath(): string;
749
- parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigBankTransfer>;
750
786
  }
751
787
 
752
788
  declare const updatePaymentConfigBankTransferInputSchema: z.ZodObject<{
@@ -889,7 +925,7 @@ declare class GetPaymentConfigCashDetails extends AbstractApiRequest<typeof getP
889
925
  type GetPaymentConfigCashListQueryParams = PaymentConfigsQueryParams;
890
926
  declare const getPaymentConfigCashListInputSchema: z.ZodUndefined;
891
927
  type GetPaymentConfigCashListInput = z.input<typeof getPaymentConfigCashListInputSchema>;
892
- declare const getPaymentConfigCashListResponseSchema: z.ZodObject<{
928
+ declare const getPaymentConfigCashListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
893
929
  data: z.ZodArray<z.ZodObject<{
894
930
  id: z.ZodString;
895
931
  configurationCompleted: z.ZodBoolean;
@@ -905,14 +941,20 @@ declare const getPaymentConfigCashListResponseSchema: z.ZodObject<{
905
941
  currentPage: z.ZodCoercedNumber<unknown>;
906
942
  lastPage: z.ZodCoercedNumber<unknown>;
907
943
  }, z.core.$strip>;
908
- }, z.core.$strip>;
944
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
945
+ id: z.ZodString;
946
+ configurationCompleted: z.ZodBoolean;
947
+ createdAt: z.ZodString;
948
+ updatedAt: z.ZodString;
949
+ method: z.ZodLiteral<"cash">;
950
+ }, z.core.$strip>>]>;
909
951
  type GetPaymentConfigCashListResponse = z.infer<typeof getPaymentConfigCashListResponseSchema>;
910
952
  declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaymentConfigCashListInputSchema, typeof getPaymentConfigCashListResponseSchema, GetPaymentConfigCashListQueryParams> {
911
- readonly method = "GET";
912
- readonly contentType = "application/json";
913
- readonly accept = "application/json";
953
+ readonly method: "GET";
954
+ readonly contentType: "application/json";
955
+ readonly accept: "application/json";
914
956
  readonly inputSchema: z.ZodUndefined;
915
- readonly outputSchema: z.ZodObject<{
957
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
916
958
  data: z.ZodArray<z.ZodObject<{
917
959
  id: z.ZodString;
918
960
  configurationCompleted: z.ZodBoolean;
@@ -928,7 +970,13 @@ declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaym
928
970
  currentPage: z.ZodCoercedNumber<unknown>;
929
971
  lastPage: z.ZodCoercedNumber<unknown>;
930
972
  }, z.core.$strip>;
931
- }, z.core.$strip>;
973
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
974
+ id: z.ZodString;
975
+ configurationCompleted: z.ZodBoolean;
976
+ createdAt: z.ZodString;
977
+ updatedAt: z.ZodString;
978
+ method: z.ZodLiteral<"cash">;
979
+ }, z.core.$strip>>]>;
932
980
  readonly querySchema: z.ZodObject<{
933
981
  method: z.ZodOptional<z.ZodEnum<{
934
982
  stripe: "stripe";
@@ -956,11 +1004,18 @@ declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaym
956
1004
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
957
1005
  }, z.core.$strip>;
958
1006
  readonly headersSchema: undefined;
1007
+ readonly listItemSchema: z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ configurationCompleted: z.ZodBoolean;
1010
+ createdAt: z.ZodString;
1011
+ updatedAt: z.ZodString;
1012
+ method: z.ZodLiteral<"cash">;
1013
+ }, z.core.$strip>;
1014
+ readonly paginationDefaultEnabled = true;
959
1015
  constructor(options?: {
960
1016
  query?: GetPaymentConfigCashListQueryParams;
961
1017
  });
962
1018
  getPath(): string;
963
- parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigCash>;
964
1019
  }
965
1020
 
966
1021
  declare const createPaymentConfigCreditCardInputSchema: z.ZodObject<{
@@ -1046,7 +1101,7 @@ declare class GetPaymentConfigCreditCardDetails extends AbstractApiRequest<typeo
1046
1101
  type GetPaymentConfigCreditCardListQueryParams = PaymentConfigsQueryParams;
1047
1102
  declare const getPaymentConfigCreditCardListInputSchema: z.ZodUndefined;
1048
1103
  type GetPaymentConfigCreditCardListInput = z.input<typeof getPaymentConfigCreditCardListInputSchema>;
1049
- declare const getPaymentConfigCreditCardListResponseSchema: z.ZodObject<{
1104
+ declare const getPaymentConfigCreditCardListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1050
1105
  data: z.ZodArray<z.ZodObject<{
1051
1106
  id: z.ZodString;
1052
1107
  configurationCompleted: z.ZodBoolean;
@@ -1062,14 +1117,20 @@ declare const getPaymentConfigCreditCardListResponseSchema: z.ZodObject<{
1062
1117
  currentPage: z.ZodCoercedNumber<unknown>;
1063
1118
  lastPage: z.ZodCoercedNumber<unknown>;
1064
1119
  }, z.core.$strip>;
1065
- }, z.core.$strip>;
1120
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
1121
+ id: z.ZodString;
1122
+ configurationCompleted: z.ZodBoolean;
1123
+ createdAt: z.ZodString;
1124
+ updatedAt: z.ZodString;
1125
+ method: z.ZodLiteral<"credit_card">;
1126
+ }, z.core.$strip>>]>;
1066
1127
  type GetPaymentConfigCreditCardListResponse = z.infer<typeof getPaymentConfigCreditCardListResponseSchema>;
1067
1128
  declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof getPaymentConfigCreditCardListInputSchema, typeof getPaymentConfigCreditCardListResponseSchema, GetPaymentConfigCreditCardListQueryParams> {
1068
- readonly method = "GET";
1069
- readonly contentType = "application/json";
1070
- readonly accept = "application/json";
1129
+ readonly method: "GET";
1130
+ readonly contentType: "application/json";
1131
+ readonly accept: "application/json";
1071
1132
  readonly inputSchema: z.ZodUndefined;
1072
- readonly outputSchema: z.ZodObject<{
1133
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1073
1134
  data: z.ZodArray<z.ZodObject<{
1074
1135
  id: z.ZodString;
1075
1136
  configurationCompleted: z.ZodBoolean;
@@ -1085,7 +1146,13 @@ declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof g
1085
1146
  currentPage: z.ZodCoercedNumber<unknown>;
1086
1147
  lastPage: z.ZodCoercedNumber<unknown>;
1087
1148
  }, z.core.$strip>;
1088
- }, z.core.$strip>;
1149
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
1150
+ id: z.ZodString;
1151
+ configurationCompleted: z.ZodBoolean;
1152
+ createdAt: z.ZodString;
1153
+ updatedAt: z.ZodString;
1154
+ method: z.ZodLiteral<"credit_card">;
1155
+ }, z.core.$strip>>]>;
1089
1156
  readonly querySchema: z.ZodObject<{
1090
1157
  method: z.ZodOptional<z.ZodEnum<{
1091
1158
  stripe: "stripe";
@@ -1113,11 +1180,18 @@ declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof g
1113
1180
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1114
1181
  }, z.core.$strip>;
1115
1182
  readonly headersSchema: undefined;
1183
+ readonly listItemSchema: z.ZodObject<{
1184
+ id: z.ZodString;
1185
+ configurationCompleted: z.ZodBoolean;
1186
+ createdAt: z.ZodString;
1187
+ updatedAt: z.ZodString;
1188
+ method: z.ZodLiteral<"credit_card">;
1189
+ }, z.core.$strip>;
1190
+ readonly paginationDefaultEnabled = true;
1116
1191
  constructor(options?: {
1117
1192
  query?: GetPaymentConfigCreditCardListQueryParams;
1118
1193
  });
1119
1194
  getPath(): string;
1120
- parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigCreditCard>;
1121
1195
  }
1122
1196
 
1123
1197
  declare const deletePaymentConfigInputSchema: z.ZodUndefined;
@@ -1229,7 +1303,7 @@ declare class GetPaymentConfigDetails extends AbstractApiRequest<typeof getPayme
1229
1303
  type GetPaymentConfigsQueryParams = PaymentConfigsQueryParams;
1230
1304
  declare const getPaymentConfigsInputSchema: z.ZodUndefined;
1231
1305
  type GetPaymentConfigsInput = z.input<typeof getPaymentConfigsInputSchema>;
1232
- declare const getPaymentConfigsResponseSchema: z.ZodObject<{
1306
+ declare const getPaymentConfigsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1233
1307
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1234
1308
  id: z.ZodString;
1235
1309
  configurationCompleted: z.ZodBoolean;
@@ -1272,14 +1346,47 @@ declare const getPaymentConfigsResponseSchema: z.ZodObject<{
1272
1346
  currentPage: z.ZodCoercedNumber<unknown>;
1273
1347
  lastPage: z.ZodCoercedNumber<unknown>;
1274
1348
  }, z.core.$strip>;
1275
- }, z.core.$strip>;
1349
+ }, z.core.$strip>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1350
+ id: z.ZodString;
1351
+ configurationCompleted: z.ZodBoolean;
1352
+ createdAt: z.ZodString;
1353
+ updatedAt: z.ZodString;
1354
+ method: z.ZodLiteral<"bank_transfer">;
1355
+ iban: z.ZodString;
1356
+ bic: z.ZodString;
1357
+ accountHolder: z.ZodString;
1358
+ bankName: z.ZodString;
1359
+ bankAddress: z.ZodNullable<z.ZodString>;
1360
+ currency: z.ZodString;
1361
+ }, z.core.$strip>, z.ZodObject<{
1362
+ id: z.ZodString;
1363
+ configurationCompleted: z.ZodBoolean;
1364
+ createdAt: z.ZodString;
1365
+ updatedAt: z.ZodString;
1366
+ method: z.ZodLiteral<"stripe">;
1367
+ secretKey: z.ZodString;
1368
+ webhookSecret: z.ZodNullable<z.ZodString>;
1369
+ webhookId: z.ZodNullable<z.ZodString>;
1370
+ }, z.core.$strip>, z.ZodObject<{
1371
+ id: z.ZodString;
1372
+ configurationCompleted: z.ZodBoolean;
1373
+ createdAt: z.ZodString;
1374
+ updatedAt: z.ZodString;
1375
+ method: z.ZodLiteral<"cash">;
1376
+ }, z.core.$strip>, z.ZodObject<{
1377
+ id: z.ZodString;
1378
+ configurationCompleted: z.ZodBoolean;
1379
+ createdAt: z.ZodString;
1380
+ updatedAt: z.ZodString;
1381
+ method: z.ZodLiteral<"credit_card">;
1382
+ }, z.core.$strip>]>>]>;
1276
1383
  type GetPaymentConfigsResponse = z.infer<typeof getPaymentConfigsResponseSchema>;
1277
1384
  declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConfigsInputSchema, typeof getPaymentConfigsResponseSchema, GetPaymentConfigsQueryParams> {
1278
- readonly method = "GET";
1279
- readonly contentType = "application/json";
1280
- readonly accept = "application/json";
1385
+ readonly method: "GET";
1386
+ readonly contentType: "application/json";
1387
+ readonly accept: "application/json";
1281
1388
  readonly inputSchema: z.ZodUndefined;
1282
- readonly outputSchema: z.ZodObject<{
1389
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1283
1390
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1284
1391
  id: z.ZodString;
1285
1392
  configurationCompleted: z.ZodBoolean;
@@ -1322,7 +1429,40 @@ declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConf
1322
1429
  currentPage: z.ZodCoercedNumber<unknown>;
1323
1430
  lastPage: z.ZodCoercedNumber<unknown>;
1324
1431
  }, z.core.$strip>;
1325
- }, z.core.$strip>;
1432
+ }, z.core.$strip>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1433
+ id: z.ZodString;
1434
+ configurationCompleted: z.ZodBoolean;
1435
+ createdAt: z.ZodString;
1436
+ updatedAt: z.ZodString;
1437
+ method: z.ZodLiteral<"bank_transfer">;
1438
+ iban: z.ZodString;
1439
+ bic: z.ZodString;
1440
+ accountHolder: z.ZodString;
1441
+ bankName: z.ZodString;
1442
+ bankAddress: z.ZodNullable<z.ZodString>;
1443
+ currency: z.ZodString;
1444
+ }, z.core.$strip>, z.ZodObject<{
1445
+ id: z.ZodString;
1446
+ configurationCompleted: z.ZodBoolean;
1447
+ createdAt: z.ZodString;
1448
+ updatedAt: z.ZodString;
1449
+ method: z.ZodLiteral<"stripe">;
1450
+ secretKey: z.ZodString;
1451
+ webhookSecret: z.ZodNullable<z.ZodString>;
1452
+ webhookId: z.ZodNullable<z.ZodString>;
1453
+ }, z.core.$strip>, z.ZodObject<{
1454
+ id: z.ZodString;
1455
+ configurationCompleted: z.ZodBoolean;
1456
+ createdAt: z.ZodString;
1457
+ updatedAt: z.ZodString;
1458
+ method: z.ZodLiteral<"cash">;
1459
+ }, z.core.$strip>, z.ZodObject<{
1460
+ id: z.ZodString;
1461
+ configurationCompleted: z.ZodBoolean;
1462
+ createdAt: z.ZodString;
1463
+ updatedAt: z.ZodString;
1464
+ method: z.ZodLiteral<"credit_card">;
1465
+ }, z.core.$strip>]>>]>;
1326
1466
  readonly querySchema: z.ZodObject<{
1327
1467
  method: z.ZodOptional<z.ZodEnum<{
1328
1468
  stripe: "stripe";
@@ -1350,11 +1490,45 @@ declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConf
1350
1490
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1351
1491
  }, z.core.$strip>;
1352
1492
  readonly headersSchema: undefined;
1493
+ readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1494
+ id: z.ZodString;
1495
+ configurationCompleted: z.ZodBoolean;
1496
+ createdAt: z.ZodString;
1497
+ updatedAt: z.ZodString;
1498
+ method: z.ZodLiteral<"bank_transfer">;
1499
+ iban: z.ZodString;
1500
+ bic: z.ZodString;
1501
+ accountHolder: z.ZodString;
1502
+ bankName: z.ZodString;
1503
+ bankAddress: z.ZodNullable<z.ZodString>;
1504
+ currency: z.ZodString;
1505
+ }, z.core.$strip>, z.ZodObject<{
1506
+ id: z.ZodString;
1507
+ configurationCompleted: z.ZodBoolean;
1508
+ createdAt: z.ZodString;
1509
+ updatedAt: z.ZodString;
1510
+ method: z.ZodLiteral<"stripe">;
1511
+ secretKey: z.ZodString;
1512
+ webhookSecret: z.ZodNullable<z.ZodString>;
1513
+ webhookId: z.ZodNullable<z.ZodString>;
1514
+ }, z.core.$strip>, z.ZodObject<{
1515
+ id: z.ZodString;
1516
+ configurationCompleted: z.ZodBoolean;
1517
+ createdAt: z.ZodString;
1518
+ updatedAt: z.ZodString;
1519
+ method: z.ZodLiteral<"cash">;
1520
+ }, z.core.$strip>, z.ZodObject<{
1521
+ id: z.ZodString;
1522
+ configurationCompleted: z.ZodBoolean;
1523
+ createdAt: z.ZodString;
1524
+ updatedAt: z.ZodString;
1525
+ method: z.ZodLiteral<"credit_card">;
1526
+ }, z.core.$strip>]>;
1527
+ readonly paginationDefaultEnabled = true;
1353
1528
  constructor(options?: {
1354
1529
  query?: GetPaymentConfigsQueryParams;
1355
1530
  });
1356
1531
  getPath(): string;
1357
- parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfig>;
1358
1532
  }
1359
1533
 
1360
1534
  type GetPaymentConfigsFromPointOfSaleQueryParams = PaymentConfigsQueryParams;
@@ -1396,9 +1570,9 @@ declare const getPaymentConfigsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDi
1396
1570
  }, z.core.$strip>]>>;
1397
1571
  type GetPaymentConfigsFromPointOfSaleResponse = z.infer<typeof getPaymentConfigsFromPointOfSaleResponseSchema>;
1398
1572
  declare class GetPaymentConfigsFromPointOfSale extends AbstractApiRequest<typeof getPaymentConfigsFromPointOfSaleInputSchema, typeof getPaymentConfigsFromPointOfSaleResponseSchema, GetPaymentConfigsFromPointOfSaleQueryParams> {
1399
- readonly method = "GET";
1400
- readonly contentType = "application/json";
1401
- readonly accept = "application/json";
1573
+ readonly method: "GET";
1574
+ readonly contentType: "application/json";
1575
+ readonly accept: "application/json";
1402
1576
  readonly inputSchema: z.ZodUndefined;
1403
1577
  readonly outputSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1404
1578
  id: z.ZodString;
@@ -1461,12 +1635,46 @@ declare class GetPaymentConfigsFromPointOfSale extends AbstractApiRequest<typeof
1461
1635
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1462
1636
  }, z.core.$strip>;
1463
1637
  readonly headersSchema: undefined;
1638
+ readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1639
+ id: z.ZodString;
1640
+ configurationCompleted: z.ZodBoolean;
1641
+ createdAt: z.ZodString;
1642
+ updatedAt: z.ZodString;
1643
+ method: z.ZodLiteral<"bank_transfer">;
1644
+ iban: z.ZodString;
1645
+ bic: z.ZodString;
1646
+ accountHolder: z.ZodString;
1647
+ bankName: z.ZodString;
1648
+ bankAddress: z.ZodNullable<z.ZodString>;
1649
+ currency: z.ZodString;
1650
+ }, z.core.$strip>, z.ZodObject<{
1651
+ id: z.ZodString;
1652
+ configurationCompleted: z.ZodBoolean;
1653
+ createdAt: z.ZodString;
1654
+ updatedAt: z.ZodString;
1655
+ method: z.ZodLiteral<"stripe">;
1656
+ secretKey: z.ZodString;
1657
+ webhookSecret: z.ZodNullable<z.ZodString>;
1658
+ webhookId: z.ZodNullable<z.ZodString>;
1659
+ }, z.core.$strip>, z.ZodObject<{
1660
+ id: z.ZodString;
1661
+ configurationCompleted: z.ZodBoolean;
1662
+ createdAt: z.ZodString;
1663
+ updatedAt: z.ZodString;
1664
+ method: z.ZodLiteral<"cash">;
1665
+ }, z.core.$strip>, z.ZodObject<{
1666
+ id: z.ZodString;
1667
+ configurationCompleted: z.ZodBoolean;
1668
+ createdAt: z.ZodString;
1669
+ updatedAt: z.ZodString;
1670
+ method: z.ZodLiteral<"credit_card">;
1671
+ }, z.core.$strip>]>;
1672
+ readonly paginationDefaultEnabled = false;
1464
1673
  private readonly pointOfSaleId;
1465
1674
  constructor(pointOfSaleId: string, options?: {
1466
1675
  query?: GetPaymentConfigsFromPointOfSaleQueryParams;
1467
1676
  });
1468
1677
  getPath(): string;
1469
- parseResponse(data: unknown): PaymentConfig[];
1470
1678
  }
1471
1679
 
1472
1680
  declare const createPaymentConfigStripeInputSchema: z.ZodObject<{
@@ -1566,7 +1774,7 @@ declare class GetPaymentConfigStripeDetails extends AbstractApiRequest<typeof ge
1566
1774
  type GetPaymentConfigStripeListQueryParams = PaymentConfigsQueryParams;
1567
1775
  declare const getPaymentConfigStripeListInputSchema: z.ZodUndefined;
1568
1776
  type GetPaymentConfigStripeListInput = z.input<typeof getPaymentConfigStripeListInputSchema>;
1569
- declare const getPaymentConfigStripeListResponseSchema: z.ZodObject<{
1777
+ declare const getPaymentConfigStripeListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1570
1778
  data: z.ZodArray<z.ZodObject<{
1571
1779
  id: z.ZodString;
1572
1780
  configurationCompleted: z.ZodBoolean;
@@ -1585,14 +1793,23 @@ declare const getPaymentConfigStripeListResponseSchema: z.ZodObject<{
1585
1793
  currentPage: z.ZodCoercedNumber<unknown>;
1586
1794
  lastPage: z.ZodCoercedNumber<unknown>;
1587
1795
  }, z.core.$strip>;
1588
- }, z.core.$strip>;
1796
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
1797
+ id: z.ZodString;
1798
+ configurationCompleted: z.ZodBoolean;
1799
+ createdAt: z.ZodString;
1800
+ updatedAt: z.ZodString;
1801
+ method: z.ZodLiteral<"stripe">;
1802
+ secretKey: z.ZodString;
1803
+ webhookSecret: z.ZodNullable<z.ZodString>;
1804
+ webhookId: z.ZodNullable<z.ZodString>;
1805
+ }, z.core.$strip>>]>;
1589
1806
  type GetPaymentConfigStripeListResponse = z.infer<typeof getPaymentConfigStripeListResponseSchema>;
1590
1807
  declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPaymentConfigStripeListInputSchema, typeof getPaymentConfigStripeListResponseSchema, GetPaymentConfigStripeListQueryParams> {
1591
- readonly method = "GET";
1592
- readonly contentType = "application/json";
1593
- readonly accept = "application/json";
1808
+ readonly method: "GET";
1809
+ readonly contentType: "application/json";
1810
+ readonly accept: "application/json";
1594
1811
  readonly inputSchema: z.ZodUndefined;
1595
- readonly outputSchema: z.ZodObject<{
1812
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1596
1813
  data: z.ZodArray<z.ZodObject<{
1597
1814
  id: z.ZodString;
1598
1815
  configurationCompleted: z.ZodBoolean;
@@ -1611,7 +1828,16 @@ declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPa
1611
1828
  currentPage: z.ZodCoercedNumber<unknown>;
1612
1829
  lastPage: z.ZodCoercedNumber<unknown>;
1613
1830
  }, z.core.$strip>;
1614
- }, z.core.$strip>;
1831
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
1832
+ id: z.ZodString;
1833
+ configurationCompleted: z.ZodBoolean;
1834
+ createdAt: z.ZodString;
1835
+ updatedAt: z.ZodString;
1836
+ method: z.ZodLiteral<"stripe">;
1837
+ secretKey: z.ZodString;
1838
+ webhookSecret: z.ZodNullable<z.ZodString>;
1839
+ webhookId: z.ZodNullable<z.ZodString>;
1840
+ }, z.core.$strip>>]>;
1615
1841
  readonly querySchema: z.ZodObject<{
1616
1842
  method: z.ZodOptional<z.ZodEnum<{
1617
1843
  stripe: "stripe";
@@ -1639,11 +1865,21 @@ declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPa
1639
1865
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1640
1866
  }, z.core.$strip>;
1641
1867
  readonly headersSchema: undefined;
1868
+ readonly listItemSchema: z.ZodObject<{
1869
+ id: z.ZodString;
1870
+ configurationCompleted: z.ZodBoolean;
1871
+ createdAt: z.ZodString;
1872
+ updatedAt: z.ZodString;
1873
+ method: z.ZodLiteral<"stripe">;
1874
+ secretKey: z.ZodString;
1875
+ webhookSecret: z.ZodNullable<z.ZodString>;
1876
+ webhookId: z.ZodNullable<z.ZodString>;
1877
+ }, z.core.$strip>;
1878
+ readonly paginationDefaultEnabled = true;
1642
1879
  constructor(options?: {
1643
1880
  query?: GetPaymentConfigStripeListQueryParams;
1644
1881
  });
1645
1882
  getPath(): string;
1646
- parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigStripe>;
1647
1883
  }
1648
1884
 
1649
1885
  declare const updatePaymentConfigStripeInputSchema: z.ZodObject<{
@@ -2013,7 +2249,7 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
2013
2249
  type GetPaymentsQueryParams = PaymentQueryParams;
2014
2250
  declare const getPaymentsInputSchema: z.ZodUndefined;
2015
2251
  type GetPaymentsInput = z.input<typeof getPaymentsInputSchema>;
2016
- declare const getPaymentsResponseSchema: z.ZodObject<{
2252
+ declare const getPaymentsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2017
2253
  data: z.ZodArray<z.ZodObject<{
2018
2254
  id: z.ZodString;
2019
2255
  method: z.ZodEnum<{
@@ -2046,14 +2282,37 @@ declare const getPaymentsResponseSchema: z.ZodObject<{
2046
2282
  currentPage: z.ZodCoercedNumber<unknown>;
2047
2283
  lastPage: z.ZodCoercedNumber<unknown>;
2048
2284
  }, z.core.$strip>;
2049
- }, z.core.$strip>;
2285
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2286
+ id: z.ZodString;
2287
+ method: z.ZodEnum<{
2288
+ stripe: "stripe";
2289
+ bank_transfer: "bank_transfer";
2290
+ cash: "cash";
2291
+ credit_card: "credit_card";
2292
+ }>;
2293
+ status: z.ZodEnum<{
2294
+ pending: "pending";
2295
+ pending_verification: "pending_verification";
2296
+ paid: "paid";
2297
+ canceled: "canceled";
2298
+ refunded: "refunded";
2299
+ failed: "failed";
2300
+ }>;
2301
+ amount: z.ZodString;
2302
+ internalReference: z.ZodNullable<z.ZodString>;
2303
+ externalReference: z.ZodNullable<z.ZodString>;
2304
+ response: z.ZodNullable<z.ZodString>;
2305
+ validUntil: z.ZodNullable<z.ZodString>;
2306
+ createdAt: z.ZodString;
2307
+ updatedAt: z.ZodString;
2308
+ }, z.core.$strip>>]>;
2050
2309
  type GetPaymentsResponse = z.infer<typeof getPaymentsResponseSchema>;
2051
2310
  declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSchema, typeof getPaymentsResponseSchema, GetPaymentsQueryParams> {
2052
- readonly method = "GET";
2053
- readonly contentType = "application/json";
2054
- readonly accept = "application/json";
2311
+ readonly method: "GET";
2312
+ readonly contentType: "application/json";
2313
+ readonly accept: "application/json";
2055
2314
  readonly inputSchema: z.ZodUndefined;
2056
- readonly outputSchema: z.ZodObject<{
2315
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2057
2316
  data: z.ZodArray<z.ZodObject<{
2058
2317
  id: z.ZodString;
2059
2318
  method: z.ZodEnum<{
@@ -2086,7 +2345,30 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
2086
2345
  currentPage: z.ZodCoercedNumber<unknown>;
2087
2346
  lastPage: z.ZodCoercedNumber<unknown>;
2088
2347
  }, z.core.$strip>;
2089
- }, z.core.$strip>;
2348
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2349
+ id: z.ZodString;
2350
+ method: z.ZodEnum<{
2351
+ stripe: "stripe";
2352
+ bank_transfer: "bank_transfer";
2353
+ cash: "cash";
2354
+ credit_card: "credit_card";
2355
+ }>;
2356
+ status: z.ZodEnum<{
2357
+ pending: "pending";
2358
+ pending_verification: "pending_verification";
2359
+ paid: "paid";
2360
+ canceled: "canceled";
2361
+ refunded: "refunded";
2362
+ failed: "failed";
2363
+ }>;
2364
+ amount: z.ZodString;
2365
+ internalReference: z.ZodNullable<z.ZodString>;
2366
+ externalReference: z.ZodNullable<z.ZodString>;
2367
+ response: z.ZodNullable<z.ZodString>;
2368
+ validUntil: z.ZodNullable<z.ZodString>;
2369
+ createdAt: z.ZodString;
2370
+ updatedAt: z.ZodString;
2371
+ }, z.core.$strip>>]>;
2090
2372
  readonly querySchema: z.ZodObject<{
2091
2373
  internalReference: z.ZodOptional<z.ZodString>;
2092
2374
  externalReference: z.ZodOptional<z.ZodString>;
@@ -2140,17 +2422,41 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
2140
2422
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2141
2423
  }, z.core.$strip>;
2142
2424
  readonly headersSchema: undefined;
2425
+ readonly listItemSchema: z.ZodObject<{
2426
+ id: z.ZodString;
2427
+ method: z.ZodEnum<{
2428
+ stripe: "stripe";
2429
+ bank_transfer: "bank_transfer";
2430
+ cash: "cash";
2431
+ credit_card: "credit_card";
2432
+ }>;
2433
+ status: z.ZodEnum<{
2434
+ pending: "pending";
2435
+ pending_verification: "pending_verification";
2436
+ paid: "paid";
2437
+ canceled: "canceled";
2438
+ refunded: "refunded";
2439
+ failed: "failed";
2440
+ }>;
2441
+ amount: z.ZodString;
2442
+ internalReference: z.ZodNullable<z.ZodString>;
2443
+ externalReference: z.ZodNullable<z.ZodString>;
2444
+ response: z.ZodNullable<z.ZodString>;
2445
+ validUntil: z.ZodNullable<z.ZodString>;
2446
+ createdAt: z.ZodString;
2447
+ updatedAt: z.ZodString;
2448
+ }, z.core.$strip>;
2449
+ readonly paginationDefaultEnabled = true;
2143
2450
  constructor(options?: {
2144
2451
  query?: GetPaymentsQueryParams;
2145
2452
  });
2146
2453
  getPath(): string;
2147
- parseResponse(data: unknown, rawResponse: Response): Paginated<Payment>;
2148
2454
  }
2149
2455
 
2150
2456
  type GetPaymentsForPaymentConfigQueryParams = PaymentQueryParams;
2151
2457
  declare const getPaymentsForPaymentConfigInputSchema: z.ZodUndefined;
2152
2458
  type GetPaymentsForPaymentConfigInput = z.input<typeof getPaymentsForPaymentConfigInputSchema>;
2153
- declare const getPaymentsForPaymentConfigResponseSchema: z.ZodObject<{
2459
+ declare const getPaymentsForPaymentConfigResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2154
2460
  data: z.ZodArray<z.ZodObject<{
2155
2461
  id: z.ZodString;
2156
2462
  method: z.ZodEnum<{
@@ -2183,14 +2489,37 @@ declare const getPaymentsForPaymentConfigResponseSchema: z.ZodObject<{
2183
2489
  currentPage: z.ZodCoercedNumber<unknown>;
2184
2490
  lastPage: z.ZodCoercedNumber<unknown>;
2185
2491
  }, z.core.$strip>;
2186
- }, z.core.$strip>;
2492
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2493
+ id: z.ZodString;
2494
+ method: z.ZodEnum<{
2495
+ stripe: "stripe";
2496
+ bank_transfer: "bank_transfer";
2497
+ cash: "cash";
2498
+ credit_card: "credit_card";
2499
+ }>;
2500
+ status: z.ZodEnum<{
2501
+ pending: "pending";
2502
+ pending_verification: "pending_verification";
2503
+ paid: "paid";
2504
+ canceled: "canceled";
2505
+ refunded: "refunded";
2506
+ failed: "failed";
2507
+ }>;
2508
+ amount: z.ZodString;
2509
+ internalReference: z.ZodNullable<z.ZodString>;
2510
+ externalReference: z.ZodNullable<z.ZodString>;
2511
+ response: z.ZodNullable<z.ZodString>;
2512
+ validUntil: z.ZodNullable<z.ZodString>;
2513
+ createdAt: z.ZodString;
2514
+ updatedAt: z.ZodString;
2515
+ }, z.core.$strip>>]>;
2187
2516
  type GetPaymentsForPaymentConfigResponse = z.infer<typeof getPaymentsForPaymentConfigResponseSchema>;
2188
2517
  declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getPaymentsForPaymentConfigInputSchema, typeof getPaymentsForPaymentConfigResponseSchema, GetPaymentsForPaymentConfigQueryParams> {
2189
- readonly method = "GET";
2190
- readonly contentType = "application/json";
2191
- readonly accept = "application/json";
2518
+ readonly method: "GET";
2519
+ readonly contentType: "application/json";
2520
+ readonly accept: "application/json";
2192
2521
  readonly inputSchema: z.ZodUndefined;
2193
- readonly outputSchema: z.ZodObject<{
2522
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2194
2523
  data: z.ZodArray<z.ZodObject<{
2195
2524
  id: z.ZodString;
2196
2525
  method: z.ZodEnum<{
@@ -2223,7 +2552,30 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
2223
2552
  currentPage: z.ZodCoercedNumber<unknown>;
2224
2553
  lastPage: z.ZodCoercedNumber<unknown>;
2225
2554
  }, z.core.$strip>;
2226
- }, z.core.$strip>;
2555
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2556
+ id: z.ZodString;
2557
+ method: z.ZodEnum<{
2558
+ stripe: "stripe";
2559
+ bank_transfer: "bank_transfer";
2560
+ cash: "cash";
2561
+ credit_card: "credit_card";
2562
+ }>;
2563
+ status: z.ZodEnum<{
2564
+ pending: "pending";
2565
+ pending_verification: "pending_verification";
2566
+ paid: "paid";
2567
+ canceled: "canceled";
2568
+ refunded: "refunded";
2569
+ failed: "failed";
2570
+ }>;
2571
+ amount: z.ZodString;
2572
+ internalReference: z.ZodNullable<z.ZodString>;
2573
+ externalReference: z.ZodNullable<z.ZodString>;
2574
+ response: z.ZodNullable<z.ZodString>;
2575
+ validUntil: z.ZodNullable<z.ZodString>;
2576
+ createdAt: z.ZodString;
2577
+ updatedAt: z.ZodString;
2578
+ }, z.core.$strip>>]>;
2227
2579
  readonly querySchema: z.ZodObject<{
2228
2580
  internalReference: z.ZodOptional<z.ZodString>;
2229
2581
  externalReference: z.ZodOptional<z.ZodString>;
@@ -2277,12 +2629,36 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
2277
2629
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2278
2630
  }, z.core.$strip>;
2279
2631
  readonly headersSchema: undefined;
2632
+ readonly listItemSchema: z.ZodObject<{
2633
+ id: z.ZodString;
2634
+ method: z.ZodEnum<{
2635
+ stripe: "stripe";
2636
+ bank_transfer: "bank_transfer";
2637
+ cash: "cash";
2638
+ credit_card: "credit_card";
2639
+ }>;
2640
+ status: z.ZodEnum<{
2641
+ pending: "pending";
2642
+ pending_verification: "pending_verification";
2643
+ paid: "paid";
2644
+ canceled: "canceled";
2645
+ refunded: "refunded";
2646
+ failed: "failed";
2647
+ }>;
2648
+ amount: z.ZodString;
2649
+ internalReference: z.ZodNullable<z.ZodString>;
2650
+ externalReference: z.ZodNullable<z.ZodString>;
2651
+ response: z.ZodNullable<z.ZodString>;
2652
+ validUntil: z.ZodNullable<z.ZodString>;
2653
+ createdAt: z.ZodString;
2654
+ updatedAt: z.ZodString;
2655
+ }, z.core.$strip>;
2656
+ readonly paginationDefaultEnabled = true;
2280
2657
  private readonly paymentConfigId;
2281
2658
  constructor(paymentConfigId: string, options?: {
2282
2659
  query?: GetPaymentsForPaymentConfigQueryParams;
2283
2660
  });
2284
2661
  getPath(): string;
2285
- parseResponse(data: unknown, rawResponse: Response): Paginated<Payment>;
2286
2662
  }
2287
2663
 
2288
2664
  declare const updatePaymentInputSchema: z.ZodObject<{