mollie-api-typescript 0.0.5 → 0.0.6

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 (222) hide show
  1. package/README.md +3 -2
  2. package/bin/mcp-server.js +676 -1258
  3. package/bin/mcp-server.js.map +28 -28
  4. package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
  5. package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
  6. package/dist/commonjs/funcs/subscriptionsAll.d.ts +1 -1
  7. package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
  8. package/dist/commonjs/funcs/subscriptionsAll.js +2 -5
  9. package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  13. package/dist/commonjs/mcp-server/server.js +1 -1
  14. package/dist/commonjs/models/errors/listallsubscriptions.d.ts +95 -14
  15. package/dist/commonjs/models/errors/listallsubscriptions.d.ts.map +1 -1
  16. package/dist/commonjs/models/errors/listallsubscriptions.js +80 -14
  17. package/dist/commonjs/models/errors/listallsubscriptions.js.map +1 -1
  18. package/dist/commonjs/models/operations/cancelsubscription.d.ts +40 -40
  19. package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
  20. package/dist/commonjs/models/operations/cancelsubscription.js +40 -48
  21. package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
  22. package/dist/commonjs/models/operations/createcustomer.d.ts +22 -22
  23. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/createcustomer.js +22 -24
  25. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  26. package/dist/commonjs/models/operations/createmandate.d.ts +26 -26
  27. package/dist/commonjs/models/operations/createmandate.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/createmandate.js +26 -28
  29. package/dist/commonjs/models/operations/createmandate.js.map +1 -1
  30. package/dist/commonjs/models/operations/createrefund.d.ts +7 -7
  31. package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/createrefund.js +8 -10
  33. package/dist/commonjs/models/operations/createrefund.js.map +1 -1
  34. package/dist/commonjs/models/operations/createsubscription.d.ts +44 -44
  35. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/createsubscription.js +44 -53
  37. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  38. package/dist/commonjs/models/operations/getcustomer.d.ts +28 -28
  39. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/getcustomer.js +28 -30
  41. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  42. package/dist/commonjs/models/operations/getmandate.d.ts +26 -26
  43. package/dist/commonjs/models/operations/getmandate.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/getmandate.js +26 -27
  45. package/dist/commonjs/models/operations/getmandate.js.map +1 -1
  46. package/dist/commonjs/models/operations/getrefund.d.ts +7 -7
  47. package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/getrefund.js +8 -8
  49. package/dist/commonjs/models/operations/getrefund.js.map +1 -1
  50. package/dist/commonjs/models/operations/getsubscription.d.ts +40 -40
  51. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/getsubscription.js +40 -48
  53. package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
  54. package/dist/commonjs/models/operations/listallrefunds.d.ts +9 -15
  55. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/listallrefunds.js +8 -10
  57. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  58. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +532 -2849
  59. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/listallsubscriptions.js +345 -1612
  61. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  62. package/dist/commonjs/models/operations/listcustomers.d.ts +22 -22
  63. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/listcustomers.js +22 -22
  65. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  66. package/dist/commonjs/models/operations/listmandates.d.ts +26 -26
  67. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/listmandates.js +26 -26
  69. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  70. package/dist/commonjs/models/operations/listrefunds.d.ts +7 -7
  71. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/listrefunds.js +8 -10
  73. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  74. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +7 -7
  75. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  76. package/dist/commonjs/models/operations/listsettlementrefunds.js +8 -8
  77. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  78. package/dist/commonjs/models/operations/listsubscriptions.d.ts +81 -81
  79. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  80. package/dist/commonjs/models/operations/listsubscriptions.js +90 -96
  81. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  82. package/dist/commonjs/models/operations/paymentcreateroute.d.ts +11 -0
  83. package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/paymentcreateroute.js +2 -0
  85. package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
  86. package/dist/commonjs/models/operations/paymentlistroutes.d.ts +11 -0
  87. package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/paymentlistroutes.js +2 -0
  89. package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
  90. package/dist/commonjs/models/operations/updatecustomer.d.ts +22 -22
  91. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  92. package/dist/commonjs/models/operations/updatecustomer.js +22 -24
  93. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  94. package/dist/commonjs/models/operations/updatesubscription.d.ts +40 -40
  95. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/updatesubscription.js +40 -50
  97. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  98. package/dist/esm/funcs/delayedRoutingList.js +5 -1
  99. package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
  100. package/dist/esm/funcs/subscriptionsAll.d.ts +1 -1
  101. package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
  102. package/dist/esm/funcs/subscriptionsAll.js +2 -5
  103. package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
  104. package/dist/esm/lib/config.d.ts +2 -2
  105. package/dist/esm/lib/config.js +2 -2
  106. package/dist/esm/mcp-server/mcp-server.js +1 -1
  107. package/dist/esm/mcp-server/server.js +1 -1
  108. package/dist/esm/models/errors/listallsubscriptions.d.ts +95 -14
  109. package/dist/esm/models/errors/listallsubscriptions.d.ts.map +1 -1
  110. package/dist/esm/models/errors/listallsubscriptions.js +77 -12
  111. package/dist/esm/models/errors/listallsubscriptions.js.map +1 -1
  112. package/dist/esm/models/operations/cancelsubscription.d.ts +40 -40
  113. package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
  114. package/dist/esm/models/operations/cancelsubscription.js +40 -48
  115. package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
  116. package/dist/esm/models/operations/createcustomer.d.ts +22 -22
  117. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  118. package/dist/esm/models/operations/createcustomer.js +22 -24
  119. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  120. package/dist/esm/models/operations/createmandate.d.ts +26 -26
  121. package/dist/esm/models/operations/createmandate.d.ts.map +1 -1
  122. package/dist/esm/models/operations/createmandate.js +26 -28
  123. package/dist/esm/models/operations/createmandate.js.map +1 -1
  124. package/dist/esm/models/operations/createrefund.d.ts +7 -7
  125. package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
  126. package/dist/esm/models/operations/createrefund.js +8 -10
  127. package/dist/esm/models/operations/createrefund.js.map +1 -1
  128. package/dist/esm/models/operations/createsubscription.d.ts +44 -44
  129. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  130. package/dist/esm/models/operations/createsubscription.js +44 -53
  131. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  132. package/dist/esm/models/operations/getcustomer.d.ts +28 -28
  133. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  134. package/dist/esm/models/operations/getcustomer.js +28 -30
  135. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  136. package/dist/esm/models/operations/getmandate.d.ts +26 -26
  137. package/dist/esm/models/operations/getmandate.d.ts.map +1 -1
  138. package/dist/esm/models/operations/getmandate.js +26 -27
  139. package/dist/esm/models/operations/getmandate.js.map +1 -1
  140. package/dist/esm/models/operations/getrefund.d.ts +7 -7
  141. package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
  142. package/dist/esm/models/operations/getrefund.js +8 -8
  143. package/dist/esm/models/operations/getrefund.js.map +1 -1
  144. package/dist/esm/models/operations/getsubscription.d.ts +40 -40
  145. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
  146. package/dist/esm/models/operations/getsubscription.js +40 -48
  147. package/dist/esm/models/operations/getsubscription.js.map +1 -1
  148. package/dist/esm/models/operations/listallrefunds.d.ts +9 -15
  149. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  150. package/dist/esm/models/operations/listallrefunds.js +8 -10
  151. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  152. package/dist/esm/models/operations/listallsubscriptions.d.ts +532 -2849
  153. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  154. package/dist/esm/models/operations/listallsubscriptions.js +325 -1533
  155. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  156. package/dist/esm/models/operations/listcustomers.d.ts +22 -22
  157. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  158. package/dist/esm/models/operations/listcustomers.js +22 -22
  159. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  160. package/dist/esm/models/operations/listmandates.d.ts +26 -26
  161. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  162. package/dist/esm/models/operations/listmandates.js +26 -26
  163. package/dist/esm/models/operations/listmandates.js.map +1 -1
  164. package/dist/esm/models/operations/listrefunds.d.ts +7 -7
  165. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  166. package/dist/esm/models/operations/listrefunds.js +8 -10
  167. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  168. package/dist/esm/models/operations/listsettlementrefunds.d.ts +7 -7
  169. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  170. package/dist/esm/models/operations/listsettlementrefunds.js +8 -8
  171. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  172. package/dist/esm/models/operations/listsubscriptions.d.ts +81 -81
  173. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  174. package/dist/esm/models/operations/listsubscriptions.js +83 -89
  175. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  176. package/dist/esm/models/operations/paymentcreateroute.d.ts +11 -0
  177. package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
  178. package/dist/esm/models/operations/paymentcreateroute.js +2 -0
  179. package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
  180. package/dist/esm/models/operations/paymentlistroutes.d.ts +11 -0
  181. package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
  182. package/dist/esm/models/operations/paymentlistroutes.js +2 -0
  183. package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
  184. package/dist/esm/models/operations/updatecustomer.d.ts +22 -22
  185. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  186. package/dist/esm/models/operations/updatecustomer.js +22 -24
  187. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  188. package/dist/esm/models/operations/updatesubscription.d.ts +40 -40
  189. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  190. package/dist/esm/models/operations/updatesubscription.js +40 -50
  191. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  192. package/docs/sdks/delayedrouting/README.md +4 -0
  193. package/docs/sdks/subscriptions/README.md +5 -4
  194. package/examples/package-lock.json +1 -1
  195. package/jsr.json +1 -1
  196. package/package.json +1 -1
  197. package/src/funcs/delayedRoutingList.ts +6 -1
  198. package/src/funcs/subscriptionsAll.ts +17 -8
  199. package/src/lib/config.ts +2 -2
  200. package/src/mcp-server/mcp-server.ts +1 -1
  201. package/src/mcp-server/server.ts +1 -1
  202. package/src/models/errors/listallsubscriptions.ts +173 -23
  203. package/src/models/operations/cancelsubscription.ts +80 -98
  204. package/src/models/operations/createcustomer.ts +45 -53
  205. package/src/models/operations/createmandate.ts +52 -54
  206. package/src/models/operations/createrefund.ts +15 -17
  207. package/src/models/operations/createsubscription.ts +89 -104
  208. package/src/models/operations/getcustomer.ts +56 -63
  209. package/src/models/operations/getmandate.ts +52 -53
  210. package/src/models/operations/getrefund.ts +15 -15
  211. package/src/models/operations/getsubscription.ts +80 -98
  212. package/src/models/operations/listallrefunds.ts +17 -25
  213. package/src/models/operations/listallsubscriptions.ts +894 -4395
  214. package/src/models/operations/listcustomers.ts +44 -49
  215. package/src/models/operations/listmandates.ts +52 -52
  216. package/src/models/operations/listrefunds.ts +15 -17
  217. package/src/models/operations/listsettlementrefunds.ts +15 -15
  218. package/src/models/operations/listsubscriptions.ts +181 -176
  219. package/src/models/operations/paymentcreateroute.ts +13 -0
  220. package/src/models/operations/paymentlistroutes.ts +13 -0
  221. package/src/models/operations/updatecustomer.ts +45 -53
  222. package/src/models/operations/updatesubscription.ts +81 -97
