mollie-api-typescript 0.0.2 → 0.0.3

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.
Files changed (120) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/README.md +6 -6
  3. package/bin/mcp-server.js +69 -199
  4. package/bin/mcp-server.js.map +16 -16
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/models/operations/cancelpayment.d.ts +4 -59
  10. package/dist/commonjs/models/operations/cancelpayment.d.ts.map +1 -1
  11. package/dist/commonjs/models/operations/cancelpayment.js +8 -43
  12. package/dist/commonjs/models/operations/cancelpayment.js.map +1 -1
  13. package/dist/commonjs/models/operations/createcustomerpayment.d.ts +8 -118
  14. package/dist/commonjs/models/operations/createcustomerpayment.d.ts.map +1 -1
  15. package/dist/commonjs/models/operations/createcustomerpayment.js +15 -86
  16. package/dist/commonjs/models/operations/createcustomerpayment.js.map +1 -1
  17. package/dist/commonjs/models/operations/createpayment.d.ts +8 -118
  18. package/dist/commonjs/models/operations/createpayment.d.ts.map +1 -1
  19. package/dist/commonjs/models/operations/createpayment.js +14 -84
  20. package/dist/commonjs/models/operations/createpayment.js.map +1 -1
  21. package/dist/commonjs/models/operations/getpayment.d.ts +4 -59
  22. package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/getpayment.js +8 -43
  24. package/dist/commonjs/models/operations/getpayment.js.map +1 -1
  25. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +4 -59
  26. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  27. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +9 -44
  28. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  29. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +4 -59
  30. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  31. package/dist/commonjs/models/operations/listallsubscriptions.js +9 -44
  32. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  33. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +4 -59
  34. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/listcustomerpayments.js +9 -44
  36. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  37. package/dist/commonjs/models/operations/listpayments.d.ts +4 -59
  38. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/listpayments.js +9 -44
  40. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  41. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +4 -59
  42. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/listsettlementpayments.js +9 -44
  44. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  45. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +4 -59
  46. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/listsubscriptionpayments.js +9 -44
  48. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  49. package/dist/commonjs/models/operations/updatepayment.d.ts +4 -59
  50. package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/updatepayment.js +9 -44
  52. package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
  53. package/dist/esm/lib/config.d.ts +3 -3
  54. package/dist/esm/lib/config.js +3 -3
  55. package/dist/esm/mcp-server/mcp-server.js +1 -1
  56. package/dist/esm/mcp-server/server.js +1 -1
  57. package/dist/esm/models/operations/cancelpayment.d.ts +4 -59
  58. package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
  59. package/dist/esm/models/operations/cancelpayment.js +4 -39
  60. package/dist/esm/models/operations/cancelpayment.js.map +1 -1
  61. package/dist/esm/models/operations/createcustomerpayment.d.ts +8 -118
  62. package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
  63. package/dist/esm/models/operations/createcustomerpayment.js +9 -80
  64. package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
  65. package/dist/esm/models/operations/createpayment.d.ts +8 -118
  66. package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
  67. package/dist/esm/models/operations/createpayment.js +8 -78
  68. package/dist/esm/models/operations/createpayment.js.map +1 -1
  69. package/dist/esm/models/operations/getpayment.d.ts +4 -59
  70. package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
  71. package/dist/esm/models/operations/getpayment.js +4 -39
  72. package/dist/esm/models/operations/getpayment.js.map +1 -1
  73. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +4 -59
  74. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  75. package/dist/esm/models/operations/getpaymentlinkpayments.js +4 -39
  76. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  77. package/dist/esm/models/operations/listallsubscriptions.d.ts +4 -59
  78. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  79. package/dist/esm/models/operations/listallsubscriptions.js +4 -39
  80. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  81. package/dist/esm/models/operations/listcustomerpayments.d.ts +4 -59
  82. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  83. package/dist/esm/models/operations/listcustomerpayments.js +4 -39
  84. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  85. package/dist/esm/models/operations/listpayments.d.ts +4 -59
  86. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  87. package/dist/esm/models/operations/listpayments.js +4 -39
  88. package/dist/esm/models/operations/listpayments.js.map +1 -1
  89. package/dist/esm/models/operations/listsettlementpayments.d.ts +4 -59
  90. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  91. package/dist/esm/models/operations/listsettlementpayments.js +4 -39
  92. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  93. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +4 -59
  94. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  95. package/dist/esm/models/operations/listsubscriptionpayments.js +4 -39
  96. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  97. package/dist/esm/models/operations/updatepayment.d.ts +4 -59
  98. package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
  99. package/dist/esm/models/operations/updatepayment.js +4 -39
  100. package/dist/esm/models/operations/updatepayment.js.map +1 -1
  101. package/docs/sdks/customers/README.md +2 -2
  102. package/docs/sdks/payments/README.md +2 -2
  103. package/examples/package-lock.json +1 -1
  104. package/examples/paymentsCreate.example.ts +1 -1
  105. package/jsr.json +1 -1
  106. package/package.json +1 -1
  107. package/src/lib/config.ts +3 -3
  108. package/src/mcp-server/mcp-server.ts +1 -1
  109. package/src/mcp-server/server.ts +1 -1
  110. package/src/models/operations/cancelpayment.ts +8 -71
  111. package/src/models/operations/createcustomerpayment.ts +17 -150
  112. package/src/models/operations/createpayment.ts +16 -143
  113. package/src/models/operations/getpayment.ts +8 -69
  114. package/src/models/operations/getpaymentlinkpayments.ts +8 -72
  115. package/src/models/operations/listallsubscriptions.ts +8 -71
  116. package/src/models/operations/listcustomerpayments.ts +8 -71
  117. package/src/models/operations/listpayments.ts +8 -71
  118. package/src/models/operations/listsettlementpayments.ts +8 -72
  119. package/src/models/operations/listsubscriptionpayments.ts +8 -74
  120. package/src/models/operations/updatepayment.ts +8 -71
