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
@@ -206,15 +206,15 @@ export type GetMandateLinks = {
206
206
  /**
207
207
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
208
208
  */
209
- self?: GetMandateSelf | undefined;
209
+ self: GetMandateSelf;
210
210
  /**
211
211
  * The API resource URL of the [customer](get-customer) that this mandate belongs to.
212
212
  */
213
- customer?: GetMandateCustomer | undefined;
213
+ customer: GetMandateCustomer;
214
214
  /**
215
215
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
216
216
  */
217
- documentation?: GetMandateDocumentation | undefined;
217
+ documentation: GetMandateDocumentation;
218
218
  };
219
219
 
220
220
  /**
@@ -228,11 +228,11 @@ export type GetMandateResponse = {
228
228
  /**
229
229
  * The identifier uniquely referring to this mandate. Example: `mdt_pWUnw6pkBN`.
230
230
  */
231
- id?: string | undefined;
231
+ id: string;
232
232
  /**
233
233
  * Whether this entity was created in live mode or in test mode.
234
234
  */
235
- mode?: GetMandateMode | undefined;
235
+ mode: GetMandateMode;
236
236
  /**
237
237
  * Payment method of the mandate.
238
238
  *
@@ -240,38 +240,38 @@ export type GetMandateResponse = {
240
240
  *
241
241
  * SEPA Direct Debit and PayPal mandates can be created directly.
242
242
  */
243
- method?: GetMandateMethod | undefined;
244
- details?: GetMandateDetails | undefined;
243
+ method: GetMandateMethod;
244
+ details: GetMandateDetails;
245
245
  /**
246
246
  * The date when the mandate was signed in `YYYY-MM-DD` format.
247
247
  */
248
- signatureDate?: string | null | undefined;
248
+ signatureDate: string | null;
249
249
  /**
250
250
  * A custom mandate reference. For SEPA Direct Debit, it is vital to provide a unique reference. Some banks will
251
251
  *
252
252
  * @remarks
253
253
  * decline Direct Debit payments if the mandate reference is not unique.
254
254
  */
255
- mandateReference?: string | null | undefined;
255
+ mandateReference: string | null;
256
256
  /**
257
257
  * The status of the mandate. A status can be `pending` for mandates when the first payment is not yet finalized, or
258
258
  *
259
259
  * @remarks
260
260
  * when we did not received the IBAN yet from the first payment.
261
261
  */
262
- status?: GetMandateStatus | undefined;
262
+ status: GetMandateStatus;
263
263
  /**
264
264
  * The identifier referring to the [customer](get-customer) this mandate was linked to.
265
265
  */
266
- customerId?: string | undefined;
266
+ customerId: string;
267
267
  /**
268
268
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
269
269
  */
270
- createdAt?: string | undefined;
270
+ createdAt: string;
271
271
  /**
272
272
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
273
273
  */
274
- links?: GetMandateLinks | undefined;
274
+ links: GetMandateLinks;
275
275
  };
276
276
 
277
277
  /** @internal */
@@ -779,16 +779,16 @@ export const GetMandateLinks$inboundSchema: z.ZodType<
779
779
  z.ZodTypeDef,
780
780
  unknown
781
781
  > = z.object({
782
- self: z.lazy(() => GetMandateSelf$inboundSchema).optional(),
783
- customer: z.lazy(() => GetMandateCustomer$inboundSchema).optional(),
784
- documentation: z.lazy(() => GetMandateDocumentation$inboundSchema).optional(),
782
+ self: z.lazy(() => GetMandateSelf$inboundSchema),
783
+ customer: z.lazy(() => GetMandateCustomer$inboundSchema),
784
+ documentation: z.lazy(() => GetMandateDocumentation$inboundSchema),
785
785
  });
786
786
 
787
787
  /** @internal */
788
788
  export type GetMandateLinks$Outbound = {
789
- self?: GetMandateSelf$Outbound | undefined;
790
- customer?: GetMandateCustomer$Outbound | undefined;
791
- documentation?: GetMandateDocumentation$Outbound | undefined;
789
+ self: GetMandateSelf$Outbound;
790
+ customer: GetMandateCustomer$Outbound;
791
+ documentation: GetMandateDocumentation$Outbound;
792
792
  };
793
793
 
794
794
  /** @internal */
@@ -797,10 +797,9 @@ export const GetMandateLinks$outboundSchema: z.ZodType<
797
797
  z.ZodTypeDef,
798
798
  GetMandateLinks
