mollie-api-typescript 1.12.5 → 1.12.7

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 (126) hide show
  1. package/dist/commonjs/funcs/payoutsCancel.d.ts +1 -1
  2. package/dist/commonjs/funcs/payoutsCancel.js +2 -2
  3. package/dist/commonjs/funcs/payoutsCancel.js.map +1 -1
  4. package/dist/commonjs/funcs/payoutsCreate.d.ts +1 -1
  5. package/dist/commonjs/funcs/payoutsCreate.js +2 -2
  6. package/dist/commonjs/funcs/payoutsCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/payoutsGet.d.ts +1 -1
  8. package/dist/commonjs/funcs/payoutsGet.js +2 -2
  9. package/dist/commonjs/funcs/payoutsGet.js.map +1 -1
  10. package/dist/commonjs/funcs/payoutsList.d.ts +1 -1
  11. package/dist/commonjs/funcs/payoutsList.js +2 -2
  12. package/dist/commonjs/funcs/payoutsList.js.map +1 -1
  13. package/dist/commonjs/lib/config.d.ts +3 -3
  14. package/dist/commonjs/lib/config.js +3 -3
  15. package/dist/commonjs/models/entitywebhookevent.d.ts +2 -0
  16. package/dist/commonjs/models/entitywebhookevent.d.ts.map +1 -1
  17. package/dist/commonjs/models/entitywebhookevent.js +2 -0
  18. package/dist/commonjs/models/entitywebhookevent.js.map +1 -1
  19. package/dist/commonjs/models/index.d.ts +1 -0
  20. package/dist/commonjs/models/index.d.ts.map +1 -1
  21. package/dist/commonjs/models/index.js +1 -0
  22. package/dist/commonjs/models/index.js.map +1 -1
  23. package/dist/commonjs/models/listpaymentresponse.d.ts +0 -11
  24. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
  25. package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
  26. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +0 -11
  27. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
  28. package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
  29. package/dist/commonjs/models/methodenum.d.ts +0 -22
  30. package/dist/commonjs/models/methodenum.d.ts.map +1 -1
  31. package/dist/commonjs/models/methodenum.js +0 -11
  32. package/dist/commonjs/models/methodenum.js.map +1 -1
  33. package/dist/commonjs/models/methodrequest.d.ts +20 -0
  34. package/dist/commonjs/models/methodrequest.d.ts.map +1 -0
  35. package/dist/commonjs/models/methodrequest.js +52 -0
  36. package/dist/commonjs/models/methodrequest.js.map +1 -0
  37. package/dist/commonjs/models/methodresponse.d.ts +0 -22
  38. package/dist/commonjs/models/methodresponse.d.ts.map +1 -1
  39. package/dist/commonjs/models/methodresponse.js +0 -11
  40. package/dist/commonjs/models/methodresponse.js.map +1 -1
  41. package/dist/commonjs/models/operations/updatepayment.d.ts +2 -2
  42. package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/updatepayment.js +1 -1
  44. package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
  45. package/dist/commonjs/models/paymentrequest.d.ts +22 -0
  46. package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
  47. package/dist/commonjs/models/paymentrequest.js.map +1 -1
  48. package/dist/commonjs/models/paymentresponse.d.ts +0 -11
  49. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  50. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  51. package/dist/commonjs/models/webhookeventtypes.d.ts +2 -0
  52. package/dist/commonjs/models/webhookeventtypes.d.ts.map +1 -1
  53. package/dist/commonjs/models/webhookeventtypes.js +2 -0
  54. package/dist/commonjs/models/webhookeventtypes.js.map +1 -1
  55. package/dist/esm/funcs/payoutsCancel.d.ts +1 -1
  56. package/dist/esm/funcs/payoutsCancel.js +2 -2
  57. package/dist/esm/funcs/payoutsCancel.js.map +1 -1
  58. package/dist/esm/funcs/payoutsCreate.d.ts +1 -1
  59. package/dist/esm/funcs/payoutsCreate.js +2 -2
  60. package/dist/esm/funcs/payoutsCreate.js.map +1 -1
  61. package/dist/esm/funcs/payoutsGet.d.ts +1 -1
  62. package/dist/esm/funcs/payoutsGet.js +2 -2
  63. package/dist/esm/funcs/payoutsGet.js.map +1 -1
  64. package/dist/esm/funcs/payoutsList.d.ts +1 -1
  65. package/dist/esm/funcs/payoutsList.js +2 -2
  66. package/dist/esm/funcs/payoutsList.js.map +1 -1
  67. package/dist/esm/lib/config.d.ts +3 -3
  68. package/dist/esm/lib/config.js +3 -3
  69. package/dist/esm/models/entitywebhookevent.d.ts +2 -0
  70. package/dist/esm/models/entitywebhookevent.d.ts.map +1 -1
  71. package/dist/esm/models/entitywebhookevent.js +2 -0
  72. package/dist/esm/models/entitywebhookevent.js.map +1 -1
  73. package/dist/esm/models/index.d.ts +1 -0
  74. package/dist/esm/models/index.d.ts.map +1 -1
  75. package/dist/esm/models/index.js +1 -0
  76. package/dist/esm/models/index.js.map +1 -1
  77. package/dist/esm/models/listpaymentresponse.d.ts +0 -11
  78. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
  79. package/dist/esm/models/listpaymentresponse.js.map +1 -1
  80. package/dist/esm/models/listsettlementpaymentresponse.d.ts +0 -11
  81. package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
  82. package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
  83. package/dist/esm/models/methodenum.d.ts +0 -22
  84. package/dist/esm/models/methodenum.d.ts.map +1 -1
  85. package/dist/esm/models/methodenum.js +0 -11
  86. package/dist/esm/models/methodenum.js.map +1 -1
  87. package/dist/esm/models/methodrequest.d.ts +20 -0
  88. package/dist/esm/models/methodrequest.d.ts.map +1 -0
  89. package/dist/esm/models/methodrequest.js +15 -0
  90. package/dist/esm/models/methodrequest.js.map +1 -0
  91. package/dist/esm/models/methodresponse.d.ts +0 -22
  92. package/dist/esm/models/methodresponse.d.ts.map +1 -1
  93. package/dist/esm/models/methodresponse.js +0 -11
  94. package/dist/esm/models/methodresponse.js.map +1 -1
  95. package/dist/esm/models/operations/updatepayment.d.ts +2 -2
  96. package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
  97. package/dist/esm/models/operations/updatepayment.js +1 -1
  98. package/dist/esm/models/operations/updatepayment.js.map +1 -1
  99. package/dist/esm/models/paymentrequest.d.ts +22 -0
  100. package/dist/esm/models/paymentrequest.d.ts.map +1 -1
  101. package/dist/esm/models/paymentrequest.js.map +1 -1
  102. package/dist/esm/models/paymentresponse.d.ts +0 -11
  103. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  104. package/dist/esm/models/paymentresponse.js.map +1 -1
  105. package/dist/esm/models/webhookeventtypes.d.ts +2 -0
  106. package/dist/esm/models/webhookeventtypes.d.ts.map +1 -1
  107. package/dist/esm/models/webhookeventtypes.js +2 -0
  108. package/dist/esm/models/webhookeventtypes.js.map +1 -1
  109. package/jsr.json +1 -1
  110. package/package.json +1 -1
  111. package/src/funcs/payoutsCancel.ts +2 -2
  112. package/src/funcs/payoutsCreate.ts +2 -2
  113. package/src/funcs/payoutsGet.ts +2 -2
  114. package/src/funcs/payoutsList.ts +2 -2
  115. package/src/lib/config.ts +3 -3
  116. package/src/models/entitywebhookevent.ts +2 -0
  117. package/src/models/index.ts +1 -0
  118. package/src/models/listpaymentresponse.ts +0 -11
  119. package/src/models/listsettlementpaymentresponse.ts +0 -11
  120. package/src/models/methodenum.ts +0 -22
  121. package/src/models/methodrequest.ts +37 -0
  122. package/src/models/methodresponse.ts +0 -22
  123. package/src/models/operations/updatepayment.ts +3 -3
  124. package/src/models/paymentrequest.ts +22 -0
  125. package/src/models/paymentresponse.ts +0 -11
  126. package/src/models/webhookeventtypes.ts +2 -0
