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
@@ -801,46 +801,6 @@ export type GetPaymentLinkPaymentsCaptureMode = ClosedEnum<
801
801
  typeof GetPaymentLinkPaymentsCaptureMode
802
802
  >;
803
803
 
804
- /**
805
- * **Only relevant if you wish to manage authorization and capturing separately.**
806
- *
807
- * @remarks
808
- *
809
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
810
- * later point either be 'captured' or canceled.
811
- *
812
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
813
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
814
- * example `8 hours` or `2 days`.
815
- *
816
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
817
- *
818
- * The maximum delay is 7 days (168 hours).
819
- */
820
- export const GetPaymentLinkPaymentsCaptureDelay = {
821
- DotDotDotHours: "... hours",
822
- DotDotDotDays: "... days",
823
- } as const;
824
- /**
825
- * **Only relevant if you wish to manage authorization and capturing separately.**
826
- *
827
- * @remarks
828
- *
829
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
830
- * later point either be 'captured' or canceled.
831
- *
832
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
833
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
834
- * example `8 hours` or `2 days`.
835
- *
836
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
837
- *
838
- * The maximum delay is 7 days (168 hours).
839
- */
840
- export type GetPaymentLinkPaymentsCaptureDelay = ClosedEnum<
841
- typeof GetPaymentLinkPaymentsCaptureDelay
842
- >;
843
-
844
804
  /**
845
805
  * The fee that you wish to charge.
846
806
  *
@@ -1667,8 +1627,10 @@ export type GetPaymentLinkPaymentsPaymentOutput = {
1667
1627
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1668
1628
  *
1669
1629
  * The maximum delay is 7 days (168 hours).
1630
+ *
1631
+ * Possible values: `... hours` `... days`
1670
1632
  */
1671
- captureDelay?: GetPaymentLinkPaymentsCaptureDelay | null | undefined;
1633
+ captureDelay?: string | null | undefined;
1672
1634
  /**
1673
1635
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1674
1636
  *
@@ -3479,28 +3441,6 @@ export namespace GetPaymentLinkPaymentsCaptureMode$ {
3479
3441
  GetPaymentLinkPaymentsCaptureMode$outboundSchema;
3480
3442
  }
3481
3443
 
3482
- /** @internal */
3483
- export const GetPaymentLinkPaymentsCaptureDelay$inboundSchema: z.ZodNativeEnum<
3484
- typeof GetPaymentLinkPaymentsCaptureDelay
3485
- > = z.nativeEnum(GetPaymentLinkPaymentsCaptureDelay);
3486
-
3487
- /** @internal */
3488
- export const GetPaymentLinkPaymentsCaptureDelay$outboundSchema: z.ZodNativeEnum<
3489
- typeof GetPaymentLinkPaymentsCaptureDelay
3490
- > = GetPaymentLinkPaymentsCaptureDelay$inboundSchema;
3491
-
3492
- /**
3493
- * @internal
3494
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3495
- */
3496
- export namespace GetPaymentLinkPaymentsCaptureDelay$ {
3497
- /** @deprecated use `GetPaymentLinkPaymentsCaptureDelay$inboundSchema` instead. */
3498
- export const inboundSchema = GetPaymentLinkPaymentsCaptureDelay$inboundSchema;
3499
- /** @deprecated use `GetPaymentLinkPaymentsCaptureDelay$outboundSchema` instead. */
3500
- export const outboundSchema =
3501
- GetPaymentLinkPaymentsCaptureDelay$outboundSchema;
3502
- }
3503
-
3504
3444
  /** @internal */
3505
3445
  export const GetPaymentLinkPaymentsApplicationFeeAmount$inboundSchema:
3506
3446
  z.ZodType<GetPaymentLinkPaymentsApplicationFeeAmount, z.ZodTypeDef, unknown> =
@@ -5269,11 +5209,9 @@ export const GetPaymentLinkPaymentsPaymentOutput$inboundSchema: z.ZodType<
5269
5209
  z.array(z.string()),
5270
5210
  ]),
5271
5211
  ).optional(),
