mollie-api-typescript 0.2.7 → 0.2.9
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/README.md +1 -4
- package/bin/mcp-server.js +73 -90
- package/bin/mcp-server.js.map +17 -16
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/entitysalesinvoice.d.ts +4 -2
- package/dist/commonjs/models/entitysalesinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/entitysalesinvoice.js.map +1 -1
- package/dist/commonjs/models/entitysalesinvoiceresponse.d.ts +4 -2
- package/dist/commonjs/models/entitysalesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/entitysalesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/{orderlinecategories.d.ts → linecategories.d.ts} +8 -8
- package/dist/commonjs/models/linecategories.d.ts.map +1 -0
- package/dist/commonjs/models/{orderlinecategories.js → linecategories.js} +12 -12
- package/dist/commonjs/models/linecategories.js.map +1 -0
- package/dist/commonjs/models/linecategoriesresponse.d.ts +26 -0
- package/dist/commonjs/models/linecategoriesresponse.d.ts.map +1 -0
- package/dist/commonjs/models/linecategoriesresponse.js +72 -0
- package/dist/commonjs/models/linecategoriesresponse.js.map +1 -0
- package/dist/commonjs/models/operations/listmethods.d.ts +1 -1
- package/dist/commonjs/models/operations/listmethods.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmethods.js +2 -2
- package/dist/commonjs/models/operations/listmethods.js.map +1 -1
- package/dist/commonjs/models/paymentlineitem.d.ts +2 -33
- package/dist/commonjs/models/paymentlineitem.d.ts.map +1 -1
- package/dist/commonjs/models/paymentlineitem.js +4 -24
- package/dist/commonjs/models/paymentlineitem.js.map +1 -1
- package/dist/commonjs/models/paymentlineitemresponse.d.ts +2 -33
- package/dist/commonjs/models/paymentlineitemresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentlineitemresponse.js +4 -25
- package/dist/commonjs/models/paymentlineitemresponse.js.map +1 -1
- package/dist/commonjs/models/paymentrequest.d.ts +2 -33
- package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/paymentrequest.js +4 -24
- package/dist/commonjs/models/paymentrequest.js.map +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +2 -33
- package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentresponse.js +4 -24
- package/dist/commonjs/models/paymentresponse.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/entitysalesinvoice.d.ts +4 -2
- package/dist/esm/models/entitysalesinvoice.d.ts.map +1 -1
- package/dist/esm/models/entitysalesinvoice.js.map +1 -1
- package/dist/esm/models/entitysalesinvoiceresponse.d.ts +4 -2
- package/dist/esm/models/entitysalesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/entitysalesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/{orderlinecategories.d.ts → linecategories.d.ts} +8 -8
- package/dist/esm/models/linecategories.d.ts.map +1 -0
- package/dist/esm/models/linecategories.js +28 -0
- package/dist/esm/models/linecategories.js.map +1 -0
- package/dist/esm/models/linecategoriesresponse.d.ts +26 -0
- package/dist/esm/models/linecategoriesresponse.d.ts.map +1 -0
- package/dist/esm/models/linecategoriesresponse.js +36 -0
- package/dist/esm/models/linecategoriesresponse.js.map +1 -0
- package/dist/esm/models/operations/listmethods.d.ts +1 -1
- package/dist/esm/models/operations/listmethods.d.ts.map +1 -1
- package/dist/esm/models/operations/listmethods.js +2 -2
- package/dist/esm/models/operations/listmethods.js.map +1 -1
- package/dist/esm/models/paymentlineitem.d.ts +2 -33
- package/dist/esm/models/paymentlineitem.d.ts.map +1 -1
- package/dist/esm/models/paymentlineitem.js +3 -23
- package/dist/esm/models/paymentlineitem.js.map +1 -1
- package/dist/esm/models/paymentlineitemresponse.d.ts +2 -33
- package/dist/esm/models/paymentlineitemresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentlineitemresponse.js +3 -24
- package/dist/esm/models/paymentlineitemresponse.js.map +1 -1
- package/dist/esm/models/paymentrequest.d.ts +2 -33
- package/dist/esm/models/paymentrequest.d.ts.map +1 -1
- package/dist/esm/models/paymentrequest.js +3 -23
- package/dist/esm/models/paymentrequest.js.map +1 -1
- package/dist/esm/models/paymentresponse.d.ts +2 -33
- package/dist/esm/models/paymentresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentresponse.js +3 -23
- package/dist/esm/models/paymentresponse.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/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/entitysalesinvoice.ts +4 -2
- package/src/models/entitysalesinvoiceresponse.ts +4 -2
- package/src/models/index.ts +2 -1
- package/src/models/linecategories.ts +37 -0
- package/src/models/linecategoriesresponse.ts +52 -0
- package/src/models/operations/listmethods.ts +3 -3
- package/src/models/paymentlineitem.ts +8 -35
- package/src/models/paymentlineitemresponse.ts +8 -36
- package/src/models/paymentrequest.ts +8 -33
- package/src/models/paymentresponse.ts +8 -35
- package/dist/commonjs/models/orderlinecategories.d.ts.map +0 -1
- package/dist/commonjs/models/orderlinecategories.js.map +0 -1
- package/dist/esm/models/orderlinecategories.d.ts.map +0 -1
- package/dist/esm/models/orderlinecategories.js +0 -28
- package/dist/esm/models/orderlinecategories.js.map +0 -1
- package/src/models/orderlinecategories.ts +0 -37
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const LineCategories = {
|
|
9
|
+
Eco: "eco",
|
|
10
|
+
Gift: "gift",
|
|
11
|
+
Meal: "meal",
|
|
12
|
+
SportCulture: "sport_culture",
|
|
13
|
+
Additional: "additional",
|
|
14
|
+
Consume: "consume",
|
|
15
|
+
} as const;
|
|
16
|
+
export type LineCategories = ClosedEnum<typeof LineCategories>;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const LineCategories$inboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof LineCategories
|
|
21
|
+
> = z.nativeEnum(LineCategories);
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const LineCategories$outboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof LineCategories
|
|
26
|
+
> = LineCategories$inboundSchema;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export namespace LineCategories$ {
|
|
33
|
+
/** @deprecated use `LineCategories$inboundSchema` instead. */
|
|
34
|
+
export const inboundSchema = LineCategories$inboundSchema;
|
|
35
|
+
/** @deprecated use `LineCategories$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema = LineCategories$outboundSchema;
|
|
37
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
11
|
+
|
|
12
|
+
export const LineCategoriesResponse = {
|
|
13
|
+
Eco: "eco",
|
|
14
|
+
Gift: "gift",
|
|
15
|
+
Meal: "meal",
|
|
16
|
+
SportCulture: "sport_culture",
|
|
17
|
+
Additional: "additional",
|
|
18
|
+
Consume: "consume",
|
|
19
|
+
} as const;
|
|
20
|
+
export type LineCategoriesResponse = OpenEnum<typeof LineCategoriesResponse>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LineCategoriesResponse$inboundSchema: z.ZodType<
|
|
24
|
+
LineCategoriesResponse,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z
|
|
28
|
+
.union([
|
|
29
|
+
z.nativeEnum(LineCategoriesResponse),
|
|
30
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
31
|
+
]);
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const LineCategoriesResponse$outboundSchema: z.ZodType<
|
|
35
|
+
LineCategoriesResponse,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
LineCategoriesResponse
|
|
38
|
+
> = z.union([
|
|
39
|
+
z.nativeEnum(LineCategoriesResponse),
|
|
40
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
41
|
+
]);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace LineCategoriesResponse$ {
|
|
48
|
+
/** @deprecated use `LineCategoriesResponse$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = LineCategoriesResponse$inboundSchema;
|
|
50
|
+
/** @deprecated use `LineCategoriesResponse$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = LineCategoriesResponse$outboundSchema;
|
|
52
|
+
}
|
|
@@ -115,7 +115,7 @@ export type ListMethodsRequest = {
|
|
|
115
115
|
*
|
|
116
116
|
* Example: `/v2/methods?orderLineCategories=eco,meal`
|
|
117
117
|
*/
|
|
118
|
-
orderLineCategories?: models.
|
|
118
|
+
orderLineCategories?: models.LineCategories | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* The identifier referring to the [profile](get-profile) you wish to
|
|
121
121
|
*
|
|
@@ -239,7 +239,7 @@ export const ListMethodsRequest$inboundSchema: z.ZodType<
|
|
|
239
239
|
resource: Resource$inboundSchema.optional(),
|
|
240
240
|
billingCountry: z.string().optional(),
|
|
241
241
|
includeWallets: IncludeWallets$inboundSchema.optional(),
|
|
242
|
-
orderLineCategories: models.
|
|
242
|
+
orderLineCategories: models.LineCategories$inboundSchema.optional(),
|
|
243
243
|
profileId: z.string().optional(),
|
|
244
244
|
include: z.nullable(z.string()).optional(),
|
|
245
245
|
testmode: z.nullable(z.boolean()).optional(),
|
|
@@ -277,7 +277,7 @@ export const ListMethodsRequest$outboundSchema: z.ZodType<
|
|
|
277
277
|
resource: Resource$outboundSchema.optional(),
|
|
278
278
|
billingCountry: z.string().optional(),
|
|
279
279
|
includeWallets: IncludeWallets$outboundSchema.optional(),
|
|
280
|
-
orderLineCategories: models.
|
|
280
|
+
orderLineCategories: models.LineCategories$outboundSchema.optional(),
|
|
281
281
|
profileId: z.string().optional(),
|
|
282
282
|
include: z.nullable(z.string()).optional(),
|
|
283
283
|
testmode: z.nullable(z.boolean()).optional(),
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
8
|
import {
|
|
10
9
|
Amount,
|
|
@@ -13,22 +12,17 @@ import {
|
|
|
13
12
|
Amount$outboundSchema,
|
|
14
13
|
} from "./amount.js";
|
|
15
14
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
15
|
+
import {
|
|
16
|
+
LineCategories,
|
|
17
|
+
LineCategories$inboundSchema,
|
|
18
|
+
LineCategories$outboundSchema,
|
|
19
|
+
} from "./linecategories.js";
|
|
16
20
|
import {
|
|
17
21
|
PaymentLineType,
|
|
18
22
|
PaymentLineType$inboundSchema,
|
|
19
23
|
PaymentLineType$outboundSchema,
|
|
20
24
|
} from "./paymentlinetype.js";
|
|
21
25
|
|
|
22
|
-
export const PaymentLineItemCategory = {
|
|
23
|
-
Meal: "meal",
|
|
24
|
-
Eco: "eco",
|
|
25
|
-
Gift: "gift",
|
|
26
|
-
SportCulture: "sport_culture",
|
|
27
|
-
} as const;
|
|
28
|
-
export type PaymentLineItemCategory = ClosedEnum<
|
|
29
|
-
typeof PaymentLineItemCategory
|
|
30
|
-
>;
|
|
31
|
-
|
|
32
26
|
export type PaymentLineItem = {
|
|
33
27
|
/**
|
|
34
28
|
* The type of product purchased. For example, a physical or a digital product.
|
|
@@ -83,7 +77,7 @@ export type PaymentLineItem = {
|
|
|
83
77
|
* @remarks
|
|
84
78
|
* [Integrating Vouchers](https://docs.mollie.com/docs/integrating-vouchers/) guide for more information.
|
|
85
79
|
*/
|
|
86
|
-
categories?: Array<
|
|
80
|
+
categories?: Array<LineCategories> | undefined;
|
|
87
81
|
/**
|
|
88
82
|
* A link pointing to an image of the product sold.
|
|
89
83
|
*/
|
|
@@ -94,27 +88,6 @@ export type PaymentLineItem = {
|
|
|
94
88
|
productUrl?: string | undefined;
|
|
95
89
|
};
|
|
96
90
|
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const PaymentLineItemCategory$inboundSchema: z.ZodNativeEnum<
|
|
99
|
-
typeof PaymentLineItemCategory
|
|
100
|
-
> = z.nativeEnum(PaymentLineItemCategory);
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const PaymentLineItemCategory$outboundSchema: z.ZodNativeEnum<
|
|
104
|
-
typeof PaymentLineItemCategory
|
|
105
|
-
> = PaymentLineItemCategory$inboundSchema;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
-
*/
|
|
111
|
-
export namespace PaymentLineItemCategory$ {
|
|
112
|
-
/** @deprecated use `PaymentLineItemCategory$inboundSchema` instead. */
|
|
113
|
-
export const inboundSchema = PaymentLineItemCategory$inboundSchema;
|
|
114
|
-
/** @deprecated use `PaymentLineItemCategory$outboundSchema` instead. */
|
|
115
|
-
export const outboundSchema = PaymentLineItemCategory$outboundSchema;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
91
|
/** @internal */
|
|
119
92
|
export const PaymentLineItem$inboundSchema: z.ZodType<
|
|
120
93
|
PaymentLineItem,
|
|
@@ -131,7 +104,7 @@ export const PaymentLineItem$inboundSchema: z.ZodType<
|
|
|
131
104
|
vatRate: z.string().optional(),
|
|
132
105
|
vatAmount: Amount$inboundSchema.optional(),
|
|
133
106
|
sku: z.string().optional(),
|
|
134
|
-
categories: z.array(
|
|
107
|
+
categories: z.array(LineCategories$inboundSchema).optional(),
|
|
135
108
|
imageUrl: z.string().optional(),
|
|
136
109
|
productUrl: z.string().optional(),
|
|
137
110
|
});
|
|
@@ -169,7 +142,7 @@ export const PaymentLineItem$outboundSchema: z.ZodType<
|
|
|
169
142
|
vatRate: z.string().optional(),
|
|
170
143
|
vatAmount: Amount$outboundSchema.optional(),
|
|
171
144
|
sku: z.string().optional(),
|
|
172
|
-
categories: z.array(
|
|
145
|
+
categories: z.array(LineCategories$outboundSchema).optional(),
|
|
173
146
|
imageUrl: z.string().optional(),
|
|
174
147
|
productUrl: z.string().optional(),
|
|
175
148
|
});
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
8
|
import {
|
|
10
9
|
Amount,
|
|
@@ -13,22 +12,17 @@ import {
|
|
|
13
12
|
Amount$outboundSchema,
|
|
14
13
|
} from "./amount.js";
|
|
15
14
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
15
|
+
import {
|
|
16
|
+
LineCategoriesResponse,
|
|
17
|
+
LineCategoriesResponse$inboundSchema,
|
|
18
|
+
LineCategoriesResponse$outboundSchema,
|
|
19
|
+
} from "./linecategoriesresponse.js";
|
|
16
20
|
import {
|
|
17
21
|
PaymentLineTypeResponse,
|
|
18
22
|
PaymentLineTypeResponse$inboundSchema,
|
|
19
23
|
PaymentLineTypeResponse$outboundSchema,
|
|
20
24
|
} from "./paymentlinetyperesponse.js";
|
|
21
25
|
|
|
22
|
-
export const PaymentLineItemResponseCategory = {
|
|
23
|
-
Meal: "meal",
|
|
24
|
-
Eco: "eco",
|
|
25
|
-
Gift: "gift",
|
|
26
|
-
SportCulture: "sport_culture",
|
|
27
|
-
} as const;
|
|
28
|
-
export type PaymentLineItemResponseCategory = ClosedEnum<
|
|
29
|
-
typeof PaymentLineItemResponseCategory
|
|
30
|
-
>;
|
|
31
|
-
|
|
32
26
|
export type PaymentLineItemResponse = {
|
|
33
27
|
/**
|
|
34
28
|
* The type of product purchased. For example, a physical or a digital product.
|
|
@@ -83,7 +77,7 @@ export type PaymentLineItemResponse = {
|
|
|
83
77
|
* @remarks
|
|
84
78
|
* [Integrating Vouchers](https://docs.mollie.com/docs/integrating-vouchers/) guide for more information.
|
|
85
79
|
*/
|
|
86
|
-
categories?: Array<
|
|
80
|
+
categories?: Array<LineCategoriesResponse> | undefined;
|
|
87
81
|
/**
|
|
88
82
|
* A link pointing to an image of the product sold.
|
|
89
83
|
*/
|
|
@@ -94,27 +88,6 @@ export type PaymentLineItemResponse = {
|
|
|
94
88
|
productUrl?: string | undefined;
|
|
95
89
|
};
|
|
96
90
|
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const PaymentLineItemResponseCategory$inboundSchema: z.ZodNativeEnum<
|
|
99
|
-
typeof PaymentLineItemResponseCategory
|
|
100
|
-
> = z.nativeEnum(PaymentLineItemResponseCategory);
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const PaymentLineItemResponseCategory$outboundSchema: z.ZodNativeEnum<
|
|
104
|
-
typeof PaymentLineItemResponseCategory
|
|
105
|
-
> = PaymentLineItemResponseCategory$inboundSchema;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
-
*/
|
|
111
|
-
export namespace PaymentLineItemResponseCategory$ {
|
|
112
|
-
/** @deprecated use `PaymentLineItemResponseCategory$inboundSchema` instead. */
|
|
113
|
-
export const inboundSchema = PaymentLineItemResponseCategory$inboundSchema;
|
|
114
|
-
/** @deprecated use `PaymentLineItemResponseCategory$outboundSchema` instead. */
|
|
115
|
-
export const outboundSchema = PaymentLineItemResponseCategory$outboundSchema;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
91
|
/** @internal */
|
|
119
92
|
export const PaymentLineItemResponse$inboundSchema: z.ZodType<
|
|
120
93
|
PaymentLineItemResponse,
|
|
@@ -131,7 +104,7 @@ export const PaymentLineItemResponse$inboundSchema: z.ZodType<
|
|
|
131
104
|
vatRate: z.string().optional(),
|
|
132
105
|
vatAmount: Amount$inboundSchema.optional(),
|
|
133
106
|
sku: z.string().optional(),
|
|
134
|
-
categories: z.array(
|
|
107
|
+
categories: z.array(LineCategoriesResponse$inboundSchema).optional(),
|
|
135
108
|
imageUrl: z.string().optional(),
|
|
136
109
|
productUrl: z.string().optional(),
|
|
137
110
|
});
|
|
@@ -169,8 +142,7 @@ export const PaymentLineItemResponse$outboundSchema: z.ZodType<
|
|
|
169
142
|
vatRate: z.string().optional(),
|
|
170
143
|
vatAmount: Amount$outboundSchema.optional(),
|
|
171
144
|
sku: z.string().optional(),
|
|
172
|
-
categories: z.array(
|
|
173
|
-
.optional(),
|
|
145
|
+
categories: z.array(LineCategoriesResponse$outboundSchema).optional(),
|
|
174
146
|
imageUrl: z.string().optional(),
|
|
175
147
|
productUrl: z.string().optional(),
|
|
176
148
|
});
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
8
|
import { RFCDate } from "../types/rfcdate.js";
|
|
10
9
|
import {
|
|
@@ -25,6 +24,11 @@ import {
|
|
|
25
24
|
EntityPaymentRoute$outboundSchema,
|
|
26
25
|
} from "./entitypaymentroute.js";
|
|
27
26
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
27
|
+
import {
|
|
28
|
+
LineCategories,
|
|
29
|
+
LineCategories$inboundSchema,
|
|
30
|
+
LineCategories$outboundSchema,
|
|
31
|
+
} from "./linecategories.js";
|
|
28
32
|
import {
|
|
29
33
|
Locale,
|
|
30
34
|
Locale$inboundSchema,
|
|
@@ -64,14 +68,6 @@ import {
|
|
|
64
68
|
SequenceType$outboundSchema,
|
|
65
69
|
} from "./sequencetype.js";
|
|
66
70
|
|
|
67
|
-
export const PaymentRequestCategory = {
|
|
68
|
-
Meal: "meal",
|
|
69
|
-
Eco: "eco",
|
|
70
|
-
Gift: "gift",
|
|
71
|
-
SportCulture: "sport_culture",
|
|
72
|
-
} as const;
|
|
73
|
-
export type PaymentRequestCategory = ClosedEnum<typeof PaymentRequestCategory>;
|
|
74
|
-
|
|
75
71
|
export type PaymentRequestLine = {
|
|
76
72
|
/**
|
|
77
73
|
* The type of product purchased. For example, a physical or a digital product.
|
|
@@ -126,7 +122,7 @@ export type PaymentRequestLine = {
|
|
|
126
122
|
* @remarks
|
|
127
123
|
* [Integrating Vouchers](https://docs.mollie.com/docs/integrating-vouchers/) guide for more information.
|
|
128
124
|
*/
|
|
129
|
-
categories?: Array<
|
|
125
|
+
categories?: Array<LineCategories> | undefined;
|
|
130
126
|
/**
|
|
131
127
|
* A link pointing to an image of the product sold.
|
|
132
128
|
*/
|
|
@@ -503,27 +499,6 @@ export type PaymentRequest = {
|
|
|
503
499
|
terminalId?: string | undefined;
|
|
504
500
|
};
|
|
505
501
|
|
|
506
|
-
/** @internal */
|
|
507
|
-
export const PaymentRequestCategory$inboundSchema: z.ZodNativeEnum<
|
|
508
|
-
typeof PaymentRequestCategory
|
|
509
|
-
> = z.nativeEnum(PaymentRequestCategory);
|
|
510
|
-
|
|
511
|
-
/** @internal */
|
|
512
|
-
export const PaymentRequestCategory$outboundSchema: z.ZodNativeEnum<
|
|
513
|
-
typeof PaymentRequestCategory
|
|
514
|
-
> = PaymentRequestCategory$inboundSchema;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* @internal
|
|
518
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
519
|
-
*/
|
|
520
|
-
export namespace PaymentRequestCategory$ {
|
|
521
|
-
/** @deprecated use `PaymentRequestCategory$inboundSchema` instead. */
|
|
522
|
-
export const inboundSchema = PaymentRequestCategory$inboundSchema;
|
|
523
|
-
/** @deprecated use `PaymentRequestCategory$outboundSchema` instead. */
|
|
524
|
-
export const outboundSchema = PaymentRequestCategory$outboundSchema;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
502
|
/** @internal */
|
|
528
503
|
export const PaymentRequestLine$inboundSchema: z.ZodType<
|
|
529
504
|
PaymentRequestLine,
|
|
@@ -540,7 +515,7 @@ export const PaymentRequestLine$inboundSchema: z.ZodType<
|
|
|
540
515
|
vatRate: z.string().optional(),
|
|
541
516
|
vatAmount: Amount$inboundSchema.optional(),
|
|
542
517
|
sku: z.string().optional(),
|
|
543
|
-
categories: z.array(
|
|
518
|
+
categories: z.array(LineCategories$inboundSchema).optional(),
|
|
544
519
|
imageUrl: z.string().optional(),
|
|
545
520
|
productUrl: z.string().optional(),
|
|
546
521
|
recurring: RecurringLineItem$inboundSchema.optional(),
|
|
@@ -580,7 +555,7 @@ export const PaymentRequestLine$outboundSchema: z.ZodType<
|
|
|
580
555
|
vatRate: z.string().optional(),
|
|
581
556
|
vatAmount: Amount$outboundSchema.optional(),
|
|
582
557
|
sku: z.string().optional(),
|
|
583
|
-
categories: z.array(
|
|
558
|
+
categories: z.array(LineCategories$outboundSchema).optional(),
|
|
584
559
|
imageUrl: z.string().optional(),
|
|
585
560
|
productUrl: z.string().optional(),
|
|
586
561
|
recurring: RecurringLineItem$outboundSchema.optional(),
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
9
|
import { RFCDate } from "../types/rfcdate.js";
|
|
11
10
|
import {
|
|
@@ -32,6 +31,11 @@ import {
|
|
|
32
31
|
EntityPaymentRouteResponse$outboundSchema,
|
|
33
32
|
} from "./entitypaymentrouteresponse.js";
|
|
34
33
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
34
|
+
import {
|
|
35
|
+
LineCategoriesResponse,
|
|
36
|
+
LineCategoriesResponse$inboundSchema,
|
|
37
|
+
LineCategoriesResponse$outboundSchema,
|
|
38
|
+
} from "./linecategoriesresponse.js";
|
|
35
39
|
import {
|
|
36
40
|
LocaleResponse,
|
|
37
41
|
LocaleResponse$inboundSchema,
|
|
@@ -139,16 +143,6 @@ import {
|
|
|
139
143
|
Url$outboundSchema,
|
|
140
144
|
} from "./url.js";
|
|
141
145
|
|
|
142
|
-
export const PaymentResponseCategory = {
|
|
143
|
-
Meal: "meal",
|
|
144
|
-
Eco: "eco",
|
|
145
|
-
Gift: "gift",
|
|
146
|
-
SportCulture: "sport_culture",
|
|
147
|
-
} as const;
|
|
148
|
-
export type PaymentResponseCategory = ClosedEnum<
|
|
149
|
-
typeof PaymentResponseCategory
|
|
150
|
-
>;
|
|
151
|
-
|
|
152
146
|
export type PaymentResponseLine = {
|
|
153
147
|
/**
|
|
154
148
|
* The type of product purchased. For example, a physical or a digital product.
|
|
@@ -203,7 +197,7 @@ export type PaymentResponseLine = {
|
|
|
203
197
|
* @remarks
|
|
204
198
|
* [Integrating Vouchers](https://docs.mollie.com/docs/integrating-vouchers/) guide for more information.
|
|
205
199
|
*/
|
|
206
|
-
categories?: Array<
|
|
200
|
+
categories?: Array<LineCategoriesResponse> | undefined;
|
|
207
201
|
/**
|
|
208
202
|
* A link pointing to an image of the product sold.
|
|
209
203
|
*/
|
|
@@ -932,27 +926,6 @@ export type PaymentResponse = {
|
|
|
932
926
|
links?: PaymentResponseLinks | undefined;
|
|
933
927
|
};
|
|
934
928
|
|
|
935
|
-
/** @internal */
|
|
936
|
-
export const PaymentResponseCategory$inboundSchema: z.ZodNativeEnum<
|
|
937
|
-
typeof PaymentResponseCategory
|
|
938
|
-
> = z.nativeEnum(PaymentResponseCategory);
|
|
939
|
-
|
|
940
|
-
/** @internal */
|
|
941
|
-
export const PaymentResponseCategory$outboundSchema: z.ZodNativeEnum<
|
|
942
|
-
typeof PaymentResponseCategory
|
|
943
|
-
> = PaymentResponseCategory$inboundSchema;
|
|
944
|
-
|
|
945
|
-
/**
|
|
946
|
-
* @internal
|
|
947
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
948
|
-
*/
|
|
949
|
-
export namespace PaymentResponseCategory$ {
|
|
950
|
-
/** @deprecated use `PaymentResponseCategory$inboundSchema` instead. */
|
|
951
|
-
export const inboundSchema = PaymentResponseCategory$inboundSchema;
|
|
952
|
-
/** @deprecated use `PaymentResponseCategory$outboundSchema` instead. */
|
|
953
|
-
export const outboundSchema = PaymentResponseCategory$outboundSchema;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
929
|
/** @internal */
|
|
957
930
|
export const PaymentResponseLine$inboundSchema: z.ZodType<
|
|
958
931
|
PaymentResponseLine,
|
|
@@ -969,7 +942,7 @@ export const PaymentResponseLine$inboundSchema: z.ZodType<
|
|
|
969
942
|
vatRate: z.string().optional(),
|
|
970
943
|
vatAmount: Amount$inboundSchema.optional(),
|
|
971
944
|
sku: z.string().optional(),
|
|
972
|
-
categories: z.array(
|
|
945
|
+
categories: z.array(LineCategoriesResponse$inboundSchema).optional(),
|
|
973
946
|
imageUrl: z.string().optional(),
|
|
974
947
|
productUrl: z.string().optional(),
|
|
975
948
|
recurring: RecurringLineItem$inboundSchema.optional(),
|
|
@@ -1009,7 +982,7 @@ export const PaymentResponseLine$outboundSchema: z.ZodType<
|
|
|
1009
982
|
vatRate: z.string().optional(),
|
|
1010
983
|
vatAmount: Amount$outboundSchema.optional(),
|
|
1011
984
|
sku: z.string().optional(),
|
|
1012
|
-
categories: z.array(
|
|
985
|
+
categories: z.array(LineCategoriesResponse$outboundSchema).optional(),
|
|
1013
986
|
imageUrl: z.string().optional(),
|
|
1014
987
|
productUrl: z.string().optional(),
|
|
1015
988
|
recurring: RecurringLineItem$outboundSchema.optional(),
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orderlinecategories.d.ts","sourceRoot":"","sources":["../../../src/models/orderlinecategories.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,mBAAmB;;;;;;;CAOtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,OAAO,mBAAmB,CACS,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,mBAAmB,CACS,CAAC;AAEtC;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa;;;;;;;MAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc;;;;;;;MAAqC,CAAC;CAClE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orderlinecategories.js","sourceRoot":"","sources":["../../../src/models/orderlinecategories.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,mBAAmB,GAAG;IACjC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;CACV,CAAC;AAGX,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC;AAEtC,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,yCAAiC,CAAC;AAEtC;;;GAGG;AACH,IAAiB,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AACnE,CAAC,EALgB,oBAAoB,oCAApB,oBAAoB,QAKpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orderlinecategories.d.ts","sourceRoot":"","sources":["../../../src/models/orderlinecategories.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,mBAAmB;;;;;;;CAOtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,OAAO,mBAAmB,CACS,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,mBAAmB,CACS,CAAC;AAEtC;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa;;;;;;;MAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc;;;;;;;MAAqC,CAAC;CAClE"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
export const OrderLineCategories = {
|
|
6
|
-
Eco: "eco",
|
|
7
|
-
Gift: "gift",
|
|
8
|
-
Meal: "meal",
|
|
9
|
-
SportCulture: "sport_culture",
|
|
10
|
-
Additional: "additional",
|
|
11
|
-
Consume: "consume",
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const OrderLineCategories$inboundSchema = z.nativeEnum(OrderLineCategories);
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const OrderLineCategories$outboundSchema = OrderLineCategories$inboundSchema;
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
-
*/
|
|
21
|
-
export var OrderLineCategories$;
|
|
22
|
-
(function (OrderLineCategories$) {
|
|
23
|
-
/** @deprecated use `OrderLineCategories$inboundSchema` instead. */
|
|
24
|
-
OrderLineCategories$.inboundSchema = OrderLineCategories$inboundSchema;
|
|
25
|
-
/** @deprecated use `OrderLineCategories$outboundSchema` instead. */
|
|
26
|
-
OrderLineCategories$.outboundSchema = OrderLineCategories$outboundSchema;
|
|
27
|
-
})(OrderLineCategories$ || (OrderLineCategories$ = {}));
|
|
28
|
-
//# sourceMappingURL=orderlinecategories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orderlinecategories.js","sourceRoot":"","sources":["../../../src/models/orderlinecategories.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;CACV,CAAC;AAGX,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAE3C,iCAAiC,CAAC;AAEtC;;;GAGG;AACH,MAAM,KAAW,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,iCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,kCAAkC,CAAC;AACnE,CAAC,EALgB,oBAAoB,KAApB,oBAAoB,QAKpC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
-
|
|
8
|
-
export const OrderLineCategories = {
|
|
9
|
-
Eco: "eco",
|
|
10
|
-
Gift: "gift",
|
|
11
|
-
Meal: "meal",
|
|
12
|
-
SportCulture: "sport_culture",
|
|
13
|
-
Additional: "additional",
|
|
14
|
-
Consume: "consume",
|
|
15
|
-
} as const;
|
|
16
|
-
export type OrderLineCategories = ClosedEnum<typeof OrderLineCategories>;
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const OrderLineCategories$inboundSchema: z.ZodNativeEnum<
|
|
20
|
-
typeof OrderLineCategories
|
|
21
|
-
> = z.nativeEnum(OrderLineCategories);
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const OrderLineCategories$outboundSchema: z.ZodNativeEnum<
|
|
25
|
-
typeof OrderLineCategories
|
|
26
|
-
> = OrderLineCategories$inboundSchema;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
-
*/
|
|
32
|
-
export namespace OrderLineCategories$ {
|
|
33
|
-
/** @deprecated use `OrderLineCategories$inboundSchema` instead. */
|
|
34
|
-
export const inboundSchema = OrderLineCategories$inboundSchema;
|
|
35
|
-
/** @deprecated use `OrderLineCategories$outboundSchema` instead. */
|
|
36
|
-
export const outboundSchema = OrderLineCategories$outboundSchema;
|
|
37
|
-
}
|