@@ -284,15 +284,15 @@ export type CreateMandateLinks = {
284
284
  /**
285
285
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
286
286
  */
287
- self?: CreateMandateSelf | undefined;
287
+ self: CreateMandateSelf;
288
288
  /**
289
289
  * The API resource URL of the [customer](get-customer) that this mandate belongs to.
290
290
  */
291
- customer?: CreateMandateCustomer | undefined;
291
+ customer: CreateMandateCustomer;
292
292
  /**
293
293
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
294
294
  */
295
- documentation?: CreateMandateDocumentation | undefined;
295
+ documentation: CreateMandateDocumentation;
296
296
  };
297
297
 
298
298
  /**
@@ -306,11 +306,11 @@ export type CreateMandateResponse = {
306
306
  /**
307
307
  * The identifier uniquely referring to this mandate. Example: `mdt_pWUnw6pkBN`.
308
308
  */
309
- id?: string | undefined;
309
+ id: string;
310
310
  /**
311
311
  * Whether this entity was created in live mode or in test mode.
312
312
  */
313
- mode?: CreateMandateMode | undefined;
313
+ mode: CreateMandateMode;
314
314
  /**
315
315
  * Payment method of the mandate.
316
316
  *
@@ -318,38 +318,38 @@ export type CreateMandateResponse = {
318
318
  *
319
319
  * SEPA Direct Debit and PayPal mandates can be created directly.
320
320
  */
