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
@@ -815,46 +815,6 @@ export type ListSubscriptionPaymentsCaptureMode = ClosedEnum<
815
815
  typeof ListSubscriptionPaymentsCaptureMode
816
816
  >;
817
817
 
818
- /**
819
- * **Only relevant if you wish to manage authorization and capturing separately.**
820
- *
821
- * @remarks
822
- *
823
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
824
- * later point either be 'captured' or canceled.
825
- *
826
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
827
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
828
- * example `8 hours` or `2 days`.
829
- *
830
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
831
- *
832
- * The maximum delay is 7 days (168 hours).
833
- */
834
- export const ListSubscriptionPaymentsCaptureDelay = {
835
- DotDotDotHours: "... hours",
836
- DotDotDotDays: "... days",
837
- } as const;
838
- /**
839
- * **Only relevant if you wish to manage authorization and capturing separately.**
840
- *
841
- * @remarks
842
- *
843
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
844
- * later point either be 'captured' or canceled.
845
- *
846
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
847
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
848
- * example `8 hours` or `2 days`.
849
- *
850
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
851
- *
852
- * The maximum delay is 7 days (168 hours).
853
- */
854
- export type ListSubscriptionPaymentsCaptureDelay = ClosedEnum<
855
- typeof ListSubscriptionPaymentsCaptureDelay
856
- >;
857
-
858
818
  /**
859
819
  * The fee that you wish to charge.
860
820
  *
@@ -1681,8 +1641,10 @@ export type ListSubscriptionPaymentsPaymentOutput = {
1681
1641
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1682
1642
  *
1683
1643
  * The maximum delay is 7 days (168 hours).
1644
+ *
1645
+ * Possible values: `... hours` `... days`
1684
1646
  */
1685
- captureDelay?: ListSubscriptionPaymentsCaptureDelay | null | undefined;
1647
+ captureDelay?: string | null | undefined;
1686
1648
  /**
1687
1649
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1688
1650
  *
@@ -3544,30 +3506,6 @@ export namespace ListSubscriptionPaymentsCaptureMode$ {
3544
3506
  ListSubscriptionPaymentsCaptureMode$outboundSchema;
3545
3507
  }
3546
3508
 
3547
- /** @internal */
3548
- export const ListSubscriptionPaymentsCaptureDelay$inboundSchema:
3549
- z.ZodNativeEnum<typeof ListSubscriptionPaymentsCaptureDelay> = z.nativeEnum(
3550
- ListSubscriptionPaymentsCaptureDelay,
3551
- );
3552
-
3553
- /** @internal */
3554
- export const ListSubscriptionPaymentsCaptureDelay$outboundSchema:
3555
- z.ZodNativeEnum<typeof ListSubscriptionPaymentsCaptureDelay> =
3556
- ListSubscriptionPaymentsCaptureDelay$inboundSchema;
3557
-
3558
- /**
3559
- * @internal
3560
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3561
- */
3562
- export namespace ListSubscriptionPaymentsCaptureDelay$ {
3563
- /** @deprecated use `ListSubscriptionPaymentsCaptureDelay$inboundSchema` instead. */
3564
- export const inboundSchema =
3565
- ListSubscriptionPaymentsCaptureDelay$inboundSchema;
3566
- /** @deprecated use `ListSubscriptionPaymentsCaptureDelay$outboundSchema` instead. */
3567
- export const outboundSchema =
3568
- ListSubscriptionPaymentsCaptureDelay$outboundSchema;
3569
- }
3570
-
3571
3509
  /** @internal */
3572
3510
  export const ListSubscriptionPaymentsApplicationFeeAmount$inboundSchema:
3573
3511
  z.ZodType<
@@ -5367,11 +5305,9 @@ export const ListSubscriptionPaymentsPaymentOutput$inboundSchema: z.ZodType<
5367
5305
  z.array(z.string()),
5368
5306
  ]),
5369
5307
  ).optional(),