5272
- captureMode: z.nullable(
5273
- GetPaymentLinkPaymentsCaptureMode$inboundSchema.default("automatic"),
5274
- ),
5275
- captureDelay: z.nullable(GetPaymentLinkPaymentsCaptureDelay$inboundSchema)
5212
+ captureMode: z.nullable(GetPaymentLinkPaymentsCaptureMode$inboundSchema)
5276
5213
  .optional(),
5214
+ captureDelay: z.nullable(z.string()).optional(),
5277
5215
  captureBefore: z.nullable(z.string()).optional(),
5278
5216
  applicationFee: z.nullable(
5279
5217
  z.lazy(() => GetPaymentLinkPaymentsApplicationFee$inboundSchema),
@@ -5342,7 +5280,7 @@ export type GetPaymentLinkPaymentsPaymentOutput$Outbound = {
5342
5280
  | Array<string>
5343
5281
  | null
5344
5282
  | undefined;
5345
- captureMode: string | null;
5283
+ captureMode?: string | null | undefined;
5346
5284
  captureDelay?: string | null | undefined;
5347
5285
  captureBefore?: string | null | undefined;
5348
5286
  applicationFee?:
@@ -5420,11 +5358,9 @@ export const GetPaymentLinkPaymentsPaymentOutput$outboundSchema: z.ZodType<
5420
5358
  z.array(z.string()),
5421
5359
  ]),
5422
5360
  ).optional(),
5423
- captureMode: z.nullable(
5424
- GetPaymentLinkPaymentsCaptureMode$outboundSchema.default("automatic"),
5425
- ),
5426
- captureDelay: z.nullable(GetPaymentLinkPaymentsCaptureDelay$outboundSchema)
5361
+ captureMode: z.nullable(GetPaymentLinkPaymentsCaptureMode$outboundSchema)
5427
5362
  .optional(),
5363
+ captureDelay: z.nullable(z.string()).optional(),
5428
5364
  captureBefore: z.nullable(z.string()).optional(),
5429
5365
  applicationFee: z.nullable(
5430
5366
  z.lazy(() => GetPaymentLinkPaymentsApplicationFee$outboundSchema),
@@ -807,46 +807,6 @@ export type ListAllSubscriptionsCaptureMode = ClosedEnum<
807
807
  typeof ListAllSubscriptionsCaptureMode
808
808
  >;
809
809
 
810
- /**
811
- * **Only relevant if you wish to manage authorization and capturing separately.**
812
- *
813
- * @remarks
814
- *
815
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
816
- * later point either be 'captured' or canceled.
817
- *
818
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
819
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
820
- * example `8 hours` or `2 days`.
821
- *
822
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
823
- *
824
- * The maximum delay is 7 days (168 hours).
825
- */
826
- export const ListAllSubscriptionsCaptureDelay = {
827
- DotDotDotHours: "... hours",
828
- DotDotDotDays: "... days",
829
- } as const;
830
- /**
831
- * **Only relevant if you wish to manage authorization and capturing separately.**
832
- *
833
- * @remarks
834
- *
835
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
836
- * later point either be 'captured' or canceled.
837
- *
838
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
839
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
840
- * example `8 hours` or `2 days`.
841
- *
842
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
843
- *
844
- * The maximum delay is 7 days (168 hours).
845
- */
846
- export type ListAllSubscriptionsCaptureDelay = ClosedEnum<
847
- typeof ListAllSubscriptionsCaptureDelay
848
- >;
849
-
850
810
  /**
851
811
  * The fee that you wish to charge.
852
812
  *
@@ -1673,8 +1633,10 @@ export type ListAllSubscriptionsPaymentOutput = {
1673
1633
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1674
1634
  *
1675
1635
  * The maximum delay is 7 days (168 hours).
1636
+ *
1637
+ * Possible values: `... hours` `... days`
1676
1638
  */
1677
- captureDelay?: ListAllSubscriptionsCaptureDelay | null | undefined;
1639
+ captureDelay?: string | null | undefined;
1678
1640
  /**
1679
1641
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1680
1642
  *
@@ -3467,27 +3429,6 @@ export namespace ListAllSubscriptionsCaptureMode$ {
3467
3429
  export const outboundSchema = ListAllSubscriptionsCaptureMode$outboundSchema;
3468
3430
  }
3469
3431
 
3470
- /** @internal */
3471
- export const ListAllSubscriptionsCaptureDelay$inboundSchema: z.ZodNativeEnum<
3472
- typeof ListAllSubscriptionsCaptureDelay
3473
- > = z.nativeEnum(ListAllSubscriptionsCaptureDelay);
3474
-
3475
- /** @internal */
3476
- export const ListAllSubscriptionsCaptureDelay$outboundSchema: z.ZodNativeEnum<
3477
- typeof ListAllSubscriptionsCaptureDelay
3478
- > = ListAllSubscriptionsCaptureDelay$inboundSchema;
3479
-
3480
- /**
3481
- * @internal
3482
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3483
- */
3484
- export namespace ListAllSubscriptionsCaptureDelay$ {
3485
- /** @deprecated use `ListAllSubscriptionsCaptureDelay$inboundSchema` instead. */
3486
- export const inboundSchema = ListAllSubscriptionsCaptureDelay$inboundSchema;
3487
- /** @deprecated use `ListAllSubscriptionsCaptureDelay$outboundSchema` instead. */
3488
- export const outboundSchema = ListAllSubscriptionsCaptureDelay$outboundSchema;
3489
- }
3490
-
3491
3432
  /** @internal */
3492
3433
  export const ListAllSubscriptionsApplicationFeeAmount$inboundSchema: z.ZodType<
3493
3434
  ListAllSubscriptionsApplicationFeeAmount,
@@ -5214,11 +5155,9 @@ export const ListAllSubscriptionsPaymentOutput$inboundSchema: z.ZodType<
5214
5155
  z.array(z.string()),
5215
5156
  ]),