@@ -641,46 +641,6 @@ export type CreateCustomerPaymentCaptureModeRequest = ClosedEnum<
641
641
  typeof CreateCustomerPaymentCaptureModeRequest
642
642
  >;
643
643
 
644
- /**
645
- * **Only relevant if you wish to manage authorization and capturing separately.**
646
- *
647
- * @remarks
648
- *
649
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
650
- * later point either be 'captured' or canceled.
651
- *
652
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
653
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
654
- * example `8 hours` or `2 days`.
655
- *
656
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
657
- *
658
- * The maximum delay is 7 days (168 hours).
659
- */
660
- export const CreateCustomerPaymentCaptureDelayRequest = {
661
- DotDotDotHours: "... hours",
662
- DotDotDotDays: "... days",
663
- } as const;
664
- /**
665
- * **Only relevant if you wish to manage authorization and capturing separately.**
666
- *
667
- * @remarks
668
- *
669
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
670
- * later point either be 'captured' or canceled.
671
- *
672
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
673
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
674
- * example `8 hours` or `2 days`.
675
- *
676
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
677
- *
678
- * The maximum delay is 7 days (168 hours).
679
- */
680
- export type CreateCustomerPaymentCaptureDelayRequest = ClosedEnum<
681
- typeof CreateCustomerPaymentCaptureDelayRequest
682
- >;
683
-
684
644
  /**
685
645
  * The fee that you wish to charge.
686
646
  *
@@ -1078,8 +1038,10 @@ export type CreateCustomerPaymentRequestBody = {
1078
1038
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1079
1039
  *
1080
1040
  * The maximum delay is 7 days (168 hours).
1041
+ *
1042
+ * Possible values: `... hours` `... days`
1081
1043
  */
1082
- captureDelay?: CreateCustomerPaymentCaptureDelayRequest | null | undefined;
1044
+ captureDelay?: string | null | undefined;
1083
1045
  /**
1084
1046
  * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
1085
1047
  *
@@ -1943,46 +1905,6 @@ export type CreateCustomerPaymentCaptureModeResponse = ClosedEnum<
1943
1905
  typeof CreateCustomerPaymentCaptureModeResponse
1944
1906
  >;
1945
1907
 
1946
- /**
1947
- * **Only relevant if you wish to manage authorization and capturing separately.**
1948
- *
1949
- * @remarks
1950
- *
1951
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
1952
- * later point either be 'captured' or canceled.
1953
- *
1954
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
1955
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
1956
- * example `8 hours` or `2 days`.
1957
- *
1958
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1959
- *
1960
- * The maximum delay is 7 days (168 hours).
1961
- */
1962
- export const CreateCustomerPaymentCaptureDelayResponse = {
1963
- DotDotDotHours: "... hours",
1964
- DotDotDotDays: "... days",
1965
- } as const;
1966
- /**
1967
- * **Only relevant if you wish to manage authorization and capturing separately.**
1968
- *
1969
- * @remarks
1970
- *
1971
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
1972
- * later point either be 'captured' or canceled.
1973
- *
1974
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
1975
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
1976
- * example `8 hours` or `2 days`.
1977
- *
1978
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1979
- *
1980
- * The maximum delay is 7 days (168 hours).
1981
- */
1982
- export type CreateCustomerPaymentCaptureDelayResponse = ClosedEnum<
1983
- typeof CreateCustomerPaymentCaptureDelayResponse
1984
- >;
1985
-
1986
1908
  /**
1987
1909
  * The fee that you wish to charge.
1988
1910
  *
@@ -2812,8 +2734,10 @@ export type CreateCustomerPaymentResponse = {
2812
2734
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
2813
2735
  *
2814
2736
  * The maximum delay is 7 days (168 hours).
2737
+ *
2738
+ * Possible values: `... hours` `... days`
2815
2739
  */
