mollie-api-typescript 1.3.5 → 1.3.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 (244) hide show
  1. package/README.md +11 -0
  2. package/bin/mcp-server.js +1716 -768
  3. package/bin/mcp-server.js.map +32 -12
  4. package/dist/commonjs/funcs/accountsGet.d.ts +22 -0
  5. package/dist/commonjs/funcs/accountsGet.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/accountsGet.js +147 -0
  7. package/dist/commonjs/funcs/accountsGet.js.map +1 -0
  8. package/dist/commonjs/funcs/accountsGetAccount.d.ts +22 -0
  9. package/dist/commonjs/funcs/accountsGetAccount.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/accountsGetAccount.js +143 -0
  11. package/dist/commonjs/funcs/accountsGetAccount.js.map +1 -0
  12. package/dist/commonjs/funcs/accountsList.d.ts +27 -0
  13. package/dist/commonjs/funcs/accountsList.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/accountsList.js +178 -0
  15. package/dist/commonjs/funcs/accountsList.js.map +1 -0
  16. package/dist/commonjs/funcs/accountsListAccounts.d.ts +27 -0
  17. package/dist/commonjs/funcs/accountsListAccounts.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/accountsListAccounts.js +178 -0
  19. package/dist/commonjs/funcs/accountsListAccounts.js.map +1 -0
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  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/accountsGet.d.ts +8 -0
  27. package/dist/commonjs/mcp-server/tools/accountsGet.d.ts.map +1 -0
  28. package/dist/commonjs/mcp-server/tools/accountsGet.js +66 -0
  29. package/dist/commonjs/mcp-server/tools/accountsGet.js.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/accountsGetAccount.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/accountsGetAccount.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/accountsGetAccount.js +66 -0
  33. package/dist/commonjs/mcp-server/tools/accountsGetAccount.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/accountsList.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/accountsList.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/accountsList.js +67 -0
  37. package/dist/commonjs/mcp-server/tools/accountsList.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/accountsListAccounts.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/accountsListAccounts.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/accountsListAccounts.js +67 -0
  41. package/dist/commonjs/mcp-server/tools/accountsListAccounts.js.map +1 -0
  42. package/dist/commonjs/models/accountdetails.d.ts +43 -0
  43. package/dist/commonjs/models/accountdetails.d.ts.map +1 -0
  44. package/dist/commonjs/models/accountdetails.js +67 -0
  45. package/dist/commonjs/models/accountdetails.js.map +1 -0
  46. package/dist/commonjs/models/accountstatus.d.ts +19 -0
  47. package/dist/commonjs/models/accountstatus.d.ts.map +1 -0
  48. package/dist/commonjs/models/accountstatus.js +54 -0
  49. package/dist/commonjs/models/accountstatus.js.map +1 -0
  50. package/dist/commonjs/models/afterbalance.d.ts +24 -0
  51. package/dist/commonjs/models/afterbalance.d.ts.map +1 -0
  52. package/dist/commonjs/models/afterbalance.js +60 -0
  53. package/dist/commonjs/models/afterbalance.js.map +1 -0
  54. package/dist/commonjs/models/balance.d.ts +24 -0
  55. package/dist/commonjs/models/balance.d.ts.map +1 -0
  56. package/dist/commonjs/models/balance.js +60 -0
  57. package/dist/commonjs/models/balance.js.map +1 -0
  58. package/dist/commonjs/models/businessaccountresponse.d.ts +60 -0
  59. package/dist/commonjs/models/businessaccountresponse.d.ts.map +1 -0
  60. package/dist/commonjs/models/businessaccountresponse.js +75 -0
  61. package/dist/commonjs/models/businessaccountresponse.js.map +1 -0
  62. package/dist/commonjs/models/counterparty.d.ts +28 -0
  63. package/dist/commonjs/models/counterparty.d.ts.map +1 -0
  64. package/dist/commonjs/models/counterparty.js +61 -0
  65. package/dist/commonjs/models/counterparty.js.map +1 -0
  66. package/dist/commonjs/models/creditdebitindicator.d.ts +2 -2
  67. package/dist/commonjs/models/creditdebitindicator.js +1 -1
  68. package/dist/commonjs/models/index.d.ts +8 -0
  69. package/dist/commonjs/models/index.d.ts.map +1 -1
  70. package/dist/commonjs/models/index.js +8 -0
  71. package/dist/commonjs/models/index.js.map +1 -1
  72. package/dist/commonjs/models/operations/getbusinessaccount.d.ts +58 -0
  73. package/dist/commonjs/models/operations/getbusinessaccount.d.ts.map +1 -0
  74. package/dist/commonjs/models/operations/getbusinessaccount.js +88 -0
  75. package/dist/commonjs/models/operations/getbusinessaccount.js.map +1 -0
  76. package/dist/commonjs/models/operations/getbusinessaccounttransaction.d.ts +63 -0
  77. package/dist/commonjs/models/operations/getbusinessaccounttransaction.d.ts.map +1 -0
  78. package/dist/commonjs/models/operations/getbusinessaccounttransaction.js +90 -0
  79. package/dist/commonjs/models/operations/getbusinessaccounttransaction.js.map +1 -0
  80. package/dist/commonjs/models/operations/index.d.ts +4 -0
  81. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/index.js +4 -0
  83. package/dist/commonjs/models/operations/index.js.map +1 -1
  84. package/dist/commonjs/models/operations/listbusinessaccounts.d.ts +131 -0
  85. package/dist/commonjs/models/operations/listbusinessaccounts.d.ts.map +1 -0
  86. package/dist/commonjs/models/operations/listbusinessaccounts.js +161 -0
  87. package/dist/commonjs/models/operations/listbusinessaccounts.js.map +1 -0
  88. package/dist/commonjs/models/operations/listbusinessaccounttransactions.d.ts +136 -0
  89. package/dist/commonjs/models/operations/listbusinessaccounttransactions.d.ts.map +1 -0
  90. package/dist/commonjs/models/operations/listbusinessaccounttransactions.js +161 -0
  91. package/dist/commonjs/models/operations/listbusinessaccounttransactions.js.map +1 -0
  92. package/dist/commonjs/models/transactionresponse.d.ts +92 -0
  93. package/dist/commonjs/models/transactionresponse.d.ts.map +1 -0
  94. package/dist/commonjs/models/transactionresponse.js +87 -0
  95. package/dist/commonjs/models/transactionresponse.js.map +1 -0
  96. package/dist/commonjs/models/transactiontype.d.ts +35 -0
  97. package/dist/commonjs/models/transactiontype.d.ts.map +1 -0
  98. package/dist/commonjs/models/transactiontype.js +65 -0
  99. package/dist/commonjs/models/transactiontype.js.map +1 -0
  100. package/dist/commonjs/models/transferresponse.d.ts +1 -1
  101. package/dist/commonjs/sdk/accounts.d.ts +45 -0
  102. package/dist/commonjs/sdk/accounts.d.ts.map +1 -0
  103. package/dist/commonjs/sdk/accounts.js +60 -0
  104. package/dist/commonjs/sdk/accounts.js.map +1 -0
  105. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  106. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  107. package/dist/commonjs/sdk/sdk.js +4 -0
  108. package/dist/commonjs/sdk/sdk.js.map +1 -1
  109. package/dist/esm/funcs/accountsGet.d.ts +22 -0
  110. package/dist/esm/funcs/accountsGet.d.ts.map +1 -0
  111. package/dist/esm/funcs/accountsGet.js +111 -0
  112. package/dist/esm/funcs/accountsGet.js.map +1 -0
  113. package/dist/esm/funcs/accountsGetAccount.d.ts +22 -0
  114. package/dist/esm/funcs/accountsGetAccount.d.ts.map +1 -0
  115. package/dist/esm/funcs/accountsGetAccount.js +107 -0
  116. package/dist/esm/funcs/accountsGetAccount.js.map +1 -0
  117. package/dist/esm/funcs/accountsList.d.ts +27 -0
  118. package/dist/esm/funcs/accountsList.d.ts.map +1 -0
  119. package/dist/esm/funcs/accountsList.js +142 -0
  120. package/dist/esm/funcs/accountsList.js.map +1 -0
  121. package/dist/esm/funcs/accountsListAccounts.d.ts +27 -0
  122. package/dist/esm/funcs/accountsListAccounts.d.ts.map +1 -0
  123. package/dist/esm/funcs/accountsListAccounts.js +142 -0
  124. package/dist/esm/funcs/accountsListAccounts.js.map +1 -0
  125. package/dist/esm/lib/config.d.ts +2 -2
  126. package/dist/esm/lib/config.js +2 -2
  127. package/dist/esm/mcp-server/mcp-server.js +1 -1
  128. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  129. package/dist/esm/mcp-server/server.js +9 -1
  130. package/dist/esm/mcp-server/server.js.map +1 -1
  131. package/dist/esm/mcp-server/tools/accountsGet.d.ts +8 -0
  132. package/dist/esm/mcp-server/tools/accountsGet.d.ts.map +1 -0
  133. package/dist/esm/mcp-server/tools/accountsGet.js +30 -0
  134. package/dist/esm/mcp-server/tools/accountsGet.js.map +1 -0
  135. package/dist/esm/mcp-server/tools/accountsGetAccount.d.ts +8 -0
  136. package/dist/esm/mcp-server/tools/accountsGetAccount.d.ts.map +1 -0
  137. package/dist/esm/mcp-server/tools/accountsGetAccount.js +30 -0
  138. package/dist/esm/mcp-server/tools/accountsGetAccount.js.map +1 -0
  139. package/dist/esm/mcp-server/tools/accountsList.d.ts +8 -0
  140. package/dist/esm/mcp-server/tools/accountsList.d.ts.map +1 -0
  141. package/dist/esm/mcp-server/tools/accountsList.js +31 -0
  142. package/dist/esm/mcp-server/tools/accountsList.js.map +1 -0
  143. package/dist/esm/mcp-server/tools/accountsListAccounts.d.ts +8 -0
  144. package/dist/esm/mcp-server/tools/accountsListAccounts.d.ts.map +1 -0
  145. package/dist/esm/mcp-server/tools/accountsListAccounts.js +31 -0
  146. package/dist/esm/mcp-server/tools/accountsListAccounts.js.map +1 -0
  147. package/dist/esm/models/accountdetails.d.ts +43 -0
  148. package/dist/esm/models/accountdetails.d.ts.map +1 -0
  149. package/dist/esm/models/accountdetails.js +29 -0
  150. package/dist/esm/models/accountdetails.js.map +1 -0
  151. package/dist/esm/models/accountstatus.d.ts +19 -0
  152. package/dist/esm/models/accountstatus.d.ts.map +1 -0
  153. package/dist/esm/models/accountstatus.js +18 -0
  154. package/dist/esm/models/accountstatus.js.map +1 -0
  155. package/dist/esm/models/afterbalance.d.ts +24 -0
  156. package/dist/esm/models/afterbalance.d.ts.map +1 -0
  157. package/dist/esm/models/afterbalance.js +22 -0
  158. package/dist/esm/models/afterbalance.js.map +1 -0
  159. package/dist/esm/models/balance.d.ts +24 -0
  160. package/dist/esm/models/balance.d.ts.map +1 -0
  161. package/dist/esm/models/balance.js +22 -0
  162. package/dist/esm/models/balance.js.map +1 -0
  163. package/dist/esm/models/businessaccountresponse.d.ts +60 -0
  164. package/dist/esm/models/businessaccountresponse.d.ts.map +1 -0
  165. package/dist/esm/models/businessaccountresponse.js +37 -0
  166. package/dist/esm/models/businessaccountresponse.js.map +1 -0
  167. package/dist/esm/models/counterparty.d.ts +28 -0
  168. package/dist/esm/models/counterparty.d.ts.map +1 -0
  169. package/dist/esm/models/counterparty.js +23 -0
  170. package/dist/esm/models/counterparty.js.map +1 -0
  171. package/dist/esm/models/creditdebitindicator.d.ts +2 -2
  172. package/dist/esm/models/creditdebitindicator.js +1 -1
  173. package/dist/esm/models/index.d.ts +8 -0
  174. package/dist/esm/models/index.d.ts.map +1 -1
  175. package/dist/esm/models/index.js +8 -0
  176. package/dist/esm/models/index.js.map +1 -1
  177. package/dist/esm/models/operations/getbusinessaccount.d.ts +58 -0
  178. package/dist/esm/models/operations/getbusinessaccount.d.ts.map +1 -0
  179. package/dist/esm/models/operations/getbusinessaccount.js +48 -0
  180. package/dist/esm/models/operations/getbusinessaccount.js.map +1 -0
  181. package/dist/esm/models/operations/getbusinessaccounttransaction.d.ts +63 -0
  182. package/dist/esm/models/operations/getbusinessaccounttransaction.d.ts.map +1 -0
  183. package/dist/esm/models/operations/getbusinessaccounttransaction.js +50 -0
  184. package/dist/esm/models/operations/getbusinessaccounttransaction.js.map +1 -0
  185. package/dist/esm/models/operations/index.d.ts +4 -0
  186. package/dist/esm/models/operations/index.d.ts.map +1 -1
  187. package/dist/esm/models/operations/index.js +4 -0
  188. package/dist/esm/models/operations/index.js.map +1 -1
  189. package/dist/esm/models/operations/listbusinessaccounts.d.ts +131 -0
  190. package/dist/esm/models/operations/listbusinessaccounts.d.ts.map +1 -0
  191. package/dist/esm/models/operations/listbusinessaccounts.js +115 -0
  192. package/dist/esm/models/operations/listbusinessaccounts.js.map +1 -0
  193. package/dist/esm/models/operations/listbusinessaccounttransactions.d.ts +136 -0
  194. package/dist/esm/models/operations/listbusinessaccounttransactions.d.ts.map +1 -0
  195. package/dist/esm/models/operations/listbusinessaccounttransactions.js +115 -0
  196. package/dist/esm/models/operations/listbusinessaccounttransactions.js.map +1 -0
  197. package/dist/esm/models/transactionresponse.d.ts +92 -0
  198. package/dist/esm/models/transactionresponse.d.ts.map +1 -0
  199. package/dist/esm/models/transactionresponse.js +49 -0
  200. package/dist/esm/models/transactionresponse.js.map +1 -0
  201. package/dist/esm/models/transactiontype.d.ts +35 -0
  202. package/dist/esm/models/transactiontype.d.ts.map +1 -0
  203. package/dist/esm/models/transactiontype.js +29 -0
  204. package/dist/esm/models/transactiontype.js.map +1 -0
  205. package/dist/esm/models/transferresponse.d.ts +1 -1
  206. package/dist/esm/sdk/accounts.d.ts +45 -0
  207. package/dist/esm/sdk/accounts.d.ts.map +1 -0
  208. package/dist/esm/sdk/accounts.js +56 -0
  209. package/dist/esm/sdk/accounts.js.map +1 -0
  210. package/dist/esm/sdk/sdk.d.ts +3 -0
  211. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  212. package/dist/esm/sdk/sdk.js +4 -0
  213. package/dist/esm/sdk/sdk.js.map +1 -1
  214. package/jsr.json +1 -1
  215. package/package.json +1 -1
  216. package/src/funcs/accountsGet.ts +212 -0
  217. package/src/funcs/accountsGetAccount.ts +205 -0
  218. package/src/funcs/accountsList.ts +285 -0
  219. package/src/funcs/accountsListAccounts.ts +275 -0
  220. package/src/lib/config.ts +2 -2
  221. package/src/mcp-server/mcp-server.ts +1 -1
  222. package/src/mcp-server/server.ts +9 -1
  223. package/src/mcp-server/tools/accountsGet.ts +39 -0
  224. package/src/mcp-server/tools/accountsGetAccount.ts +39 -0
  225. package/src/mcp-server/tools/accountsList.ts +40 -0
  226. package/src/mcp-server/tools/accountsListAccounts.ts +40 -0
  227. package/src/models/accountdetails.ts +82 -0
  228. package/src/models/accountstatus.ts +34 -0
  229. package/src/models/afterbalance.ts +60 -0
  230. package/src/models/balance.ts +57 -0
  231. package/src/models/businessaccountresponse.ts +121 -0
  232. package/src/models/counterparty.ts +61 -0
  233. package/src/models/creditdebitindicator.ts +2 -2
  234. package/src/models/index.ts +8 -0
  235. package/src/models/operations/getbusinessaccount.ts +136 -0
  236. package/src/models/operations/getbusinessaccounttransaction.ts +149 -0
  237. package/src/models/operations/index.ts +4 -0
  238. package/src/models/operations/listbusinessaccounts.ts +333 -0
  239. package/src/models/operations/listbusinessaccounttransactions.ts +373 -0
  240. package/src/models/transactionresponse.ts +172 -0
  241. package/src/models/transactiontype.ts +50 -0
  242. package/src/models/transferresponse.ts +1 -1
  243. package/src/sdk/accounts.ts +97 -0
  244. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d7bbe0a7b446
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import {
10
+ Amount,
11
+ Amount$inboundSchema,
12
+ Amount$Outbound,
13
+ Amount$outboundSchema,
14
+ } from "./amount.js";
15
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
16
+
17
+ /**
18
+ * The balance of the business account.
19
+ */
20
+ export type Balance = {
21
+ /**
22
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
23
+ */
24
+ total: Amount;
25
+ };
26
+
27
+ /** @internal */
28
+ export const Balance$inboundSchema: z.ZodType<Balance, z.ZodTypeDef, unknown> =
29
+ z.object({
30
+ total: Amount$inboundSchema,
31
+ });
32
+ /** @internal */
33
+ export type Balance$Outbound = {
34
+ total: Amount$Outbound;
35
+ };
36
+
37
+ /** @internal */
38
+ export const Balance$outboundSchema: z.ZodType<
39
+ Balance$Outbound,
40
+ z.ZodTypeDef,
41
+ Balance
42
+ > = z.object({
43
+ total: Amount$outboundSchema,
44
+ });
45
+
46
+ export function balanceToJSON(balance: Balance): string {
47
+ return JSON.stringify(Balance$outboundSchema.parse(balance));
48
+ }
49
+ export function balanceFromJSON(
50
+ jsonString: string,
51
+ ): SafeParseResult<Balance, SDKValidationError> {
52
+ return safeParse(
53
+ jsonString,
54
+ (x) => Balance$inboundSchema.parse(JSON.parse(x)),
55
+ `Failed to parse 'Balance' from JSON`,
56
+ );
57
+ }
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e3d4976866ba
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import {
10
+ AccountDetails,
11
+ AccountDetails$inboundSchema,
12
+ AccountDetails$Outbound,
13
+ AccountDetails$outboundSchema,
14
+ } from "./accountdetails.js";
15
+ import {
16
+ AccountStatus,
17
+ AccountStatus$inboundSchema,
18
+ AccountStatus$outboundSchema,
19
+ } from "./accountstatus.js";
20
+ import {
21
+ Balance,
22
+ Balance$inboundSchema,
23
+ Balance$Outbound,
24
+ Balance$outboundSchema,
25
+ } from "./balance.js";
26
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
27
+ import { Mode, Mode$inboundSchema, Mode$outboundSchema } from "./mode.js";
28
+
29
+ export type BusinessAccountResponse = {
30
+ /**
31
+ * Indicates the response contains a business account object. Will always contain the string `business-account`
32
+ *
33
+ * @remarks
34
+ * for this endpoint.
35
+ */
36
+ resource: string;
37
+ /**
38
+ * The identifier uniquely referring to this business account. Mollie assigns this identifier at account creation
39
+ *
40
+ * @remarks
41
+ * time.
42
+ */
43
+ id: string;
44
+ /**
45
+ * The account holder details and bank account information for the business account.
46
+ */
47
+ accountDetails: AccountDetails;
48
+ /**
49
+ * The balance of the business account.
50
+ */
51
+ balance: Balance;
52
+ /**
53
+ * The status of the business account.
54
+ */
55
+ status: AccountStatus;
56
+ /**
57
+ * Whether this entity was created in live mode or in test mode.
58
+ */
59
+ mode: Mode;
60
+ /**
61
+ * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
62
+ */
63
+ createdAt: string;
64
+ };
65
+
66
+ /** @internal */
67
+ export const BusinessAccountResponse$inboundSchema: z.ZodType<
68
+ BusinessAccountResponse,
69
+ z.ZodTypeDef,
70
+ unknown
71
+ > = z.object({
72
+ resource: z.string(),
73
+ id: z.string(),
74
+ accountDetails: AccountDetails$inboundSchema,
75
+ balance: Balance$inboundSchema,
76
+ status: AccountStatus$inboundSchema,
77
+ mode: Mode$inboundSchema,
78
+ createdAt: z.string(),
79
+ });
80
+ /** @internal */
81
+ export type BusinessAccountResponse$Outbound = {
82
+ resource: string;
83
+ id: string;
84
+ accountDetails: AccountDetails$Outbound;
85
+ balance: Balance$Outbound;
86
+ status: string;
87
+ mode: string;
88
+ createdAt: string;
89
+ };
90
+
91
+ /** @internal */
92
+ export const BusinessAccountResponse$outboundSchema: z.ZodType<
93
+ BusinessAccountResponse$Outbound,
94
+ z.ZodTypeDef,
95
+ BusinessAccountResponse
96
+ > = z.object({
97
+ resource: z.string(),
98
+ id: z.string(),
99
+ accountDetails: AccountDetails$outboundSchema,
100
+ balance: Balance$outboundSchema,
101
+ status: AccountStatus$outboundSchema,
102
+ mode: Mode$outboundSchema,
103
+ createdAt: z.string(),
104
+ });
105
+
106
+ export function businessAccountResponseToJSON(
107
+ businessAccountResponse: BusinessAccountResponse,
108
+ ): string {
109
+ return JSON.stringify(
110
+ BusinessAccountResponse$outboundSchema.parse(businessAccountResponse),
111
+ );
112
+ }
113
+ export function businessAccountResponseFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<BusinessAccountResponse, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => BusinessAccountResponse$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'BusinessAccountResponse' from JSON`,
120
+ );
121
+ }
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f3063cb90e48
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The counterparty involved in the transaction, including their name and account identifier.
13
+ */
14
+ export type Counterparty = {
15
+ /**
16
+ * The account identifier (e.g. IBAN) of the counterparty.
17
+ */
18
+ identifier?: string | undefined;
19
+ /**
20
+ * The name of the counterparty.
21
+ */
22
+ name?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const Counterparty$inboundSchema: z.ZodType<
27
+ Counterparty,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ identifier: z.string().optional(),
32
+ name: z.string().optional(),
33
+ });
34
+ /** @internal */
35
+ export type Counterparty$Outbound = {
36
+ identifier?: string | undefined;
37
+ name?: string | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const Counterparty$outboundSchema: z.ZodType<
42
+ Counterparty$Outbound,
43
+ z.ZodTypeDef,
44
+ Counterparty
45
+ > = z.object({
46
+ identifier: z.string().optional(),
47
+ name: z.string().optional(),
48
+ });
49
+
50
+ export function counterpartyToJSON(counterparty: Counterparty): string {
51
+ return JSON.stringify(Counterparty$outboundSchema.parse(counterparty));
52
+ }
53
+ export function counterpartyFromJSON(
54
+ jsonString: string,
55
+ ): SafeParseResult<Counterparty, SDKValidationError> {
56
+ return safeParse(
57
+ jsonString,
58
+ (x) => Counterparty$inboundSchema.parse(JSON.parse(x)),
59
+ `Failed to parse 'Counterparty' from JSON`,
60
+ );
61
+ }
@@ -8,14 +8,14 @@ import * as openEnums from "../types/enums.js";
8
8
  import { OpenEnum } from "../types/enums.js";
9
9
 
10
10
  /**
11
- * Indicates whether the transfer is a credit or debit transaction from the perspective of the account holder.
11
+ * Indicates whether the entry is a credit or debit from the perspective of the account holder.
12
12
  */
13
13
  export const CreditDebitIndicator = {
14
14
  Credit: "credit",
15
15
  Debit: "debit",
16
16
  } as const;
17
17
  /**
18
- * Indicates whether the transfer is a credit or debit transaction from the perspective of the account holder.
18
+ * Indicates whether the entry is a credit or debit from the perspective of the account holder.
19
19
  */
20
20
  export type CreditDebitIndicator = OpenEnum<typeof CreditDebitIndicator>;
21
21
 
@@ -3,11 +3,15 @@
3
3
  * @generated-id: f93644b0f37e
4
4
  */
5
5
 
6
+ export * from "./accountdetails.js";
6
7
  export * from "./accountnumberformat.js";
7
8
  export * from "./accountnumberformatresponse.js";
9
+ export * from "./accountstatus.js";
8
10
  export * from "./address.js";
11
+ export * from "./afterbalance.js";
9
12
  export * from "./amount.js";
10
13
  export * from "./amountnullable.js";
14
+ export * from "./balance.js";
11
15
  export * from "./balancecardaudience.js";
12
16
  export * from "./balancecardissuer.js";
13
17
  export * from "./balancecardregion.js";
@@ -23,6 +27,7 @@ export * from "./balancetransferpartytyperesponse.js";
23
27
  export * from "./balancetransferstatus.js";
24
28
  export * from "./balancetransferstatusreasonresponse.js";
25
29
  export * from "./billingaddress.js";
30
+ export * from "./businessaccountresponse.js";
26
31
  export * from "./capabilityrequirementstatus.js";
27
32
  export * from "./capabilitystatus.js";
28
33
  export * from "./capabilitystatusreason.js";
@@ -32,6 +37,7 @@ export * from "./captureresponse.js";
32
37
  export * from "./clientlinkrequest.js";
33
38
  export * from "./clientlinkresponse.js";
34
39
  export * from "./componentssubtotals.js";
40
+ export * from "./counterparty.js";
35
41
  export * from "./createwebhook.js";
36
42
  export * from "./creditdebitindicator.js";
37
43
  export * from "./creditorbankaccount.js";
@@ -193,6 +199,8 @@ export * from "./subscriptionresponse.js";
193
199
  export * from "./subtotals.js";
194
200
  export * from "./terminalbrand.js";
195
201
  export * from "./terminalmodel.js";
202
+ export * from "./transactionresponse.js";
203
+ export * from "./transactiontype.js";
196
204
  export * from "./transferparty.js";
197
205
  export * from "./transferrequest.js";
198
206
  export * from "./transferresponse.js";
@@ -0,0 +1,136 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4490998d4b60
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 GetBusinessAccountGlobals = {
13
+ /**
14
+ * Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
15
+ *
16
+ * @remarks
17
+ * parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
18
+ * setting the `testmode` query parameter to `true`.
19
+ *
20
+ * Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
21
+ */
22
+ testmode?: boolean | undefined;
23
+ };
24
+
25
+ export type GetBusinessAccountRequest = {
26
+ /**
27
+ * Provide the ID of the related business account.
28
+ */
29
+ businessAccountId: string;
30
+ /**
31
+ * Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
32
+ *
33
+ * @remarks
34
+ * parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
35
+ * setting the `testmode` query parameter to `true`.
36
+ *
37
+ * Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
38
+ */
39
+ testmode?: boolean | undefined;
40
+ /**
41
+ * A unique key to ensure idempotent requests. This key should be a UUID v4 string.
42
+ */
43
+ idempotencyKey?: string | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const GetBusinessAccountGlobals$inboundSchema: z.ZodType<
48
+ GetBusinessAccountGlobals,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = z.object({
52
+ testmode: z.boolean().optional(),
53
+ });
54
+ /** @internal */
55
+ export type GetBusinessAccountGlobals$Outbound = {
56
+ testmode?: boolean | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const GetBusinessAccountGlobals$outboundSchema: z.ZodType<
61
+ GetBusinessAccountGlobals$Outbound,
62
+ z.ZodTypeDef,
63
+ GetBusinessAccountGlobals
64
+ > = z.object({
65
+ testmode: z.boolean().optional(),
66
+ });
67
+
68
+ export function getBusinessAccountGlobalsToJSON(
69
+ getBusinessAccountGlobals: GetBusinessAccountGlobals,
70
+ ): string {
71
+ return JSON.stringify(
72
+ GetBusinessAccountGlobals$outboundSchema.parse(getBusinessAccountGlobals),
73
+ );
74
+ }
75
+ export function getBusinessAccountGlobalsFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<GetBusinessAccountGlobals, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => GetBusinessAccountGlobals$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'GetBusinessAccountGlobals' from JSON`,
82
+ );
83
+ }
84
+
85
+ /** @internal */
86
+ export const GetBusinessAccountRequest$inboundSchema: z.ZodType<
87
+ GetBusinessAccountRequest,
88
+ z.ZodTypeDef,
89
+ unknown
90
+ > = z.object({
91
+ businessAccountId: z.string(),
92
+ testmode: z.boolean().optional(),
93
+ "idempotency-key": z.string().optional(),
94
+ }).transform((v) => {
95
+ return remap$(v, {
96
+ "idempotency-key": "idempotencyKey",
97
+ });
98
+ });
99
+ /** @internal */
100
+ export type GetBusinessAccountRequest$Outbound = {
101
+ businessAccountId: string;
102
+ testmode?: boolean | undefined;
103
+ "idempotency-key"?: string | undefined;
104
+ };
105
+
106
+ /** @internal */
107
+ export const GetBusinessAccountRequest$outboundSchema: z.ZodType<
108
+ GetBusinessAccountRequest$Outbound,
109
+ z.ZodTypeDef,
110
+ GetBusinessAccountRequest
111
+ > = z.object({
112
+ businessAccountId: z.string(),
113
+ testmode: z.boolean().optional(),
114
+ idempotencyKey: z.string().optional(),
115
+ }).transform((v) => {
116
+ return remap$(v, {
117
+ idempotencyKey: "idempotency-key",
118
+ });
119
+ });
120
+
121
+ export function getBusinessAccountRequestToJSON(
122
+ getBusinessAccountRequest: GetBusinessAccountRequest,
123
+ ): string {
124
+ return JSON.stringify(
125
+ GetBusinessAccountRequest$outboundSchema.parse(getBusinessAccountRequest),
126
+ );
127
+ }
128
+ export function getBusinessAccountRequestFromJSON(
129
+ jsonString: string,
130
+ ): SafeParseResult<GetBusinessAccountRequest, SDKValidationError> {
131
+ return safeParse(
132
+ jsonString,
133
+ (x) => GetBusinessAccountRequest$inboundSchema.parse(JSON.parse(x)),
134
+ `Failed to parse 'GetBusinessAccountRequest' from JSON`,
135
+ );
136
+ }
@@ -0,0 +1,149 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9bf0aefb8fcc
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 GetBusinessAccountTransactionGlobals = {
13
+ /**
14
+ * Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
15
+ *
16
+ * @remarks
17
+ * parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
18
+ * setting the `testmode` query parameter to `true`.
19
+ *
20
+ * Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
21
+ */
22
+ testmode?: boolean | undefined;
23
+ };
24
+
25
+ export type GetBusinessAccountTransactionRequest = {
26
+ /**
27
+ * Provide the ID of the related business account.
28
+ */
29
+ businessAccountId: string;
30
+ /**
31
+ * Provide the ID of the related transaction.
32
+ */
33
+ transactionId: string;
34
+ /**
35
+ * Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
36
+ *
37
+ * @remarks
38
+ * parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
39
+ * setting the `testmode` query parameter to `true`.
40
+ *
41
+ * Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
42
+ */
43
+ testmode?: boolean | undefined;
44
+ /**
45
+ * A unique key to ensure idempotent requests. This key should be a UUID v4 string.
46
+ */
47
+ idempotencyKey?: string | undefined;
48
+ };
49
+
50
+ /** @internal */
51
+ export const GetBusinessAccountTransactionGlobals$inboundSchema: z.ZodType<
52
+ GetBusinessAccountTransactionGlobals,
53
+ z.ZodTypeDef,
54
+ unknown
55
+ > = z.object({
56
+ testmode: z.boolean().optional(),
57
+ });
58
+ /** @internal */
59
+ export type GetBusinessAccountTransactionGlobals$Outbound = {
60
+ testmode?: boolean | undefined;
61
+ };
62
+
63
+ /** @internal */
64
+ export const GetBusinessAccountTransactionGlobals$outboundSchema: z.ZodType<
65
+ GetBusinessAccountTransactionGlobals$Outbound,
66
+ z.ZodTypeDef,
67
+ GetBusinessAccountTransactionGlobals
68
+ > = z.object({
69
+ testmode: z.boolean().optional(),
70
+ });
71
+
72
+ export function getBusinessAccountTransactionGlobalsToJSON(
73
+ getBusinessAccountTransactionGlobals: GetBusinessAccountTransactionGlobals,
74
+ ): string {
75
+ return JSON.stringify(
76
+ GetBusinessAccountTransactionGlobals$outboundSchema.parse(
77
+ getBusinessAccountTransactionGlobals,
78
+ ),
79
+ );
80
+ }
81
+ export function getBusinessAccountTransactionGlobalsFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<GetBusinessAccountTransactionGlobals, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) =>
87
+ GetBusinessAccountTransactionGlobals$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'GetBusinessAccountTransactionGlobals' from JSON`,
89
+ );
90
+ }
91
+
92
+ /** @internal */
93
+ export const GetBusinessAccountTransactionRequest$inboundSchema: z.ZodType<
94
+ GetBusinessAccountTransactionRequest,
95
+ z.ZodTypeDef,
96
+ unknown
97
+ > = z.object({
98
+ businessAccountId: z.string(),
99
+ transactionId: z.string(),
100
+ testmode: z.boolean().optional(),
101
+ "idempotency-key": z.string().optional(),
102
+ }).transform((v) => {
103
+ return remap$(v, {
104
+ "idempotency-key": "idempotencyKey",
105
+ });
106
+ });
107
+ /** @internal */
108
+ export type GetBusinessAccountTransactionRequest$Outbound = {
109
+ businessAccountId: string;
110
+ transactionId: string;
111
+ testmode?: boolean | undefined;
112
+ "idempotency-key"?: string | undefined;
113
+ };
114
+
115
+ /** @internal */
116
+ export const GetBusinessAccountTransactionRequest$outboundSchema: z.ZodType<
117
+ GetBusinessAccountTransactionRequest$Outbound,
118
+ z.ZodTypeDef,
119
+ GetBusinessAccountTransactionRequest
120
+ > = z.object({
121
+ businessAccountId: z.string(),
122
+ transactionId: z.string(),
123
+ testmode: z.boolean().optional(),
124
+ idempotencyKey: z.string().optional(),
125
+ }).transform((v) => {
126
+ return remap$(v, {
127
+ idempotencyKey: "idempotency-key",
128
+ });
129
+ });
130
+
131
+ export function getBusinessAccountTransactionRequestToJSON(
132
+ getBusinessAccountTransactionRequest: GetBusinessAccountTransactionRequest,
133
+ ): string {
134
+ return JSON.stringify(
135
+ GetBusinessAccountTransactionRequest$outboundSchema.parse(
136
+ getBusinessAccountTransactionRequest,
137
+ ),
138
+ );
139
+ }
140
+ export function getBusinessAccountTransactionRequestFromJSON(
141
+ jsonString: string,
142
+ ): SafeParseResult<GetBusinessAccountTransactionRequest, SDKValidationError> {
143
+ return safeParse(
144
+ jsonString,
145
+ (x) =>
146
+ GetBusinessAccountTransactionRequest$inboundSchema.parse(JSON.parse(x)),
147
+ `Failed to parse 'GetBusinessAccountTransactionRequest' from JSON`,
148
+ );
149
+ }
@@ -28,6 +28,8 @@ export * from "./deletesalesinvoice.js";
28
28
  export * from "./deletewebhook.js";
29
29
  export * from "./getbalance.js";
30
30
  export * from "./getbalancereport.js";
31
+ export * from "./getbusinessaccount.js";
32
+ export * from "./getbusinessaccounttransaction.js";
31
33
  export * from "./getcapture.js";
32
34
  export * from "./getchargeback.js";
33
35
  export * from "./getclient.js";
@@ -64,6 +66,8 @@ export * from "./listallrefunds.js";
64
66
  export * from "./listallsubscriptions.js";
65
67
  export * from "./listbalances.js";
66
68
  export * from "./listbalancetransactions.js";
69
+ export * from "./listbusinessaccounts.js";
70
+ export * from "./listbusinessaccounttransactions.js";
67
71
  export * from "./listcapabilities.js";
68
72
  export * from "./listcaptures.js";
69
73
  export * from "./listchargebacks.js";