mollie-api-typescript 0.0.5 → 0.0.7

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 (239) hide show
  1. package/README.md +3 -2
  2. package/bin/mcp-server.js +710 -1292
  3. package/bin/mcp-server.js.map +31 -31
  4. package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
  5. package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
  6. package/dist/commonjs/funcs/refundsGet.js +1 -1
  7. package/dist/commonjs/funcs/refundsGet.js.map +1 -1
  8. package/dist/commonjs/funcs/refundsList.js +1 -1
  9. package/dist/commonjs/funcs/refundsList.js.map +1 -1
  10. package/dist/commonjs/funcs/settlementsListRefunds.js +1 -1
  11. package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
  12. package/dist/commonjs/funcs/subscriptionsAll.d.ts +1 -1
  13. package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/subscriptionsAll.js +2 -5
  15. package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
  16. package/dist/commonjs/lib/config.d.ts +3 -3
  17. package/dist/commonjs/lib/config.js +3 -3
  18. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  19. package/dist/commonjs/mcp-server/server.js +1 -1
  20. package/dist/commonjs/models/errors/listallsubscriptions.d.ts +95 -14
  21. package/dist/commonjs/models/errors/listallsubscriptions.d.ts.map +1 -1
  22. package/dist/commonjs/models/errors/listallsubscriptions.js +80 -14
  23. package/dist/commonjs/models/errors/listallsubscriptions.js.map +1 -1
  24. package/dist/commonjs/models/operations/cancelsubscription.d.ts +40 -40
  25. package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
  26. package/dist/commonjs/models/operations/cancelsubscription.js +40 -48
  27. package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
  28. package/dist/commonjs/models/operations/createcustomer.d.ts +22 -22
  29. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  30. package/dist/commonjs/models/operations/createcustomer.js +22 -24
  31. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  32. package/dist/commonjs/models/operations/createmandate.d.ts +26 -26
  33. package/dist/commonjs/models/operations/createmandate.d.ts.map +1 -1
  34. package/dist/commonjs/models/operations/createmandate.js +26 -28
  35. package/dist/commonjs/models/operations/createmandate.js.map +1 -1
  36. package/dist/commonjs/models/operations/createrefund.d.ts +7 -7
  37. package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
  38. package/dist/commonjs/models/operations/createrefund.js +8 -10
  39. package/dist/commonjs/models/operations/createrefund.js.map +1 -1
  40. package/dist/commonjs/models/operations/createsubscription.d.ts +44 -44
  41. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  42. package/dist/commonjs/models/operations/createsubscription.js +44 -53
  43. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  44. package/dist/commonjs/models/operations/getcustomer.d.ts +28 -28
  45. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/getcustomer.js +28 -30
  47. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  48. package/dist/commonjs/models/operations/getmandate.d.ts +26 -26
  49. package/dist/commonjs/models/operations/getmandate.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/getmandate.js +26 -27
  51. package/dist/commonjs/models/operations/getmandate.js.map +1 -1
  52. package/dist/commonjs/models/operations/getrefund.d.ts +28 -19
  53. package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/getrefund.js +25 -22
  55. package/dist/commonjs/models/operations/getrefund.js.map +1 -1
  56. package/dist/commonjs/models/operations/getsubscription.d.ts +40 -40
  57. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
  58. package/dist/commonjs/models/operations/getsubscription.js +40 -48
  59. package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
  60. package/dist/commonjs/models/operations/listallrefunds.d.ts +9 -15
  61. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  62. package/dist/commonjs/models/operations/listallrefunds.js +8 -10
  63. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  64. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +532 -2849
  65. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/listallsubscriptions.js +345 -1612
  67. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  68. package/dist/commonjs/models/operations/listcustomers.d.ts +22 -22
  69. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/listcustomers.js +22 -22
  71. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  72. package/dist/commonjs/models/operations/listmandates.d.ts +26 -26
  73. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/listmandates.js +26 -26
  75. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  76. package/dist/commonjs/models/operations/listrefunds.d.ts +28 -19
  77. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/listrefunds.js +25 -24
  79. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  80. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +28 -19
  81. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/listsettlementrefunds.js +25 -22
  83. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  84. package/dist/commonjs/models/operations/listsubscriptions.d.ts +81 -81
  85. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/listsubscriptions.js +90 -96
  87. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  88. package/dist/commonjs/models/operations/paymentcreateroute.d.ts +11 -0
  89. package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/paymentcreateroute.js +2 -0
  91. package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
  92. package/dist/commonjs/models/operations/paymentlistroutes.d.ts +11 -0
  93. package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/paymentlistroutes.js +2 -0
  95. package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
  96. package/dist/commonjs/models/operations/updatecustomer.d.ts +22 -22
  97. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/updatecustomer.js +22 -24
  99. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  100. package/dist/commonjs/models/operations/updatesubscription.d.ts +40 -40
  101. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/updatesubscription.js +40 -50
  103. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  104. package/dist/esm/funcs/delayedRoutingList.js +5 -1
  105. package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
  106. package/dist/esm/funcs/refundsGet.js +1 -1
  107. package/dist/esm/funcs/refundsGet.js.map +1 -1
  108. package/dist/esm/funcs/refundsList.js +1 -1
  109. package/dist/esm/funcs/refundsList.js.map +1 -1
  110. package/dist/esm/funcs/settlementsListRefunds.js +1 -1
  111. package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
  112. package/dist/esm/funcs/subscriptionsAll.d.ts +1 -1
  113. package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
  114. package/dist/esm/funcs/subscriptionsAll.js +2 -5
  115. package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
  116. package/dist/esm/lib/config.d.ts +3 -3
  117. package/dist/esm/lib/config.js +3 -3
  118. package/dist/esm/mcp-server/mcp-server.js +1 -1
  119. package/dist/esm/mcp-server/server.js +1 -1
  120. package/dist/esm/models/errors/listallsubscriptions.d.ts +95 -14
  121. package/dist/esm/models/errors/listallsubscriptions.d.ts.map +1 -1
  122. package/dist/esm/models/errors/listallsubscriptions.js +77 -12
  123. package/dist/esm/models/errors/listallsubscriptions.js.map +1 -1
  124. package/dist/esm/models/operations/cancelsubscription.d.ts +40 -40
  125. package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
  126. package/dist/esm/models/operations/cancelsubscription.js +40 -48
  127. package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
  128. package/dist/esm/models/operations/createcustomer.d.ts +22 -22
  129. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  130. package/dist/esm/models/operations/createcustomer.js +22 -24
  131. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  132. package/dist/esm/models/operations/createmandate.d.ts +26 -26
  133. package/dist/esm/models/operations/createmandate.d.ts.map +1 -1
  134. package/dist/esm/models/operations/createmandate.js +26 -28
  135. package/dist/esm/models/operations/createmandate.js.map +1 -1
  136. package/dist/esm/models/operations/createrefund.d.ts +7 -7
  137. package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
  138. package/dist/esm/models/operations/createrefund.js +8 -10
  139. package/dist/esm/models/operations/createrefund.js.map +1 -1
  140. package/dist/esm/models/operations/createsubscription.d.ts +44 -44
  141. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  142. package/dist/esm/models/operations/createsubscription.js +44 -53
  143. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  144. package/dist/esm/models/operations/getcustomer.d.ts +28 -28
  145. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  146. package/dist/esm/models/operations/getcustomer.js +28 -30
  147. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  148. package/dist/esm/models/operations/getmandate.d.ts +26 -26
  149. package/dist/esm/models/operations/getmandate.d.ts.map +1 -1
  150. package/dist/esm/models/operations/getmandate.js +26 -27
  151. package/dist/esm/models/operations/getmandate.js.map +1 -1
  152. package/dist/esm/models/operations/getrefund.d.ts +28 -19
  153. package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
  154. package/dist/esm/models/operations/getrefund.js +24 -21
  155. package/dist/esm/models/operations/getrefund.js.map +1 -1
  156. package/dist/esm/models/operations/getsubscription.d.ts +40 -40
  157. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
  158. package/dist/esm/models/operations/getsubscription.js +40 -48
  159. package/dist/esm/models/operations/getsubscription.js.map +1 -1
  160. package/dist/esm/models/operations/listallrefunds.d.ts +9 -15
  161. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  162. package/dist/esm/models/operations/listallrefunds.js +8 -10
  163. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  164. package/dist/esm/models/operations/listallsubscriptions.d.ts +532 -2849
  165. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  166. package/dist/esm/models/operations/listallsubscriptions.js +325 -1533
  167. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  168. package/dist/esm/models/operations/listcustomers.d.ts +22 -22
  169. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  170. package/dist/esm/models/operations/listcustomers.js +22 -22
  171. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  172. package/dist/esm/models/operations/listmandates.d.ts +26 -26
  173. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  174. package/dist/esm/models/operations/listmandates.js +26 -26
  175. package/dist/esm/models/operations/listmandates.js.map +1 -1
  176. package/dist/esm/models/operations/listrefunds.d.ts +28 -19
  177. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  178. package/dist/esm/models/operations/listrefunds.js +24 -23
  179. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  180. package/dist/esm/models/operations/listsettlementrefunds.d.ts +28 -19
  181. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  182. package/dist/esm/models/operations/listsettlementrefunds.js +24 -21
  183. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  184. package/dist/esm/models/operations/listsubscriptions.d.ts +81 -81
  185. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  186. package/dist/esm/models/operations/listsubscriptions.js +83 -89
  187. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  188. package/dist/esm/models/operations/paymentcreateroute.d.ts +11 -0
  189. package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
  190. package/dist/esm/models/operations/paymentcreateroute.js +2 -0
  191. package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
  192. package/dist/esm/models/operations/paymentlistroutes.d.ts +11 -0
  193. package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
  194. package/dist/esm/models/operations/paymentlistroutes.js +2 -0
  195. package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
  196. package/dist/esm/models/operations/updatecustomer.d.ts +22 -22
  197. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  198. package/dist/esm/models/operations/updatecustomer.js +22 -24
  199. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  200. package/dist/esm/models/operations/updatesubscription.d.ts +40 -40
  201. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  202. package/dist/esm/models/operations/updatesubscription.js +40 -50
  203. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  204. package/docs/sdks/delayedrouting/README.md +4 -0
  205. package/docs/sdks/refunds/README.md +4 -4
  206. package/docs/sdks/settlements/README.md +2 -2
  207. package/docs/sdks/subscriptions/README.md +5 -4
  208. package/examples/package-lock.json +2 -2
  209. package/jsr.json +1 -1
  210. package/package.json +2 -2
  211. package/src/funcs/delayedRoutingList.ts +6 -1
  212. package/src/funcs/refundsGet.ts +1 -1
  213. package/src/funcs/refundsList.ts +1 -1
  214. package/src/funcs/settlementsListRefunds.ts +1 -1
  215. package/src/funcs/subscriptionsAll.ts +17 -8
  216. package/src/lib/config.ts +3 -3
  217. package/src/mcp-server/mcp-server.ts +1 -1
  218. package/src/mcp-server/server.ts +1 -1
  219. package/src/models/errors/listallsubscriptions.ts +173 -23
  220. package/src/models/operations/cancelsubscription.ts +80 -98
  221. package/src/models/operations/createcustomer.ts +45 -53
  222. package/src/models/operations/createmandate.ts +52 -54
  223. package/src/models/operations/createrefund.ts +15 -17
  224. package/src/models/operations/createsubscription.ts +89 -104
  225. package/src/models/operations/getcustomer.ts +56 -63
  226. package/src/models/operations/getmandate.ts +52 -53
  227. package/src/models/operations/getrefund.ts +44 -35
  228. package/src/models/operations/getsubscription.ts +80 -98
  229. package/src/models/operations/listallrefunds.ts +17 -25
  230. package/src/models/operations/listallsubscriptions.ts +894 -4395
  231. package/src/models/operations/listcustomers.ts +44 -49
  232. package/src/models/operations/listmandates.ts +52 -52
  233. package/src/models/operations/listrefunds.ts +44 -37
  234. package/src/models/operations/listsettlementrefunds.ts +45 -36
  235. package/src/models/operations/listsubscriptions.ts +181 -176
  236. package/src/models/operations/paymentcreateroute.ts +13 -0
  237. package/src/models/operations/paymentlistroutes.ts +13 -0
  238. package/src/models/operations/updatecustomer.ts +45 -53
  239. package/src/models/operations/updatesubscription.ts +81 -97