5216
5157
  ).optional(),
5217
- captureMode: z.nullable(
5218
- ListAllSubscriptionsCaptureMode$inboundSchema.default("automatic"),
5219
- ),
5220
- captureDelay: z.nullable(ListAllSubscriptionsCaptureDelay$inboundSchema)
5158
+ captureMode: z.nullable(ListAllSubscriptionsCaptureMode$inboundSchema)
5221
5159
  .optional(),
5160
+ captureDelay: z.nullable(z.string()).optional(),
5222
5161
  captureBefore: z.nullable(z.string()).optional(),
5223
5162
  applicationFee: z.nullable(
5224
5163
  z.lazy(() => ListAllSubscriptionsApplicationFee$inboundSchema),
@@ -5285,7 +5224,7 @@ export type ListAllSubscriptionsPaymentOutput$Outbound = {
5285
5224
  | Array<string>
5286
5225
  | null
5287
5226
  | undefined;
5288
- captureMode: string | null;
5227
+ captureMode?: string | null | undefined;
5289
5228
  captureDelay?: string | null | undefined;
5290
5229
  captureBefore?: string | null | undefined;
5291
5230
  applicationFee?:
@@ -5363,11 +5302,9 @@ export const ListAllSubscriptionsPaymentOutput$outboundSchema: z.ZodType<
5363
5302
  z.array(z.string()),
5364
5303
  ]),
5365
5304
  ).optional(),
5366
- captureMode: z.nullable(
5367
- ListAllSubscriptionsCaptureMode$outboundSchema.default("automatic"),
5368
- ),
5369
- captureDelay: z.nullable(ListAllSubscriptionsCaptureDelay$outboundSchema)
5305
+ captureMode: z.nullable(ListAllSubscriptionsCaptureMode$outboundSchema)
5370
5306
  .optional(),
5307
+ captureDelay: z.nullable(z.string()).optional(),
5371
5308
  captureBefore: z.nullable(z.string()).optional(),