2816
- captureDelay?: CreateCustomerPaymentCaptureDelayResponse | null | undefined;
2740
+ captureDelay?: string | null | undefined;
2817
2741
  /**
2818
2742
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
2819
2743
  *
@@ -4040,29 +3964,6 @@ export namespace CreateCustomerPaymentCaptureModeRequest$ {
4040
3964
  CreateCustomerPaymentCaptureModeRequest$outboundSchema;
4041
3965
  }
4042
3966
 
4043
- /** @internal */
4044
- export const CreateCustomerPaymentCaptureDelayRequest$inboundSchema:
4045
- z.ZodNativeEnum<typeof CreateCustomerPaymentCaptureDelayRequest> = z
4046
- .nativeEnum(CreateCustomerPaymentCaptureDelayRequest);
4047
-
4048
- /** @internal */
4049
- export const CreateCustomerPaymentCaptureDelayRequest$outboundSchema:
4050
- z.ZodNativeEnum<typeof CreateCustomerPaymentCaptureDelayRequest> =
4051
- CreateCustomerPaymentCaptureDelayRequest$inboundSchema;
4052
-
4053
- /**
4054
- * @internal
4055
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4056
- */
4057
- export namespace CreateCustomerPaymentCaptureDelayRequest$ {
4058
- /** @deprecated use `CreateCustomerPaymentCaptureDelayRequest$inboundSchema` instead. */
4059
- export const inboundSchema =
4060
- CreateCustomerPaymentCaptureDelayRequest$inboundSchema;
4061
- /** @deprecated use `CreateCustomerPaymentCaptureDelayRequest$outboundSchema` instead. */
4062
- export const outboundSchema =
4063
- CreateCustomerPaymentCaptureDelayRequest$outboundSchema;
4064
- }
4065
-
4066
3967
  /** @internal */
4067
3968
  export const CreateCustomerPaymentApplicationFeeAmountRequest$inboundSchema:
4068
3969
  z.ZodType<
@@ -4686,12 +4587,9 @@ export const CreateCustomerPaymentRequestBody$inboundSchema: z.ZodType<
4686
4587
  z.array(z.string()),
4687
4588
  ]),
4688
4589
  ).optional(),
4689
- captureMode: z.nullable(
4690
- CreateCustomerPaymentCaptureModeRequest$inboundSchema.default("automatic"),
4691
- ),
4692
- captureDelay: z.nullable(
4693
- CreateCustomerPaymentCaptureDelayRequest$inboundSchema,
4694
- ).optional(),
4590
+ captureMode: z.nullable(CreateCustomerPaymentCaptureModeRequest$inboundSchema)
4591
+ .optional(),
4592
+ captureDelay: z.nullable(z.string()).optional(),
4695
4593
  applicationFee: z.nullable(
4696
4594
  z.lazy(() => CreateCustomerPaymentApplicationFeeRequest$inboundSchema),
4697
4595
  ).optional(),
@@ -4732,7 +4630,7 @@ export type CreateCustomerPaymentRequestBody$Outbound = {
4732
4630
  | Array<string>
4733
4631
  | null
4734
4632
  | undefined;
4735
- captureMode: string | null;
4633
+ captureMode?: string | null | undefined;
4736
4634
  captureDelay?: string | null | undefined;
4737
4635
  applicationFee?:
4738
4636
  | CreateCustomerPaymentApplicationFeeRequest$Outbound
@@ -4784,11 +4682,9 @@ export const CreateCustomerPaymentRequestBody$outboundSchema: z.ZodType<
4784
4682
  ]),
