mollie-api-typescript 1.10.1 → 1.11.0

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 (73) hide show
  1. package/dist/commonjs/hooks/types.d.ts +1 -0
  2. package/dist/commonjs/hooks/types.d.ts.map +1 -1
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  6. package/dist/commonjs/lib/sdks.js +50 -16
  7. package/dist/commonjs/lib/sdks.js.map +1 -1
  8. package/dist/commonjs/models/entitypermission.d.ts +2 -2
  9. package/dist/commonjs/models/entitypermission.d.ts.map +1 -1
  10. package/dist/commonjs/models/entitypermission.js +2 -2
  11. package/dist/commonjs/models/entitypermission.js.map +1 -1
  12. package/dist/commonjs/models/listentitypermission.d.ts +1 -1
  13. package/dist/commonjs/models/listentitypermission.d.ts.map +1 -1
  14. package/dist/commonjs/models/listentitypermission.js +1 -1
  15. package/dist/commonjs/models/listentitypermission.js.map +1 -1
  16. package/dist/commonjs/models/listsubscriptionresponse.d.ts +2 -2
  17. package/dist/commonjs/models/listsubscriptionresponse.d.ts.map +1 -1
  18. package/dist/commonjs/models/listsubscriptionresponse.js +2 -2
  19. package/dist/commonjs/models/listsubscriptionresponse.js.map +1 -1
  20. package/dist/commonjs/models/operations/listpermissions.d.ts +2 -2
  21. package/dist/commonjs/models/operations/listpermissions.d.ts.map +1 -1
  22. package/dist/commonjs/models/operations/listpermissions.js +2 -2
  23. package/dist/commonjs/models/operations/listpermissions.js.map +1 -1
  24. package/dist/commonjs/models/paymentdetailswalletresponse.d.ts +1 -0
  25. package/dist/commonjs/models/paymentdetailswalletresponse.d.ts.map +1 -1
  26. package/dist/commonjs/models/paymentdetailswalletresponse.js +1 -0
  27. package/dist/commonjs/models/paymentdetailswalletresponse.js.map +1 -1
  28. package/dist/commonjs/models/subscriptionresponse.d.ts +2 -2
  29. package/dist/commonjs/models/subscriptionresponse.d.ts.map +1 -1
  30. package/dist/commonjs/models/subscriptionresponse.js +2 -2
  31. package/dist/commonjs/models/subscriptionresponse.js.map +1 -1
  32. package/dist/esm/hooks/types.d.ts +1 -0
  33. package/dist/esm/hooks/types.d.ts.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/lib/sdks.d.ts.map +1 -1
  37. package/dist/esm/lib/sdks.js +50 -16
  38. package/dist/esm/lib/sdks.js.map +1 -1
  39. package/dist/esm/models/entitypermission.d.ts +2 -2
  40. package/dist/esm/models/entitypermission.d.ts.map +1 -1
  41. package/dist/esm/models/entitypermission.js +2 -2
  42. package/dist/esm/models/entitypermission.js.map +1 -1
  43. package/dist/esm/models/listentitypermission.d.ts +1 -1
  44. package/dist/esm/models/listentitypermission.d.ts.map +1 -1
  45. package/dist/esm/models/listentitypermission.js +1 -1
  46. package/dist/esm/models/listentitypermission.js.map +1 -1
  47. package/dist/esm/models/listsubscriptionresponse.d.ts +2 -2
  48. package/dist/esm/models/listsubscriptionresponse.d.ts.map +1 -1
  49. package/dist/esm/models/listsubscriptionresponse.js +2 -2
  50. package/dist/esm/models/listsubscriptionresponse.js.map +1 -1
  51. package/dist/esm/models/operations/listpermissions.d.ts +2 -2
  52. package/dist/esm/models/operations/listpermissions.d.ts.map +1 -1
  53. package/dist/esm/models/operations/listpermissions.js +2 -2
  54. package/dist/esm/models/operations/listpermissions.js.map +1 -1
  55. package/dist/esm/models/paymentdetailswalletresponse.d.ts +1 -0
  56. package/dist/esm/models/paymentdetailswalletresponse.d.ts.map +1 -1
  57. package/dist/esm/models/paymentdetailswalletresponse.js +1 -0
  58. package/dist/esm/models/paymentdetailswalletresponse.js.map +1 -1
  59. package/dist/esm/models/subscriptionresponse.d.ts +2 -2
  60. package/dist/esm/models/subscriptionresponse.d.ts.map +1 -1
  61. package/dist/esm/models/subscriptionresponse.js +2 -2
  62. package/dist/esm/models/subscriptionresponse.js.map +1 -1
  63. package/jsr.json +1 -1
  64. package/package.json +1 -1
  65. package/src/hooks/types.ts +1 -0
  66. package/src/lib/config.ts +3 -3
  67. package/src/lib/sdks.ts +54 -17
  68. package/src/models/entitypermission.ts +4 -4
  69. package/src/models/listentitypermission.ts +2 -2
  70. package/src/models/listsubscriptionresponse.ts +4 -4
  71. package/src/models/operations/listpermissions.ts +4 -4
  72. package/src/models/paymentdetailswalletresponse.ts +1 -0
  73. package/src/models/subscriptionresponse.ts +4 -4