5370
- captureMode: z.nullable(
5371
- ListSubscriptionPaymentsCaptureMode$inboundSchema.default("automatic"),
5372
- ),
5373
- captureDelay: z.nullable(ListSubscriptionPaymentsCaptureDelay$inboundSchema)
5308
+ captureMode: z.nullable(ListSubscriptionPaymentsCaptureMode$inboundSchema)
5374
5309
  .optional(),
5310
+ captureDelay: z.nullable(z.string()).optional(),
5375
5311
  captureBefore: z.nullable(z.string()).optional(),
5376
5312
  applicationFee: z.nullable(
5377
5313
  z.lazy(() => ListSubscriptionPaymentsApplicationFee$inboundSchema),
@@ -5444,7 +5380,7 @@ export type ListSubscriptionPaymentsPaymentOutput$Outbound = {
5444
5380
  | Array<string>
5445
5381
  | null
5446
5382
  | undefined;
5447
- captureMode: string | null;
5383
+ captureMode?: string | null | undefined;
5448
5384
  captureDelay?: string | null | undefined;
5449
5385
  captureBefore?: string | null | undefined;
5450
5386
  applicationFee?:
@@ -5525,11 +5461,9 @@ export const ListSubscriptionPaymentsPaymentOutput$outboundSchema: z.ZodType<
5525
5461
  z.array(z.string()),
5526
5462
  ]),
5527
5463
  ).optional(),
5528
- captureMode: z.nullable(
5529
- ListSubscriptionPaymentsCaptureMode$outboundSchema.default("automatic"),
5530
- ),
5531
- captureDelay: z.nullable(ListSubscriptionPaymentsCaptureDelay$outboundSchema)
5464
+ captureMode: z.nullable(ListSubscriptionPaymentsCaptureMode$outboundSchema)
5532
5465
  .optional(),
5466
+ captureDelay: z.nullable(z.string()).optional(),
5533
5467
  captureBefore: z.nullable(z.string()).optional(),
5534
5468
  applicationFee: z.nullable(
5535
5469
  z.lazy(() => ListSubscriptionPaymentsApplicationFee$outboundSchema),
@@ -1165,46 +1165,6 @@ export type UpdatePaymentCaptureMode = ClosedEnum<
1165
1165
  typeof UpdatePaymentCaptureMode
1166
1166
  >;
1167
1167
 
1168
- /**
1169
- * **Only relevant if you wish to manage authorization and capturing separately.**
1170
- *
1171
- * @remarks
1172
- *
1173
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
1174
- * later point either be 'captured' or canceled.
1175
- *
1176
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
1177
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
1178
- * example `8 hours` or `2 days`.
1179
- *
1180
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1181
- *
1182
- * The maximum delay is 7 days (168 hours).
1183
- */
1184
- export const UpdatePaymentCaptureDelay = {
1185
- DotDotDotHours: "... hours",
1186
- DotDotDotDays: "... days",
1187
- } as const;
1188
- /**
1189
- * **Only relevant if you wish to manage authorization and capturing separately.**
1190
- *
1191
- * @remarks
1192
- *
1193
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
1194
- * later point either be 'captured' or canceled.
1195
- *
1196
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
1197
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
1198
- * example `8 hours` or `2 days`.
1199
- *
1200
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1201
- *
1202
- * The maximum delay is 7 days (168 hours).
1203
- */
1204
- export type UpdatePaymentCaptureDelay = ClosedEnum<
1205
- typeof UpdatePaymentCaptureDelay
1206
- >;
1207
-
1208
1168
  /**
1209
1169
  * The fee that you wish to charge.
1210
1170
  *
@@ -2032,8 +1992,10 @@ export type UpdatePaymentResponse = {
2032
1992
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
2033
1993
  *
2034
1994
  * The maximum delay is 7 days (168 hours).
1995
+ *
1996
+ * Possible values: `... hours` `... days`
2035
1997
  */
2036
- captureDelay?: UpdatePaymentCaptureDelay | null | undefined;
1998
+ captureDelay?: string | null | undefined;
2037
1999
  /**
2038
2000
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
2039
2001
  *
@@ -4236,27 +4198,6 @@ export namespace UpdatePaymentCaptureMode$ {
4236
4198
  export const outboundSchema = UpdatePaymentCaptureMode$outboundSchema;
4237
4199
  }
4238
4200
 
4239
- /** @internal */
4240
- export const UpdatePaymentCaptureDelay$inboundSchema: z.ZodNativeEnum<
4241
- typeof UpdatePaymentCaptureDelay
4242
- > = z.nativeEnum(UpdatePaymentCaptureDelay);
4243
-
4244
- /** @internal */
4245
- export const UpdatePaymentCaptureDelay$outboundSchema: z.ZodNativeEnum<
4246
- typeof UpdatePaymentCaptureDelay
4247
- > = UpdatePaymentCaptureDelay$inboundSchema;
4248
-
4249
- /**
4250
- * @internal
4251
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4252
- */
4253
- export namespace UpdatePaymentCaptureDelay$ {
4254
- /** @deprecated use `UpdatePaymentCaptureDelay$inboundSchema` instead. */
4255
- export const inboundSchema = UpdatePaymentCaptureDelay$inboundSchema;
4256
- /** @deprecated use `UpdatePaymentCaptureDelay$outboundSchema` instead. */
4257
- export const outboundSchema = UpdatePaymentCaptureDelay$outboundSchema;
4258
- }
4259
-
4260
4201
  /** @internal */
4261
4202
  export const UpdatePaymentApplicationFeeAmount$inboundSchema: z.ZodType<
4262
4203
  UpdatePaymentApplicationFeeAmount,
@@ -5895,10 +5836,8 @@ export const UpdatePaymentResponse$inboundSchema: z.ZodType<
5895
5836
  z.array(z.string()),
5896
5837
  ]),