799
799
  > = z.object({
800
- self: z.lazy(() => GetMandateSelf$outboundSchema).optional(),
801
- customer: z.lazy(() => GetMandateCustomer$outboundSchema).optional(),
802
- documentation: z.lazy(() => GetMandateDocumentation$outboundSchema)
803
- .optional(),
800
+ self: z.lazy(() => GetMandateSelf$outboundSchema),
801
+ customer: z.lazy(() => GetMandateCustomer$outboundSchema),
802
+ documentation: z.lazy(() => GetMandateDocumentation$outboundSchema),
804
803
  });
805
804
 
806
805
  /**
@@ -839,16 +838,16 @@ export const GetMandateResponse$inboundSchema: z.ZodType<
839
838
  unknown
840
839
  > = z.object({
841
840
  resource: z.string().default("mandate"),
842
- id: z.string().optional(),
843
- mode: GetMandateMode$inboundSchema.optional(),
844
- method: GetMandateMethod$inboundSchema.optional(),
845
- details: z.lazy(() => GetMandateDetails$inboundSchema).optional(),
846
- signatureDate: z.nullable(z.string()).optional(),
847
- mandateReference: z.nullable(z.string()).optional(),
848
- status: GetMandateStatus$inboundSchema.optional(),
849
- customerId: z.string().optional(),
850
- createdAt: z.string().optional(),
851
- _links: z.lazy(() => GetMandateLinks$inboundSchema).optional(),
841
+ id: z.string(),
842
+ mode: GetMandateMode$inboundSchema,
843
+ method: GetMandateMethod$inboundSchema,
844
+ details: z.lazy(() => GetMandateDetails$inboundSchema),
845
+ signatureDate: z.nullable(z.string()),
846
+ mandateReference: z.nullable(z.string()),
847
+ status: GetMandateStatus$inboundSchema,
848
+ customerId: z.string(),
849
+ createdAt: z.string(),
850
+ _links: z.lazy(() => GetMandateLinks$inboundSchema),
852
851
  }).transform((v) => {
853
852
  return remap$(v, {
854
853
  "_links": "links",
@@ -858,16 +857,16 @@ export const GetMandateResponse$inboundSchema: z.ZodType<
858
857
  /** @internal */
859
858
  export type GetMandateResponse$Outbound = {
860
859
  resource: string;
861
- id?: string | undefined;
862
- mode?: string | undefined;
863
- method?: string | undefined;
864
- details?: GetMandateDetails$Outbound | undefined;
865
- signatureDate?: string | null | undefined;
866
- mandateReference?: string | null | undefined;
867
- status?: string | undefined;
868
- customerId?: string | undefined;
869
- createdAt?: string | undefined;
870
- _links?: GetMandateLinks$Outbound | undefined;
860
+ id: string;
861
+ mode: string;
862
+ method: string;
863
+ details: GetMandateDetails$Outbound;
864
+ signatureDate: string | null;
865
+ mandateReference: string | null;
866
+ status: string;
867
+ customerId: string;
868
+ createdAt: string;
869
+ _links: GetMandateLinks$Outbound;
871
870
  };
872
871
 
873
872
  /** @internal */
@@ -877,16 +876,16 @@ export const GetMandateResponse$outboundSchema: z.ZodType<
877
876
  GetMandateResponse