321
- method?: CreateMandateMethodResponse | undefined;
322
- details?: CreateMandateDetails | undefined;
321
+ method: CreateMandateMethodResponse;
322
+ details: CreateMandateDetails;
323
323
  /**
324
324
  * The date when the mandate was signed in `YYYY-MM-DD` format.
325
325
  */
326
- signatureDate?: string | null | undefined;
326
+ signatureDate: string | null;
327
327
  /**
328
328
  * A custom mandate reference. For SEPA Direct Debit, it is vital to provide a unique reference. Some banks will
329
329
  *
330
330
  * @remarks
331
331
  * decline Direct Debit payments if the mandate reference is not unique.
332
332
  */
333
- mandateReference?: string | null | undefined;
333
+ mandateReference: string | null;
334
334
  /**
335
335
  * The status of the mandate. A status can be `pending` for mandates when the first payment is not yet finalized, or
336
336
  *
337
337
  * @remarks
338
338
  * when we did not received the IBAN yet from the first payment.
339
339
  */
340
- status?: CreateMandateStatus | undefined;
340
+ status: CreateMandateStatus;
341
341
  /**
342
342
  * The identifier referring to the [customer](get-customer) this mandate was linked to.
343
343
  */
344
- customerId?: string | undefined;
344
+ customerId: string;
345
345
  /**
346
346
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
347
347
  */