5897
5838
  ).optional(),
5898
- captureMode: z.nullable(
5899
- UpdatePaymentCaptureMode$inboundSchema.default("automatic"),
5900
- ),
5901
- captureDelay: z.nullable(UpdatePaymentCaptureDelay$inboundSchema).optional(),
5839
+ captureMode: z.nullable(UpdatePaymentCaptureMode$inboundSchema).optional(),
5840
+ captureDelay: z.nullable(z.string()).optional(),
5902
5841
  captureBefore: z.nullable(z.string()).optional(),
5903
5842
  applicationFee: z.nullable(
5904
5843
  z.lazy(() => UpdatePaymentApplicationFee$inboundSchema),
@@ -5962,7 +5901,7 @@ export type UpdatePaymentResponse$Outbound = {
5962
5901
  | Array<string>
5963
5902
  | null
5964
5903
  | undefined;
5965
- captureMode: string | null;
5904
+ captureMode?: string | null | undefined;
5966
5905
  captureDelay?: string | null | undefined;
5967
5906
  captureBefore?: string | null | undefined;
5968
5907
  applicationFee?: UpdatePaymentApplicationFee$Outbound | null | undefined;
@@ -6031,10 +5970,8 @@ export const UpdatePaymentResponse$outboundSchema: z.ZodType<
6031
5970
  z.array(z.string()),
6032
5971
  ]),
6033
5972
  ).optional(),
6034
- captureMode: z.nullable(
6035
- UpdatePaymentCaptureMode$outboundSchema.default("automatic"),
6036
- ),
6037
- captureDelay: z.nullable(UpdatePaymentCaptureDelay$outboundSchema).optional(),
5973
+ captureMode: z.nullable(UpdatePaymentCaptureMode$outboundSchema).optional(),
5974
+ captureDelay: z.nullable(z.string()).optional(),
6038
5975
  captureBefore: z.nullable(z.string()).optional(),
6039
5976
  applicationFee: z.nullable(
6040
5977
  z.lazy(() => UpdatePaymentApplicationFee$outboundSchema),