5372
5309
  applicationFee: z.nullable(
5373
5310
  z.lazy(() => ListAllSubscriptionsApplicationFee$outboundSchema),
@@ -811,46 +811,6 @@ export type ListCustomerPaymentsCaptureMode = ClosedEnum<
811
811
  typeof ListCustomerPaymentsCaptureMode
812
812
  >;
813
813
 
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 const ListCustomerPaymentsCaptureDelay = {
831
- DotDotDotHours: "... hours",
832
- DotDotDotDays: "... days",
833
- } as const;
834
- /**
835
- * **Only relevant if you wish to manage authorization and capturing separately.**
836
- *
837
- * @remarks
838
- *
839
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
840
- * later point either be 'captured' or canceled.
841
- *
842
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
843
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
844
- * example `8 hours` or `2 days`.
845
- *
846
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
847
- *
848
- * The maximum delay is 7 days (168 hours).
849
- */
850
- export type ListCustomerPaymentsCaptureDelay = ClosedEnum<
851
- typeof ListCustomerPaymentsCaptureDelay
852
- >;
853
-
854
814
  /**
855
815
  * The fee that you wish to charge.
856
816
  *
@@ -1677,8 +1637,10 @@ export type ListCustomerPaymentsPaymentOutput = {
1677
1637
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1678
1638
  *
1679
1639
  * The maximum delay is 7 days (168 hours).
1640
+ *
1641
+ * Possible values: `... hours` `... days`
1680
1642
  */
1681
- captureDelay?: ListCustomerPaymentsCaptureDelay | null | undefined;
1643
+ captureDelay?: string | null | undefined;
1682
1644
  /**
1683
1645
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1684
1646
  *
@@ -3474,27 +3436,6 @@ export namespace ListCustomerPaymentsCaptureMode$ {
3474
3436
  export const outboundSchema = ListCustomerPaymentsCaptureMode$outboundSchema;
3475
3437
  }
3476
3438
 
3477
- /** @internal */
3478
- export const ListCustomerPaymentsCaptureDelay$inboundSchema: z.ZodNativeEnum<
3479
- typeof ListCustomerPaymentsCaptureDelay
3480
- > = z.nativeEnum(ListCustomerPaymentsCaptureDelay);
3481
-
3482
- /** @internal */
3483
- export const ListCustomerPaymentsCaptureDelay$outboundSchema: z.ZodNativeEnum<
3484
- typeof ListCustomerPaymentsCaptureDelay
3485
- > = ListCustomerPaymentsCaptureDelay$inboundSchema;
3486
-
3487
- /**
3488
- * @internal
3489
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3490
- */
3491
- export namespace ListCustomerPaymentsCaptureDelay$ {
3492
- /** @deprecated use `ListCustomerPaymentsCaptureDelay$inboundSchema` instead. */
3493
- export const inboundSchema = ListCustomerPaymentsCaptureDelay$inboundSchema;
3494
- /** @deprecated use `ListCustomerPaymentsCaptureDelay$outboundSchema` instead. */
3495
- export const outboundSchema = ListCustomerPaymentsCaptureDelay$outboundSchema;
3496
- }
3497
-
3498
3439
  /** @internal */
3499
3440
  export const ListCustomerPaymentsApplicationFeeAmount$inboundSchema: z.ZodType<
3500
3441
  ListCustomerPaymentsApplicationFeeAmount,
@@ -5221,11 +5162,9 @@ export const ListCustomerPaymentsPaymentOutput$inboundSchema: z.ZodType<
5221
5162
  z.array(z.string()),
5222
5163
  ]),
5223
5164
  ).optional(),
5224
- captureMode: z.nullable(
5225
- ListCustomerPaymentsCaptureMode$inboundSchema.default("automatic"),
5226
- ),
5227
- captureDelay: z.nullable(ListCustomerPaymentsCaptureDelay$inboundSchema)
5165
+ captureMode: z.nullable(ListCustomerPaymentsCaptureMode$inboundSchema)
5228
5166
  .optional(),
5167
+ captureDelay: z.nullable(z.string()).optional(),
5229
5168
  captureBefore: z.nullable(z.string()).optional(),