4785
4683
  ).optional(),
4786
4684
  captureMode: z.nullable(
4787
- CreateCustomerPaymentCaptureModeRequest$outboundSchema.default("automatic"),
4788
- ),
4789
- captureDelay: z.nullable(
4790
- CreateCustomerPaymentCaptureDelayRequest$outboundSchema,
4685
+ CreateCustomerPaymentCaptureModeRequest$outboundSchema,
4791
4686
  ).optional(),
4687
+ captureDelay: z.nullable(z.string()).optional(),
4792
4688
  applicationFee: z.nullable(
4793
4689
  z.lazy(() => CreateCustomerPaymentApplicationFeeRequest$outboundSchema),
4794
4690
  ).optional(),
@@ -6574,29 +6470,6 @@ export namespace CreateCustomerPaymentCaptureModeResponse$ {
6574
6470
  CreateCustomerPaymentCaptureModeResponse$outboundSchema;
6575
6471
  }
6576
6472
 
6577
- /** @internal */
6578
- export const CreateCustomerPaymentCaptureDelayResponse$inboundSchema:
6579
- z.ZodNativeEnum<typeof CreateCustomerPaymentCaptureDelayResponse> = z
6580
- .nativeEnum(CreateCustomerPaymentCaptureDelayResponse);
6581
-
6582
- /** @internal */
6583
- export const CreateCustomerPaymentCaptureDelayResponse$outboundSchema:
6584
- z.ZodNativeEnum<typeof CreateCustomerPaymentCaptureDelayResponse> =
6585
- CreateCustomerPaymentCaptureDelayResponse$inboundSchema;
6586
-
6587
- /**
6588
- * @internal
6589
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6590
- */
6591
- export namespace CreateCustomerPaymentCaptureDelayResponse$ {
6592
- /** @deprecated use `CreateCustomerPaymentCaptureDelayResponse$inboundSchema` instead. */
6593
- export const inboundSchema =
6594
- CreateCustomerPaymentCaptureDelayResponse$inboundSchema;
6595
- /** @deprecated use `CreateCustomerPaymentCaptureDelayResponse$outboundSchema` instead. */
6596
- export const outboundSchema =
6597
- CreateCustomerPaymentCaptureDelayResponse$outboundSchema;
6598
- }
6599
-
6600
6473
  /** @internal */
6601
6474
  export const CreateCustomerPaymentApplicationFeeAmountResponse$inboundSchema:
6602
6475
  z.ZodType<
@@ -8402,11 +8275,9 @@ export const CreateCustomerPaymentResponse$inboundSchema: z.ZodType<
8402
8275
  ]),
8403
8276
  ).optional(),
8404
8277
  captureMode: z.nullable(
8405
- CreateCustomerPaymentCaptureModeResponse$inboundSchema.default("automatic"),
8406
- ),
8407
- captureDelay: z.nullable(
8408
- CreateCustomerPaymentCaptureDelayResponse$inboundSchema,
8278
+ CreateCustomerPaymentCaptureModeResponse$inboundSchema,
8409
8279
  ).optional(),
8280
+ captureDelay: z.nullable(z.string()).optional(),
8410
8281
  captureBefore: z.nullable(z.string()).optional(),
8411
8282
  applicationFee: z.nullable(
8412
8283
  z.lazy(() => CreateCustomerPaymentApplicationFeeResponse$inboundSchema),
@@ -8477,7 +8348,7 @@ export type CreateCustomerPaymentResponse$Outbound = {
8477
8348
  | Array<string>
8478
8349
  | null
8479
8350
  | undefined;
8480
- captureMode: string | null;
8351
+ captureMode?: string | null | undefined;
8481
8352
  captureDelay?: string | null | undefined;
8482
8353
  captureBefore?: string | null | undefined;
8483
8354
  applicationFee?:
@@ -8561,13 +8432,9 @@ export const CreateCustomerPaymentResponse$outboundSchema: z.ZodType<
8561
8432
  ]),
8562
8433
  ).optional(),
8563
8434
  captureMode: z.nullable(
8564
- CreateCustomerPaymentCaptureModeResponse$outboundSchema.default(
8565
- "automatic",
8566
- ),
8567
- ),
8568
- captureDelay: z.nullable(
8569
- CreateCustomerPaymentCaptureDelayResponse$outboundSchema,
8435
+ CreateCustomerPaymentCaptureModeResponse$outboundSchema,
8570
8436
  ).optional(),