348
- createdAt?: string | undefined;
348
+ createdAt: string;
349
349
  /**
350
350
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
351
351
  */
352
- links?: CreateMandateLinks | undefined;
352
+ links: CreateMandateLinks;
353
353
  };
354
354
 
355
355
  /** @internal */
@@ -975,17 +975,16 @@ export const CreateMandateLinks$inboundSchema: z.ZodType<
975
975
  z.ZodTypeDef,
976
976
  unknown
977
977
  > = z.object({
978
- self: z.lazy(() => CreateMandateSelf$inboundSchema).optional(),
979
- customer: z.lazy(() => CreateMandateCustomer$inboundSchema).optional(),
980
- documentation: z.lazy(() => CreateMandateDocumentation$inboundSchema)
981
- .optional(),
978
+ self: z.lazy(() => CreateMandateSelf$inboundSchema),
979
+ customer: z.lazy(() => CreateMandateCustomer$inboundSchema),
980
+ documentation: z.lazy(() => CreateMandateDocumentation$inboundSchema),
982
981
  });
983
982
 
984
983
  /** @internal */
985
984
  export type CreateMandateLinks$Outbound = {
986
- self?: CreateMandateSelf$Outbound | undefined;
987
- customer?: CreateMandateCustomer$Outbound | undefined;
988
- documentation?: CreateMandateDocumentation$Outbound | undefined;
985
+ self: CreateMandateSelf$Outbound;
986
+ customer: CreateMandateCustomer$Outbound;
987
+ documentation: CreateMandateDocumentation$Outbound;
989
988
  };
990
989
 
991
990
  /** @internal */
@@ -994,10 +993,9 @@ export const CreateMandateLinks$outboundSchema: z.ZodType<
994
993
  z.ZodTypeDef,
995
994
  CreateMandateLinks
996
995
  > = z.object({
997
- self: z.lazy(() => CreateMandateSelf$outboundSchema).optional(),
998
- customer: z.lazy(() => CreateMandateCustomer$outboundSchema).optional(),
999
- documentation: z.lazy(() => CreateMandateDocumentation$outboundSchema)
1000
- .optional(),
996
+ self: z.lazy(() => CreateMandateSelf$outboundSchema),
997
+ customer: z.lazy(() => CreateMandateCustomer$outboundSchema),
998
+ documentation: z.lazy(() => CreateMandateDocumentation$outboundSchema),
1001
999
  });
1002
1000
 