5230
5169
  applicationFee: z.nullable(
5231
5170
  z.lazy(() => ListCustomerPaymentsApplicationFee$inboundSchema),
@@ -5292,7 +5231,7 @@ export type ListCustomerPaymentsPaymentOutput$Outbound = {
5292
5231
  | Array<string>
5293
5232
  | null
5294
5233
  | undefined;
5295
- captureMode: string | null;
5234
+ captureMode?: string | null | undefined;
5296
5235
  captureDelay?: string | null | undefined;
5297
5236
  captureBefore?: string | null | undefined;
5298
5237
  applicationFee?:
@@ -5370,11 +5309,9 @@ export const ListCustomerPaymentsPaymentOutput$outboundSchema: z.ZodType<
5370
5309
  z.array(z.string()),
5371
5310
  ]),
5372
5311
  ).optional(),
5373
- captureMode: z.nullable(
5374
- ListCustomerPaymentsCaptureMode$outboundSchema.default("automatic"),
5375
- ),
5376
- captureDelay: z.nullable(ListCustomerPaymentsCaptureDelay$outboundSchema)
5312
+ captureMode: z.nullable(ListCustomerPaymentsCaptureMode$outboundSchema)
5377
5313
  .optional(),
5314
+ captureDelay: z.nullable(z.string()).optional(),
5378
5315
  captureBefore: z.nullable(z.string()).optional(),
5379
5316
  applicationFee: z.nullable(
5380
5317
  z.lazy(() => ListCustomerPaymentsApplicationFee$outboundSchema),
@@ -793,46 +793,6 @@ export type ListPaymentsCaptureMode = ClosedEnum<
793
793
  typeof ListPaymentsCaptureMode
794
794
  >;
795
795
 
796
- /**
797
- * **Only relevant if you wish to manage authorization and capturing separately.**
798
- *
799
- * @remarks
800
- *
801
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
802
- * later point either be 'captured' or canceled.
803
- *
804
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
805
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
806
- * example `8 hours` or `2 days`.
807
- *
808
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
809
- *
810
- * The maximum delay is 7 days (168 hours).
811
- */
812
- export const ListPaymentsCaptureDelay = {
813
- DotDotDotHours: "... hours",
814
- DotDotDotDays: "... days",
815
- } as const;
816
- /**
817
- * **Only relevant if you wish to manage authorization and capturing separately.**
818
- *
819
- * @remarks
820
- *
821
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
822
- * later point either be 'captured' or canceled.
823
- *
824
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
825
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
826
- * example `8 hours` or `2 days`.
827
- *
828
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
829
- *
830
- * The maximum delay is 7 days (168 hours).
831
- */
832
- export type ListPaymentsCaptureDelay = ClosedEnum<
833
- typeof ListPaymentsCaptureDelay
834
- >;
835
-
836
796
  /**
837
797
  * The fee that you wish to charge.
838
798
  *
@@ -1652,8 +1612,10 @@ export type ListPaymentsPaymentOutput = {
1652
1612
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1653
1613
  *
1654
1614
  * The maximum delay is 7 days (168 hours).
1615
+ *
1616
+ * Possible values: `... hours` `... days`
1655
1617
  */
1656
- captureDelay?: ListPaymentsCaptureDelay | null | undefined;
1618
+ captureDelay?: string | null | undefined;
1657
1619
  /**
1658
1620
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1659
1621
  *
@@ -3382,27 +3344,6 @@ export namespace ListPaymentsCaptureMode$ {
3382
3344
  export const outboundSchema = ListPaymentsCaptureMode$outboundSchema;
3383
3345
  }
3384
3346
 
3385
- /** @internal */
3386
- export const ListPaymentsCaptureDelay$inboundSchema: z.ZodNativeEnum<
3387
- typeof ListPaymentsCaptureDelay
3388
- > = z.nativeEnum(ListPaymentsCaptureDelay);
3389
-
3390
- /** @internal */
3391
- export const ListPaymentsCaptureDelay$outboundSchema: z.ZodNativeEnum<
3392
- typeof ListPaymentsCaptureDelay
3393
- > = ListPaymentsCaptureDelay$inboundSchema;
3394
-
3395
- /**
3396
- * @internal
3397
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3398
- */
3399
- export namespace ListPaymentsCaptureDelay$ {
3400
- /** @deprecated use `ListPaymentsCaptureDelay$inboundSchema` instead. */
3401
- export const inboundSchema = ListPaymentsCaptureDelay$inboundSchema;
3402
- /** @deprecated use `ListPaymentsCaptureDelay$outboundSchema` instead. */
3403
- export const outboundSchema = ListPaymentsCaptureDelay$outboundSchema;
3404
- }
3405
-
3406
3347
  /** @internal */
3407
3348
  export const ListPaymentsApplicationFeeAmount$inboundSchema: z.ZodType<
3408
3349
  ListPaymentsApplicationFeeAmount,
@@ -5036,10 +4977,8 @@ export const ListPaymentsPaymentOutput$inboundSchema: z.ZodType<
5036
4977
  z.array(z.string()),
5037
4978
  ]),
