mollie-api-typescript 0.2.7 → 0.2.8

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 (94) hide show
  1. package/bin/mcp-server.js +71 -88
  2. package/bin/mcp-server.js.map +14 -13
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/index.d.ts +2 -1
  8. package/dist/commonjs/models/index.d.ts.map +1 -1
  9. package/dist/commonjs/models/index.js +2 -1
  10. package/dist/commonjs/models/index.js.map +1 -1
  11. package/dist/commonjs/models/{orderlinecategories.d.ts → linecategories.d.ts} +8 -8
  12. package/dist/commonjs/models/linecategories.d.ts.map +1 -0
  13. package/dist/commonjs/models/{orderlinecategories.js → linecategories.js} +12 -12
  14. package/dist/commonjs/models/linecategories.js.map +1 -0
  15. package/dist/commonjs/models/linecategoriesresponse.d.ts +26 -0
  16. package/dist/commonjs/models/linecategoriesresponse.d.ts.map +1 -0
  17. package/dist/commonjs/models/linecategoriesresponse.js +72 -0
  18. package/dist/commonjs/models/linecategoriesresponse.js.map +1 -0
  19. package/dist/commonjs/models/operations/listmethods.d.ts +1 -1
  20. package/dist/commonjs/models/operations/listmethods.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/listmethods.js +2 -2
  22. package/dist/commonjs/models/operations/listmethods.js.map +1 -1
  23. package/dist/commonjs/models/paymentlineitem.d.ts +2 -33
  24. package/dist/commonjs/models/paymentlineitem.d.ts.map +1 -1
  25. package/dist/commonjs/models/paymentlineitem.js +4 -24
  26. package/dist/commonjs/models/paymentlineitem.js.map +1 -1
  27. package/dist/commonjs/models/paymentlineitemresponse.d.ts +2 -33
  28. package/dist/commonjs/models/paymentlineitemresponse.d.ts.map +1 -1
  29. package/dist/commonjs/models/paymentlineitemresponse.js +4 -25
  30. package/dist/commonjs/models/paymentlineitemresponse.js.map +1 -1
  31. package/dist/commonjs/models/paymentrequest.d.ts +2 -33
  32. package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
  33. package/dist/commonjs/models/paymentrequest.js +4 -24
  34. package/dist/commonjs/models/paymentrequest.js.map +1 -1
  35. package/dist/commonjs/models/paymentresponse.d.ts +2 -33
  36. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  37. package/dist/commonjs/models/paymentresponse.js +4 -24
  38. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  39. package/dist/esm/lib/config.d.ts +2 -2
  40. package/dist/esm/lib/config.js +2 -2
  41. package/dist/esm/mcp-server/mcp-server.js +1 -1
  42. package/dist/esm/mcp-server/server.js +1 -1
  43. package/dist/esm/models/index.d.ts +2 -1
  44. package/dist/esm/models/index.d.ts.map +1 -1
  45. package/dist/esm/models/index.js +2 -1
  46. package/dist/esm/models/index.js.map +1 -1
  47. package/dist/esm/models/{orderlinecategories.d.ts → linecategories.d.ts} +8 -8
  48. package/dist/esm/models/linecategories.d.ts.map +1 -0
  49. package/dist/esm/models/linecategories.js +28 -0
  50. package/dist/esm/models/linecategories.js.map +1 -0
  51. package/dist/esm/models/linecategoriesresponse.d.ts +26 -0
  52. package/dist/esm/models/linecategoriesresponse.d.ts.map +1 -0
  53. package/dist/esm/models/linecategoriesresponse.js +36 -0
  54. package/dist/esm/models/linecategoriesresponse.js.map +1 -0
  55. package/dist/esm/models/operations/listmethods.d.ts +1 -1
  56. package/dist/esm/models/operations/listmethods.d.ts.map +1 -1
  57. package/dist/esm/models/operations/listmethods.js +2 -2
  58. package/dist/esm/models/operations/listmethods.js.map +1 -1
  59. package/dist/esm/models/paymentlineitem.d.ts +2 -33
  60. package/dist/esm/models/paymentlineitem.d.ts.map +1 -1
  61. package/dist/esm/models/paymentlineitem.js +3 -23
  62. package/dist/esm/models/paymentlineitem.js.map +1 -1
  63. package/dist/esm/models/paymentlineitemresponse.d.ts +2 -33
  64. package/dist/esm/models/paymentlineitemresponse.d.ts.map +1 -1
  65. package/dist/esm/models/paymentlineitemresponse.js +3 -24
  66. package/dist/esm/models/paymentlineitemresponse.js.map +1 -1
  67. package/dist/esm/models/paymentrequest.d.ts +2 -33
  68. package/dist/esm/models/paymentrequest.d.ts.map +1 -1
  69. package/dist/esm/models/paymentrequest.js +3 -23
  70. package/dist/esm/models/paymentrequest.js.map +1 -1
  71. package/dist/esm/models/paymentresponse.d.ts +2 -33
  72. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  73. package/dist/esm/models/paymentresponse.js +3 -23
  74. package/dist/esm/models/paymentresponse.js.map +1 -1
  75. package/examples/package-lock.json +1 -1
  76. package/jsr.json +1 -1
  77. package/package.json +1 -1
  78. package/src/lib/config.ts +2 -2
  79. package/src/mcp-server/mcp-server.ts +1 -1
  80. package/src/mcp-server/server.ts +1 -1
  81. package/src/models/index.ts +2 -1
  82. package/src/models/linecategories.ts +37 -0
  83. package/src/models/linecategoriesresponse.ts +52 -0
  84. package/src/models/operations/listmethods.ts +3 -3
  85. package/src/models/paymentlineitem.ts +8 -35
  86. package/src/models/paymentlineitemresponse.ts +8 -36
  87. package/src/models/paymentrequest.ts +8 -33
  88. package/src/models/paymentresponse.ts +8 -35
  89. package/dist/commonjs/models/orderlinecategories.d.ts.map +0 -1
  90. package/dist/commonjs/models/orderlinecategories.js.map +0 -1
  91. package/dist/esm/models/orderlinecategories.d.ts.map +0 -1
  92. package/dist/esm/models/orderlinecategories.js +0 -28
  93. package/dist/esm/models/orderlinecategories.js.map +0 -1
  94. package/src/models/orderlinecategories.ts +0 -37
@@ -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<PaymentResponseCategory> | undefined;
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(PaymentResponseCategory$inboundSchema).optional(),
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(PaymentResponseCategory$outboundSchema).optional(),
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
- }