8437
+ captureDelay: z.nullable(z.string()).optional(),
8571
8438
  captureBefore: z.nullable(z.string()).optional(),
8572
8439
  applicationFee: z.nullable(
8573
8440
  z.lazy(() => CreateCustomerPaymentApplicationFeeResponse$outboundSchema),
@@ -652,46 +652,6 @@ export type CreatePaymentCaptureModeRequest = ClosedEnum<
652
652
  typeof CreatePaymentCaptureModeRequest
653
653
  >;
654
654
 
655
- /**
656
- * **Only relevant if you wish to manage authorization and capturing separately.**
657
- *
658
- * @remarks
659
- *
660
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
661
- * later point either be 'captured' or canceled.
662
- *
663
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
664
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
665
- * example `8 hours` or `2 days`.
666
- *
667
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
668
- *
669
- * The maximum delay is 7 days (168 hours).
670
- */
671
- export const CreatePaymentCaptureDelayRequest = {
672
- DotDotDotHours: "... hours",
673
- DotDotDotDays: "... days",
674
- } as const;
675
- /**
676
- * **Only relevant if you wish to manage authorization and capturing separately.**
677
- *
678
- * @remarks
679
- *
680
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
681
- * later point either be 'captured' or canceled.
682
- *
683
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
684
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
685
- * example `8 hours` or `2 days`.
686
- *
687
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
688
- *
689
- * The maximum delay is 7 days (168 hours).
690
- */
691
- export type CreatePaymentCaptureDelayRequest = ClosedEnum<
692
- typeof CreatePaymentCaptureDelayRequest
693
- >;
694
-
695
655
  /**
696
656
  * The fee that you wish to charge.
697
657
  *
@@ -1089,8 +1049,10 @@ export type CreatePaymentRequestBody = {
1089
1049
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1090
1050
  *
1091
1051
  * The maximum delay is 7 days (168 hours).
1052
+ *
1053
+ * Possible values: `... hours` `... days`
1092
1054
  */
1093
- captureDelay?: CreatePaymentCaptureDelayRequest | null | undefined;
1055
+ captureDelay?: string | null | undefined;
1094
1056
  /**
1095
1057
  * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
1096
1058
  *
@@ -1949,46 +1911,6 @@ export type CreatePaymentCaptureModeResponse = ClosedEnum<
1949
1911
  typeof CreatePaymentCaptureModeResponse
1950
1912
  >;
1951
1913
 
1952
- /**
1953
- * **Only relevant if you wish to manage authorization and capturing separately.**
1954
- *
1955
- * @remarks
1956
- *
1957
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
1958
- * later point either be 'captured' or canceled.
1959
- *
1960
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
1961
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
1962
- * example `8 hours` or `2 days`.
1963
- *
1964
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1965
- *
1966
- * The maximum delay is 7 days (168 hours).
1967
- */
1968
- export const CreatePaymentCaptureDelayResponse = {
1969
- DotDotDotHours: "... hours",
1970
- DotDotDotDays: "... days",
1971
- } as const;
1972
- /**
1973
- * **Only relevant if you wish to manage authorization and capturing separately.**
1974
- *
1975
- * @remarks
1976
- *
1977
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
1978
- * later point either be 'captured' or canceled.
1979
- *
1980
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
1981
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
1982
- * example `8 hours` or `2 days`.
1983
- *
1984
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1985
- *
1986
- * The maximum delay is 7 days (168 hours).
1987
- */
1988
- export type CreatePaymentCaptureDelayResponse = ClosedEnum<
1989
- typeof CreatePaymentCaptureDelayResponse
1990
- >;
1991
-
1992
1914
  /**
1993
1915
  * The fee that you wish to charge.
1994
1916
  *
@@ -2816,8 +2738,10 @@ export type CreatePaymentResponse = {
2816
2738
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
2817
2739
  *
2818
2740
  * The maximum delay is 7 days (168 hours).
2741
+ *
2742
+ * Possible values: `... hours` `... days`
2819
2743
  */
2820
- captureDelay?: CreatePaymentCaptureDelayResponse | null | undefined;
2744
+ captureDelay?: string | null | undefined;
2821
2745
  /**
2822
2746
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
2823
2747
  *
@@ -3974,27 +3898,6 @@ export namespace CreatePaymentCaptureModeRequest$ {
3974
3898
  export const outboundSchema = CreatePaymentCaptureModeRequest$outboundSchema;
3975
3899
  }
3976
3900
 
3977
- /** @internal */
3978
- export const CreatePaymentCaptureDelayRequest$inboundSchema: z.ZodNativeEnum<
3979
- typeof CreatePaymentCaptureDelayRequest
3980
- > = z.nativeEnum(CreatePaymentCaptureDelayRequest);
3981
-
3982
- /** @internal */
3983
- export const CreatePaymentCaptureDelayRequest$outboundSchema: z.ZodNativeEnum<
3984
- typeof CreatePaymentCaptureDelayRequest
3985
- > = CreatePaymentCaptureDelayRequest$inboundSchema;
3986
-
3987
- /**
3988
- * @internal
3989
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3990
- */
3991
- export namespace CreatePaymentCaptureDelayRequest$ {
3992
- /** @deprecated use `CreatePaymentCaptureDelayRequest$inboundSchema` instead. */
3993
- export const inboundSchema = CreatePaymentCaptureDelayRequest$inboundSchema;
3994
- /** @deprecated use `CreatePaymentCaptureDelayRequest$outboundSchema` instead. */
3995
- export const outboundSchema = CreatePaymentCaptureDelayRequest$outboundSchema;
3996
- }
3997
-
3998
3901
  /** @internal */
3999
3902
  export const CreatePaymentApplicationFeeAmountRequest$inboundSchema: z.ZodType<
4000
3903
  CreatePaymentApplicationFeeAmountRequest,
@@ -4563,11 +4466,9 @@ export const CreatePaymentRequestBody$inboundSchema: z.ZodType<
4563
4466
  z.array(z.string()),
4564
4467
  ]),
