@deliverart/sdk-js-payment 2.6.0 → 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.cjs CHANGED
@@ -11560,7 +11560,7 @@ var GetPaymentConfigBankTransferDetails = class extends import_sdk_js_core3.Abst
11560
11560
  var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
11561
11561
  var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
11562
11562
  var getPaymentConfigBankTransferListInputSchema = external_exports.undefined();
11563
- var getPaymentConfigBankTransferListResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(
11563
+ var getPaymentConfigBankTransferListResponseSchema = (0, import_sdk_js_global_types5.mixedPaginationSchema)(
11564
11564
  paymentConfigBankTransferSchema
11565
11565
  );
11566
11566
  var GetPaymentConfigBankTransferList = class extends import_sdk_js_core4.AbstractApiRequest {
@@ -11671,7 +11671,7 @@ var GetPaymentConfigCashDetails = class extends import_sdk_js_core8.AbstractApiR
11671
11671
  var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
11672
11672
  var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
11673
11673
  var getPaymentConfigCashListInputSchema = external_exports.undefined();
11674
- var getPaymentConfigCashListResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(paymentConfigCashSchema);
11674
+ var getPaymentConfigCashListResponseSchema = (0, import_sdk_js_global_types7.mixedPaginationSchema)(paymentConfigCashSchema);
11675
11675
  var GetPaymentConfigCashList = class extends import_sdk_js_core9.AbstractApiRequest {
11676
11676
  constructor(options) {
11677
11677
  super(void 0, options);
@@ -11757,7 +11757,7 @@ var GetPaymentConfigCreditCardDetails = class extends import_sdk_js_core12.Abstr
11757
11757
  var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
11758
11758
  var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
11759
11759
  var getPaymentConfigCreditCardListInputSchema = external_exports.undefined();
11760
- var getPaymentConfigCreditCardListResponseSchema = (0, import_sdk_js_global_types9.createPaginatedSchema)(
11760
+ var getPaymentConfigCreditCardListResponseSchema = (0, import_sdk_js_global_types9.mixedPaginationSchema)(
11761
11761
  paymentConfigCreditCardSchema
11762
11762
  );
11763
11763
  var GetPaymentConfigCreditCardList = class extends import_sdk_js_core13.AbstractApiRequest {
@@ -11825,7 +11825,7 @@ var GetPaymentConfigDetails = class extends import_sdk_js_core15.AbstractApiRequ
11825
11825
  var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
11826
11826
  var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
11827
11827
  var getPaymentConfigsInputSchema = external_exports.undefined();
11828
- var getPaymentConfigsResponseSchema = (0, import_sdk_js_global_types11.createPaginatedSchema)(paymentConfigSchema);
11828
+ var getPaymentConfigsResponseSchema = (0, import_sdk_js_global_types11.mixedPaginationSchema)(paymentConfigSchema);
11829
11829
  var GetPaymentConfigs = class extends import_sdk_js_core16.AbstractApiRequest {
11830
11830
  constructor(options) {
11831
11831
  super(void 0, options);
@@ -11934,7 +11934,7 @@ var GetPaymentConfigStripeDetails = class extends import_sdk_js_core20.AbstractA
11934
11934
  var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
11935
11935
  var import_sdk_js_global_types13 = require("@deliverart/sdk-js-global-types");
11936
11936
  var getPaymentConfigStripeListInputSchema = external_exports.undefined();
11937
- var getPaymentConfigStripeListResponseSchema = (0, import_sdk_js_global_types13.createPaginatedSchema)(paymentConfigStripeSchema);
11937
+ var getPaymentConfigStripeListResponseSchema = (0, import_sdk_js_global_types13.mixedPaginationSchema)(paymentConfigStripeSchema);
11938
11938
  var GetPaymentConfigStripeList = class extends import_sdk_js_core21.AbstractApiRequest {
11939
11939
  constructor(options) {
11940
11940
  super(void 0, options);
@@ -12044,7 +12044,7 @@ var GetPaymentInfo = class extends import_sdk_js_core25.AbstractApiRequest {
12044
12044
  var import_sdk_js_core26 = require("@deliverart/sdk-js-core");
12045
12045
  var import_sdk_js_global_types15 = require("@deliverart/sdk-js-global-types");
12046
12046
  var getPaymentsInputSchema = external_exports.undefined();
12047
- var getPaymentsResponseSchema = (0, import_sdk_js_global_types15.createPaginatedSchema)(paymentSchema);
12047
+ var getPaymentsResponseSchema = (0, import_sdk_js_global_types15.mixedPaginationSchema)(paymentSchema);
12048
12048
  var GetPayments = class extends import_sdk_js_core26.AbstractApiRequest {
12049
12049
  constructor(options) {
12050
12050
  super(void 0, options);
@@ -12067,7 +12067,7 @@ var GetPayments = class extends import_sdk_js_core26.AbstractApiRequest {
12067
12067
  var import_sdk_js_core27 = require("@deliverart/sdk-js-core");
12068
12068
  var import_sdk_js_global_types16 = require("@deliverart/sdk-js-global-types");
12069
12069
  var getPaymentsForPaymentConfigInputSchema = external_exports.undefined();
12070
- var getPaymentsForPaymentConfigResponseSchema = (0, import_sdk_js_global_types16.createPaginatedSchema)(paymentSchema);
12070
+ var getPaymentsForPaymentConfigResponseSchema = (0, import_sdk_js_global_types16.mixedPaginationSchema)(paymentSchema);
12071
12071
  var GetPaymentsForPaymentConfig = class extends import_sdk_js_core27.AbstractApiRequest {
12072
12072
  constructor(paymentConfigId, options) {
12073
12073
  super(void 0, options);
package/dist/index.d.cts CHANGED
@@ -662,7 +662,7 @@ declare class GetPaymentConfigBankTransferDetails extends AbstractApiRequest<typ
662
662
  type GetPaymentConfigBankTransferListQueryParams = PaymentConfigsQueryParams;
663
663
  declare const getPaymentConfigBankTransferListInputSchema: z.ZodUndefined;
664
664
  type GetPaymentConfigBankTransferListInput = z.input<typeof getPaymentConfigBankTransferListInputSchema>;
665
- declare const getPaymentConfigBankTransferListResponseSchema: z.ZodObject<{
665
+ declare const getPaymentConfigBankTransferListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
666
666
  data: z.ZodArray<z.ZodObject<{
667
667
  id: z.ZodString;
668
668
  configurationCompleted: z.ZodBoolean;
@@ -684,14 +684,26 @@ declare const getPaymentConfigBankTransferListResponseSchema: z.ZodObject<{
684
684
  currentPage: z.ZodCoercedNumber<unknown>;
685
685
  lastPage: z.ZodCoercedNumber<unknown>;
686
686
  }, z.core.$strip>;
687
- }, 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>>]>;
688
700
  type GetPaymentConfigBankTransferListResponse = z.infer<typeof getPaymentConfigBankTransferListResponseSchema>;
689
701
  declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof getPaymentConfigBankTransferListInputSchema, typeof getPaymentConfigBankTransferListResponseSchema, GetPaymentConfigBankTransferListQueryParams> {
690
702
  readonly method: "GET";
691
703
  readonly contentType: "application/json";
692
704
  readonly accept: "application/json";
693
705
  readonly inputSchema: z.ZodUndefined;
694
- readonly outputSchema: z.ZodObject<{
706
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
695
707
  data: z.ZodArray<z.ZodObject<{
696
708
  id: z.ZodString;
697
709
  configurationCompleted: z.ZodBoolean;
@@ -713,7 +725,19 @@ declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof
713
725
  currentPage: z.ZodCoercedNumber<unknown>;
714
726
  lastPage: z.ZodCoercedNumber<unknown>;
715
727
  }, z.core.$strip>;
716
- }, 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>>]>;
717
741
  readonly querySchema: z.ZodObject<{
718
742
  method: z.ZodOptional<z.ZodEnum<{
719
743
  stripe: "stripe";
@@ -901,7 +925,7 @@ declare class GetPaymentConfigCashDetails extends AbstractApiRequest<typeof getP
901
925
  type GetPaymentConfigCashListQueryParams = PaymentConfigsQueryParams;
902
926
  declare const getPaymentConfigCashListInputSchema: z.ZodUndefined;
903
927
  type GetPaymentConfigCashListInput = z.input<typeof getPaymentConfigCashListInputSchema>;
904
- declare const getPaymentConfigCashListResponseSchema: z.ZodObject<{
928
+ declare const getPaymentConfigCashListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
905
929
  data: z.ZodArray<z.ZodObject<{
906
930
  id: z.ZodString;
907
931
  configurationCompleted: z.ZodBoolean;
@@ -917,14 +941,20 @@ declare const getPaymentConfigCashListResponseSchema: z.ZodObject<{
917
941
  currentPage: z.ZodCoercedNumber<unknown>;
918
942
  lastPage: z.ZodCoercedNumber<unknown>;
919
943
  }, z.core.$strip>;
920
- }, 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>>]>;
921
951
  type GetPaymentConfigCashListResponse = z.infer<typeof getPaymentConfigCashListResponseSchema>;
922
952
  declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaymentConfigCashListInputSchema, typeof getPaymentConfigCashListResponseSchema, GetPaymentConfigCashListQueryParams> {
923
953
  readonly method: "GET";
924
954
  readonly contentType: "application/json";
925
955
  readonly accept: "application/json";
926
956
  readonly inputSchema: z.ZodUndefined;
927
- readonly outputSchema: z.ZodObject<{
957
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
928
958
  data: z.ZodArray<z.ZodObject<{
929
959
  id: z.ZodString;
930
960
  configurationCompleted: z.ZodBoolean;
@@ -940,7 +970,13 @@ declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaym
940
970
  currentPage: z.ZodCoercedNumber<unknown>;
941
971
  lastPage: z.ZodCoercedNumber<unknown>;
942
972
  }, z.core.$strip>;
943
- }, 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>>]>;
944
980
  readonly querySchema: z.ZodObject<{
945
981
  method: z.ZodOptional<z.ZodEnum<{
946
982
  stripe: "stripe";
@@ -1065,7 +1101,7 @@ declare class GetPaymentConfigCreditCardDetails extends AbstractApiRequest<typeo
1065
1101
  type GetPaymentConfigCreditCardListQueryParams = PaymentConfigsQueryParams;
1066
1102
  declare const getPaymentConfigCreditCardListInputSchema: z.ZodUndefined;
1067
1103
  type GetPaymentConfigCreditCardListInput = z.input<typeof getPaymentConfigCreditCardListInputSchema>;
1068
- declare const getPaymentConfigCreditCardListResponseSchema: z.ZodObject<{
1104
+ declare const getPaymentConfigCreditCardListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1069
1105
  data: z.ZodArray<z.ZodObject<{
1070
1106
  id: z.ZodString;
1071
1107
  configurationCompleted: z.ZodBoolean;
@@ -1081,14 +1117,20 @@ declare const getPaymentConfigCreditCardListResponseSchema: z.ZodObject<{
1081
1117
  currentPage: z.ZodCoercedNumber<unknown>;
1082
1118
  lastPage: z.ZodCoercedNumber<unknown>;
1083
1119
  }, z.core.$strip>;
1084
- }, 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>>]>;
1085
1127
  type GetPaymentConfigCreditCardListResponse = z.infer<typeof getPaymentConfigCreditCardListResponseSchema>;
1086
1128
  declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof getPaymentConfigCreditCardListInputSchema, typeof getPaymentConfigCreditCardListResponseSchema, GetPaymentConfigCreditCardListQueryParams> {
1087
1129
  readonly method: "GET";
1088
1130
  readonly contentType: "application/json";
1089
1131
  readonly accept: "application/json";
1090
1132
  readonly inputSchema: z.ZodUndefined;
1091
- readonly outputSchema: z.ZodObject<{
1133
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1092
1134
  data: z.ZodArray<z.ZodObject<{
1093
1135
  id: z.ZodString;
1094
1136
  configurationCompleted: z.ZodBoolean;
@@ -1104,7 +1146,13 @@ declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof g
1104
1146
  currentPage: z.ZodCoercedNumber<unknown>;
1105
1147
  lastPage: z.ZodCoercedNumber<unknown>;
1106
1148
  }, z.core.$strip>;
1107
- }, 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>>]>;
1108
1156
  readonly querySchema: z.ZodObject<{
1109
1157
  method: z.ZodOptional<z.ZodEnum<{
1110
1158
  stripe: "stripe";
@@ -1255,7 +1303,7 @@ declare class GetPaymentConfigDetails extends AbstractApiRequest<typeof getPayme
1255
1303
  type GetPaymentConfigsQueryParams = PaymentConfigsQueryParams;
1256
1304
  declare const getPaymentConfigsInputSchema: z.ZodUndefined;
1257
1305
  type GetPaymentConfigsInput = z.input<typeof getPaymentConfigsInputSchema>;
1258
- declare const getPaymentConfigsResponseSchema: z.ZodObject<{
1306
+ declare const getPaymentConfigsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1259
1307
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1260
1308
  id: z.ZodString;
1261
1309
  configurationCompleted: z.ZodBoolean;
@@ -1298,14 +1346,47 @@ declare const getPaymentConfigsResponseSchema: z.ZodObject<{
1298
1346
  currentPage: z.ZodCoercedNumber<unknown>;
1299
1347
  lastPage: z.ZodCoercedNumber<unknown>;
1300
1348
  }, z.core.$strip>;
1301
- }, 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>]>>]>;
1302
1383
  type GetPaymentConfigsResponse = z.infer<typeof getPaymentConfigsResponseSchema>;
1303
1384
  declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConfigsInputSchema, typeof getPaymentConfigsResponseSchema, GetPaymentConfigsQueryParams> {
1304
1385
  readonly method: "GET";
1305
1386
  readonly contentType: "application/json";
1306
1387
  readonly accept: "application/json";
1307
1388
  readonly inputSchema: z.ZodUndefined;
1308
- readonly outputSchema: z.ZodObject<{
1389
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1309
1390
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
1391
  id: z.ZodString;
1311
1392
  configurationCompleted: z.ZodBoolean;
@@ -1348,7 +1429,40 @@ declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConf
1348
1429
  currentPage: z.ZodCoercedNumber<unknown>;
1349
1430
  lastPage: z.ZodCoercedNumber<unknown>;
1350
1431
  }, z.core.$strip>;
1351
- }, 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>]>>]>;
1352
1466
  readonly querySchema: z.ZodObject<{
1353
1467
  method: z.ZodOptional<z.ZodEnum<{
1354
1468
  stripe: "stripe";
@@ -1660,7 +1774,7 @@ declare class GetPaymentConfigStripeDetails extends AbstractApiRequest<typeof ge
1660
1774
  type GetPaymentConfigStripeListQueryParams = PaymentConfigsQueryParams;
1661
1775
  declare const getPaymentConfigStripeListInputSchema: z.ZodUndefined;
1662
1776
  type GetPaymentConfigStripeListInput = z.input<typeof getPaymentConfigStripeListInputSchema>;
1663
- declare const getPaymentConfigStripeListResponseSchema: z.ZodObject<{
1777
+ declare const getPaymentConfigStripeListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1664
1778
  data: z.ZodArray<z.ZodObject<{
1665
1779
  id: z.ZodString;
1666
1780
  configurationCompleted: z.ZodBoolean;
@@ -1679,14 +1793,23 @@ declare const getPaymentConfigStripeListResponseSchema: z.ZodObject<{
1679
1793
  currentPage: z.ZodCoercedNumber<unknown>;
1680
1794
  lastPage: z.ZodCoercedNumber<unknown>;
1681
1795
  }, z.core.$strip>;
1682
- }, 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>>]>;
1683
1806
  type GetPaymentConfigStripeListResponse = z.infer<typeof getPaymentConfigStripeListResponseSchema>;
1684
1807
  declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPaymentConfigStripeListInputSchema, typeof getPaymentConfigStripeListResponseSchema, GetPaymentConfigStripeListQueryParams> {
1685
1808
  readonly method: "GET";
1686
1809
  readonly contentType: "application/json";
1687
1810
  readonly accept: "application/json";
1688
1811
  readonly inputSchema: z.ZodUndefined;
1689
- readonly outputSchema: z.ZodObject<{
1812
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1690
1813
  data: z.ZodArray<z.ZodObject<{
1691
1814
  id: z.ZodString;
1692
1815
  configurationCompleted: z.ZodBoolean;
@@ -1705,7 +1828,16 @@ declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPa
1705
1828
  currentPage: z.ZodCoercedNumber<unknown>;
1706
1829
  lastPage: z.ZodCoercedNumber<unknown>;
1707
1830
  }, z.core.$strip>;
1708
- }, 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>>]>;
1709
1841
  readonly querySchema: z.ZodObject<{
1710
1842
  method: z.ZodOptional<z.ZodEnum<{
1711
1843
  stripe: "stripe";
@@ -2117,7 +2249,7 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
2117
2249
  type GetPaymentsQueryParams = PaymentQueryParams;
2118
2250
  declare const getPaymentsInputSchema: z.ZodUndefined;
2119
2251
  type GetPaymentsInput = z.input<typeof getPaymentsInputSchema>;
2120
- declare const getPaymentsResponseSchema: z.ZodObject<{
2252
+ declare const getPaymentsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2121
2253
  data: z.ZodArray<z.ZodObject<{
2122
2254
  id: z.ZodString;
2123
2255
  method: z.ZodEnum<{
@@ -2150,14 +2282,37 @@ declare const getPaymentsResponseSchema: z.ZodObject<{
2150
2282
  currentPage: z.ZodCoercedNumber<unknown>;
2151
2283
  lastPage: z.ZodCoercedNumber<unknown>;
2152
2284
  }, z.core.$strip>;
2153
- }, 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>>]>;
2154
2309
  type GetPaymentsResponse = z.infer<typeof getPaymentsResponseSchema>;
2155
2310
  declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSchema, typeof getPaymentsResponseSchema, GetPaymentsQueryParams> {
2156
2311
  readonly method: "GET";
2157
2312
  readonly contentType: "application/json";
2158
2313
  readonly accept: "application/json";
2159
2314
  readonly inputSchema: z.ZodUndefined;
2160
- readonly outputSchema: z.ZodObject<{
2315
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2161
2316
  data: z.ZodArray<z.ZodObject<{
2162
2317
  id: z.ZodString;
2163
2318
  method: z.ZodEnum<{
@@ -2190,7 +2345,30 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
2190
2345
  currentPage: z.ZodCoercedNumber<unknown>;
2191
2346
  lastPage: z.ZodCoercedNumber<unknown>;
2192
2347
  }, z.core.$strip>;
2193
- }, 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>>]>;
2194
2372
  readonly querySchema: z.ZodObject<{
2195
2373
  internalReference: z.ZodOptional<z.ZodString>;
2196
2374
  externalReference: z.ZodOptional<z.ZodString>;
@@ -2278,7 +2456,7 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
2278
2456
  type GetPaymentsForPaymentConfigQueryParams = PaymentQueryParams;
2279
2457
  declare const getPaymentsForPaymentConfigInputSchema: z.ZodUndefined;
2280
2458
  type GetPaymentsForPaymentConfigInput = z.input<typeof getPaymentsForPaymentConfigInputSchema>;
2281
- declare const getPaymentsForPaymentConfigResponseSchema: z.ZodObject<{
2459
+ declare const getPaymentsForPaymentConfigResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2282
2460
  data: z.ZodArray<z.ZodObject<{
2283
2461
  id: z.ZodString;
2284
2462
  method: z.ZodEnum<{
@@ -2311,14 +2489,37 @@ declare const getPaymentsForPaymentConfigResponseSchema: z.ZodObject<{
2311
2489
  currentPage: z.ZodCoercedNumber<unknown>;
2312
2490
  lastPage: z.ZodCoercedNumber<unknown>;
2313
2491
  }, z.core.$strip>;
2314
- }, 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>>]>;
2315
2516
  type GetPaymentsForPaymentConfigResponse = z.infer<typeof getPaymentsForPaymentConfigResponseSchema>;
2316
2517
  declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getPaymentsForPaymentConfigInputSchema, typeof getPaymentsForPaymentConfigResponseSchema, GetPaymentsForPaymentConfigQueryParams> {
2317
2518
  readonly method: "GET";
2318
2519
  readonly contentType: "application/json";
2319
2520
  readonly accept: "application/json";
2320
2521
  readonly inputSchema: z.ZodUndefined;
2321
- readonly outputSchema: z.ZodObject<{
2522
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2322
2523
  data: z.ZodArray<z.ZodObject<{
2323
2524
  id: z.ZodString;
2324
2525
  method: z.ZodEnum<{
@@ -2351,7 +2552,30 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
2351
2552
  currentPage: z.ZodCoercedNumber<unknown>;
2352
2553
  lastPage: z.ZodCoercedNumber<unknown>;
2353
2554
  }, z.core.$strip>;
2354
- }, 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>>]>;
2355
2579
  readonly querySchema: z.ZodObject<{
2356
2580
  internalReference: z.ZodOptional<z.ZodString>;
2357
2581
  externalReference: z.ZodOptional<z.ZodString>;
package/dist/index.d.ts CHANGED
@@ -662,7 +662,7 @@ declare class GetPaymentConfigBankTransferDetails extends AbstractApiRequest<typ
662
662
  type GetPaymentConfigBankTransferListQueryParams = PaymentConfigsQueryParams;
663
663
  declare const getPaymentConfigBankTransferListInputSchema: z.ZodUndefined;
664
664
  type GetPaymentConfigBankTransferListInput = z.input<typeof getPaymentConfigBankTransferListInputSchema>;
665
- declare const getPaymentConfigBankTransferListResponseSchema: z.ZodObject<{
665
+ declare const getPaymentConfigBankTransferListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
666
666
  data: z.ZodArray<z.ZodObject<{
667
667
  id: z.ZodString;
668
668
  configurationCompleted: z.ZodBoolean;
@@ -684,14 +684,26 @@ declare const getPaymentConfigBankTransferListResponseSchema: z.ZodObject<{
684
684
  currentPage: z.ZodCoercedNumber<unknown>;
685
685
  lastPage: z.ZodCoercedNumber<unknown>;
686
686
  }, z.core.$strip>;
687
- }, 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>>]>;
688
700
  type GetPaymentConfigBankTransferListResponse = z.infer<typeof getPaymentConfigBankTransferListResponseSchema>;
689
701
  declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof getPaymentConfigBankTransferListInputSchema, typeof getPaymentConfigBankTransferListResponseSchema, GetPaymentConfigBankTransferListQueryParams> {
690
702
  readonly method: "GET";
691
703
  readonly contentType: "application/json";
692
704
  readonly accept: "application/json";
693
705
  readonly inputSchema: z.ZodUndefined;
694
- readonly outputSchema: z.ZodObject<{
706
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
695
707
  data: z.ZodArray<z.ZodObject<{
696
708
  id: z.ZodString;
697
709
  configurationCompleted: z.ZodBoolean;
@@ -713,7 +725,19 @@ declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof
713
725
  currentPage: z.ZodCoercedNumber<unknown>;
714
726
  lastPage: z.ZodCoercedNumber<unknown>;
715
727
  }, z.core.$strip>;
716
- }, 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>>]>;
717
741
  readonly querySchema: z.ZodObject<{
718
742
  method: z.ZodOptional<z.ZodEnum<{
719
743
  stripe: "stripe";
@@ -901,7 +925,7 @@ declare class GetPaymentConfigCashDetails extends AbstractApiRequest<typeof getP
901
925
  type GetPaymentConfigCashListQueryParams = PaymentConfigsQueryParams;
902
926
  declare const getPaymentConfigCashListInputSchema: z.ZodUndefined;
903
927
  type GetPaymentConfigCashListInput = z.input<typeof getPaymentConfigCashListInputSchema>;
904
- declare const getPaymentConfigCashListResponseSchema: z.ZodObject<{
928
+ declare const getPaymentConfigCashListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
905
929
  data: z.ZodArray<z.ZodObject<{
906
930
  id: z.ZodString;
907
931
  configurationCompleted: z.ZodBoolean;
@@ -917,14 +941,20 @@ declare const getPaymentConfigCashListResponseSchema: z.ZodObject<{
917
941
  currentPage: z.ZodCoercedNumber<unknown>;
918
942
  lastPage: z.ZodCoercedNumber<unknown>;
919
943
  }, z.core.$strip>;
920
- }, 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>>]>;
921
951
  type GetPaymentConfigCashListResponse = z.infer<typeof getPaymentConfigCashListResponseSchema>;
922
952
  declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaymentConfigCashListInputSchema, typeof getPaymentConfigCashListResponseSchema, GetPaymentConfigCashListQueryParams> {
923
953
  readonly method: "GET";
924
954
  readonly contentType: "application/json";
925
955
  readonly accept: "application/json";
926
956
  readonly inputSchema: z.ZodUndefined;
927
- readonly outputSchema: z.ZodObject<{
957
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
928
958
  data: z.ZodArray<z.ZodObject<{
929
959
  id: z.ZodString;
930
960
  configurationCompleted: z.ZodBoolean;
@@ -940,7 +970,13 @@ declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaym
940
970
  currentPage: z.ZodCoercedNumber<unknown>;
941
971
  lastPage: z.ZodCoercedNumber<unknown>;
942
972
  }, z.core.$strip>;
943
- }, 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>>]>;
944
980
  readonly querySchema: z.ZodObject<{
945
981
  method: z.ZodOptional<z.ZodEnum<{
946
982
  stripe: "stripe";
@@ -1065,7 +1101,7 @@ declare class GetPaymentConfigCreditCardDetails extends AbstractApiRequest<typeo
1065
1101
  type GetPaymentConfigCreditCardListQueryParams = PaymentConfigsQueryParams;
1066
1102
  declare const getPaymentConfigCreditCardListInputSchema: z.ZodUndefined;
1067
1103
  type GetPaymentConfigCreditCardListInput = z.input<typeof getPaymentConfigCreditCardListInputSchema>;
1068
- declare const getPaymentConfigCreditCardListResponseSchema: z.ZodObject<{
1104
+ declare const getPaymentConfigCreditCardListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1069
1105
  data: z.ZodArray<z.ZodObject<{
1070
1106
  id: z.ZodString;
1071
1107
  configurationCompleted: z.ZodBoolean;
@@ -1081,14 +1117,20 @@ declare const getPaymentConfigCreditCardListResponseSchema: z.ZodObject<{
1081
1117
  currentPage: z.ZodCoercedNumber<unknown>;
1082
1118
  lastPage: z.ZodCoercedNumber<unknown>;
1083
1119
  }, z.core.$strip>;
1084
- }, 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>>]>;
1085
1127
  type GetPaymentConfigCreditCardListResponse = z.infer<typeof getPaymentConfigCreditCardListResponseSchema>;
1086
1128
  declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof getPaymentConfigCreditCardListInputSchema, typeof getPaymentConfigCreditCardListResponseSchema, GetPaymentConfigCreditCardListQueryParams> {
1087
1129
  readonly method: "GET";
1088
1130
  readonly contentType: "application/json";
1089
1131
  readonly accept: "application/json";
1090
1132
  readonly inputSchema: z.ZodUndefined;
1091
- readonly outputSchema: z.ZodObject<{
1133
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1092
1134
  data: z.ZodArray<z.ZodObject<{
1093
1135
  id: z.ZodString;
1094
1136
  configurationCompleted: z.ZodBoolean;
@@ -1104,7 +1146,13 @@ declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof g
1104
1146
  currentPage: z.ZodCoercedNumber<unknown>;
1105
1147
  lastPage: z.ZodCoercedNumber<unknown>;
1106
1148
  }, z.core.$strip>;
1107
- }, 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>>]>;
1108
1156
  readonly querySchema: z.ZodObject<{
1109
1157
  method: z.ZodOptional<z.ZodEnum<{
1110
1158
  stripe: "stripe";
@@ -1255,7 +1303,7 @@ declare class GetPaymentConfigDetails extends AbstractApiRequest<typeof getPayme
1255
1303
  type GetPaymentConfigsQueryParams = PaymentConfigsQueryParams;
1256
1304
  declare const getPaymentConfigsInputSchema: z.ZodUndefined;
1257
1305
  type GetPaymentConfigsInput = z.input<typeof getPaymentConfigsInputSchema>;
1258
- declare const getPaymentConfigsResponseSchema: z.ZodObject<{
1306
+ declare const getPaymentConfigsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1259
1307
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1260
1308
  id: z.ZodString;
1261
1309
  configurationCompleted: z.ZodBoolean;
@@ -1298,14 +1346,47 @@ declare const getPaymentConfigsResponseSchema: z.ZodObject<{
1298
1346
  currentPage: z.ZodCoercedNumber<unknown>;
1299
1347
  lastPage: z.ZodCoercedNumber<unknown>;
1300
1348
  }, z.core.$strip>;
1301
- }, 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>]>>]>;
1302
1383
  type GetPaymentConfigsResponse = z.infer<typeof getPaymentConfigsResponseSchema>;
1303
1384
  declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConfigsInputSchema, typeof getPaymentConfigsResponseSchema, GetPaymentConfigsQueryParams> {
1304
1385
  readonly method: "GET";
1305
1386
  readonly contentType: "application/json";
1306
1387
  readonly accept: "application/json";
1307
1388
  readonly inputSchema: z.ZodUndefined;
1308
- readonly outputSchema: z.ZodObject<{
1389
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1309
1390
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
1391
  id: z.ZodString;
1311
1392
  configurationCompleted: z.ZodBoolean;
@@ -1348,7 +1429,40 @@ declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConf
1348
1429
  currentPage: z.ZodCoercedNumber<unknown>;
1349
1430
  lastPage: z.ZodCoercedNumber<unknown>;
1350
1431
  }, z.core.$strip>;
1351
- }, 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>]>>]>;
1352
1466
  readonly querySchema: z.ZodObject<{
1353
1467
  method: z.ZodOptional<z.ZodEnum<{
1354
1468
  stripe: "stripe";
@@ -1660,7 +1774,7 @@ declare class GetPaymentConfigStripeDetails extends AbstractApiRequest<typeof ge
1660
1774
  type GetPaymentConfigStripeListQueryParams = PaymentConfigsQueryParams;
1661
1775
  declare const getPaymentConfigStripeListInputSchema: z.ZodUndefined;
1662
1776
  type GetPaymentConfigStripeListInput = z.input<typeof getPaymentConfigStripeListInputSchema>;
1663
- declare const getPaymentConfigStripeListResponseSchema: z.ZodObject<{
1777
+ declare const getPaymentConfigStripeListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1664
1778
  data: z.ZodArray<z.ZodObject<{
1665
1779
  id: z.ZodString;
1666
1780
  configurationCompleted: z.ZodBoolean;
@@ -1679,14 +1793,23 @@ declare const getPaymentConfigStripeListResponseSchema: z.ZodObject<{
1679
1793
  currentPage: z.ZodCoercedNumber<unknown>;
1680
1794
  lastPage: z.ZodCoercedNumber<unknown>;
1681
1795
  }, z.core.$strip>;
1682
- }, 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>>]>;
1683
1806
  type GetPaymentConfigStripeListResponse = z.infer<typeof getPaymentConfigStripeListResponseSchema>;
1684
1807
  declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPaymentConfigStripeListInputSchema, typeof getPaymentConfigStripeListResponseSchema, GetPaymentConfigStripeListQueryParams> {
1685
1808
  readonly method: "GET";
1686
1809
  readonly contentType: "application/json";
1687
1810
  readonly accept: "application/json";
1688
1811
  readonly inputSchema: z.ZodUndefined;
1689
- readonly outputSchema: z.ZodObject<{
1812
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
1690
1813
  data: z.ZodArray<z.ZodObject<{
1691
1814
  id: z.ZodString;
1692
1815
  configurationCompleted: z.ZodBoolean;
@@ -1705,7 +1828,16 @@ declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPa
1705
1828
  currentPage: z.ZodCoercedNumber<unknown>;
1706
1829
  lastPage: z.ZodCoercedNumber<unknown>;
1707
1830
  }, z.core.$strip>;
1708
- }, 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>>]>;
1709
1841
  readonly querySchema: z.ZodObject<{
1710
1842
  method: z.ZodOptional<z.ZodEnum<{
1711
1843
  stripe: "stripe";
@@ -2117,7 +2249,7 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
2117
2249
  type GetPaymentsQueryParams = PaymentQueryParams;
2118
2250
  declare const getPaymentsInputSchema: z.ZodUndefined;
2119
2251
  type GetPaymentsInput = z.input<typeof getPaymentsInputSchema>;
2120
- declare const getPaymentsResponseSchema: z.ZodObject<{
2252
+ declare const getPaymentsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2121
2253
  data: z.ZodArray<z.ZodObject<{
2122
2254
  id: z.ZodString;
2123
2255
  method: z.ZodEnum<{
@@ -2150,14 +2282,37 @@ declare const getPaymentsResponseSchema: z.ZodObject<{
2150
2282
  currentPage: z.ZodCoercedNumber<unknown>;
2151
2283
  lastPage: z.ZodCoercedNumber<unknown>;
2152
2284
  }, z.core.$strip>;
2153
- }, 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>>]>;
2154
2309
  type GetPaymentsResponse = z.infer<typeof getPaymentsResponseSchema>;
2155
2310
  declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSchema, typeof getPaymentsResponseSchema, GetPaymentsQueryParams> {
2156
2311
  readonly method: "GET";
2157
2312
  readonly contentType: "application/json";
2158
2313
  readonly accept: "application/json";
2159
2314
  readonly inputSchema: z.ZodUndefined;
2160
- readonly outputSchema: z.ZodObject<{
2315
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2161
2316
  data: z.ZodArray<z.ZodObject<{
2162
2317
  id: z.ZodString;
2163
2318
  method: z.ZodEnum<{
@@ -2190,7 +2345,30 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
2190
2345
  currentPage: z.ZodCoercedNumber<unknown>;
2191
2346
  lastPage: z.ZodCoercedNumber<unknown>;
2192
2347
  }, z.core.$strip>;
2193
- }, 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>>]>;
2194
2372
  readonly querySchema: z.ZodObject<{
2195
2373
  internalReference: z.ZodOptional<z.ZodString>;
2196
2374
  externalReference: z.ZodOptional<z.ZodString>;
@@ -2278,7 +2456,7 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
2278
2456
  type GetPaymentsForPaymentConfigQueryParams = PaymentQueryParams;
2279
2457
  declare const getPaymentsForPaymentConfigInputSchema: z.ZodUndefined;
2280
2458
  type GetPaymentsForPaymentConfigInput = z.input<typeof getPaymentsForPaymentConfigInputSchema>;
2281
- declare const getPaymentsForPaymentConfigResponseSchema: z.ZodObject<{
2459
+ declare const getPaymentsForPaymentConfigResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2282
2460
  data: z.ZodArray<z.ZodObject<{
2283
2461
  id: z.ZodString;
2284
2462
  method: z.ZodEnum<{
@@ -2311,14 +2489,37 @@ declare const getPaymentsForPaymentConfigResponseSchema: z.ZodObject<{
2311
2489
  currentPage: z.ZodCoercedNumber<unknown>;
2312
2490
  lastPage: z.ZodCoercedNumber<unknown>;
2313
2491
  }, z.core.$strip>;
2314
- }, 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>>]>;
2315
2516
  type GetPaymentsForPaymentConfigResponse = z.infer<typeof getPaymentsForPaymentConfigResponseSchema>;
2316
2517
  declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getPaymentsForPaymentConfigInputSchema, typeof getPaymentsForPaymentConfigResponseSchema, GetPaymentsForPaymentConfigQueryParams> {
2317
2518
  readonly method: "GET";
2318
2519
  readonly contentType: "application/json";
2319
2520
  readonly accept: "application/json";
2320
2521
  readonly inputSchema: z.ZodUndefined;
2321
- readonly outputSchema: z.ZodObject<{
2522
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
2322
2523
  data: z.ZodArray<z.ZodObject<{
2323
2524
  id: z.ZodString;
2324
2525
  method: z.ZodEnum<{
@@ -2351,7 +2552,30 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
2351
2552
  currentPage: z.ZodCoercedNumber<unknown>;
2352
2553
  lastPage: z.ZodCoercedNumber<unknown>;
2353
2554
  }, z.core.$strip>;
2354
- }, 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>>]>;
2355
2579
  readonly querySchema: z.ZodObject<{
2356
2580
  internalReference: z.ZodOptional<z.ZodString>;
2357
2581
  externalReference: z.ZodOptional<z.ZodString>;
package/dist/index.js CHANGED
@@ -11423,9 +11423,9 @@ var GetPaymentConfigBankTransferDetails = class extends AbstractApiRequest3 {
11423
11423
 
11424
11424
  // src/requests/payment-configs/bank-transfer/GetPaymentConfigBankTransferList.ts
11425
11425
  import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
11426
- import { createPaginatedSchema } from "@deliverart/sdk-js-global-types";
11426
+ import { mixedPaginationSchema } from "@deliverart/sdk-js-global-types";
11427
11427
  var getPaymentConfigBankTransferListInputSchema = external_exports.undefined();
11428
- var getPaymentConfigBankTransferListResponseSchema = createPaginatedSchema(
11428
+ var getPaymentConfigBankTransferListResponseSchema = mixedPaginationSchema(
11429
11429
  paymentConfigBankTransferSchema
11430
11430
  );
11431
11431
  var GetPaymentConfigBankTransferList = class extends AbstractApiRequest4 {
@@ -11534,9 +11534,9 @@ var GetPaymentConfigCashDetails = class extends AbstractApiRequest8 {
11534
11534
 
11535
11535
  // src/requests/payment-configs/cash/GetPaymentConfigCashList.ts
11536
11536
  import { AbstractApiRequest as AbstractApiRequest9 } from "@deliverart/sdk-js-core";
11537
- import { createPaginatedSchema as createPaginatedSchema2 } from "@deliverart/sdk-js-global-types";
11537
+ import { mixedPaginationSchema as mixedPaginationSchema2 } from "@deliverart/sdk-js-global-types";
11538
11538
  var getPaymentConfigCashListInputSchema = external_exports.undefined();
11539
- var getPaymentConfigCashListResponseSchema = createPaginatedSchema2(paymentConfigCashSchema);
11539
+ var getPaymentConfigCashListResponseSchema = mixedPaginationSchema2(paymentConfigCashSchema);
11540
11540
  var GetPaymentConfigCashList = class extends AbstractApiRequest9 {
11541
11541
  constructor(options) {
11542
11542
  super(void 0, options);
@@ -11620,9 +11620,9 @@ var GetPaymentConfigCreditCardDetails = class extends AbstractApiRequest12 {
11620
11620
 
11621
11621
  // src/requests/payment-configs/credit-card/GetPaymentConfigCreditCardList.ts
11622
11622
  import { AbstractApiRequest as AbstractApiRequest13 } from "@deliverart/sdk-js-core";
11623
- import { createPaginatedSchema as createPaginatedSchema3 } from "@deliverart/sdk-js-global-types";
11623
+ import { mixedPaginationSchema as mixedPaginationSchema3 } from "@deliverart/sdk-js-global-types";
11624
11624
  var getPaymentConfigCreditCardListInputSchema = external_exports.undefined();
11625
- var getPaymentConfigCreditCardListResponseSchema = createPaginatedSchema3(
11625
+ var getPaymentConfigCreditCardListResponseSchema = mixedPaginationSchema3(
11626
11626
  paymentConfigCreditCardSchema
11627
11627
  );
11628
11628
  var GetPaymentConfigCreditCardList = class extends AbstractApiRequest13 {
@@ -11688,9 +11688,9 @@ var GetPaymentConfigDetails = class extends AbstractApiRequest15 {
11688
11688
 
11689
11689
  // src/requests/payment-configs/GetPaymentConfigs.ts
11690
11690
  import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
11691
- import { createPaginatedSchema as createPaginatedSchema4 } from "@deliverart/sdk-js-global-types";
11691
+ import { mixedPaginationSchema as mixedPaginationSchema4 } from "@deliverart/sdk-js-global-types";
11692
11692
  var getPaymentConfigsInputSchema = external_exports.undefined();
11693
- var getPaymentConfigsResponseSchema = createPaginatedSchema4(paymentConfigSchema);
11693
+ var getPaymentConfigsResponseSchema = mixedPaginationSchema4(paymentConfigSchema);
11694
11694
  var GetPaymentConfigs = class extends AbstractApiRequest16 {
11695
11695
  constructor(options) {
11696
11696
  super(void 0, options);
@@ -11797,9 +11797,9 @@ var GetPaymentConfigStripeDetails = class extends AbstractApiRequest20 {
11797
11797
 
11798
11798
  // src/requests/payment-configs/stripe/GetPaymentConfigStripeList.ts
11799
11799
  import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
11800
- import { createPaginatedSchema as createPaginatedSchema5 } from "@deliverart/sdk-js-global-types";
11800
+ import { mixedPaginationSchema as mixedPaginationSchema5 } from "@deliverart/sdk-js-global-types";
11801
11801
  var getPaymentConfigStripeListInputSchema = external_exports.undefined();
11802
- var getPaymentConfigStripeListResponseSchema = createPaginatedSchema5(paymentConfigStripeSchema);
11802
+ var getPaymentConfigStripeListResponseSchema = mixedPaginationSchema5(paymentConfigStripeSchema);
11803
11803
  var GetPaymentConfigStripeList = class extends AbstractApiRequest21 {
11804
11804
  constructor(options) {
11805
11805
  super(void 0, options);
@@ -11907,9 +11907,9 @@ var GetPaymentInfo = class extends AbstractApiRequest25 {
11907
11907
 
11908
11908
  // src/requests/payments/GetPayments.ts
11909
11909
  import { AbstractApiRequest as AbstractApiRequest26 } from "@deliverart/sdk-js-core";
11910
- import { createPaginatedSchema as createPaginatedSchema6 } from "@deliverart/sdk-js-global-types";
11910
+ import { mixedPaginationSchema as mixedPaginationSchema6 } from "@deliverart/sdk-js-global-types";
11911
11911
  var getPaymentsInputSchema = external_exports.undefined();
11912
- var getPaymentsResponseSchema = createPaginatedSchema6(paymentSchema);
11912
+ var getPaymentsResponseSchema = mixedPaginationSchema6(paymentSchema);
11913
11913
  var GetPayments = class extends AbstractApiRequest26 {
11914
11914
  constructor(options) {
11915
11915
  super(void 0, options);
@@ -11930,9 +11930,9 @@ var GetPayments = class extends AbstractApiRequest26 {
11930
11930
 
11931
11931
  // src/requests/payments/GetPaymentsForPaymentConfig.ts
11932
11932
  import { AbstractApiRequest as AbstractApiRequest27 } from "@deliverart/sdk-js-core";
11933
- import { createPaginatedSchema as createPaginatedSchema7 } from "@deliverart/sdk-js-global-types";
11933
+ import { mixedPaginationSchema as mixedPaginationSchema7 } from "@deliverart/sdk-js-global-types";
11934
11934
  var getPaymentsForPaymentConfigInputSchema = external_exports.undefined();
11935
- var getPaymentsForPaymentConfigResponseSchema = createPaginatedSchema7(paymentSchema);
11935
+ var getPaymentsForPaymentConfigResponseSchema = mixedPaginationSchema7(paymentSchema);
11936
11936
  var GetPaymentsForPaymentConfig = class extends AbstractApiRequest27 {
11937
11937
  constructor(paymentConfigId, options) {
11938
11938
  super(void 0, options);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-payment",
3
3
  "description": "Deliverart JavaScript SDK for Payment Management",
4
- "version": "2.6.0",
4
+ "version": "2.6.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@deliverart/sdk-js-core": "2.6.0",
22
- "@deliverart/sdk-js-point-of-sale": "2.6.0",
23
- "@deliverart/sdk-js-global-types": "2.6.0"
21
+ "@deliverart/sdk-js-global-types": "2.6.1",
22
+ "@deliverart/sdk-js-core": "2.6.1",
23
+ "@deliverart/sdk-js-point-of-sale": "2.6.1"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"