878
877
  > = z.object({
879
878
  resource: z.string().default("mandate"),
880
- id: z.string().optional(),
881
- mode: GetMandateMode$outboundSchema.optional(),
882
- method: GetMandateMethod$outboundSchema.optional(),
883
- details: z.lazy(() => GetMandateDetails$outboundSchema).optional(),
884
- signatureDate: z.nullable(z.string()).optional(),
885
- mandateReference: z.nullable(z.string()).optional(),
886
- status: GetMandateStatus$outboundSchema.optional(),
887
- customerId: z.string().optional(),
888
- createdAt: z.string().optional(),
889
- links: z.lazy(() => GetMandateLinks$outboundSchema).optional(),
879
+ id: z.string(),
880
+ mode: GetMandateMode$outboundSchema,
881
+ method: GetMandateMethod$outboundSchema,
882
+ details: z.lazy(() => GetMandateDetails$outboundSchema),
883
+ signatureDate: z.nullable(z.string()),
884
+ mandateReference: z.nullable(z.string()),
885
+ status: GetMandateStatus$outboundSchema,
886
+ customerId: z.string(),
887
+ createdAt: z.string(),
888
+ links: z.lazy(() => GetMandateLinks$outboundSchema),
890
889
  }).transform((v) => {
891
890
  return remap$(v, {
892
891
  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 GetRefundInclude = {
18
+ export const GetRefundEmbed = {
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 GetRefundInclude = ClosedEnum<typeof GetRefundInclude>;
27
+ export type GetRefundEmbed = ClosedEnum<typeof GetRefundEmbed>;
22
28
 
23
29
  export type GetRefundRequest = {
24
30
  /**
@@ -30,9 +36,12 @@ export type GetRefundRequest = {
30
36
  */
31
37
  refundId: string;
32
38
  /**
33
- * This endpoint allows you to include additional information via the `include` query string parameter.
39
+ * This endpoint allows embedding related API items by appending the following values via the `embed` query string
40
+ *
41
+ * @remarks
42
+ * parameter.
34
43
  */
35
- include?: GetRefundInclude | null | undefined;
44
+ embed?: GetRefundEmbed | undefined;
36
45
  /**
37
46
  * Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
38
47
  *
@@ -269,11 +278,11 @@ export type GetRefundLinks = {
269
278
  /**
270
279
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
271
280
  */
272
- self?: GetRefundSelf | undefined;
281
+ self: GetRefundSelf;
273
282
  /**
274
283
  * The API resource URL of the [payment](get-payment) that this refund belongs to.
275
284
  */
276
- payment?: GetRefundPayment | undefined;
285
+ payment: GetRefundPayment;
277
286
  /**
278
287
  * The API resource URL of the [settlement](get-settlement) this refund has been settled with. Not present if not
279
288
  *
@@ -284,7 +293,7 @@ export type GetRefundLinks = {
284
293
  /**
285
294
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
286
295
  */
287
- documentation?: GetRefundDocumentation | undefined;
296
+ documentation: GetRefundDocumentation;
288
297
  };
289
298
 
290
299
  /**
@@ -382,24 +391,24 @@ export type GetRefundResponse = {
382
391
  };
383
392
 
384
393
  /** @internal */
385
- export const GetRefundInclude$inboundSchema: z.ZodNativeEnum<
386
- typeof GetRefundInclude
387
- > = z.nativeEnum(GetRefundInclude);
394
+ export const GetRefundEmbed$inboundSchema: z.ZodNativeEnum<
395
+ typeof GetRefundEmbed
396
+ > = z.nativeEnum(GetRefundEmbed);
388
397
 
389
398
  /** @internal */
390
- export const GetRefundInclude$outboundSchema: z.ZodNativeEnum<
391
- typeof GetRefundInclude
392
- > = GetRefundInclude$inboundSchema;
399
+ export const GetRefundEmbed$outboundSchema: z.ZodNativeEnum<
400
+ typeof GetRefundEmbed
401
+ > = GetRefundEmbed$inboundSchema;
393
402
 
394
403
  /**
395
404
  * @internal
396
405
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
397
406
  */
398
- export namespace GetRefundInclude$ {
399
- /** @deprecated use `GetRefundInclude$inboundSchema` instead. */
400
- export const inboundSchema = GetRefundInclude$inboundSchema;
401
- /** @deprecated use `GetRefundInclude$outboundSchema` instead. */
402
- export const outboundSchema = GetRefundInclude$outboundSchema;
407
+ export namespace GetRefundEmbed$ {
408
+ /** @deprecated use `GetRefundEmbed$inboundSchema` instead. */
409
+ export const inboundSchema = GetRefundEmbed$inboundSchema;
410
+ /** @deprecated use `GetRefundEmbed$outboundSchema` instead. */
411
+ export const outboundSchema = GetRefundEmbed$outboundSchema;
403
412
  }
404
413
 
405
414
  /** @internal */
@@ -410,7 +419,7 @@ export const GetRefundRequest$inboundSchema: z.ZodType<
410
419
  > = z.object({
411
420
  paymentId: z.string(),
412
421
  refundId: z.string(),
413
- include: z.nullable(GetRefundInclude$inboundSchema).optional(),
422
+ embed: GetRefundEmbed$inboundSchema.optional(),
414
423
  testmode: z.nullable(z.boolean()).optional(),
415
424
  });
416
425
 
@@ -418,7 +427,7 @@ export const GetRefundRequest$inboundSchema: z.ZodType<
418
427
  export type GetRefundRequest$Outbound = {
419
428
  paymentId: string;
420
429
  refundId: string;
421
- include?: string | null | undefined;
430
+ embed?: string | undefined;
422
431
  testmode?: boolean | null | undefined;
423
432
  };
424
433
 
@@ -430,7 +439,7 @@ export const GetRefundRequest$outboundSchema: z.ZodType<
430
439
  > = z.object({
431
440
  paymentId: z.string(),
432
441
  refundId: z.string(),
433
- include: z.nullable(GetRefundInclude$outboundSchema).optional(),
442
+ embed: GetRefundEmbed$outboundSchema.optional(),
434
443
  testmode: z.nullable(z.boolean()).optional(),
435
444
  });
436
445
 
@@ -1316,19 +1325,19 @@ export const GetRefundLinks$inboundSchema: z.ZodType<
1316
1325
  z.ZodTypeDef,
1317
1326
  unknown
1318
1327
  > = z.object({
1319
- self: z.lazy(() => GetRefundSelf$inboundSchema).optional(),
1320
- payment: z.lazy(() => GetRefundPayment$inboundSchema).optional(),
1328
+ self: z.lazy(() => GetRefundSelf$inboundSchema),
1329
+ payment: z.lazy(() => GetRefundPayment$inboundSchema),
1321
1330
  settlement: z.nullable(z.lazy(() => GetRefundSettlement$inboundSchema))
1322
1331
  .optional(),
1323
- documentation: z.lazy(() => GetRefundDocumentation$inboundSchema).optional(),
1332
+ documentation: z.lazy(() => GetRefundDocumentation$inboundSchema),
1324
1333
  });
1325
1334
 
1326
1335
  /** @internal */
1327
1336
  export type GetRefundLinks$Outbound = {
1328
- self?: GetRefundSelf$Outbound | undefined;
1329
- payment?: GetRefundPayment$Outbound | undefined;
1337
+ self: GetRefundSelf$Outbound;
1338
+ payment: GetRefundPayment$Outbound;
1330
1339
  settlement?: GetRefundSettlement$Outbound | null | undefined;
1331
- documentation?: GetRefundDocumentation$Outbound | undefined;
1340
+ documentation: GetRefundDocumentation$Outbound;
1332
1341
  };
1333
1342
 
1334
1343
  /** @internal */
@@ -1337,11 +1346,11 @@ export const GetRefundLinks$outboundSchema: z.ZodType<
1337
1346
  z.ZodTypeDef,
1338
1347
  GetRefundLinks
1339
1348
  > = z.object({
1340
- self: z.lazy(() => GetRefundSelf$outboundSchema).optional(),
1341
- payment: z.lazy(() => GetRefundPayment$outboundSchema).optional(),
1349
+ self: z.lazy(() => GetRefundSelf$outboundSchema),
1350
+ payment: z.lazy(() => GetRefundPayment$outboundSchema),
1342
1351
  settlement: z.nullable(z.lazy(() => GetRefundSettlement$outboundSchema))
1343
1352
  .optional(),
1344
- documentation: z.lazy(() => GetRefundDocumentation$outboundSchema).optional(),
1353
+ documentation: z.lazy(() => GetRefundDocumentation$outboundSchema),
1345
1354
  });
1346
1355
 
1347
1356
  /**
@@ -1377,7 +1386,7 @@ export const GetRefundResponse$inboundSchema: z.ZodType<
1377
1386
  z.ZodTypeDef,
1378
1387
  unknown
1379
1388
  > = z.object({
1380
- resource: z.string().default("refund"),
1389
+ resource: z.string().optional(),
1381
1390
  id: z.string().optional(),
1382
1391
  mode: GetRefundMode$inboundSchema.optional(),
1383
1392
  description: z.string().optional(),
@@ -1410,7 +1419,7 @@ export const GetRefundResponse$inboundSchema: z.ZodType<
1410
1419
 
1411
1420
  /** @internal */
1412
1421
  export type GetRefundResponse$Outbound = {
1413
- resource: string;
1422
+ resource?: string | undefined;
1414
1423
  id?: string | undefined;
1415
1424
  mode?: string | undefined;
1416
1425
  description?: string | undefined;
@@ -1440,7 +1449,7 @@ export const GetRefundResponse$outboundSchema: z.ZodType<
1440
1449
  z.ZodTypeDef,
1441
1450
  GetRefundResponse
1442
1451
  > = z.object({
1443
- resource: z.string().default("refund"),
1452
+ resource: z.string().optional(),
1444
1453
  id: z.string().optional(),
1445
1454
  mode: GetRefundMode$outboundSchema.optional(),
1446
1455
  description: z.string().optional(),