4565
4468
  ).optional(),
4566
- captureMode: z.nullable(
4567
- CreatePaymentCaptureModeRequest$inboundSchema.default("automatic"),
4568
- ),
4569
- captureDelay: z.nullable(CreatePaymentCaptureDelayRequest$inboundSchema)
4469
+ captureMode: z.nullable(CreatePaymentCaptureModeRequest$inboundSchema)
4570
4470
  .optional(),
4471
+ captureDelay: z.nullable(z.string()).optional(),
4571
4472
  applicationFee: z.nullable(
4572
4473
  z.lazy(() => CreatePaymentApplicationFeeRequest$inboundSchema),
4573
4474
  ).optional(),
@@ -4604,7 +4505,7 @@ export type CreatePaymentRequestBody$Outbound = {
4604
4505
  | Array<string>
4605
4506
  | null
4606
4507
  | undefined;
4607
- captureMode: string | null;
4508
+ captureMode?: string | null | undefined;
4608
4509
  captureDelay?: string | null | undefined;
4609
4510
  applicationFee?:
4610
4511
  | CreatePaymentApplicationFeeRequest$Outbound
@@ -4650,11 +4551,9 @@ export const CreatePaymentRequestBody$outboundSchema: z.ZodType<
4650
4551
  z.array(z.string()),
4651
4552
  ]),
4652
4553
  ).optional(),
4653
- captureMode: z.nullable(
4654
- CreatePaymentCaptureModeRequest$outboundSchema.default("automatic"),
4655
- ),
4656
- captureDelay: z.nullable(CreatePaymentCaptureDelayRequest$outboundSchema)
4554
+ captureMode: z.nullable(CreatePaymentCaptureModeRequest$outboundSchema)
4657
4555
  .optional(),
4556
+ captureDelay: z.nullable(z.string()).optional(),
4658
4557
  applicationFee: z.nullable(
4659
4558
  z.lazy(() => CreatePaymentApplicationFeeRequest$outboundSchema),
4660
4559
  ).optional(),
@@ -6303,28 +6202,6 @@ export namespace CreatePaymentCaptureModeResponse$ {
6303
6202
  export const outboundSchema = CreatePaymentCaptureModeResponse$outboundSchema;
6304
6203
  }
6305
6204
 