5038
4979
  ).optional(),
5039
- captureMode: z.nullable(
5040
- ListPaymentsCaptureMode$inboundSchema.default("automatic"),
5041
- ),
5042
- captureDelay: z.nullable(ListPaymentsCaptureDelay$inboundSchema).optional(),
4980
+ captureMode: z.nullable(ListPaymentsCaptureMode$inboundSchema).optional(),
4981
+ captureDelay: z.nullable(z.string()).optional(),
5043
4982
  captureBefore: z.nullable(z.string()).optional(),
5044
4983
  applicationFee: z.nullable(
5045
4984
  z.lazy(() => ListPaymentsApplicationFee$inboundSchema),
@@ -5102,7 +5041,7 @@ export type ListPaymentsPaymentOutput$Outbound = {
5102
5041
  | Array<string>
5103
5042
  | null
5104
5043
  | undefined;
5105
- captureMode: string | null;
5044
+ captureMode?: string | null | undefined;
5106
5045
  captureDelay?: string | null | undefined;
5107
5046
  captureBefore?: string | null | undefined;
5108
5047
  applicationFee?: ListPaymentsApplicationFee$Outbound | null | undefined;
@@ -5169,10 +5108,8 @@ export const ListPaymentsPaymentOutput$outboundSchema: z.ZodType<
5169
5108
  z.array(z.string()),
5170
5109
  ]),
5171
5110
  ).optional(),
5172
- captureMode: z.nullable(
5173
- ListPaymentsCaptureMode$outboundSchema.default("automatic"),
5174
- ),
5175
- captureDelay: z.nullable(ListPaymentsCaptureDelay$outboundSchema).optional(),
5111
+ captureMode: z.nullable(ListPaymentsCaptureMode$outboundSchema).optional(),
5112
+ captureDelay: z.nullable(z.string()).optional(),
5176
5113
  captureBefore: z.nullable(z.string()).optional(),