1003
1001
  /**
@@ -1038,16 +1036,16 @@ export const CreateMandateResponse$inboundSchema: z.ZodType<
1038
1036
  unknown
1039
1037
  > = z.object({
1040
1038
  resource: z.string().default("mandate"),
1041
- id: z.string().optional(),
1042
- mode: CreateMandateMode$inboundSchema.optional(),
1043
- method: CreateMandateMethodResponse$inboundSchema.optional(),
1044
- details: z.lazy(() => CreateMandateDetails$inboundSchema).optional(),
1045
- signatureDate: z.nullable(z.string()).optional(),
1046
- mandateReference: z.nullable(z.string()).optional(),
1047
- status: CreateMandateStatus$inboundSchema.optional(),
1048
- customerId: z.string().optional(),
1049
- createdAt: z.string().optional(),
1050
- _links: z.lazy(() => CreateMandateLinks$inboundSchema).optional(),
1039
+ id: z.string(),
1040
+ mode: CreateMandateMode$inboundSchema,
1041
+ method: CreateMandateMethodResponse$inboundSchema,
1042
+ details: z.lazy(() => CreateMandateDetails$inboundSchema),
1043
+ signatureDate: z.nullable(z.string()),
1044
+ mandateReference: z.nullable(z.string()),
1045
+ status: CreateMandateStatus$inboundSchema,
1046
+ customerId: z.string(),
1047
+ createdAt: z.string(),
1048
+ _links: z.lazy(() => CreateMandateLinks$inboundSchema),
1051
1049
  }).transform((v) => {
1052
1050
  return remap$(v, {
1053
1051
  "_links": "links",
@@ -1057,16 +1055,16 @@ export const CreateMandateResponse$inboundSchema: z.ZodType<
1057
1055
  /** @internal */
1058
1056
  export type CreateMandateResponse$Outbound = {
1059
1057
  resource: string;
1060
- id?: string | undefined;
1061
- mode?: string | undefined;
1062
- method?: string | undefined;
1063
- details?: CreateMandateDetails$Outbound | undefined;
1064
- signatureDate?: string | null | undefined;
1065
- mandateReference?: string | null | undefined;
1066
- status?: string | undefined;
1067
- customerId?: string | undefined;
1068
- createdAt?: string | undefined;
1069
- _links?: CreateMandateLinks$Outbound | undefined;
1058
+ id: string;
1059
+ mode: string;
1060
+ method: string;
1061
+ details: CreateMandateDetails$Outbound;
1062
+ signatureDate: string | null;
1063
+ mandateReference: string | null;
1064
+ status: string;
1065
+ customerId: string;
1066
+ createdAt: string;
1067
+ _links: CreateMandateLinks$Outbound;
1070
1068
  };
1071
1069
 
1072
1070
  /** @internal */
@@ -1076,16 +1074,16 @@ export const CreateMandateResponse$outboundSchema: z.ZodType<
1076
1074
  CreateMandateResponse
