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.
- package/dist/commonjs/funcs/transfersCreate.d.ts +9 -8
- package/dist/commonjs/funcs/transfersCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/transfersCreate.js +8 -7
- package/dist/commonjs/funcs/transfersCreate.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +3 -11
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.js +2 -8
- package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/salesinvoicerequest.d.ts +6 -14
- package/dist/commonjs/models/salesinvoicerequest.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoicerequest.js +2 -9
- package/dist/commonjs/models/salesinvoicerequest.js.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.d.ts +3 -11
- package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.js +2 -9
- package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/transferstatus.d.ts +1 -1
- package/dist/commonjs/models/transferstatus.js +1 -1
- package/dist/commonjs/models/transferstatus.js.map +1 -1
- package/dist/commonjs/models/verificationofpayeeresponse.d.ts +5 -0
- package/dist/commonjs/models/verificationofpayeeresponse.d.ts.map +1 -1
- package/dist/commonjs/models/verificationofpayeeresponse.js +2 -0
- package/dist/commonjs/models/verificationofpayeeresponse.js.map +1 -1
- package/dist/commonjs/sdk/transfers.d.ts +9 -8
- package/dist/commonjs/sdk/transfers.d.ts.map +1 -1
- package/dist/commonjs/sdk/transfers.js +9 -8
- package/dist/commonjs/sdk/transfers.js.map +1 -1
- package/dist/esm/funcs/transfersCreate.d.ts +9 -8
- package/dist/esm/funcs/transfersCreate.d.ts.map +1 -1
- package/dist/esm/funcs/transfersCreate.js +8 -7
- package/dist/esm/funcs/transfersCreate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/listsalesinvoiceresponse.d.ts +3 -11
- package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/listsalesinvoiceresponse.js +1 -6
- package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/salesinvoicerequest.d.ts +6 -14
- package/dist/esm/models/salesinvoicerequest.d.ts.map +1 -1
- package/dist/esm/models/salesinvoicerequest.js +1 -7
- package/dist/esm/models/salesinvoicerequest.js.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.d.ts +3 -11
- package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.js +1 -7
- package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/transferstatus.d.ts +1 -1
- package/dist/esm/models/transferstatus.js +1 -1
- package/dist/esm/models/transferstatus.js.map +1 -1
- package/dist/esm/models/verificationofpayeeresponse.d.ts +5 -0
- package/dist/esm/models/verificationofpayeeresponse.d.ts.map +1 -1
- package/dist/esm/models/verificationofpayeeresponse.js +2 -0
- package/dist/esm/models/verificationofpayeeresponse.js.map +1 -1
- package/dist/esm/sdk/transfers.d.ts +9 -8
- package/dist/esm/sdk/transfers.d.ts.map +1 -1
- package/dist/esm/sdk/transfers.js +9 -8
- package/dist/esm/sdk/transfers.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/transfersCreate.ts +8 -7
- package/src/lib/config.ts +3 -3
- package/src/models/listsalesinvoiceresponse.ts +2 -29
- package/src/models/salesinvoicerequest.ts +3 -32
- package/src/models/salesinvoiceresponse.ts +2 -28
- package/src/models/transferstatus.ts +1 -1
- package/src/models/verificationofpayeeresponse.ts +6 -0
- 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 `
|
|
31
|
-
*
|
|
32
|
-
* | Amount | Scenario
|
|
33
|
-
*
|
|
34
|
-
* | `11.00` | Transfer initiated, pending review by Mollie
|
|
35
|
-
* | `12.00` | Transfer initiated, blocked by Mollie
|
|
36
|
-
* | `13.00` | Transfer initiated, failed on scheme submission
|
|
37
|
-
* |
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -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 `
|
|
51
|
+
* it reaches a final status: `blocked`, `failed`, `processed`, or `returned`.
|
|
52
52
|
*
|
|
53
|
-
* | Amount | Scenario
|
|
54
|
-
*
|
|
55
|
-
* | `11.00` | Transfer initiated, pending review by Mollie
|
|
56
|
-
* | `12.00` | Transfer initiated, blocked by Mollie
|
|
57
|
-
* | `13.00` | Transfer initiated, failed on scheme submission
|
|
58
|
-
* |
|
|
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.
|
|
82
|
-
genVersion: "2.881.
|
|
81
|
+
sdkVersion: "1.5.4",
|
|
82
|
+
genVersion: "2.881.4",
|
|
83
83
|
userAgent:
|
|
84
|
-
"speakeasy-sdk/typescript 1.5.
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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.
|
|
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?:
|
|
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.
|
|
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(),
|
|
@@ -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
|
package/src/sdk/transfers.ts
CHANGED
|
@@ -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 `
|
|
34
|
+
* it reaches a final status: `blocked`, `failed`, `processed`, or `returned`.
|
|
35
35
|
*
|
|
36
|
-
* | Amount | Scenario
|
|
37
|
-
*
|
|
38
|
-
* | `11.00` | Transfer initiated, pending review by Mollie
|
|
39
|
-
* | `12.00` | Transfer initiated, blocked by Mollie
|
|
40
|
-
* | `13.00` | Transfer initiated, failed on scheme submission
|
|
41
|
-
* |
|
|
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,
|