mollie-api-typescript 0.5.1 → 0.6.1
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/bin/mcp-server.js +107 -18
- package/bin/mcp-server.js.map +14 -12
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/method.d.ts +0 -9
- package/dist/commonjs/models/method.d.ts.map +1 -1
- package/dist/commonjs/models/method.js +0 -3
- package/dist/commonjs/models/method.js.map +1 -1
- package/dist/commonjs/models/methodresponse.d.ts +0 -3
- package/dist/commonjs/models/methodresponse.d.ts.map +1 -1
- package/dist/commonjs/models/methodresponse.js +0 -3
- package/dist/commonjs/models/methodresponse.js.map +1 -1
- package/dist/commonjs/models/operations/createpaymentlink.d.ts +1 -5
- package/dist/commonjs/models/operations/createpaymentlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpaymentlink.js +4 -2
- package/dist/commonjs/models/operations/createpaymentlink.js.map +1 -1
- package/dist/commonjs/models/operations/updatepaymentlink.d.ts +1 -5
- package/dist/commonjs/models/operations/updatepaymentlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatepaymentlink.js +4 -2
- package/dist/commonjs/models/operations/updatepaymentlink.js.map +1 -1
- package/dist/commonjs/models/paymentlinkmethod.d.ts +109 -0
- package/dist/commonjs/models/paymentlinkmethod.d.ts.map +1 -0
- package/dist/commonjs/models/paymentlinkmethod.js +87 -0
- package/dist/commonjs/models/paymentlinkmethod.js.map +1 -0
- package/dist/commonjs/models/paymentlinkmethodresponse.d.ts +49 -0
- package/dist/commonjs/models/paymentlinkmethodresponse.d.ts.map +1 -0
- package/dist/commonjs/models/paymentlinkmethodresponse.js +95 -0
- package/dist/commonjs/models/paymentlinkmethodresponse.js.map +1 -0
- package/dist/commonjs/models/paymentlinkresponse.d.ts +2 -5
- package/dist/commonjs/models/paymentlinkresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentlinkresponse.js +5 -2
- package/dist/commonjs/models/paymentlinkresponse.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/method.d.ts +0 -9
- package/dist/esm/models/method.d.ts.map +1 -1
- package/dist/esm/models/method.js +0 -3
- package/dist/esm/models/method.js.map +1 -1
- package/dist/esm/models/methodresponse.d.ts +0 -3
- package/dist/esm/models/methodresponse.d.ts.map +1 -1
- package/dist/esm/models/methodresponse.js +0 -3
- package/dist/esm/models/methodresponse.js.map +1 -1
- package/dist/esm/models/operations/createpaymentlink.d.ts +1 -5
- package/dist/esm/models/operations/createpaymentlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createpaymentlink.js +4 -2
- package/dist/esm/models/operations/createpaymentlink.js.map +1 -1
- package/dist/esm/models/operations/updatepaymentlink.d.ts +1 -5
- package/dist/esm/models/operations/updatepaymentlink.d.ts.map +1 -1
- package/dist/esm/models/operations/updatepaymentlink.js +4 -2
- package/dist/esm/models/operations/updatepaymentlink.js.map +1 -1
- package/dist/esm/models/paymentlinkmethod.d.ts +109 -0
- package/dist/esm/models/paymentlinkmethod.d.ts.map +1 -0
- package/dist/esm/models/paymentlinkmethod.js +51 -0
- package/dist/esm/models/paymentlinkmethod.js.map +1 -0
- package/dist/esm/models/paymentlinkmethodresponse.d.ts +49 -0
- package/dist/esm/models/paymentlinkmethodresponse.d.ts.map +1 -0
- package/dist/esm/models/paymentlinkmethodresponse.js +59 -0
- package/dist/esm/models/paymentlinkmethodresponse.js.map +1 -0
- package/dist/esm/models/paymentlinkresponse.d.ts +2 -5
- package/dist/esm/models/paymentlinkresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentlinkresponse.js +5 -2
- package/dist/esm/models/paymentlinkresponse.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/index.ts +2 -0
- package/src/models/method.ts +0 -3
- package/src/models/methodresponse.ts +0 -3
- package/src/models/operations/createpaymentlink.ts +5 -7
- package/src/models/operations/updatepaymentlink.ts +5 -7
- package/src/models/paymentlinkmethod.ts +60 -0
- package/src/models/paymentlinkmethodresponse.ts +77 -0
- package/src/models/paymentlinkresponse.ts +10 -7
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
11
|
+
|
|
12
|
+
export const PaymentLinkMethodResponse = {
|
|
13
|
+
Applepay: "applepay",
|
|
14
|
+
Bacs: "bacs",
|
|
15
|
+
Bancomatpay: "bancomatpay",
|
|
16
|
+
Bancontact: "bancontact",
|
|
17
|
+
Banktransfer: "banktransfer",
|
|
18
|
+
Belfius: "belfius",
|
|
19
|
+
Billie: "billie",
|
|
20
|
+
Blik: "blik",
|
|
21
|
+
Creditcard: "creditcard",
|
|
22
|
+
Eps: "eps",
|
|
23
|
+
Giftcard: "giftcard",
|
|
24
|
+
Ideal: "ideal",
|
|
25
|
+
In3: "in3",
|
|
26
|
+
Kbc: "kbc",
|
|
27
|
+
Klarna: "klarna",
|
|
28
|
+
Mbway: "mbway",
|
|
29
|
+
Multibanco: "multibanco",
|
|
30
|
+
Mybank: "mybank",
|
|
31
|
+
Paybybank: "paybybank",
|
|
32
|
+
Paypal: "paypal",
|
|
33
|
+
Paysafecard: "paysafecard",
|
|
34
|
+
Pointofsale: "pointofsale",
|
|
35
|
+
Przelewy24: "przelewy24",
|
|
36
|
+
Riverty: "riverty",
|
|
37
|
+
Satispay: "satispay",
|
|
38
|
+
Swish: "swish",
|
|
39
|
+
Trustly: "trustly",
|
|
40
|
+
Twint: "twint",
|
|
41
|
+
Voucher: "voucher",
|
|
42
|
+
} as const;
|
|
43
|
+
export type PaymentLinkMethodResponse = OpenEnum<
|
|
44
|
+
typeof PaymentLinkMethodResponse
|
|
45
|
+
>;
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const PaymentLinkMethodResponse$inboundSchema: z.ZodType<
|
|
49
|
+
PaymentLinkMethodResponse,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
unknown
|
|
52
|
+
> = z
|
|
53
|
+
.union([
|
|
54
|
+
z.nativeEnum(PaymentLinkMethodResponse),
|
|
55
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
56
|
+
]);
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const PaymentLinkMethodResponse$outboundSchema: z.ZodType<
|
|
60
|
+
PaymentLinkMethodResponse,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
PaymentLinkMethodResponse
|
|
63
|
+
> = z.union([
|
|
64
|
+
z.nativeEnum(PaymentLinkMethodResponse),
|
|
65
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
66
|
+
]);
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace PaymentLinkMethodResponse$ {
|
|
73
|
+
/** @deprecated use `PaymentLinkMethodResponse$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = PaymentLinkMethodResponse$inboundSchema;
|
|
75
|
+
/** @deprecated use `PaymentLinkMethodResponse$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = PaymentLinkMethodResponse$outboundSchema;
|
|
77
|
+
}
|
|
@@ -32,6 +32,11 @@ import {
|
|
|
32
32
|
PaymentLineItemResponse$Outbound,
|
|
33
33
|
PaymentLineItemResponse$outboundSchema,
|
|
34
34
|
} from "./paymentlineitemresponse.js";
|
|
35
|
+
import {
|
|
36
|
+
PaymentLinkMethodResponse,
|
|
37
|
+
PaymentLinkMethodResponse$inboundSchema,
|
|
38
|
+
PaymentLinkMethodResponse$outboundSchema,
|
|
39
|
+
} from "./paymentlinkmethodresponse.js";
|
|
35
40
|
import {
|
|
36
41
|
PaymentLinkSequenceTypeResponse,
|
|
37
42
|
PaymentLinkSequenceTypeResponse$inboundSchema,
|
|
@@ -186,12 +191,8 @@ export type PaymentLinkResponse = {
|
|
|
186
191
|
*
|
|
187
192
|
* @remarks
|
|
188
193
|
* not provided or is an empty array, all enabled payment methods will be available.
|
|
189
|
-
*
|
|
190
|
-
* Enum: 'applepay', 'bacs', 'bancomatpay', 'bancontact', 'banktransfer', 'belfius', 'billie', 'blik', 'creditcard', 'eps',
|
|
191
|
-
* 'giftcard', 'ideal', 'in3', 'kbc', 'klarna', 'mbway', 'multibanco', 'mybank', 'paybybank', 'paypal', 'paysafecard',
|
|
192
|
-
* 'pointofsale', 'przelewy24', 'riverty', 'satispay', 'swish', 'trustly', 'twint', 'voucher'.
|
|
193
194
|
*/
|
|
194
|
-
allowedMethods?: Array<
|
|
195
|
+
allowedMethods?: Array<PaymentLinkMethodResponse> | null | undefined;
|
|
195
196
|
/**
|
|
196
197
|
* With Mollie Connect you can charge fees on payment links that your app is processing on behalf of other Mollie
|
|
197
198
|
*
|
|
@@ -360,7 +361,8 @@ export const PaymentLinkResponse$inboundSchema: z.ZodType<
|
|
|
360
361
|
createdAt: z.string().optional(),
|
|
361
362
|
paidAt: z.nullable(z.string()).optional(),
|
|
362
363
|
expiresAt: z.nullable(z.string()).optional(),
|
|
363
|
-
allowedMethods: z.nullable(z.array(
|
|
364
|
+
allowedMethods: z.nullable(z.array(PaymentLinkMethodResponse$inboundSchema))
|
|
365
|
+
.optional(),
|
|
364
366
|
applicationFee: z.lazy(() => PaymentLinkResponseApplicationFee$inboundSchema)
|
|
365
367
|
.optional(),
|
|
366
368
|
sequenceType: PaymentLinkSequenceTypeResponse$inboundSchema.optional(),
|
|
@@ -421,7 +423,8 @@ export const PaymentLinkResponse$outboundSchema: z.ZodType<
|
|
|
421
423
|
createdAt: z.string().optional(),
|
|
422
424
|
paidAt: z.nullable(z.string()).optional(),
|
|
423
425
|
expiresAt: z.nullable(z.string()).optional(),
|
|
424
|
-
allowedMethods: z.nullable(z.array(
|
|
426
|
+
allowedMethods: z.nullable(z.array(PaymentLinkMethodResponse$outboundSchema))
|
|
427
|
+
.optional(),
|
|
425
428
|
applicationFee: z.lazy(() => PaymentLinkResponseApplicationFee$outboundSchema)
|
|
426
429
|
.optional(),
|
|
427
430
|
sequenceType: PaymentLinkSequenceTypeResponse$outboundSchema.optional(),
|