mollie-api-typescript 1.5.3 → 1.5.4

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 (68) hide show
  1. package/dist/commonjs/funcs/transfersCreate.d.ts +9 -8
  2. package/dist/commonjs/funcs/transfersCreate.d.ts.map +1 -1
  3. package/dist/commonjs/funcs/transfersCreate.js +8 -7
  4. package/dist/commonjs/funcs/transfersCreate.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +3 -11
  8. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -1
  9. package/dist/commonjs/models/listsalesinvoiceresponse.js +2 -8
  10. package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -1
  11. package/dist/commonjs/models/salesinvoicerequest.d.ts +6 -14
  12. package/dist/commonjs/models/salesinvoicerequest.d.ts.map +1 -1
  13. package/dist/commonjs/models/salesinvoicerequest.js +2 -9
  14. package/dist/commonjs/models/salesinvoicerequest.js.map +1 -1
  15. package/dist/commonjs/models/salesinvoiceresponse.d.ts +3 -11
  16. package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
  17. package/dist/commonjs/models/salesinvoiceresponse.js +2 -9
  18. package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
  19. package/dist/commonjs/models/transferstatus.d.ts +1 -1
  20. package/dist/commonjs/models/transferstatus.js +1 -1
  21. package/dist/commonjs/models/transferstatus.js.map +1 -1
  22. package/dist/commonjs/models/verificationofpayeeresponse.d.ts +5 -0
  23. package/dist/commonjs/models/verificationofpayeeresponse.d.ts.map +1 -1
  24. package/dist/commonjs/models/verificationofpayeeresponse.js +2 -0
  25. package/dist/commonjs/models/verificationofpayeeresponse.js.map +1 -1
  26. package/dist/commonjs/sdk/transfers.d.ts +9 -8
  27. package/dist/commonjs/sdk/transfers.d.ts.map +1 -1
  28. package/dist/commonjs/sdk/transfers.js +9 -8
  29. package/dist/commonjs/sdk/transfers.js.map +1 -1
  30. package/dist/esm/funcs/transfersCreate.d.ts +9 -8
  31. package/dist/esm/funcs/transfersCreate.d.ts.map +1 -1
  32. package/dist/esm/funcs/transfersCreate.js +8 -7
  33. package/dist/esm/funcs/transfersCreate.js.map +1 -1
  34. package/dist/esm/lib/config.d.ts +3 -3
  35. package/dist/esm/lib/config.js +3 -3
  36. package/dist/esm/models/listsalesinvoiceresponse.d.ts +3 -11
  37. package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -1
  38. package/dist/esm/models/listsalesinvoiceresponse.js +1 -6
  39. package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -1
  40. package/dist/esm/models/salesinvoicerequest.d.ts +6 -14
  41. package/dist/esm/models/salesinvoicerequest.d.ts.map +1 -1
  42. package/dist/esm/models/salesinvoicerequest.js +1 -7
  43. package/dist/esm/models/salesinvoicerequest.js.map +1 -1
  44. package/dist/esm/models/salesinvoiceresponse.d.ts +3 -11
  45. package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
  46. package/dist/esm/models/salesinvoiceresponse.js +1 -7
  47. package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
  48. package/dist/esm/models/transferstatus.d.ts +1 -1
  49. package/dist/esm/models/transferstatus.js +1 -1
  50. package/dist/esm/models/transferstatus.js.map +1 -1
  51. package/dist/esm/models/verificationofpayeeresponse.d.ts +5 -0
  52. package/dist/esm/models/verificationofpayeeresponse.d.ts.map +1 -1
  53. package/dist/esm/models/verificationofpayeeresponse.js +2 -0
  54. package/dist/esm/models/verificationofpayeeresponse.js.map +1 -1
  55. package/dist/esm/sdk/transfers.d.ts +9 -8
  56. package/dist/esm/sdk/transfers.d.ts.map +1 -1
  57. package/dist/esm/sdk/transfers.js +9 -8
  58. package/dist/esm/sdk/transfers.js.map +1 -1
  59. package/jsr.json +1 -1
  60. package/package.json +1 -1
  61. package/src/funcs/transfersCreate.ts +8 -7
  62. package/src/lib/config.ts +3 -3
  63. package/src/models/listsalesinvoiceresponse.ts +2 -29
  64. package/src/models/salesinvoicerequest.ts +3 -32
  65. package/src/models/salesinvoiceresponse.ts +2 -28
  66. package/src/models/transferstatus.ts +1 -1
  67. package/src/models/verificationofpayeeresponse.ts +6 -0
  68. package/src/sdk/transfers.ts +8 -7