6306
- /** @internal */
6307
- export const CreatePaymentCaptureDelayResponse$inboundSchema: z.ZodNativeEnum<
6308
- typeof CreatePaymentCaptureDelayResponse
6309
- > = z.nativeEnum(CreatePaymentCaptureDelayResponse);
6310
-
6311
- /** @internal */
6312
- export const CreatePaymentCaptureDelayResponse$outboundSchema: z.ZodNativeEnum<
6313
- typeof CreatePaymentCaptureDelayResponse
6314
- > = CreatePaymentCaptureDelayResponse$inboundSchema;
6315
-
6316
- /**
6317
- * @internal
6318
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6319
- */
6320
- export namespace CreatePaymentCaptureDelayResponse$ {
6321
- /** @deprecated use `CreatePaymentCaptureDelayResponse$inboundSchema` instead. */
6322
- export const inboundSchema = CreatePaymentCaptureDelayResponse$inboundSchema;
6323
- /** @deprecated use `CreatePaymentCaptureDelayResponse$outboundSchema` instead. */
6324
- export const outboundSchema =
6325
- CreatePaymentCaptureDelayResponse$outboundSchema;
6326
- }
6327
-
6328
6205
  /** @internal */
6329
6206
  export const CreatePaymentApplicationFeeAmountResponse$inboundSchema: z.ZodType<
6330
6207
  CreatePaymentApplicationFeeAmountResponse,
@@ -7992,11 +7869,9 @@ export const CreatePaymentResponse$inboundSchema: z.ZodType<
7992
7869
  z.array(z.string()),
7993
7870
  ]),
7994
7871
  ).optional(),
7995
- captureMode: z.nullable(
7996
- CreatePaymentCaptureModeResponse$inboundSchema.default("automatic"),
7997
- ),
7998
- captureDelay: z.nullable(CreatePaymentCaptureDelayResponse$inboundSchema)
7872
+ captureMode: z.nullable(CreatePaymentCaptureModeResponse$inboundSchema)
7999
7873
  .optional(),
7874
+ captureDelay: z.nullable(z.string()).optional(),
8000
7875
  captureBefore: z.nullable(z.string()).optional(),
8001
7876
  applicationFee: z.nullable(
8002
7877
  z.lazy(() => CreatePaymentApplicationFeeResponse$inboundSchema),
@@ -8061,7 +7936,7 @@ export type CreatePaymentResponse$Outbound = {
8061
7936
  | Array<string>
8062
7937
  | null
8063
7938
  | undefined;
8064
- captureMode: string | null;
7939
+ captureMode?: string | null | undefined;
8065
7940
  captureDelay?: string | null | undefined;
8066
7941
  captureBefore?: string | null | undefined;
8067
7942
  applicationFee?:
@@ -8134,11 +8009,9 @@ export const CreatePaymentResponse$outboundSchema: z.ZodType<
8134
8009
  z.array(z.string()),
8135
8010
  ]),
8136
8011
  ).optional(),
8137
- captureMode: z.nullable(
8138
- CreatePaymentCaptureModeResponse$outboundSchema.default("automatic"),
8139
- ),
8140
- captureDelay: z.nullable(CreatePaymentCaptureDelayResponse$outboundSchema)
8012
+ captureMode: z.nullable(CreatePaymentCaptureModeResponse$outboundSchema)
8141
8013
  .optional(),
8014
+ captureDelay: z.nullable(z.string()).optional(),
8142
8015
  captureBefore: z.nullable(z.string()).optional(),