@@ -6,17 +6,6 @@
6
6
  import * as z from "zod/v3";
7
7
  import { ClosedEnum } from "../types/enums.js";
8
8
 
9
- /**
10
- * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
11
- *
12
- * @remarks
13
- * method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
14
- * parameter enables you to fully integrate the payment method selection into your website.
15
- *
16
- * You can also specify the methods in an array. By doing so we will still show the payment method selection screen
17
- * but will only show the methods specified in the array. For example, you can use this functionality to only show
18
- * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
19
- */
20
9
  export const MethodEnum = {
21
10
  Alma: "alma",
22
11
  Applepay: "applepay",
@@ -53,17 +42,6 @@ export const MethodEnum = {
53
42
  Vipps: "vipps",
54
43
  Voucher: "voucher",
55
44
  } as const;
56
- /**
57
- * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
58
- *
59
- * @remarks
60
- * method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
61
- * parameter enables you to fully integrate the payment method selection into your website.
62
- *
63
- * You can also specify the methods in an array. By doing so we will still show the payment method selection screen
64
- * but will only show the methods specified in the array. For example, you can use this functionality to only show
65
- * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
66
- */
67
45
  export type MethodEnum = ClosedEnum<typeof MethodEnum>;
68
46
 
69
47
  /** @internal */
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 79fb1e070838
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { MethodEnum, MethodEnum$outboundSchema } from "./methodenum.js";
8
+
9
+ /**
10
+ * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
11
+ *
12
+ * @remarks
13
+ * method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
14
+ * parameter enables you to fully integrate the payment method selection into your website.
15
+ *
16
+ * You can also specify the methods in an array. By doing so we will still show the payment method selection screen
17
+ * but will only show the methods specified in the array. For example, you can use this functionality to only show
18
+ * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
19
+ */
20
+ export type MethodRequest = MethodEnum | Array<MethodEnum | null>;
21
+
22
+ /** @internal */
23
+ export type MethodRequest$Outbound = string | Array<string | null>;
24
+
25
+ /** @internal */
26
+ export const MethodRequest$outboundSchema: z.ZodType<
27
+ MethodRequest$Outbound,
28
+ z.ZodTypeDef,
29
+ MethodRequest
30
+ > = z.union([
31
+ MethodEnum$outboundSchema,
32
+ z.array(z.nullable(MethodEnum$outboundSchema)),
33
+ ]);
34
+
35
+ export function methodRequestToJSON(methodRequest: MethodRequest): string {
36
+ return JSON.stringify(MethodRequest$outboundSchema.parse(methodRequest));
37
+ }
@@ -7,17 +7,6 @@ import * as z from "zod/v3";
7
7
  import * as openEnums from "../types/enums.js";
8
8
  import { OpenEnum } from "../types/enums.js";
9
9
 
10
- /**
11
- * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
12
- *
13
- * @remarks
14
- * method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
15
- * parameter enables you to fully integrate the payment method selection into your website.
16
- *
17
- * You can also specify the methods in an array. By doing so we will still show the payment method selection screen
18
- * but will only show the methods specified in the array. For example, you can use this functionality to only show
19
- * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
20
- */
21
10
  export const MethodResponse = {
22
11
  Alma: "alma",
23
12
  Applepay: "applepay",
@@ -70,17 +59,6 @@ export const MethodResponse = {
70
59
  */
71
60
  Payconiq: "payconiq",
72
61
  } as const;
73
- /**
74
- * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
75
- *
76
- * @remarks
77
- * method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
78
- * parameter enables you to fully integrate the payment method selection into your website.
79
- *
80
- * You can also specify the methods in an array. By doing so we will still show the payment method selection screen
81
- * but will only show the methods specified in the array. For example, you can use this functionality to only show
82
- * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
83
- */
84
62
  export type MethodResponse = OpenEnum<typeof MethodResponse>;
85
63
 
86
64
  /** @internal */
@@ -75,7 +75,7 @@ export type UpdatePaymentRequestBody = {
75
75
  * but will only show the methods specified in the array. For example, you can use this functionality to only show
76
76
  * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
77
77
  */
78
- method?: models.MethodEnum | null | undefined;
78
+ method?: models.MethodRequest | null | undefined;
79
79
  /**
80
80
  * Sets the language for customer-facing content and communications.
81
81
  */
@@ -162,7 +162,7 @@ export type UpdatePaymentRequestBody$Outbound = {
162
162
  cancelUrl?: string | null | undefined;
163
163
  webhookUrl?: string | null | undefined;
164
164
  metadata?: models.Metadata$Outbound | null | undefined;
165
- method?: string | null | undefined;
165
+ method?: models.MethodRequest$Outbound | null | undefined;
166
166
  locale?: string | null | undefined;
167
167
  dueDate?: string | undefined;
168
168
  restrictPaymentMethodsToCountry?: string | null | undefined;
@@ -184,7 +184,7 @@ export const UpdatePaymentRequestBody$outboundSchema: z.ZodType<
184
184
  cancelUrl: z.nullable(z.string()).optional(),
185
185
  webhookUrl: z.nullable(z.string()).optional(),
186
186
  metadata: z.nullable(models.Metadata$outboundSchema).optional(),
187
- method: z.nullable(models.MethodEnum$outboundSchema).optional(),
187
+ method: z.nullable(models.MethodRequest$outboundSchema).optional(),
188
188
  locale: z.nullable(models.Locale$outboundSchema).optional(),
189
189
  dueDate: z.string().optional(),
190
190
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
@@ -206,6 +206,17 @@ export type PaymentRequestBillingAddress = {
206
206
  country?: string | undefined;
207
207
  };
208
208
 
209
+ /**
210
+ * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific
211
+ *
212
+ * @remarks
213
+ * payment method and your customer will skip the selection screen and is sent directly to the chosen payment
214
+ * method. The parameter enables you to fully integrate the payment method selection into your website.
215
+ *
216
+ * You can also specify the methods in an array. By doing so we will still show the payment method selection
217
+ * screen but will only show the methods specified in the array. For example, you can use this functionality
218
+ * to only show payment methods from a specific country to your customer `['bancontact', 'belfius']`.
219
+ */
209
220
  export type Method = MethodEnum | Array<MethodEnum | null>;
210
221
 
211
222
  /**
@@ -344,6 +355,17 @@ export type PaymentRequest = {
344
355
  * Sets the language for customer-facing content and communications.
345
356
  */
346
357
  locale?: Locale | null | undefined;
358
+ /**
359
+ * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific
360
+ *
361
+ * @remarks
362
+ * payment method and your customer will skip the selection screen and is sent directly to the chosen payment
363
+ * method. The parameter enables you to fully integrate the payment method selection into your website.
364
+ *
365
+ * You can also specify the methods in an array. By doing so we will still show the payment method selection
366
+ * screen but will only show the methods specified in the array. For example, you can use this functionality
367
+ * to only show payment methods from a specific country to your customer `['bancontact', 'belfius']`.
368
+ */
347
369
  method?: MethodEnum | Array<MethodEnum | null> | null | undefined;
348
370
  /**
349
371
  * **Only relevant for iDEAL, KBC/CBC, gift card, and voucher payments.**
@@ -519,17 +519,6 @@ export type PaymentResponse = {
519
519
  * field is omitted if the country code was not detected.
520
520
  */
521
521
  countryCode?: string | null | undefined;
522
- /**
523
- * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
524
- *
525
- * @remarks
526
- * method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
527
- * parameter enables you to fully integrate the payment method selection into your website.
528
- *
529
- * You can also specify the methods in an array. By doing so we will still show the payment method selection screen
530
- * but will only show the methods specified in the array. For example, you can use this functionality to only show
531
- * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
532
- */
533
522
  method?: MethodResponse | null | undefined;
534
523
  /**
535
524
  * For digital goods in most jurisdictions, you must apply the VAT rate from your customer's country. Choose the VAT
@@ -24,6 +24,8 @@ export const WebhookEventTypes = {
24
24
  SalesInvoiceIssued: "sales-invoice.issued",
25
25
  SalesInvoiceCanceled: "sales-invoice.canceled",
26
26
  SalesInvoicePaid: "sales-invoice.paid",
27
+ SalesInvoiceEInvoiceFailed: "sales-invoice.e-invoice-failed",
28
+ SalesInvoiceEInvoiceIssued: "sales-invoice.e-invoice-issued",
27
29
  BusinessAccountTransferRequested: "business-account-transfer.requested",
28
30
  BusinessAccountTransferInitiated: "business-account-transfer.initiated",
29
31
  BusinessAccountTransferPendingReview: