mollie-api-typescript 1.3.7 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +11 -0
  2. package/bin/mcp-server.js +1206 -233
  3. package/bin/mcp-server.js.map +26 -9
  4. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
  5. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js +140 -0
  7. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js.map +1 -0
  8. package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts +29 -0
  9. package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +179 -0
  11. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -0
  12. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
  13. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js +141 -0
  15. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
  16. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
  17. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js +140 -0
  19. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
  20. package/dist/commonjs/lib/config.d.ts +3 -3
  21. package/dist/commonjs/lib/config.js +3 -3
  22. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  23. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  24. package/dist/commonjs/mcp-server/server.js +9 -1
  25. package/dist/commonjs/mcp-server/server.js.map +1 -1
  26. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
  27. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
  28. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js +69 -0
  29. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js +72 -0
  33. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js +69 -0
  37. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js +69 -0
  41. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
  42. package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts +214 -0
  43. package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts.map +1 -0
  44. package/dist/commonjs/models/entityunmatchedcredittransfer.js +204 -0
  45. package/dist/commonjs/models/entityunmatchedcredittransfer.js.map +1 -0
  46. package/dist/commonjs/models/errorresponse.d.ts +8 -8
  47. package/dist/commonjs/models/errorresponse.d.ts.map +1 -1
  48. package/dist/commonjs/models/errorresponse.js +11 -11
  49. package/dist/commonjs/models/errorresponse.js.map +1 -1
  50. package/dist/commonjs/models/index.d.ts +5 -0
  51. package/dist/commonjs/models/index.d.ts.map +1 -1
  52. package/dist/commonjs/models/index.js +5 -0
  53. package/dist/commonjs/models/index.js.map +1 -1
  54. package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts +191 -0
  55. package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
  56. package/dist/commonjs/models/listentityunmatchedcredittransfer.js +185 -0
  57. package/dist/commonjs/models/listentityunmatchedcredittransfer.js.map +1 -0
  58. package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts +25 -0
  59. package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
  60. package/dist/commonjs/models/operations/getunmatchedcredittransfer.js +70 -0
  61. package/dist/commonjs/models/operations/getunmatchedcredittransfer.js.map +1 -0
  62. package/dist/commonjs/models/operations/index.d.ts +4 -0
  63. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/index.js +4 -0
  65. package/dist/commonjs/models/operations/index.js.map +1 -1
  66. package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts +95 -0
  67. package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
  68. package/dist/commonjs/models/operations/listunmatchedcredittransfers.js +151 -0
  69. package/dist/commonjs/models/operations/listunmatchedcredittransfers.js.map +1 -0
  70. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
  71. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
  72. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js +77 -0
  73. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js.map +1 -0
  74. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
  75. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
  76. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js +70 -0
  77. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js.map +1 -0
  78. package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts +164 -0
  79. package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
  80. package/dist/commonjs/models/unmatchedcredittransferactionresponse.js +175 -0
  81. package/dist/commonjs/models/unmatchedcredittransferactionresponse.js.map +1 -0
  82. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
  83. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
  84. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js +59 -0
  85. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js.map +1 -0
  86. package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts +14 -0
  87. package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts.map +1 -0
  88. package/dist/commonjs/models/unmatchedcredittransferstatus.js +52 -0
  89. package/dist/commonjs/models/unmatchedcredittransferstatus.js.map +1 -0
  90. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  91. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  92. package/dist/commonjs/sdk/sdk.js +4 -0
  93. package/dist/commonjs/sdk/sdk.js.map +1 -1
  94. package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts +55 -0
  95. package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts.map +1 -0
  96. package/dist/commonjs/sdk/unmatchedcredittransfers.js +72 -0
  97. package/dist/commonjs/sdk/unmatchedcredittransfers.js.map +1 -0
  98. package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
  99. package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
  100. package/dist/esm/funcs/unmatchedCreditTransfersGet.js +104 -0
  101. package/dist/esm/funcs/unmatchedCreditTransfersGet.js.map +1 -0
  102. package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts +29 -0
  103. package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
  104. package/dist/esm/funcs/unmatchedCreditTransfersList.js +143 -0
  105. package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -0
  106. package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
  107. package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  108. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js +105 -0
  109. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
  110. package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
  111. package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  112. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js +104 -0
  113. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
  114. package/dist/esm/lib/config.d.ts +3 -3
  115. package/dist/esm/lib/config.js +3 -3
  116. package/dist/esm/mcp-server/mcp-server.js +1 -1
  117. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  118. package/dist/esm/mcp-server/server.js +9 -1
  119. package/dist/esm/mcp-server/server.js.map +1 -1
  120. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
  121. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
  122. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js +33 -0
  123. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
  124. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
  125. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
  126. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js +36 -0
  127. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
  128. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
  129. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  130. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js +33 -0
  131. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
  132. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
  133. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  134. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js +33 -0
  135. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
  136. package/dist/esm/models/entityunmatchedcredittransfer.d.ts +214 -0
  137. package/dist/esm/models/entityunmatchedcredittransfer.d.ts.map +1 -0
  138. package/dist/esm/models/entityunmatchedcredittransfer.js +154 -0
  139. package/dist/esm/models/entityunmatchedcredittransfer.js.map +1 -0
  140. package/dist/esm/models/errorresponse.d.ts +8 -8
  141. package/dist/esm/models/errorresponse.d.ts.map +1 -1
  142. package/dist/esm/models/errorresponse.js +8 -8
  143. package/dist/esm/models/errorresponse.js.map +1 -1
  144. package/dist/esm/models/index.d.ts +5 -0
  145. package/dist/esm/models/index.d.ts.map +1 -1
  146. package/dist/esm/models/index.js +5 -0
  147. package/dist/esm/models/index.js.map +1 -1
  148. package/dist/esm/models/listentityunmatchedcredittransfer.d.ts +191 -0
  149. package/dist/esm/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
  150. package/dist/esm/models/listentityunmatchedcredittransfer.js +137 -0
  151. package/dist/esm/models/listentityunmatchedcredittransfer.js.map +1 -0
  152. package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts +25 -0
  153. package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
  154. package/dist/esm/models/operations/getunmatchedcredittransfer.js +32 -0
  155. package/dist/esm/models/operations/getunmatchedcredittransfer.js.map +1 -0
  156. package/dist/esm/models/operations/index.d.ts +4 -0
  157. package/dist/esm/models/operations/index.d.ts.map +1 -1
  158. package/dist/esm/models/operations/index.js +4 -0
  159. package/dist/esm/models/operations/index.js.map +1 -1
  160. package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts +95 -0
  161. package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
  162. package/dist/esm/models/operations/listunmatchedcredittransfers.js +107 -0
  163. package/dist/esm/models/operations/listunmatchedcredittransfers.js.map +1 -0
  164. package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
  165. package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
  166. package/dist/esm/models/operations/matchunmatchedcredittransfer.js +39 -0
  167. package/dist/esm/models/operations/matchunmatchedcredittransfer.js.map +1 -0
  168. package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
  169. package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
  170. package/dist/esm/models/operations/returnunmatchedcredittransfer.js +32 -0
  171. package/dist/esm/models/operations/returnunmatchedcredittransfer.js.map +1 -0
  172. package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts +164 -0
  173. package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
  174. package/dist/esm/models/unmatchedcredittransferactionresponse.js +129 -0
  175. package/dist/esm/models/unmatchedcredittransferactionresponse.js.map +1 -0
  176. package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
  177. package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
  178. package/dist/esm/models/unmatchedcredittransfermatchrequest.js +21 -0
  179. package/dist/esm/models/unmatchedcredittransfermatchrequest.js.map +1 -0
  180. package/dist/esm/models/unmatchedcredittransferstatus.d.ts +14 -0
  181. package/dist/esm/models/unmatchedcredittransferstatus.d.ts.map +1 -0
  182. package/dist/esm/models/unmatchedcredittransferstatus.js +16 -0
  183. package/dist/esm/models/unmatchedcredittransferstatus.js.map +1 -0
  184. package/dist/esm/sdk/sdk.d.ts +3 -0
  185. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  186. package/dist/esm/sdk/sdk.js +4 -0
  187. package/dist/esm/sdk/sdk.js.map +1 -1
  188. package/dist/esm/sdk/unmatchedcredittransfers.d.ts +55 -0
  189. package/dist/esm/sdk/unmatchedcredittransfers.d.ts.map +1 -0
  190. package/dist/esm/sdk/unmatchedcredittransfers.js +68 -0
  191. package/dist/esm/sdk/unmatchedcredittransfers.js.map +1 -0
  192. package/jsr.json +1 -1
  193. package/package.json +1 -1
  194. package/src/funcs/unmatchedCreditTransfersGet.ts +202 -0
  195. package/src/funcs/unmatchedCreditTransfersList.ts +274 -0
  196. package/src/funcs/unmatchedCreditTransfersMatch.ts +209 -0
  197. package/src/funcs/unmatchedCreditTransfersReturn.ts +204 -0
  198. package/src/lib/config.ts +3 -3
  199. package/src/mcp-server/mcp-server.ts +1 -1
  200. package/src/mcp-server/server.ts +9 -1
  201. package/src/mcp-server/tools/unmatchedCreditTransfersGet.ts +42 -0
  202. package/src/mcp-server/tools/unmatchedCreditTransfersList.ts +45 -0
  203. package/src/mcp-server/tools/unmatchedCreditTransfersMatch.ts +42 -0
  204. package/src/mcp-server/tools/unmatchedCreditTransfersReturn.ts +43 -0
  205. package/src/models/entityunmatchedcredittransfer.ts +538 -0
  206. package/src/models/errorresponse.ts +21 -17
  207. package/src/models/index.ts +5 -0
  208. package/src/models/listentityunmatchedcredittransfer.ts +476 -0
  209. package/src/models/operations/getunmatchedcredittransfer.ts +73 -0
  210. package/src/models/operations/index.ts +4 -0
  211. package/src/models/operations/listunmatchedcredittransfers.ts +287 -0
  212. package/src/models/operations/matchunmatchedcredittransfer.ts +89 -0
  213. package/src/models/operations/returnunmatchedcredittransfer.ts +74 -0
  214. package/src/models/unmatchedcredittransferactionresponse.ts +426 -0
  215. package/src/models/unmatchedcredittransfermatchrequest.ts +58 -0
  216. package/src/models/unmatchedcredittransferstatus.ts +31 -0
  217. package/src/sdk/sdk.ts +8 -0
  218. package/src/sdk/unmatchedcredittransfers.ts +107 -0
@@ -0,0 +1,476 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 39ed01c4877f
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { remap as remap$ } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import {
11
+ Amount,
12
+ Amount$inboundSchema,
13
+ Amount$Outbound,
14
+ Amount$outboundSchema,
15
+ } from "./amount.js";
16
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
17
+ import {
18
+ UnmatchedCreditTransferStatus,
19
+ UnmatchedCreditTransferStatus$inboundSchema,
20
+ UnmatchedCreditTransferStatus$outboundSchema,
21
+ } from "./unmatchedcredittransferstatus.js";
22
+
23
+ /**
24
+ * Details about the sender of the credit transfer.
25
+ */
26
+ export type ListEntityUnmatchedCreditTransferSource = {
27
+ /**
28
+ * The format of the source account. Currently always `iban`.
29
+ */
30
+ format: string;
31
+ /**
32
+ * The name of the account holder who sent the unmatched credit transfer.
33
+ */
34
+ accountHolderName: string;
35
+ /**
36
+ * The IBAN of the sender's bank account.
37
+ */
38
+ iban: string;
39
+ /**
40
+ * The BIC of the sender's bank.
41
+ */
42
+ bic: string;
43
+ };
44
+
45
+ /**
46
+ * Structured references provided with the unmatched credit transfer.
47
+ */
48
+ export type ListEntityUnmatchedCreditTransferReferences = {
49
+ /**
50
+ * The creditor reference.
51
+ */
52
+ creditorReference?: string | null | undefined;
53
+ /**
54
+ * The end-to-end identifier.
55
+ */
56
+ endToEndId?: string | undefined;
57
+ };
58
+
59
+ /**
60
+ * Remittance information provided with the unmatched credit transfer.
61
+ */
62
+ export type ListEntityUnmatchedCreditTransferRemittanceInformation = {
63
+ /**
64
+ * Unstructured remittance information, such as a free-text payment description.
65
+ */
66
+ unstructured?: string | undefined;
67
+ /**
68
+ * Structured references provided with the unmatched credit transfer.
69
+ */
70
+ references?: ListEntityUnmatchedCreditTransferReferences | undefined;
71
+ };
72
+
73
+ /**
74
+ * The URL to this unmatched credit transfer.
75
+ */
76
+ export type ListEntityUnmatchedCreditTransferSelf = {
77
+ href?: string | undefined;
78
+ type?: string | undefined;
79
+ };
80
+
81
+ /**
82
+ * Links to related resources.
83
+ */
84
+ export type ListEntityUnmatchedCreditTransferLinks = {
85
+ /**
86
+ * The URL to this unmatched credit transfer.
87
+ */
88
+ self?: ListEntityUnmatchedCreditTransferSelf | undefined;
89
+ };
90
+
91
+ export type ListEntityUnmatchedCreditTransfer = {
92
+ /**
93
+ * Indicates the response contains an unmatched credit transfer object. Will always contain the string
94
+ *
95
+ * @remarks
96
+ * `unmatched-credit-transfer` for this endpoint.
97
+ */
98
+ resource: string;
99
+ /**
100
+ * The identifier uniquely referring to this unmatched credit transfer.
101
+ */
102
+ id: string;
103
+ profileId: string;
104
+ /**
105
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
106
+ */
107
+ amount: Amount;
108
+ /**
109
+ * Details about the sender of the credit transfer.
110
+ */
111
+ source: ListEntityUnmatchedCreditTransferSource;
112
+ /**
113
+ * Remittance information provided with the unmatched credit transfer.
114
+ */
115
+ remittanceInformation: ListEntityUnmatchedCreditTransferRemittanceInformation;
116
+ status: UnmatchedCreditTransferStatus;
117
+ /**
118
+ * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
119
+ */
120
+ createdAt: string;
121
+ /**
122
+ * The date and time at which the unmatched credit transfer expires, in
123
+ *
124
+ * @remarks
125
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
126
+ */
127
+ expiresAt: string;
128
+ /**
129
+ * The IDs of the payments this credit transfer was matched to. Only present when the status is `matched`.
130
+ */
131
+ paymentIds?: Array<string> | undefined;
132
+ /**
133
+ * Links to related resources.
134
+ */
135
+ links: ListEntityUnmatchedCreditTransferLinks;
136
+ };
137
+
138
+ /** @internal */
139
+ export const ListEntityUnmatchedCreditTransferSource$inboundSchema: z.ZodType<
140
+ ListEntityUnmatchedCreditTransferSource,
141
+ z.ZodTypeDef,
142
+ unknown
143
+ > = z.object({
144
+ format: z.string(),
145
+ accountHolderName: z.string(),
146
+ iban: z.string(),
147
+ bic: z.string(),
148
+ });
149
+ /** @internal */
150
+ export type ListEntityUnmatchedCreditTransferSource$Outbound = {
151
+ format: string;
152
+ accountHolderName: string;
153
+ iban: string;
154
+ bic: string;
155
+ };
156
+
157
+ /** @internal */
158
+ export const ListEntityUnmatchedCreditTransferSource$outboundSchema: z.ZodType<
159
+ ListEntityUnmatchedCreditTransferSource$Outbound,
160
+ z.ZodTypeDef,
161
+ ListEntityUnmatchedCreditTransferSource
162
+ > = z.object({
163
+ format: z.string(),
164
+ accountHolderName: z.string(),
165
+ iban: z.string(),
166
+ bic: z.string(),
167
+ });
168
+
169
+ export function listEntityUnmatchedCreditTransferSourceToJSON(
170
+ listEntityUnmatchedCreditTransferSource:
171
+ ListEntityUnmatchedCreditTransferSource,
172
+ ): string {
173
+ return JSON.stringify(
174
+ ListEntityUnmatchedCreditTransferSource$outboundSchema.parse(
175
+ listEntityUnmatchedCreditTransferSource,
176
+ ),
177
+ );
178
+ }
179
+ export function listEntityUnmatchedCreditTransferSourceFromJSON(
180
+ jsonString: string,
181
+ ): SafeParseResult<
182
+ ListEntityUnmatchedCreditTransferSource,
183
+ SDKValidationError
184
+ > {
185
+ return safeParse(
186
+ jsonString,
187
+ (x) =>
188
+ ListEntityUnmatchedCreditTransferSource$inboundSchema.parse(
189
+ JSON.parse(x),
190
+ ),
191
+ `Failed to parse 'ListEntityUnmatchedCreditTransferSource' from JSON`,
192
+ );
193
+ }
194
+
195
+ /** @internal */
196
+ export const ListEntityUnmatchedCreditTransferReferences$inboundSchema:
197
+ z.ZodType<
198
+ ListEntityUnmatchedCreditTransferReferences,
199
+ z.ZodTypeDef,
200
+ unknown
201
+ > = z.object({
202
+ creditorReference: z.nullable(z.string()).optional(),
203
+ endToEndId: z.string().optional(),
204
+ });
205
+ /** @internal */
206
+ export type ListEntityUnmatchedCreditTransferReferences$Outbound = {
207
+ creditorReference?: string | null | undefined;
208
+ endToEndId?: string | undefined;
209
+ };
210
+
211
+ /** @internal */
212
+ export const ListEntityUnmatchedCreditTransferReferences$outboundSchema:
213
+ z.ZodType<
214
+ ListEntityUnmatchedCreditTransferReferences$Outbound,
215
+ z.ZodTypeDef,
216
+ ListEntityUnmatchedCreditTransferReferences
217
+ > = z.object({
218
+ creditorReference: z.nullable(z.string()).optional(),
219
+ endToEndId: z.string().optional(),
220
+ });
221
+
222
+ export function listEntityUnmatchedCreditTransferReferencesToJSON(
223
+ listEntityUnmatchedCreditTransferReferences:
224
+ ListEntityUnmatchedCreditTransferReferences,
225
+ ): string {
226
+ return JSON.stringify(
227
+ ListEntityUnmatchedCreditTransferReferences$outboundSchema.parse(
228
+ listEntityUnmatchedCreditTransferReferences,
229
+ ),
230
+ );
231
+ }
232
+ export function listEntityUnmatchedCreditTransferReferencesFromJSON(
233
+ jsonString: string,
234
+ ): SafeParseResult<
235
+ ListEntityUnmatchedCreditTransferReferences,
236
+ SDKValidationError
237
+ > {
238
+ return safeParse(
239
+ jsonString,
240
+ (x) =>
241
+ ListEntityUnmatchedCreditTransferReferences$inboundSchema.parse(
242
+ JSON.parse(x),
243
+ ),
244
+ `Failed to parse 'ListEntityUnmatchedCreditTransferReferences' from JSON`,
245
+ );
246
+ }
247
+
248
+ /** @internal */
249
+ export const ListEntityUnmatchedCreditTransferRemittanceInformation$inboundSchema:
250
+ z.ZodType<
251
+ ListEntityUnmatchedCreditTransferRemittanceInformation,
252
+ z.ZodTypeDef,
253
+ unknown
254
+ > = z.object({
255
+ unstructured: z.string().optional(),
256
+ references: z.lazy(() =>
257
+ ListEntityUnmatchedCreditTransferReferences$inboundSchema
258
+ ).optional(),
259
+ });
260
+ /** @internal */
261
+ export type ListEntityUnmatchedCreditTransferRemittanceInformation$Outbound = {
262
+ unstructured?: string | undefined;
263
+ references?: ListEntityUnmatchedCreditTransferReferences$Outbound | undefined;
264
+ };
265
+
266
+ /** @internal */
267
+ export const ListEntityUnmatchedCreditTransferRemittanceInformation$outboundSchema:
268
+ z.ZodType<
269
+ ListEntityUnmatchedCreditTransferRemittanceInformation$Outbound,
270
+ z.ZodTypeDef,
271
+ ListEntityUnmatchedCreditTransferRemittanceInformation
272
+ > = z.object({
273
+ unstructured: z.string().optional(),
274
+ references: z.lazy(() =>
275
+ ListEntityUnmatchedCreditTransferReferences$outboundSchema
276
+ ).optional(),
277
+ });
278
+
279
+ export function listEntityUnmatchedCreditTransferRemittanceInformationToJSON(
280
+ listEntityUnmatchedCreditTransferRemittanceInformation:
281
+ ListEntityUnmatchedCreditTransferRemittanceInformation,
282
+ ): string {
283
+ return JSON.stringify(
284
+ ListEntityUnmatchedCreditTransferRemittanceInformation$outboundSchema.parse(
285
+ listEntityUnmatchedCreditTransferRemittanceInformation,
286
+ ),
287
+ );
288
+ }
289
+ export function listEntityUnmatchedCreditTransferRemittanceInformationFromJSON(
290
+ jsonString: string,
291
+ ): SafeParseResult<
292
+ ListEntityUnmatchedCreditTransferRemittanceInformation,
293
+ SDKValidationError
294
+ > {
295
+ return safeParse(
296
+ jsonString,
297
+ (x) =>
298
+ ListEntityUnmatchedCreditTransferRemittanceInformation$inboundSchema
299
+ .parse(JSON.parse(x)),
300
+ `Failed to parse 'ListEntityUnmatchedCreditTransferRemittanceInformation' from JSON`,
301
+ );
302
+ }
303
+
304
+ /** @internal */
305
+ export const ListEntityUnmatchedCreditTransferSelf$inboundSchema: z.ZodType<
306
+ ListEntityUnmatchedCreditTransferSelf,
307
+ z.ZodTypeDef,
308
+ unknown
309
+ > = z.object({
310
+ href: z.string().optional(),
311
+ type: z.string().optional(),
312
+ });
313
+ /** @internal */
314
+ export type ListEntityUnmatchedCreditTransferSelf$Outbound = {
315
+ href?: string | undefined;
316
+ type?: string | undefined;
317
+ };
318
+
319
+ /** @internal */
320
+ export const ListEntityUnmatchedCreditTransferSelf$outboundSchema: z.ZodType<
321
+ ListEntityUnmatchedCreditTransferSelf$Outbound,
322
+ z.ZodTypeDef,
323
+ ListEntityUnmatchedCreditTransferSelf
324
+ > = z.object({
325
+ href: z.string().optional(),
326
+ type: z.string().optional(),
327
+ });
328
+
329
+ export function listEntityUnmatchedCreditTransferSelfToJSON(
330
+ listEntityUnmatchedCreditTransferSelf: ListEntityUnmatchedCreditTransferSelf,
331
+ ): string {
332
+ return JSON.stringify(
333
+ ListEntityUnmatchedCreditTransferSelf$outboundSchema.parse(
334
+ listEntityUnmatchedCreditTransferSelf,
335
+ ),
336
+ );
337
+ }
338
+ export function listEntityUnmatchedCreditTransferSelfFromJSON(
339
+ jsonString: string,
340
+ ): SafeParseResult<ListEntityUnmatchedCreditTransferSelf, SDKValidationError> {
341
+ return safeParse(
342
+ jsonString,
343
+ (x) =>
344
+ ListEntityUnmatchedCreditTransferSelf$inboundSchema.parse(JSON.parse(x)),
345
+ `Failed to parse 'ListEntityUnmatchedCreditTransferSelf' from JSON`,
346
+ );
347
+ }
348
+
349
+ /** @internal */
350
+ export const ListEntityUnmatchedCreditTransferLinks$inboundSchema: z.ZodType<
351
+ ListEntityUnmatchedCreditTransferLinks,
352
+ z.ZodTypeDef,
353
+ unknown
354
+ > = z.object({
355
+ self: z.lazy(() => ListEntityUnmatchedCreditTransferSelf$inboundSchema)
356
+ .optional(),
357
+ });
358
+ /** @internal */
359
+ export type ListEntityUnmatchedCreditTransferLinks$Outbound = {
360
+ self?: ListEntityUnmatchedCreditTransferSelf$Outbound | undefined;
361
+ };
362
+
363
+ /** @internal */
364
+ export const ListEntityUnmatchedCreditTransferLinks$outboundSchema: z.ZodType<
365
+ ListEntityUnmatchedCreditTransferLinks$Outbound,
366
+ z.ZodTypeDef,
367
+ ListEntityUnmatchedCreditTransferLinks
368
+ > = z.object({
369
+ self: z.lazy(() => ListEntityUnmatchedCreditTransferSelf$outboundSchema)
370
+ .optional(),
371
+ });
372
+
373
+ export function listEntityUnmatchedCreditTransferLinksToJSON(
374
+ listEntityUnmatchedCreditTransferLinks:
375
+ ListEntityUnmatchedCreditTransferLinks,
376
+ ): string {
377
+ return JSON.stringify(
378
+ ListEntityUnmatchedCreditTransferLinks$outboundSchema.parse(
379
+ listEntityUnmatchedCreditTransferLinks,
380
+ ),
381
+ );
382
+ }
383
+ export function listEntityUnmatchedCreditTransferLinksFromJSON(
384
+ jsonString: string,
385
+ ): SafeParseResult<ListEntityUnmatchedCreditTransferLinks, SDKValidationError> {
386
+ return safeParse(
387
+ jsonString,
388
+ (x) =>
389
+ ListEntityUnmatchedCreditTransferLinks$inboundSchema.parse(JSON.parse(x)),
390
+ `Failed to parse 'ListEntityUnmatchedCreditTransferLinks' from JSON`,
391
+ );
392
+ }
393
+
394
+ /** @internal */
395
+ export const ListEntityUnmatchedCreditTransfer$inboundSchema: z.ZodType<
396
+ ListEntityUnmatchedCreditTransfer,
397
+ z.ZodTypeDef,
398
+ unknown
399
+ > = z.object({
400
+ resource: z.string(),
401
+ id: z.string(),
402
+ profileId: z.string(),
403
+ amount: Amount$inboundSchema,
404
+ source: z.lazy(() => ListEntityUnmatchedCreditTransferSource$inboundSchema),
405
+ remittanceInformation: z.lazy(() =>
406
+ ListEntityUnmatchedCreditTransferRemittanceInformation$inboundSchema
407
+ ),
408
+ status: UnmatchedCreditTransferStatus$inboundSchema,
409
+ createdAt: z.string(),
410
+ expiresAt: z.string(),
411
+ paymentIds: z.array(z.string()).optional(),
412
+ _links: z.lazy(() => ListEntityUnmatchedCreditTransferLinks$inboundSchema),
413
+ }).transform((v) => {
414
+ return remap$(v, {
415
+ "_links": "links",
416
+ });
417
+ });
418
+ /** @internal */
419
+ export type ListEntityUnmatchedCreditTransfer$Outbound = {
420
+ resource: string;
421
+ id: string;
422
+ profileId: string;
423
+ amount: Amount$Outbound;
424
+ source: ListEntityUnmatchedCreditTransferSource$Outbound;
425
+ remittanceInformation:
426
+ ListEntityUnmatchedCreditTransferRemittanceInformation$Outbound;
427
+ status: string;
428
+ createdAt: string;
429
+ expiresAt: string;
430
+ paymentIds?: Array<string> | undefined;
431
+ _links: ListEntityUnmatchedCreditTransferLinks$Outbound;
432
+ };
433
+
434
+ /** @internal */
435
+ export const ListEntityUnmatchedCreditTransfer$outboundSchema: z.ZodType<
436
+ ListEntityUnmatchedCreditTransfer$Outbound,
437
+ z.ZodTypeDef,
438
+ ListEntityUnmatchedCreditTransfer
439
+ > = z.object({
440
+ resource: z.string(),
441
+ id: z.string(),
442
+ profileId: z.string(),
443
+ amount: Amount$outboundSchema,
444
+ source: z.lazy(() => ListEntityUnmatchedCreditTransferSource$outboundSchema),
445
+ remittanceInformation: z.lazy(() =>
446
+ ListEntityUnmatchedCreditTransferRemittanceInformation$outboundSchema
447
+ ),
448
+ status: UnmatchedCreditTransferStatus$outboundSchema,
449
+ createdAt: z.string(),
450
+ expiresAt: z.string(),
451
+ paymentIds: z.array(z.string()).optional(),
452
+ links: z.lazy(() => ListEntityUnmatchedCreditTransferLinks$outboundSchema),
453
+ }).transform((v) => {
454
+ return remap$(v, {
455
+ links: "_links",
456
+ });
457
+ });
458
+
459
+ export function listEntityUnmatchedCreditTransferToJSON(
460
+ listEntityUnmatchedCreditTransfer: ListEntityUnmatchedCreditTransfer,
461
+ ): string {
462
+ return JSON.stringify(
463
+ ListEntityUnmatchedCreditTransfer$outboundSchema.parse(
464
+ listEntityUnmatchedCreditTransfer,
465
+ ),
466
+ );
467
+ }
468
+ export function listEntityUnmatchedCreditTransferFromJSON(
469
+ jsonString: string,
470
+ ): SafeParseResult<ListEntityUnmatchedCreditTransfer, SDKValidationError> {
471
+ return safeParse(
472
+ jsonString,
473
+ (x) => ListEntityUnmatchedCreditTransfer$inboundSchema.parse(JSON.parse(x)),
474
+ `Failed to parse 'ListEntityUnmatchedCreditTransfer' from JSON`,
475
+ );
476
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 544c6d7e8058
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { remap as remap$ } from "../../lib/primitives.js";
8
+ import { safeParse } from "../../lib/schemas.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetUnmatchedCreditTransferRequest = {
13
+ /**
14
+ * Provide the ID of the related unmatched credit transfer.
15
+ */
16
+ unmatchedCreditTransferId: string;
17
+ /**
18
+ * A unique key to ensure idempotent requests. This key should be a UUID v4 string.
19
+ */
20
+ idempotencyKey?: string | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const GetUnmatchedCreditTransferRequest$inboundSchema: z.ZodType<
25
+ GetUnmatchedCreditTransferRequest,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ unmatchedCreditTransferId: z.string(),
30
+ "idempotency-key": z.string().optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "idempotency-key": "idempotencyKey",
34
+ });
35
+ });
36
+ /** @internal */
37
+ export type GetUnmatchedCreditTransferRequest$Outbound = {
38
+ unmatchedCreditTransferId: string;
39
+ "idempotency-key"?: string | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const GetUnmatchedCreditTransferRequest$outboundSchema: z.ZodType<
44
+ GetUnmatchedCreditTransferRequest$Outbound,
45
+ z.ZodTypeDef,
46
+ GetUnmatchedCreditTransferRequest
47
+ > = z.object({
48
+ unmatchedCreditTransferId: z.string(),
49
+ idempotencyKey: z.string().optional(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ idempotencyKey: "idempotency-key",
53
+ });
54
+ });
55
+
56
+ export function getUnmatchedCreditTransferRequestToJSON(
57
+ getUnmatchedCreditTransferRequest: GetUnmatchedCreditTransferRequest,
58
+ ): string {
59
+ return JSON.stringify(
60
+ GetUnmatchedCreditTransferRequest$outboundSchema.parse(
61
+ getUnmatchedCreditTransferRequest,
62
+ ),
63
+ );
64
+ }
65
+ export function getUnmatchedCreditTransferRequestFromJSON(
66
+ jsonString: string,
67
+ ): SafeParseResult<GetUnmatchedCreditTransferRequest, SDKValidationError> {
68
+ return safeParse(
69
+ jsonString,
70
+ (x) => GetUnmatchedCreditTransferRequest$inboundSchema.parse(JSON.parse(x)),
71
+ `Failed to parse 'GetUnmatchedCreditTransferRequest' from JSON`,
72
+ );
73
+ }
@@ -58,6 +58,7 @@ export * from "./getsettlement.js";
58
58
  export * from "./getsubscription.js";
59
59
  export * from "./getterminal.js";
60
60
  export * from "./gettransfer.js";
61
+ export * from "./getunmatchedcredittransfer.js";
61
62
  export * from "./getwebhook.js";
62
63
  export * from "./getwebhookevent.js";
63
64
  export * from "./listallchargebacks.js";
@@ -92,12 +93,15 @@ export * from "./listsettlements.js";
92
93
  export * from "./listsubscriptionpayments.js";
93
94
  export * from "./listsubscriptions.js";
94
95
  export * from "./listterminals.js";
96
+ export * from "./listunmatchedcredittransfers.js";
95
97
  export * from "./listwebhooks.js";
98
+ export * from "./matchunmatchedcredittransfer.js";
96
99
  export * from "./paymentcreateroute.js";
97
100
  export * from "./paymentgetroute.js";
98
101
  export * from "./paymentlistroutes.js";
99
102
  export * from "./releaseauthorization.js";
100
103
  export * from "./requestapplepaypaymentsession.js";
104
+ export * from "./returnunmatchedcredittransfer.js";
101
105
  export * from "./revokemandate.js";
102
106
  export * from "./submitonboardingdata.js";
103
107
  export * from "./testwebhook.js";