1077
1075
  > = z.object({
1078
1076
  resource: z.string().default("mandate"),
1079
- id: z.string().optional(),
1080
- mode: CreateMandateMode$outboundSchema.optional(),
1081
- method: CreateMandateMethodResponse$outboundSchema.optional(),
1082
- details: z.lazy(() => CreateMandateDetails$outboundSchema).optional(),
1083
- signatureDate: z.nullable(z.string()).optional(),
1084
- mandateReference: z.nullable(z.string()).optional(),
1085
- status: CreateMandateStatus$outboundSchema.optional(),
1086
- customerId: z.string().optional(),
1087
- createdAt: z.string().optional(),
1088
- links: z.lazy(() => CreateMandateLinks$outboundSchema).optional(),
1077
+ id: z.string(),
1078
+ mode: CreateMandateMode$outboundSchema,
1079
+ method: CreateMandateMethodResponse$outboundSchema,
1080
+ details: z.lazy(() => CreateMandateDetails$outboundSchema),
1081
+ signatureDate: z.nullable(z.string()),
1082
+ mandateReference: z.nullable(z.string()),
1083
+ status: CreateMandateStatus$outboundSchema,
1084
+ customerId: z.string(),
1085
+ createdAt: z.string(),
1086
+ links: z.lazy(() => CreateMandateLinks$outboundSchema),
1089
1087
  }).transform((v) => {
1090
1088
  return remap$(v, {
1091
1089
  links: "_links",
@@ -449,11 +449,11 @@ export type CreateRefundLinks = {
449
449
  /**
450
450
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
451
451
  */
452
- self?: CreateRefundSelf | undefined;
452
+ self: CreateRefundSelf;
453
453
  /**
454
454
  * The API resource URL of the [payment](get-payment) that this refund belongs to.
455
455
  */
456
- payment?: CreateRefundPayment | undefined;
456
+ payment: CreateRefundPayment;
457
457
  /**
458
458
  * The API resource URL of the [settlement](get-settlement) this refund has been settled with. Not present if not
459
459
  *
@@ -464,7 +464,7 @@ export type CreateRefundLinks = {
464
464
  /**
465
465
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
466
466
  */
467
- documentation?: CreateRefundDocumentation | undefined;
467
+ documentation: CreateRefundDocumentation;
468
468
  };
469
469
 
470
470
  /**
@@ -2297,20 +2297,19 @@ export const CreateRefundLinks$inboundSchema: z.ZodType<
2297
2297
  z.ZodTypeDef,
2298
2298
  unknown
2299
2299
  > = z.object({
2300
- self: z.lazy(() => CreateRefundSelf$inboundSchema).optional(),
2301
- payment: z.lazy(() => CreateRefundPayment$inboundSchema).optional(),
2300
+ self: z.lazy(() => CreateRefundSelf$inboundSchema),
2301
+ payment: z.lazy(() => CreateRefundPayment$inboundSchema),
2302
2302
  settlement: z.nullable(z.lazy(() => CreateRefundSettlement$inboundSchema))
2303
2303
  .optional(),
2304
- documentation: z.lazy(() => CreateRefundDocumentation$inboundSchema)
2305
- .optional(),
2304
+ documentation: z.lazy(() => CreateRefundDocumentation$inboundSchema),
2306
2305
  });
2307
2306
 
2308
2307
  /** @internal */
2309
2308
  export type CreateRefundLinks$Outbound = {
2310
- self?: CreateRefundSelf$Outbound | undefined;
2311
- payment?: CreateRefundPayment$Outbound | undefined;
2309
+ self: CreateRefundSelf$Outbound;
2310
+ payment: CreateRefundPayment$Outbound;
2312
2311
  settlement?: CreateRefundSettlement$Outbound | null | undefined;
2313
- documentation?: CreateRefundDocumentation$Outbound | undefined;
2312
+ documentation: CreateRefundDocumentation$Outbound;
2314
2313
  };
2315
2314
 
2316
2315
  /** @internal */
@@ -2319,12 +2318,11 @@ export const CreateRefundLinks$outboundSchema: z.ZodType<
2319
2318
  z.ZodTypeDef,
2320
2319
  CreateRefundLinks
2321
2320
  > = z.object({
2322
- self: z.lazy(() => CreateRefundSelf$outboundSchema).optional(),
2323
- payment: z.lazy(() => CreateRefundPayment$outboundSchema).optional(),
2321
+ self: z.lazy(() => CreateRefundSelf$outboundSchema),
2322
+ payment: z.lazy(() => CreateRefundPayment$outboundSchema),
2324
2323
  settlement: z.nullable(z.lazy(() => CreateRefundSettlement$outboundSchema))
2325
2324
  .optional(),
2326
- documentation: z.lazy(() => CreateRefundDocumentation$outboundSchema)
2327
- .optional(),
2325
+ documentation: z.lazy(() => CreateRefundDocumentation$outboundSchema),
2328
2326
  });
2329
2327
 
2330
2328
  /**
@@ -2364,7 +2362,7 @@ export const CreateRefundResponse$inboundSchema: z.ZodType<
2364
2362
  z.ZodTypeDef,
2365
2363
  unknown
2366
2364
  > = z.object({
2367
- resource: z.string().default("refund"),
2365
+ resource: z.string().optional(),
2368
2366
  id: z.string().optional(),
2369
2367
  mode: CreateRefundMode$inboundSchema.optional(),
2370
2368
  description: z.string().optional(),
@@ -2398,7 +2396,7 @@ export const CreateRefundResponse$inboundSchema: z.ZodType<
2398
2396
 
2399
2397
  /** @internal */
2400
2398
  export type CreateRefundResponse$Outbound = {
2401
- resource: string;
2399
+ resource?: string | undefined;
2402
2400
  id?: string | undefined;
2403
2401
  mode?: string | undefined;
2404
2402
  description?: string | undefined;
@@ -2430,7 +2428,7 @@ export const CreateRefundResponse$outboundSchema: z.ZodType<
2430
2428
  z.ZodTypeDef,
2431
2429
  CreateRefundResponse
2432
2430
  > = z.object({
2433
- resource: z.string().default("refund"),
2431
+ resource: z.string().optional(),
2434
2432
  id: z.string().optional(),
2435
2433
  mode: CreateRefundMode$outboundSchema.optional(),
2436
2434
  description: z.string().optional(),