@@ -17,11 +17,11 @@ export type EntityPermissionLinks = {
17
17
  /**
18
18
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
19
19
  */
20
- self?: Url | undefined;
20
+ self: Url;
21
21
  /**
22
22
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
23
23
  */
24
- documentation?: Url | undefined;
24
+ documentation: Url;
25
25
  };
26
26
 
27
27
  export type EntityPermission = {
@@ -56,8 +56,8 @@ export const EntityPermissionLinks$inboundSchema: z.ZodType<
56
56
  z.ZodTypeDef,
57
57
  unknown
58
58
  > = z.object({
59
- self: Url$inboundSchema.optional(),
60
- documentation: Url$inboundSchema.optional(),
59
+ self: Url$inboundSchema,
60
+ documentation: Url$inboundSchema,
61
61
  });
62
62
 
63
63
  export function entityPermissionLinksFromJSON(
@@ -17,7 +17,7 @@ export type ListEntityPermissionLinks = {
17
17
  /**
18
18
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
19
19
  */
20
- self?: Url | undefined;
20
+ self: Url;
21
21
  };
22
22
 
23
23
  export type ListEntityPermission = {
@@ -52,7 +52,7 @@ export const ListEntityPermissionLinks$inboundSchema: z.ZodType<
52
52
  z.ZodTypeDef,
53
53
  unknown
54
54
  > = z.object({
55
- self: Url$inboundSchema.optional(),
55
+ self: Url$inboundSchema,
56
56
  });
57
57
 
58
58
  export function listEntityPermissionLinksFromJSON(
@@ -73,7 +73,7 @@ export type ListSubscriptionResponseLinks = {
73
73
  /**
74
74
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
75
75
  */
76
- customer: UrlNullable | null;
76
+ customer: Url;
77
77
  /**
78
78
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
79
79
  */
@@ -81,7 +81,7 @@ export type ListSubscriptionResponseLinks = {
81
81
  /**
82
82
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
83
83
  */
84
- profile: UrlNullable | null;
84
+ profile: Url;
85
85
  /**
86
86
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
87
87
  */
@@ -241,9 +241,9 @@ export const ListSubscriptionResponseLinks$inboundSchema: z.ZodType<
241
241
  unknown
242
242
  > = z.object({
243
243
  self: Url$inboundSchema,
244
- customer: z.nullable(UrlNullable$inboundSchema),
244
+ customer: Url$inboundSchema,
245
245
  mandate: z.nullable(UrlNullable$inboundSchema).optional(),
246
- profile: z.nullable(UrlNullable$inboundSchema),
246
+ profile: Url$inboundSchema,
247
247
  payments: z.nullable(UrlNullable$inboundSchema).optional(),
248
248
  });
249
249
 
@@ -31,11 +31,11 @@ export type ListPermissionsLinks = {
31
31
  /**
32
32
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
33
33
  */
34
- self?: models.Url | undefined;
34
+ self: models.Url;
35
35
  /**
36
36
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
37
37
  */
38
- documentation?: models.Url | undefined;
38
+ documentation: models.Url;
39
39
  };
40
40
 
41
41
  /**
@@ -110,8 +110,8 @@ export const ListPermissionsLinks$inboundSchema: z.ZodType<
110
110
  z.ZodTypeDef,
111
111
  unknown
112
112
  > = z.object({
113
- self: models.Url$inboundSchema.optional(),
114
- documentation: models.Url$inboundSchema.optional(),
113
+ self: models.Url$inboundSchema,
114
+ documentation: models.Url$inboundSchema,
115
115
  });
116
116
 
117
117
  export function listPermissionsLinksFromJSON(
@@ -12,6 +12,7 @@ import { OpenEnum } from "../types/enums.js";
12
12
  */
13
13
  export const PaymentDetailsWalletResponse = {
14
14
  Applepay: "applepay",
15
+ Googlepay: "googlepay",
15
16
  } as const;
16
17
  /**
17
18
  * The wallet used when creating the payment.
@@ -73,7 +73,7 @@ export type SubscriptionResponseLinks = {
73
73
  /**
74
74
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
75
75
  */
76
- customer: UrlNullable | null;
76
+ customer: Url;
77
77
  /**
78
78
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
79
79
  */
@@ -81,7 +81,7 @@ export type SubscriptionResponseLinks = {
81
81
  /**
82
82
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
83
83
  */
84
- profile: UrlNullable | null;
84
+ profile: Url;
85
85
  /**
86
86
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
87
87
  */
@@ -245,9 +245,9 @@ export const SubscriptionResponseLinks$inboundSchema: z.ZodType<
245
245
  unknown
246
246
  > = z.object({
247
247
  self: Url$inboundSchema,
248
- customer: z.nullable(UrlNullable$inboundSchema),
248
+ customer: Url$inboundSchema,
249
249
  mandate: z.nullable(UrlNullable$inboundSchema).optional(),
250
- profile: z.nullable(UrlNullable$inboundSchema),
250
+ profile: Url$inboundSchema,
251
251
  payments: z.nullable(UrlNullable$inboundSchema).optional(),
252
252
  documentation: Url$inboundSchema,
253
253
  });