@@ -251,11 +251,11 @@ export type CustomerLinks = {
251
251
  /**
252
252
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
253
253
  */
254
- self?: CustomerSelf | undefined;
254
+ self: CustomerSelf;
255
255
  /**
256
256
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
257
257
  */
258
- dashboard?: ListCustomersDashboard | undefined;
258
+ dashboard: ListCustomersDashboard;
259
259
  /**
260
260
  * The API resource URL of the [payments](list-payments) linked to this customer. Omitted if no such payments
261
261
  *
@@ -280,7 +280,7 @@ export type CustomerLinks = {
280
280
  /**
281
281
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
282
282
  */
283
- documentation?: CustomerDocumentation | undefined;
283
+ documentation: CustomerDocumentation;
284
284
  };
285
285
 
286
286
  export type ListCustomersCustomer = {
@@ -291,41 +291,41 @@ export type ListCustomersCustomer = {
291
291
  /**
292
292
  * The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
293
293
  */
294
- id?: string | undefined;
294
+ id: string;
295
295
  /**
296
296
  * Whether this entity was created in live mode or in test mode.
297
297
  */
298
- mode?: ListCustomersMode | undefined;
298
+ mode: ListCustomersMode;
299
299
  /**
300
300
  * The full name of the customer.
301
301
  */
302
- name?: string | null | undefined;
302
+ name: string | null;
303
303
  /**
304
304
  * The email address of the customer.
305
305
  */
306
- email?: string | null | undefined;
306
+ email: string | null;
307
307
  /**
308
308
  * Preconfigure the language to be used in the hosted payment pages shown to the customer. Should only be provided if
309
309
  *
310
310
  * @remarks
311
311
  * absolutely necessary. If not provided, the browser language will be used which is typically highly accurate.
312
312
  */
313
- locale?: ListCustomersLocale | null | undefined;
313
+ locale: ListCustomersLocale | null;
314
314
  /**
315
315
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
316
316
  *
317
317
  * @remarks
318
318
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
319
319
  */
320
- metadata?: ListCustomersMetadata | string | Array<string> | null | undefined;
320
+ metadata: ListCustomersMetadata | string | Array<string> | null;
321
321
  /**
322
322
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
323
323
  */
324
- createdAt?: string | undefined;
324
+ createdAt: string;
325
325
  /**
326
326
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
327
327
  */
328
- links?: CustomerLinks | undefined;
328
+ links: CustomerLinks;
329
329
  };
330
330
 
331
331
  export type ListCustomersEmbedded = {
@@ -1250,8 +1250,8 @@ export const CustomerLinks$inboundSchema: z.ZodType<
1250
1250
  z.ZodTypeDef,
1251
1251
  unknown
1252
1252
  > = z.object({
1253
- self: z.lazy(() => CustomerSelf$inboundSchema).optional(),
1254
- dashboard: z.lazy(() => ListCustomersDashboard$inboundSchema).optional(),
1253
+ self: z.lazy(() => CustomerSelf$inboundSchema),
1254
+ dashboard: z.lazy(() => ListCustomersDashboard$inboundSchema),
1255
1255
  payments: z.nullable(z.lazy(() => ListCustomersPayments$inboundSchema))
1256
1256
  .optional(),
1257
1257
  mandates: z.nullable(z.lazy(() => ListCustomersMandates$inboundSchema))
@@ -1259,17 +1259,17 @@ export const CustomerLinks$inboundSchema: z.ZodType<
1259
1259
  subscriptions: z.nullable(
1260
1260
  z.lazy(() => ListCustomersSubscriptions$inboundSchema),
1261
1261
  ).optional(),
1262
- documentation: z.lazy(() => CustomerDocumentation$inboundSchema).optional(),
1262
+ documentation: z.lazy(() => CustomerDocumentation$inboundSchema),
1263
1263
  });
1264
1264
 
1265
1265
  /** @internal */
1266
1266
  export type CustomerLinks$Outbound = {
1267
- self?: CustomerSelf$Outbound | undefined;
1268
- dashboard?: ListCustomersDashboard$Outbound | undefined;
1267
+ self: CustomerSelf$Outbound;
1268
+ dashboard: ListCustomersDashboard$Outbound;
1269
1269
  payments?: ListCustomersPayments$Outbound | null | undefined;
1270
1270
  mandates?: ListCustomersMandates$Outbound | null | undefined;
1271
1271
  subscriptions?: ListCustomersSubscriptions$Outbound | null | undefined;
1272
- documentation?: CustomerDocumentation$Outbound | undefined;
1272
+ documentation: CustomerDocumentation$Outbound;
1273
1273
  };
1274
1274
 
1275
1275
  /** @internal */
@@ -1278,8 +1278,8 @@ export const CustomerLinks$outboundSchema: z.ZodType<
1278
1278
  z.ZodTypeDef,
1279
1279
  CustomerLinks
1280
1280
  > = z.object({
1281
- self: z.lazy(() => CustomerSelf$outboundSchema).optional(),
1282
- dashboard: z.lazy(() => ListCustomersDashboard$outboundSchema).optional(),
1281
+ self: z.lazy(() => CustomerSelf$outboundSchema),
1282
+ dashboard: z.lazy(() => ListCustomersDashboard$outboundSchema),
1283
1283
  payments: z.nullable(z.lazy(() => ListCustomersPayments$outboundSchema))
1284
1284
  .optional(),
1285
1285
  mandates: z.nullable(z.lazy(() => ListCustomersMandates$outboundSchema))
@@ -1287,7 +1287,7 @@ export const CustomerLinks$outboundSchema: z.ZodType<
1287
1287
  subscriptions: z.nullable(
1288
1288
  z.lazy(() => ListCustomersSubscriptions$outboundSchema),
1289
1289
  ).optional(),
1290
- documentation: z.lazy(() => CustomerDocumentation$outboundSchema).optional(),
1290
+ documentation: z.lazy(() => CustomerDocumentation$outboundSchema),
1291
1291
  });
1292
1292
 
1293
1293
  /**
@@ -1324,20 +1324,20 @@ export const ListCustomersCustomer$inboundSchema: z.ZodType<
1324
1324
  unknown
1325
1325
  > = z.object({
1326
1326
  resource: z.string().default("customer"),
1327
- id: z.string().optional(),
1328
- mode: ListCustomersMode$inboundSchema.optional(),
1329
- name: z.nullable(z.string()).optional(),
1330
- email: z.nullable(z.string()).optional(),
1331
- locale: z.nullable(ListCustomersLocale$inboundSchema).optional(),
1327
+ id: z.string(),
1328
+ mode: ListCustomersMode$inboundSchema,
1329
+ name: z.nullable(z.string()),
1330
+ email: z.nullable(z.string()),
1331
+ locale: z.nullable(ListCustomersLocale$inboundSchema),
1332
1332
  metadata: z.nullable(
1333
1333
  z.union([
1334
1334
  z.lazy(() => ListCustomersMetadata$inboundSchema),
1335
1335
  z.string(),
1336
1336
  z.array(z.string()),
1337
1337
  ]),
1338
- ).optional(),
1339
- createdAt: z.string().optional(),
1340
- _links: z.lazy(() => CustomerLinks$inboundSchema).optional(),
1338
+ ),
1339
+ createdAt: z.string(),
1340
+ _links: z.lazy(() => CustomerLinks$inboundSchema),
1341
1341
  }).transform((v) => {
1342
1342
  return remap$(v, {
1343
1343
  "_links": "links",
@@ -1347,19 +1347,14 @@ export const ListCustomersCustomer$inboundSchema: z.ZodType<
1347
1347
  /** @internal */
1348
1348
  export type ListCustomersCustomer$Outbound = {
1349
1349
  resource: string;
1350
- id?: string | undefined;
1351
- mode?: string | undefined;
1352
- name?: string | null | undefined;
1353
- email?: string | null | undefined;
1354
- locale?: string | null | undefined;
1355
- metadata?:
1356
- | ListCustomersMetadata$Outbound
1357
- | string
1358
- | Array<string>
1359
- | null
1360
- | undefined;
1361
- createdAt?: string | undefined;
1362
- _links?: CustomerLinks$Outbound | undefined;
1350
+ id: string;
1351
+ mode: string;
1352
+ name: string | null;
1353
+ email: string | null;
1354
+ locale: string | null;
1355
+ metadata: ListCustomersMetadata$Outbound | string | Array<string> | null;
1356
+ createdAt: string;
1357
+ _links: CustomerLinks$Outbound;
1363
1358
  };
1364
1359
 
1365
1360
  /** @internal */
@@ -1369,20 +1364,20 @@ export const ListCustomersCustomer$outboundSchema: z.ZodType<
1369
1364
  ListCustomersCustomer
1370
1365
  > = z.object({
1371
1366
  resource: z.string().default("customer"),
1372
- id: z.string().optional(),
1373
- mode: ListCustomersMode$outboundSchema.optional(),
1374
- name: z.nullable(z.string()).optional(),
1375
- email: z.nullable(z.string()).optional(),
1376
- locale: z.nullable(ListCustomersLocale$outboundSchema).optional(),
1367
+ id: z.string(),
1368
+ mode: ListCustomersMode$outboundSchema,
1369
+ name: z.nullable(z.string()),
1370
+ email: z.nullable(z.string()),
1371
+ locale: z.nullable(ListCustomersLocale$outboundSchema),
1377
1372
  metadata: z.nullable(
1378
1373
  z.union([
1379
1374
  z.lazy(() => ListCustomersMetadata$outboundSchema),
1380
1375
  z.string(),
1381
1376
  z.array(z.string()),
1382
1377
  ]),
1383
- ).optional(),
1384
- createdAt: z.string().optional(),
1385
- links: z.lazy(() => CustomerLinks$outboundSchema).optional(),
1378
+ ),
1379
+ createdAt: z.string(),
1380
+ links: z.lazy(() => CustomerLinks$outboundSchema),
1386
1381
  }).transform((v) => {
1387
1382
  return remap$(v, {
1388
1383
  links: "_links",
@@ -253,15 +253,15 @@ export type MandateLinks = {
253
253
  /**
254
254
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
255
255
  */
256
- self?: MandateSelf | undefined;
256
+ self: MandateSelf;
257
257
  /**
258
258
  * The API resource URL of the [customer](get-customer) that this mandate belongs to.
259
259
  */
260
- customer?: ListMandatesCustomer | undefined;
260
+ customer: ListMandatesCustomer;
261
261
  /**
262
262
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
263
263
  */
264
- documentation?: MandateDocumentation | undefined;
264
+ documentation: MandateDocumentation;
265
265
  };
266
266
 
267
267
  export type ListMandatesMandate = {
@@ -272,11 +272,11 @@ export type ListMandatesMandate = {
272
272
  /**
273
273
  * The identifier uniquely referring to this mandate. Example: `mdt_pWUnw6pkBN`.
274
274
  */
275
- id?: string | undefined;
275
+ id: string;
276
276
  /**
277
277
  * Whether this entity was created in live mode or in test mode.
278
278
  */
279
- mode?: ListMandatesMode | undefined;
279
+ mode: ListMandatesMode;
280
280
  /**
281
281
  * Payment method of the mandate.
282
282
  *
@@ -284,38 +284,38 @@ export type ListMandatesMandate = {
284
284
  *
285
285
  * SEPA Direct Debit and PayPal mandates can be created directly.
286
286
  */
287
- method?: ListMandatesMethod | undefined;
288
- details?: ListMandatesDetails | undefined;
287
+ method: ListMandatesMethod;
288
+ details: ListMandatesDetails;
289
289
  /**
290
290
  * The date when the mandate was signed in `YYYY-MM-DD` format.
291
291
  */
292
- signatureDate?: string | null | undefined;
292
+ signatureDate: string | null;
293
293
  /**
294
294
  * A custom mandate reference. For SEPA Direct Debit, it is vital to provide a unique reference. Some banks will
295
295
  *
296
296
  * @remarks
297
297
  * decline Direct Debit payments if the mandate reference is not unique.
298
298
  */
299
- mandateReference?: string | null | undefined;
299
+ mandateReference: string | null;
300
300
  /**
301
301
  * The status of the mandate. A status can be `pending` for mandates when the first payment is not yet finalized, or
302
302
  *
303
303
  * @remarks
304
304
  * when we did not received the IBAN yet from the first payment.
305
305
  */
306
- status?: ListMandatesStatus | undefined;
306
+ status: ListMandatesStatus;
307
307
  /**
308
308
  * The identifier referring to the [customer](get-customer) this mandate was linked to.
309
309
  */
310
- customerId?: string | undefined;
310
+ customerId: string;
311
311
  /**
312
312
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
313
313
  */
314
- createdAt?: string | undefined;
314
+ createdAt: string;
315
315
  /**
316
316
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
317
317
  */
318
- links?: MandateLinks | undefined;
318
+ links: MandateLinks;
319
319
  };
320
320
 
321
321
  export type ListMandatesEmbedded = {
@@ -1079,16 +1079,16 @@ export const MandateLinks$inboundSchema: z.ZodType<
1079
1079
  z.ZodTypeDef,
1080
1080
  unknown
1081
1081
  > = z.object({
1082
- self: z.lazy(() => MandateSelf$inboundSchema).optional(),
1083
- customer: z.lazy(() => ListMandatesCustomer$inboundSchema).optional(),
1084
- documentation: z.lazy(() => MandateDocumentation$inboundSchema).optional(),
1082
+ self: z.lazy(() => MandateSelf$inboundSchema),
1083
+ customer: z.lazy(() => ListMandatesCustomer$inboundSchema),
1084
+ documentation: z.lazy(() => MandateDocumentation$inboundSchema),
1085
1085
  });
1086
1086
 
1087
1087
  /** @internal */
1088
1088
  export type MandateLinks$Outbound = {
1089
- self?: MandateSelf$Outbound | undefined;
1090
- customer?: ListMandatesCustomer$Outbound | undefined;
1091
- documentation?: MandateDocumentation$Outbound | undefined;
1089
+ self: MandateSelf$Outbound;
1090
+ customer: ListMandatesCustomer$Outbound;
1091
+ documentation: MandateDocumentation$Outbound;
1092
1092
  };
1093
1093
 
1094
1094
  /** @internal */
@@ -1097,9 +1097,9 @@ export const MandateLinks$outboundSchema: z.ZodType<
1097
1097
  z.ZodTypeDef,
1098
1098
  MandateLinks
1099
1099
  > = z.object({
1100
- self: z.lazy(() => MandateSelf$outboundSchema).optional(),
1101
- customer: z.lazy(() => ListMandatesCustomer$outboundSchema).optional(),
1102
- documentation: z.lazy(() => MandateDocumentation$outboundSchema).optional(),
1100
+ self: z.lazy(() => MandateSelf$outboundSchema),
1101
+ customer: z.lazy(() => ListMandatesCustomer$outboundSchema),
1102
+ documentation: z.lazy(() => MandateDocumentation$outboundSchema),
1103
1103
  });
1104
1104
 
1105
1105
  /**
@@ -1136,16 +1136,16 @@ export const ListMandatesMandate$inboundSchema: z.ZodType<
1136
1136
  unknown
1137
1137
  > = z.object({
1138
1138
  resource: z.string().default("mandate"),
1139
- id: z.string().optional(),
1140
- mode: ListMandatesMode$inboundSchema.optional(),
1141
- method: ListMandatesMethod$inboundSchema.optional(),
1142
- details: z.lazy(() => ListMandatesDetails$inboundSchema).optional(),
1143
- signatureDate: z.nullable(z.string()).optional(),
1144
- mandateReference: z.nullable(z.string()).optional(),
1145
- status: ListMandatesStatus$inboundSchema.optional(),
1146
- customerId: z.string().optional(),
1147
- createdAt: z.string().optional(),
1148
- _links: z.lazy(() => MandateLinks$inboundSchema).optional(),
1139
+ id: z.string(),
1140
+ mode: ListMandatesMode$inboundSchema,
1141
+ method: ListMandatesMethod$inboundSchema,
1142
+ details: z.lazy(() => ListMandatesDetails$inboundSchema),
1143
+ signatureDate: z.nullable(z.string()),
1144
+ mandateReference: z.nullable(z.string()),
1145
+ status: ListMandatesStatus$inboundSchema,
1146
+ customerId: z.string(),
1147
+ createdAt: z.string(),
1148
+ _links: z.lazy(() => MandateLinks$inboundSchema),
1149
1149
  }).transform((v) => {
1150
1150
  return remap$(v, {
1151
1151
  "_links": "links",
@@ -1155,16 +1155,16 @@ export const ListMandatesMandate$inboundSchema: z.ZodType<
1155
1155
  /** @internal */
1156
1156
  export type ListMandatesMandate$Outbound = {
1157
1157
  resource: string;
1158
- id?: string | undefined;
1159
- mode?: string | undefined;
1160
- method?: string | undefined;
1161
- details?: ListMandatesDetails$Outbound | undefined;
1162
- signatureDate?: string | null | undefined;
1163
- mandateReference?: string | null | undefined;
1164
- status?: string | undefined;
1165
- customerId?: string | undefined;
1166
- createdAt?: string | undefined;
1167
- _links?: MandateLinks$Outbound | undefined;
1158
+ id: string;
1159
+ mode: string;
1160
+ method: string;
1161
+ details: ListMandatesDetails$Outbound;
1162
+ signatureDate: string | null;
1163
+ mandateReference: string | null;
1164
+ status: string;
1165
+ customerId: string;
1166
+ createdAt: string;
1167
+ _links: MandateLinks$Outbound;
1168
1168
  };
1169
1169
 
1170
1170
  /** @internal */
@@ -1174,16 +1174,16 @@ export const ListMandatesMandate$outboundSchema: z.ZodType<
1174
1174
  ListMandatesMandate
1175
1175
  > = z.object({
1176
1176
  resource: z.string().default("mandate"),
1177
- id: z.string().optional(),
1178
- mode: ListMandatesMode$outboundSchema.optional(),
1179
- method: ListMandatesMethod$outboundSchema.optional(),
1180
- details: z.lazy(() => ListMandatesDetails$outboundSchema).optional(),
1181
- signatureDate: z.nullable(z.string()).optional(),
1182
- mandateReference: z.nullable(z.string()).optional(),
1183
- status: ListMandatesStatus$outboundSchema.optional(),
1184
- customerId: z.string().optional(),
1185
- createdAt: z.string().optional(),
1186
- links: z.lazy(() => MandateLinks$outboundSchema).optional(),
1177
+ id: z.string(),
1178
+ mode: ListMandatesMode$outboundSchema,
1179
+ method: ListMandatesMethod$outboundSchema,
1180
+ details: z.lazy(() => ListMandatesDetails$outboundSchema),
1181
+ signatureDate: z.nullable(z.string()),
1182
+ mandateReference: z.nullable(z.string()),
1183
+ status: ListMandatesStatus$outboundSchema,
1184
+ customerId: z.string(),
1185
+ createdAt: z.string(),
1186
+ links: z.lazy(() => MandateLinks$outboundSchema),
1187
1187
  }).transform((v) => {
1188
1188
  return remap$(v, {
1189
1189
  links: "_links",
@@ -10,15 +10,21 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  /**
13
- * This endpoint allows you to include additional information via the `include` query string parameter.
13
+ * This endpoint allows embedding related API items by appending the following values via the `embed` query string
14
+ *
15
+ * @remarks
16
+ * parameter.
14
17
  */
15
- export const ListRefundsInclude = {
18
+ export const ListRefundsEmbed = {
16
19
  Payment: "payment",
17
20
  } as const;
18
21
  /**
19
- * This endpoint allows you to include additional information via the `include` query string parameter.
22
+ * This endpoint allows embedding related API items by appending the following values via the `embed` query string
23
+ *
24
+ * @remarks
25
+ * parameter.
20
26
  */
21
- export type ListRefundsInclude = ClosedEnum<typeof ListRefundsInclude>;
27
+ export type ListRefundsEmbed = ClosedEnum<typeof ListRefundsEmbed>;
22
28
 
23
29
  export type ListRefundsRequest = {
24
30
  /**
@@ -37,9 +43,12 @@ export type ListRefundsRequest = {
37
43
  */
38
44
  limit?: number | null | undefined;
39
45
  /**
40
- * This endpoint allows you to include additional information via the `include` query string parameter.
46
+ * This endpoint allows embedding related API items by appending the following values via the `embed` query string
47
+ *
48
+ * @remarks
49
+ * parameter.
41
50
  */
42
- include?: ListRefundsInclude | null | undefined;
51
+ embed?: ListRefundsEmbed | undefined;
43
52
  /**
44
53
  * Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
45
54
  *
@@ -294,11 +303,11 @@ export type ListRefundsRefundLinks = {
294
303
  /**
295
304
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
296
305
  */
297
- self?: ListRefundsRefundSelf | undefined;
306
+ self: ListRefundsRefundSelf;
298
307
  /**
299
308
  * The API resource URL of the [payment](get-payment) that this refund belongs to.
300
309
  */
301
- payment?: ListRefundsPayment | undefined;
310
+ payment: ListRefundsPayment;
302
311
  /**
303
312
  * The API resource URL of the [settlement](get-settlement) this refund has been settled with. Not present if not
304
313
  *
@@ -309,7 +318,7 @@ export type ListRefundsRefundLinks = {
309
318
  /**
310
319
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
311
320
  */
312
- documentation?: ListRefundsRefundDocumentation | undefined;
321
+ documentation: ListRefundsRefundDocumentation;
313
322
  };
314
323
 
315
324
  export type ListRefundsRefund = {
@@ -513,24 +522,24 @@ export type ListRefundsResponse = {
513
522
  };
514
523
 
515
524
  /** @internal */
516
- export const ListRefundsInclude$inboundSchema: z.ZodNativeEnum<
517
- typeof ListRefundsInclude
518
- > = z.nativeEnum(ListRefundsInclude);
525
+ export const ListRefundsEmbed$inboundSchema: z.ZodNativeEnum<
526
+ typeof ListRefundsEmbed
527
+ > = z.nativeEnum(ListRefundsEmbed);
519
528
 
520
529
  /** @internal */
521
- export const ListRefundsInclude$outboundSchema: z.ZodNativeEnum<
522
- typeof ListRefundsInclude
523
- > = ListRefundsInclude$inboundSchema;
530
+ export const ListRefundsEmbed$outboundSchema: z.ZodNativeEnum<
531
+ typeof ListRefundsEmbed
532
+ > = ListRefundsEmbed$inboundSchema;
524
533
 
525
534
  /**
526
535
  * @internal
527
536
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
528
537
  */
529
- export namespace ListRefundsInclude$ {
530
- /** @deprecated use `ListRefundsInclude$inboundSchema` instead. */
531
- export const inboundSchema = ListRefundsInclude$inboundSchema;
532
- /** @deprecated use `ListRefundsInclude$outboundSchema` instead. */
533
- export const outboundSchema = ListRefundsInclude$outboundSchema;
538
+ export namespace ListRefundsEmbed$ {
539
+ /** @deprecated use `ListRefundsEmbed$inboundSchema` instead. */
540
+ export const inboundSchema = ListRefundsEmbed$inboundSchema;
541
+ /** @deprecated use `ListRefundsEmbed$outboundSchema` instead. */
542
+ export const outboundSchema = ListRefundsEmbed$outboundSchema;
534
543
  }
535
544
 
536
545
  /** @internal */
@@ -542,7 +551,7 @@ export const ListRefundsRequest$inboundSchema: z.ZodType<
542
551
  paymentId: z.string(),
543
552
  from: z.string().optional(),
544
553
  limit: z.nullable(z.number().int().default(50)),
545
- include: z.nullable(ListRefundsInclude$inboundSchema).optional(),
554
+ embed: ListRefundsEmbed$inboundSchema.optional(),
546
555
  testmode: z.nullable(z.boolean()).optional(),
547
556
  });
548
557
 
@@ -551,7 +560,7 @@ export type ListRefundsRequest$Outbound = {
551
560
  paymentId: string;
552
561
  from?: string | undefined;
553
562
  limit: number | null;
554
- include?: string | null | undefined;
563
+ embed?: string | undefined;
555
564
  testmode?: boolean | null | undefined;
556
565
  };
557
566
 
@@ -564,7 +573,7 @@ export const ListRefundsRequest$outboundSchema: z.ZodType<
564
573
  paymentId: z.string(),
565
574
  from: z.string().optional(),
566
575
  limit: z.nullable(z.number().int().default(50)),
567
- include: z.nullable(ListRefundsInclude$outboundSchema).optional(),
576
+ embed: ListRefundsEmbed$outboundSchema.optional(),
568
577
  testmode: z.nullable(z.boolean()).optional(),
569
578
  });
570
579
 
@@ -1582,20 +1591,19 @@ export const ListRefundsRefundLinks$inboundSchema: z.ZodType<
1582
1591
  z.ZodTypeDef,
1583
1592
  unknown
1584
1593
  > = z.object({
1585
- self: z.lazy(() => ListRefundsRefundSelf$inboundSchema).optional(),
1586
- payment: z.lazy(() => ListRefundsPayment$inboundSchema).optional(),
1594
+ self: z.lazy(() => ListRefundsRefundSelf$inboundSchema),
1595
+ payment: z.lazy(() => ListRefundsPayment$inboundSchema),
1587
1596
  settlement: z.nullable(z.lazy(() => ListRefundsSettlement$inboundSchema))
1588
1597
  .optional(),
1589
- documentation: z.lazy(() => ListRefundsRefundDocumentation$inboundSchema)
1590
- .optional(),
1598
+ documentation: z.lazy(() => ListRefundsRefundDocumentation$inboundSchema),
1591
1599
  });
1592
1600
 
1593
1601
  /** @internal */
1594
1602
  export type ListRefundsRefundLinks$Outbound = {
1595
- self?: ListRefundsRefundSelf$Outbound | undefined;
1596
- payment?: ListRefundsPayment$Outbound | undefined;
1603
+ self: ListRefundsRefundSelf$Outbound;
1604
+ payment: ListRefundsPayment$Outbound;
1597
1605
  settlement?: ListRefundsSettlement$Outbound | null | undefined;
1598
- documentation?: ListRefundsRefundDocumentation$Outbound | undefined;
1606
+ documentation: ListRefundsRefundDocumentation$Outbound;
1599
1607
  };
1600
1608
 
1601
1609
  /** @internal */
@@ -1604,12 +1612,11 @@ export const ListRefundsRefundLinks$outboundSchema: z.ZodType<
1604
1612
  z.ZodTypeDef,
1605
1613
  ListRefundsRefundLinks
1606
1614
  > = z.object({
1607
- self: z.lazy(() => ListRefundsRefundSelf$outboundSchema).optional(),
1608
- payment: z.lazy(() => ListRefundsPayment$outboundSchema).optional(),
1615
+ self: z.lazy(() => ListRefundsRefundSelf$outboundSchema),
1616
+ payment: z.lazy(() => ListRefundsPayment$outboundSchema),
1609
1617
  settlement: z.nullable(z.lazy(() => ListRefundsSettlement$outboundSchema))
1610
1618
  .optional(),
1611
- documentation: z.lazy(() => ListRefundsRefundDocumentation$outboundSchema)
1612
- .optional(),
1619
+ documentation: z.lazy(() => ListRefundsRefundDocumentation$outboundSchema),
1613
1620
  });
1614
1621
 
1615
1622
  /**
@@ -1649,7 +1656,7 @@ export const ListRefundsRefund$inboundSchema: z.ZodType<
1649
1656
  z.ZodTypeDef,
1650
1657
  unknown
1651
1658
  > = z.object({
1652
- resource: z.string().default("refund"),
1659
+ resource: z.string().optional(),
1653
1660
  id: z.string().optional(),
1654
1661
  mode: ListRefundsMode$inboundSchema.optional(),
1655
1662
  description: z.string().optional(),
@@ -1682,7 +1689,7 @@ export const ListRefundsRefund$inboundSchema: z.ZodType<
1682
1689
 
1683
1690
  /** @internal */
1684
1691
  export type ListRefundsRefund$Outbound = {
1685
- resource: string;
1692
+ resource?: string | undefined;
1686
1693
  id?: string | undefined;
1687
1694
  mode?: string | undefined;
1688
1695
  description?: string | undefined;
@@ -1712,7 +1719,7 @@ export const ListRefundsRefund$outboundSchema: z.ZodType<
1712
1719
  z.ZodTypeDef,
1713
1720
  ListRefundsRefund
1714
1721
  > = z.object({
1715
- resource: z.string().default("refund"),
1722
+ resource: z.string().optional(),
1716
1723
  id: z.string().optional(),
1717
1724
  mode: ListRefundsMode$outboundSchema.optional(),
1718
1725
  description: z.string().optional(),