5177
5114
  applicationFee: z.nullable(
5178
5115
  z.lazy(() => ListPaymentsApplicationFee$outboundSchema),
@@ -811,46 +811,6 @@ export type ListSettlementPaymentsCaptureMode = ClosedEnum<
811
811
  typeof ListSettlementPaymentsCaptureMode
812
812
  >;
813
813
 
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 const ListSettlementPaymentsCaptureDelay = {
831
- DotDotDotHours: "... hours",
832
- DotDotDotDays: "... days",
833
- } as const;
834
- /**
835
- * **Only relevant if you wish to manage authorization and capturing separately.**
836
- *
837
- * @remarks
838
- *
839
- * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
840
- * later point either be 'captured' or canceled.
841
- *
842
- * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
843
- * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
844
- * example `8 hours` or `2 days`.
845
- *
846
- * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
847
- *
848
- * The maximum delay is 7 days (168 hours).
849
- */
850
- export type ListSettlementPaymentsCaptureDelay = ClosedEnum<
851
- typeof ListSettlementPaymentsCaptureDelay
852
- >;
853
-
854
814
  /**
855
815
  * The fee that you wish to charge.
856
816
  *
@@ -1677,8 +1637,10 @@ export type ListSettlementPaymentsPaymentOutput = {
1677
1637
  * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1678
1638
  *
1679
1639
  * The maximum delay is 7 days (168 hours).
1640
+ *
1641
+ * Possible values: `... hours` `... days`
1680
1642
  */
1681
- captureDelay?: ListSettlementPaymentsCaptureDelay | null | undefined;
1643
+ captureDelay?: string | null | undefined;
1682
1644
  /**
1683
1645
  * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1684
1646
  *
@@ -3492,28 +3454,6 @@ export namespace ListSettlementPaymentsCaptureMode$ {
3492
3454
  ListSettlementPaymentsCaptureMode$outboundSchema;
3493
3455
  }
3494
3456
 
3495
- /** @internal */
3496
- export const ListSettlementPaymentsCaptureDelay$inboundSchema: z.ZodNativeEnum<
3497
- typeof ListSettlementPaymentsCaptureDelay
3498
- > = z.nativeEnum(ListSettlementPaymentsCaptureDelay);
3499
-
3500
- /** @internal */
3501
- export const ListSettlementPaymentsCaptureDelay$outboundSchema: z.ZodNativeEnum<
3502
- typeof ListSettlementPaymentsCaptureDelay
3503
- > = ListSettlementPaymentsCaptureDelay$inboundSchema;
3504
-
3505
- /**
3506
- * @internal
3507
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3508
- */
3509
- export namespace ListSettlementPaymentsCaptureDelay$ {
3510
- /** @deprecated use `ListSettlementPaymentsCaptureDelay$inboundSchema` instead. */
3511
- export const inboundSchema = ListSettlementPaymentsCaptureDelay$inboundSchema;
3512
- /** @deprecated use `ListSettlementPaymentsCaptureDelay$outboundSchema` instead. */
3513
- export const outboundSchema =
3514
- ListSettlementPaymentsCaptureDelay$outboundSchema;
3515
- }
3516
-
3517
3457
  /** @internal */
3518
3458
  export const ListSettlementPaymentsApplicationFeeAmount$inboundSchema:
3519
3459
  z.ZodType<ListSettlementPaymentsApplicationFeeAmount, z.ZodTypeDef, unknown> =
@@ -5282,11 +5222,9 @@ export const ListSettlementPaymentsPaymentOutput$inboundSchema: z.ZodType<
5282
5222
  z.array(z.string()),
5283
5223
  ]),
5284
5224
  ).optional(),
5285
- captureMode: z.nullable(
5286
- ListSettlementPaymentsCaptureMode$inboundSchema.default("automatic"),
5287
- ),
5288
- captureDelay: z.nullable(ListSettlementPaymentsCaptureDelay$inboundSchema)
5225
+ captureMode: z.nullable(ListSettlementPaymentsCaptureMode$inboundSchema)
5289
5226
  .optional(),
5227
+ captureDelay: z.nullable(z.string()).optional(),
5290
5228
  captureBefore: z.nullable(z.string()).optional(),
5291
5229
  applicationFee: z.nullable(
5292
5230
  z.lazy(() => ListSettlementPaymentsApplicationFee$inboundSchema),
@@ -5355,7 +5293,7 @@ export type ListSettlementPaymentsPaymentOutput$Outbound = {
5355
5293
  | Array<string>
5356
5294
  | null
5357
5295
  | undefined;
5358
- captureMode: string | null;
5296
+ captureMode?: string | null | undefined;
5359
5297
  captureDelay?: string | null | undefined;
5360
5298
  captureBefore?: string | null | undefined;
5361
5299
  applicationFee?:
@@ -5433,11 +5371,9 @@ export const ListSettlementPaymentsPaymentOutput$outboundSchema: z.ZodType<
5433
5371
  z.array(z.string()),
5434
5372
  ]),
5435
5373
  ).optional(),
5436
- captureMode: z.nullable(
5437
- ListSettlementPaymentsCaptureMode$outboundSchema.default("automatic"),
5438
- ),
5439
- captureDelay: z.nullable(ListSettlementPaymentsCaptureDelay$outboundSchema)
5374
+ captureMode: z.nullable(ListSettlementPaymentsCaptureMode$outboundSchema)
5440
5375
  .optional(),
5376
+ captureDelay: z.nullable(z.string()).optional(),
5441
5377
  captureBefore: z.nullable(z.string()).optional(),
5442
5378
  applicationFee: z.nullable(
5443
5379
  z.lazy(() => ListSettlementPaymentsApplicationFee$outboundSchema),