8143
8016
  applicationFee: z.nullable(
8144
8017
  z.lazy(() => CreatePaymentApplicationFeeResponse$outboundSchema),
@@ -791,44 +791,6 @@ export const GetPaymentCaptureMode = {
791
791
  */
792
792
  export type GetPaymentCaptureMode = ClosedEnum<typeof GetPaymentCaptureMode>;
793
793
 
794
- /**
795
- * **Only relevant if you wish to manage authorization and capturing separately.**
796
- *
797
- * @remarks
798
- *
799
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
800
- * later point either be 'captured' or canceled.
801
- *
802
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
803
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
804
- * example `8 hours` or `2 days`.
805
- *
806
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
807
- *
808
- * The maximum delay is 7 days (168 hours).
809
- */
810
- export const GetPaymentCaptureDelay = {
811
- DotDotDotHours: "... hours",
812
- DotDotDotDays: "... days",
813
- } as const;
814
- /**
815
- * **Only relevant if you wish to manage authorization and capturing separately.**
816
- *
817
- * @remarks
818
- *
819
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
820
- * later point either be 'captured' or canceled.
821
- *
822
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
823
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
824
- * example `8 hours` or `2 days`.
825
- *
826
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
827
- *
828
- * The maximum delay is 7 days (168 hours).
829
- */
830
- export type GetPaymentCaptureDelay = ClosedEnum<typeof GetPaymentCaptureDelay>;
831
-
832
794
  /**
833
795
  * The fee that you wish to charge.
834
796
  *
@@ -1645,8 +1607,10 @@ export type GetPaymentResponse = {
1645
1607
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1646
1608
  *
1647
1609
  * The maximum delay is 7 days (168 hours).
1610
+ *
1611
+ * Possible values: `... hours` `... days`
1648
1612
  */
1649
- captureDelay?: GetPaymentCaptureDelay | null | undefined;
1613
+ captureDelay?: string | null | undefined;
1650
1614
  /**
1651
1615
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1652
1616
  *
@@ -3266,27 +3230,6 @@ export namespace GetPaymentCaptureMode$ {
3266
3230
  export const outboundSchema = GetPaymentCaptureMode$outboundSchema;
3267
3231
  }
3268
3232
 
3269
- /** @internal */
3270
- export const GetPaymentCaptureDelay$inboundSchema: z.ZodNativeEnum<
3271
- typeof GetPaymentCaptureDelay
3272
- > = z.nativeEnum(GetPaymentCaptureDelay);
3273
-
3274
- /** @internal */
3275
- export const GetPaymentCaptureDelay$outboundSchema: z.ZodNativeEnum<
3276
- typeof GetPaymentCaptureDelay
3277
- > = GetPaymentCaptureDelay$inboundSchema;
3278
-
3279
- /**
3280
- * @internal
3281
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3282
- */
3283
- export namespace GetPaymentCaptureDelay$ {
3284
- /** @deprecated use `GetPaymentCaptureDelay$inboundSchema` instead. */
3285
- export const inboundSchema = GetPaymentCaptureDelay$inboundSchema;
3286
- /** @deprecated use `GetPaymentCaptureDelay$outboundSchema` instead. */
3287
- export const outboundSchema = GetPaymentCaptureDelay$outboundSchema;
3288
- }
3289
-
3290
3233
  /** @internal */
3291
3234
  export const GetPaymentApplicationFeeAmount$inboundSchema: z.ZodType<
3292
3235
  GetPaymentApplicationFeeAmount,
@@ -4906,10 +4849,8 @@ export const GetPaymentResponse$inboundSchema: z.ZodType<
4906
4849
  z.array(z.string()),
4907
4850
  ]),
4908
4851
  ).optional(),
4909
- captureMode: z.nullable(
4910
- GetPaymentCaptureMode$inboundSchema.default("automatic"),
4911
- ),
4912
- captureDelay: z.nullable(GetPaymentCaptureDelay$inboundSchema).optional(),
4852
+ captureMode: z.nullable(GetPaymentCaptureMode$inboundSchema).optional(),
4853
+ captureDelay: z.nullable(z.string()).optional(),
4913
4854
  captureBefore: z.nullable(z.string()).optional(),
4914
4855
  applicationFee: z.nullable(
4915
4856
  z.lazy(() => GetPaymentApplicationFee$inboundSchema),
@@ -4972,7 +4913,7 @@ export type GetPaymentResponse$Outbound = {
4972
4913
  | Array<string>
4973
4914
  | null
4974
4915
  | undefined;
4975
- captureMode: string | null;
4916
+ captureMode?: string | null | undefined;
4976
4917
  captureDelay?: string | null | undefined;
4977
4918
  captureBefore?: string | null | undefined;
4978
4919
  applicationFee?: GetPaymentApplicationFee$Outbound | null | undefined;
@@ -5039,10 +4980,8 @@ export const GetPaymentResponse$outboundSchema: z.ZodType<
5039
4980
  z.array(z.string()),
5040
4981
  ]),
5041
4982
  ).optional(),
5042
- captureMode: z.nullable(
5043
- GetPaymentCaptureMode$outboundSchema.default("automatic"),
5044
- ),
5045
- captureDelay: z.nullable(GetPaymentCaptureDelay$outboundSchema).optional(),
4983
+ captureMode: z.nullable(GetPaymentCaptureMode$outboundSchema).optional(),
4984
+ captureDelay: z.nullable(z.string()).optional(),
5046
4985
  captureBefore: z.nullable(z.string()).optional(),
5047
4986
  applicationFee: z.nullable(
5048
4987
  z.lazy(() => GetPaymentApplicationFee$outboundSchema),