@@ -27,14 +27,15 @@ export class Transfers extends ClientSDK {
27
27
  *
28
28
  * In test mode, you can simulate various transfer scenarios by adjusting the transfer amount. This allows you to
29
29
  * mimic the typical status progression of a real-world transfer. Note that a transfer's progression will stop once
30
- * it reaches a final status: `blocked`, `failed`, or `processed`.
31
- *
32
- * | Amount | Scenario | Webhook sequence |
33
- * |---------|----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
34
- * | `11.00` | Transfer initiated, pending review by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` |
35
- * | `12.00` | Transfer initiated, blocked by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` → `business-account-transfer.blocked` |
36
- * | `13.00` | Transfer initiated, failed on scheme submission | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.failed` |
37
- * | Other | Default: transfer is processed | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` |
30
+ * it reaches a final status: `blocked`, `failed`, `processed`, or `returned`.
31
+ *
32
+ * | Amount | Scenario | Webhook sequence |
33
+ * |---------|-----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
34
+ * | `11.00` | Transfer initiated, pending review by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` |
35
+ * | `12.00` | Transfer initiated, blocked by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` → `business-account-transfer.blocked` |
36
+ * | `13.00` | Transfer initiated, failed on scheme submission | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.failed` |
37
+ * | `14.00` | Transfer processed, then returned by receiving bank | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` → `business-account-transfer.returned` |
38
+ * | Other | Default: transfer is processed | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` |
38
39
  */
39
40
  async create(request, options) {
40
41
  return unwrapAsync(transfersCreate(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../../../src/sdk/transfers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CACP,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../../../src/sdk/transfers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CACP,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "mollie-api-typescript",
5
- "version": "1.5.3",
5
+ "version": "1.5.4",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mollie-api-typescript",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -48,14 +48,15 @@ import { Result } from "../types/fp.js";
48
48
  *
49
49
  * In test mode, you can simulate various transfer scenarios by adjusting the transfer amount. This allows you to
50
50
  * mimic the typical status progression of a real-world transfer. Note that a transfer's progression will stop once
51
- * it reaches a final status: `blocked`, `failed`, or `processed`.
51
+ * it reaches a final status: `blocked`, `failed`, `processed`, or `returned`.
52
52
  *
53
- * | Amount | Scenario | Webhook sequence |
54
- * |---------|----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
55
- * | `11.00` | Transfer initiated, pending review by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` |
56
- * | `12.00` | Transfer initiated, blocked by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` → `business-account-transfer.blocked` |
57
- * | `13.00` | Transfer initiated, failed on scheme submission | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.failed` |
58
- * | Other | Default: transfer is processed | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` |
53
+ * | Amount | Scenario | Webhook sequence |
54
+ * |---------|-----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
55
+ * | `11.00` | Transfer initiated, pending review by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` |
56
+ * | `12.00` | Transfer initiated, blocked by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` → `business-account-transfer.blocked` |
57
+ * | `13.00` | Transfer initiated, failed on scheme submission | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.failed` |
58
+ * | `14.00` | Transfer processed, then returned by receiving bank | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` → `business-account-transfer.returned` |
59
+ * | Other | Default: transfer is processed | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` |
59
60
  *
60
61
  * If set, this operation will use {@link Security.organizationAccessToken} from the global security.
61
62
  */
package/src/lib/config.ts CHANGED
@@ -78,8 +78,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
78
78
  export const SDK_METADATA = {
79
79
  language: "typescript",
80
80
  openapiDocVersion: "1.0.0",
81
- sdkVersion: "1.5.3",
82
- genVersion: "2.881.2",
81
+ sdkVersion: "1.5.4",
82
+ genVersion: "2.881.4",
83
83
  userAgent:
84
- "speakeasy-sdk/typescript 1.5.3 2.881.2 1.0.0 mollie-api-typescript",
84
+ "speakeasy-sdk/typescript 1.5.4 2.881.4 1.0.0 mollie-api-typescript",
85
85
  } as const;
@@ -47,14 +47,6 @@ import {
47
47
  } from "./salesinvoicevatschemeresponse.js";
48
48
  import { Url, Url$inboundSchema } from "./url.js";
49
49
 
50
- /**
51
- * Provide any data you like as a JSON object. We will save the data alongside the entity. Whenever
52
- *
53
- * @remarks
54
- * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
55
- */
56
- export type ListSalesInvoiceResponseMetadata = {};
57
-
58
50
  /**
59
51
  * The amount that is left to be paid.
60
52
  */
@@ -220,7 +212,7 @@ export type ListSalesInvoiceResponse = {
220
212
  * @remarks
221
213
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
222
214
  */
223
- metadata?: ListSalesInvoiceResponseMetadata | null | undefined;
215
+ metadata?: { [k: string]: any } | null | undefined;
224
216
  /**
225
217
  * The payment term to be set on the invoice.
226
218
  */
@@ -324,23 +316,6 @@ export type ListSalesInvoiceResponse = {
324
316
  links?: ListSalesInvoiceResponseLinks | undefined;
325
317
  };
326
318
 
327
- /** @internal */
328
- export const ListSalesInvoiceResponseMetadata$inboundSchema: z.ZodType<
329
- ListSalesInvoiceResponseMetadata,
330
- z.ZodTypeDef,
331
- unknown
332
- > = z.object({});
333
-
334
- export function listSalesInvoiceResponseMetadataFromJSON(
335
- jsonString: string,
336
- ): SafeParseResult<ListSalesInvoiceResponseMetadata, SDKValidationError> {
337
- return safeParse(
338
- jsonString,
339
- (x) => ListSalesInvoiceResponseMetadata$inboundSchema.parse(JSON.parse(x)),
340
- `Failed to parse 'ListSalesInvoiceResponseMetadata' from JSON`,
341
- );
342
- }
343
-
344
319
  /** @internal */
345
320
  export const ListSalesInvoiceResponseAmountDue$inboundSchema: z.ZodType<
346
321
  ListSalesInvoiceResponseAmountDue,
@@ -489,9 +464,7 @@ export const ListSalesInvoiceResponse$inboundSchema: z.ZodType<
489
464
  vatScheme: SalesInvoiceVatSchemeResponse$inboundSchema.optional(),
490
465
  vatMode: SalesInvoiceVatModeResponse$inboundSchema.optional(),
491
466
  memo: z.nullable(z.string()).optional(),
492
- metadata: z.nullable(
493
- z.lazy(() => ListSalesInvoiceResponseMetadata$inboundSchema),
494
- ).optional(),
467
+ metadata: z.nullable(z.record(z.any())).optional(),
495
468
  paymentTerm: z.nullable(SalesInvoicePaymentTermResponse$inboundSchema)
496
469
  .optional(),
497
470
  paymentDetails: SalesInvoicePaymentDetailsResponse$inboundSchema.optional(),
@@ -46,14 +46,6 @@ import {
46
46
  SalesInvoiceVatScheme$outboundSchema,
47
47
  } from "./salesinvoicevatscheme.js";
48
48
 
49
- /**
50
- * Provide any data you like as a JSON object. We will save the data alongside the entity. Whenever
51
- *
52
- * @remarks
53
- * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
54
- */
55
- export type SalesInvoiceRequestMetadata = {};
56
-
57
49
  export type SalesInvoiceRequest = {
58
50
  /**
59
51
  * Whether to create the entity in test mode or live mode.
@@ -114,7 +106,7 @@ export type SalesInvoiceRequest = {
114
106
  * @remarks
115
107
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
116
108
  */
117
- metadata?: SalesInvoiceRequestMetadata | null | undefined;
109
+ metadata?: { [k: string]: any } | null | undefined;
118
110
  /**
119
111
  * The payment term to be set on the invoice.
120
112
  */
@@ -167,26 +159,6 @@ export type SalesInvoiceRequest = {
167
159
  isEInvoice?: boolean | undefined;
168
160
  };
169
161
 
170
- /** @internal */
171
- export type SalesInvoiceRequestMetadata$Outbound = {};
172
-
173
- /** @internal */
174
- export const SalesInvoiceRequestMetadata$outboundSchema: z.ZodType<
175
- SalesInvoiceRequestMetadata$Outbound,
176
- z.ZodTypeDef,
177
- SalesInvoiceRequestMetadata
178
- > = z.object({});
179
-
180
- export function salesInvoiceRequestMetadataToJSON(
181
- salesInvoiceRequestMetadata: SalesInvoiceRequestMetadata,
182
- ): string {
183
- return JSON.stringify(
184
- SalesInvoiceRequestMetadata$outboundSchema.parse(
185
- salesInvoiceRequestMetadata,
186
- ),
187
- );
188
- }
189
-
190
162
  /** @internal */
191
163
  export type SalesInvoiceRequest$Outbound = {
192
164
  testmode?: boolean | null | undefined;
@@ -195,7 +167,7 @@ export type SalesInvoiceRequest$Outbound = {
195
167
  vatScheme?: string | undefined;
196
168
  vatMode?: string | undefined;
197
169
  memo?: string | null | undefined;
198
- metadata?: SalesInvoiceRequestMetadata$Outbound | null | undefined;
170
+ metadata?: { [k: string]: any } | null | undefined;
199
171
  paymentTerm?: string | null | undefined;
200
172
  paymentDetails?: SalesInvoicePaymentDetails$Outbound | undefined;
201
173
  emailDetails?: SalesInvoiceEmailDetails$Outbound | null | undefined;
@@ -220,8 +192,7 @@ export const SalesInvoiceRequest$outboundSchema: z.ZodType<
220
192
  vatScheme: SalesInvoiceVatScheme$outboundSchema.optional(),
221
193
  vatMode: SalesInvoiceVatMode$outboundSchema.optional(),
222
194
  memo: z.nullable(z.string()).optional(),
223
- metadata: z.nullable(z.lazy(() => SalesInvoiceRequestMetadata$outboundSchema))
224
- .optional(),
195
+ metadata: z.nullable(z.record(z.any())).optional(),
225
196
  paymentTerm: z.nullable(SalesInvoicePaymentTerm$outboundSchema).optional(),
226
197
  paymentDetails: SalesInvoicePaymentDetails$outboundSchema.optional(),
227
198
  emailDetails: z.nullable(SalesInvoiceEmailDetails$outboundSchema).optional(),
@@ -47,14 +47,6 @@ import {
47
47
  } from "./salesinvoicevatschemeresponse.js";
48
48
  import { Url, Url$inboundSchema } from "./url.js";
49
49
 
50
- /**
51
- * Provide any data you like as a JSON object. We will save the data alongside the entity. Whenever
52
- *
53
- * @remarks
54
- * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
55
- */
56
- export type SalesInvoiceResponseMetadata = {};
57
-
58
50
  /**
59
51
  * The amount that is left to be paid.
60
52
  */
@@ -224,7 +216,7 @@ export type SalesInvoiceResponse = {
224
216
  * @remarks
225
217
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
226
218
  */
227
- metadata?: SalesInvoiceResponseMetadata | null | undefined;
219
+ metadata?: { [k: string]: any } | null | undefined;
228
220
  /**
229
221
  * The payment term to be set on the invoice.
230
222
  */
@@ -328,23 +320,6 @@ export type SalesInvoiceResponse = {
328
320
  links?: SalesInvoiceResponseLinks | undefined;
329
321
  };
330
322
 
331
- /** @internal */
332
- export const SalesInvoiceResponseMetadata$inboundSchema: z.ZodType<
333
- SalesInvoiceResponseMetadata,
334
- z.ZodTypeDef,
335
- unknown
336
- > = z.object({});
337
-
338
- export function salesInvoiceResponseMetadataFromJSON(
339
- jsonString: string,
340
- ): SafeParseResult<SalesInvoiceResponseMetadata, SDKValidationError> {
341
- return safeParse(
342
- jsonString,
343
- (x) => SalesInvoiceResponseMetadata$inboundSchema.parse(JSON.parse(x)),
344
- `Failed to parse 'SalesInvoiceResponseMetadata' from JSON`,
345
- );
346
- }
347
-
348
323
  /** @internal */
349
324
  export const SalesInvoiceResponseAmountDue$inboundSchema: z.ZodType<
350
325
  SalesInvoiceResponseAmountDue,
@@ -493,8 +468,7 @@ export const SalesInvoiceResponse$inboundSchema: z.ZodType<
493
468
  vatScheme: SalesInvoiceVatSchemeResponse$inboundSchema.optional(),
494
469
  vatMode: SalesInvoiceVatModeResponse$inboundSchema.optional(),
495
470
  memo: z.nullable(z.string()).optional(),
496
- metadata: z.nullable(z.lazy(() => SalesInvoiceResponseMetadata$inboundSchema))
497
- .optional(),
471
+ metadata: z.nullable(z.record(z.any())).optional(),
498
472
  paymentTerm: z.nullable(SalesInvoicePaymentTermResponse$inboundSchema)
499
473
  .optional(),
500
474
  paymentDetails: SalesInvoicePaymentDetailsResponse$inboundSchema.optional(),
@@ -17,7 +17,7 @@ export const TransferStatus = {
17
17
  Processed: "processed",
18
18
  Failed: "failed",
19
19
  Blocked: "blocked",
20
- IncomingSettled: "incoming-settled",
20
+ Returned: "returned",
21
21
  } as const;
22
22
  /**
23
23
  * The status of the transfer.
@@ -11,6 +11,7 @@ import {
11
11
  CreditorBankAccountResponse$inboundSchema,
12
12
  } from "./creditorbankaccountresponse.js";
13
13
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
14
+ import { Mode, Mode$inboundSchema } from "./mode.js";
14
15
  import {
15
16
  VerificationResultEnum,
16
17
  VerificationResultEnum$inboundSchema,
@@ -41,6 +42,10 @@ export type VerificationOfPayeeResponse = {
41
42
  * `business-account-payee-verification` for this endpoint.
42
43
  */
43
44
  resource: string;
45
+ /**
46
+ * Whether this entity was created in live mode or in test mode.
47
+ */
48
+ mode: Mode;
44
49
  /**
45
50
  * The bank account details of the creditor (recipient) for Verification of Payee.
46
51
  */
@@ -86,6 +91,7 @@ export const VerificationOfPayeeResponse$inboundSchema: z.ZodType<
86
91
  unknown
87
92
  > = z.object({
88
93
  resource: z.string(),
94
+ mode: Mode$inboundSchema,
89
95
  creditorBankAccount: CreditorBankAccountResponse$inboundSchema,
90
96
  verificationResult: z.lazy(() =>
91
97
  VerificationOfPayeeResponseVerificationResult$inboundSchema
@@ -31,14 +31,15 @@ export class Transfers extends ClientSDK {
31
31
  *
32
32
  * In test mode, you can simulate various transfer scenarios by adjusting the transfer amount. This allows you to
33
33
  * mimic the typical status progression of a real-world transfer. Note that a transfer's progression will stop once
34
- * it reaches a final status: `blocked`, `failed`, or `processed`.
34
+ * it reaches a final status: `blocked`, `failed`, `processed`, or `returned`.
35
35
  *
36
- * | Amount | Scenario | Webhook sequence |
37
- * |---------|----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
38
- * | `11.00` | Transfer initiated, pending review by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` |
39
- * | `12.00` | Transfer initiated, blocked by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` → `business-account-transfer.blocked` |
40
- * | `13.00` | Transfer initiated, failed on scheme submission | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.failed` |
41
- * | Other | Default: transfer is processed | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` |
36
+ * | Amount | Scenario | Webhook sequence |
37
+ * |---------|-----------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
38
+ * | `11.00` | Transfer initiated, pending review by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` |
39
+ * | `12.00` | Transfer initiated, blocked by Mollie | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.pending-review` → `business-account-transfer.blocked` |
40
+ * | `13.00` | Transfer initiated, failed on scheme submission | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.failed` |
41
+ * | `14.00` | Transfer processed, then returned by receiving bank | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` → `business-account-transfer.returned` |
42
+ * | Other | Default: transfer is processed | `business-account-transfer.requested` → `business-account-transfer.initiated` → `business-account-transfer.processed` |
42
43
  */
43
44
  async create(
44
45
  request: operations.CreateTransferRequest,