@moovio/sdk 0.21.13 → 0.21.15

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 (275) hide show
  1. package/README.md +106 -49
  2. package/bin/mcp-server.js +2707 -977
  3. package/bin/mcp-server.js.map +56 -15
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/feePlansListFeeRevenue.d.ts +17 -0
  6. package/funcs/feePlansListFeeRevenue.d.ts.map +1 -0
  7. package/funcs/feePlansListFeeRevenue.js +132 -0
  8. package/funcs/feePlansListFeeRevenue.js.map +1 -0
  9. package/funcs/feePlansRetrieveFees.d.ts +1 -1
  10. package/funcs/feePlansRetrieveFees.js +1 -1
  11. package/funcs/invoicesCreateInvoice.d.ts +18 -0
  12. package/funcs/invoicesCreateInvoice.d.ts.map +1 -0
  13. package/funcs/invoicesCreateInvoice.js +139 -0
  14. package/funcs/invoicesCreateInvoice.js.map +1 -0
  15. package/funcs/invoicesGetInvoice.d.ts +17 -0
  16. package/funcs/invoicesGetInvoice.d.ts.map +1 -0
  17. package/funcs/invoicesGetInvoice.js +129 -0
  18. package/funcs/invoicesGetInvoice.js.map +1 -0
  19. package/funcs/invoicesListInvoices.d.ts +18 -0
  20. package/funcs/invoicesListInvoices.d.ts.map +1 -0
  21. package/funcs/invoicesListInvoices.js +135 -0
  22. package/funcs/invoicesListInvoices.js.map +1 -0
  23. package/funcs/invoicesMarkPaidInvoice.d.ts +19 -0
  24. package/funcs/invoicesMarkPaidInvoice.d.ts.map +1 -0
  25. package/funcs/invoicesMarkPaidInvoice.js +144 -0
  26. package/funcs/invoicesMarkPaidInvoice.js.map +1 -0
  27. package/funcs/invoicesUpdateInvoice.d.ts +18 -0
  28. package/funcs/invoicesUpdateInvoice.d.ts.map +1 -0
  29. package/funcs/invoicesUpdateInvoice.js +143 -0
  30. package/funcs/invoicesUpdateInvoice.js.map +1 -0
  31. package/jsr.json +1 -1
  32. package/lib/config.d.ts +2 -2
  33. package/lib/config.js +2 -2
  34. package/mcp-server/mcp-server.js +1 -1
  35. package/mcp-server/server.d.ts.map +1 -1
  36. package/mcp-server/server.js +13 -1
  37. package/mcp-server/server.js.map +1 -1
  38. package/mcp-server/tools/feePlansListFeeRevenue.d.ts +8 -0
  39. package/mcp-server/tools/feePlansListFeeRevenue.d.ts.map +1 -0
  40. package/mcp-server/tools/feePlansListFeeRevenue.js +65 -0
  41. package/mcp-server/tools/feePlansListFeeRevenue.js.map +1 -0
  42. package/mcp-server/tools/feePlansRetrieveFees.js +1 -1
  43. package/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
  44. package/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
  45. package/mcp-server/tools/invoicesCreateInvoice.js +65 -0
  46. package/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
  47. package/mcp-server/tools/invoicesGetInvoice.d.ts +8 -0
  48. package/mcp-server/tools/invoicesGetInvoice.d.ts.map +1 -0
  49. package/mcp-server/tools/invoicesGetInvoice.js +65 -0
  50. package/mcp-server/tools/invoicesGetInvoice.js.map +1 -0
  51. package/mcp-server/tools/invoicesListInvoices.d.ts +8 -0
  52. package/mcp-server/tools/invoicesListInvoices.d.ts.map +1 -0
  53. package/mcp-server/tools/invoicesListInvoices.js +65 -0
  54. package/mcp-server/tools/invoicesListInvoices.js.map +1 -0
  55. package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts +8 -0
  56. package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts.map +1 -0
  57. package/mcp-server/tools/invoicesMarkPaidInvoice.js +66 -0
  58. package/mcp-server/tools/invoicesMarkPaidInvoice.js.map +1 -0
  59. package/mcp-server/tools/invoicesUpdateInvoice.d.ts +8 -0
  60. package/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +1 -0
  61. package/mcp-server/tools/invoicesUpdateInvoice.js +65 -0
  62. package/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -0
  63. package/models/components/amountdecimalupdate.d.ts +29 -0
  64. package/models/components/amountdecimalupdate.d.ts.map +1 -0
  65. package/models/components/amountdecimalupdate.js +60 -0
  66. package/models/components/amountdecimalupdate.js.map +1 -0
  67. package/models/components/createinvoice.d.ts +32 -0
  68. package/models/components/createinvoice.d.ts.map +1 -0
  69. package/models/components/createinvoice.js +72 -0
  70. package/models/components/createinvoice.js.map +1 -0
  71. package/models/components/index.d.ts +19 -0
  72. package/models/components/index.d.ts.map +1 -1
  73. package/models/components/index.js +19 -0
  74. package/models/components/index.js.map +1 -1
  75. package/models/components/instantbankcreditpaymentmethod.d.ts +40 -0
  76. package/models/components/instantbankcreditpaymentmethod.d.ts.map +1 -0
  77. package/models/components/instantbankcreditpaymentmethod.js +71 -0
  78. package/models/components/instantbankcreditpaymentmethod.js.map +1 -0
  79. package/models/components/invoice.d.ts +81 -0
  80. package/models/components/invoice.d.ts.map +1 -0
  81. package/models/components/invoice.js +107 -0
  82. package/models/components/invoice.js.map +1 -0
  83. package/models/components/invoiceexternalpayment.d.ts +35 -0
  84. package/models/components/invoiceexternalpayment.d.ts.map +1 -0
  85. package/models/components/invoiceexternalpayment.js +75 -0
  86. package/models/components/invoiceexternalpayment.js.map +1 -0
  87. package/models/components/invoicelineitem.d.ts +45 -0
  88. package/models/components/invoicelineitem.d.ts.map +1 -0
  89. package/models/components/invoicelineitem.js +68 -0
  90. package/models/components/invoicelineitem.js.map +1 -0
  91. package/models/components/invoicelineitemoption.d.ts +39 -0
  92. package/models/components/invoicelineitemoption.d.ts.map +1 -0
  93. package/models/components/invoicelineitemoption.js +65 -0
  94. package/models/components/invoicelineitemoption.js.map +1 -0
  95. package/models/components/invoicelineitemoptionvalidationerror.d.ts +24 -0
  96. package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +1 -0
  97. package/models/components/invoicelineitemoptionvalidationerror.js +65 -0
  98. package/models/components/invoicelineitemoptionvalidationerror.js.map +1 -0
  99. package/models/components/invoicelineitems.d.ts +24 -0
  100. package/models/components/invoicelineitems.d.ts.map +1 -0
  101. package/models/components/invoicelineitems.js +59 -0
  102. package/models/components/invoicelineitems.js.map +1 -0
  103. package/models/components/invoicelineitemsupdate.d.ts +24 -0
  104. package/models/components/invoicelineitemsupdate.d.ts.map +1 -0
  105. package/models/components/invoicelineitemsupdate.js +59 -0
  106. package/models/components/invoicelineitemsupdate.js.map +1 -0
  107. package/models/components/invoicelineitemsvalidationerror.d.ts +22 -0
  108. package/models/components/invoicelineitemsvalidationerror.d.ts.map +1 -0
  109. package/models/components/invoicelineitemsvalidationerror.js +59 -0
  110. package/models/components/invoicelineitemsvalidationerror.js.map +1 -0
  111. package/models/components/invoicelineitemvalidationerror.d.ts +31 -0
  112. package/models/components/invoicelineitemvalidationerror.d.ts.map +1 -0
  113. package/models/components/invoicelineitemvalidationerror.js +70 -0
  114. package/models/components/invoicelineitemvalidationerror.js.map +1 -0
  115. package/models/components/invoicepayment.d.ts +23 -0
  116. package/models/components/invoicepayment.d.ts.map +1 -0
  117. package/models/components/invoicepayment.js +70 -0
  118. package/models/components/invoicepayment.js.map +1 -0
  119. package/models/components/invoicestatus.d.ts +16 -0
  120. package/models/components/invoicestatus.d.ts.map +1 -0
  121. package/models/components/invoicestatus.js +53 -0
  122. package/models/components/invoicestatus.js.map +1 -0
  123. package/models/components/invoicetransferpayment.d.ts +28 -0
  124. package/models/components/invoicetransferpayment.d.ts.map +1 -0
  125. package/models/components/invoicetransferpayment.js +68 -0
  126. package/models/components/invoicetransferpayment.js.map +1 -0
  127. package/models/components/markinvoicepaid.d.ts +21 -0
  128. package/models/components/markinvoicepaid.d.ts.map +1 -0
  129. package/models/components/markinvoicepaid.js +63 -0
  130. package/models/components/markinvoicepaid.js.map +1 -0
  131. package/models/components/paymentmethod.d.ts +5 -0
  132. package/models/components/paymentmethod.d.ts.map +1 -1
  133. package/models/components/paymentmethod.js +3 -0
  134. package/models/components/paymentmethod.js.map +1 -1
  135. package/models/components/paymentmethodtype.d.ts +1 -0
  136. package/models/components/paymentmethodtype.d.ts.map +1 -1
  137. package/models/components/paymentmethodtype.js +1 -0
  138. package/models/components/paymentmethodtype.js.map +1 -1
  139. package/models/components/updateinvoice.d.ts +36 -0
  140. package/models/components/updateinvoice.d.ts.map +1 -0
  141. package/models/components/updateinvoice.js +71 -0
  142. package/models/components/updateinvoice.js.map +1 -0
  143. package/models/components/webhookdata.d.ts +4 -2
  144. package/models/components/webhookdata.d.ts.map +1 -1
  145. package/models/components/webhookdata.js +6 -0
  146. package/models/components/webhookdata.js.map +1 -1
  147. package/models/components/webhookdatainvoicecreated.d.ts +19 -0
  148. package/models/components/webhookdatainvoicecreated.d.ts.map +1 -0
  149. package/models/components/webhookdatainvoicecreated.js +60 -0
  150. package/models/components/webhookdatainvoicecreated.js.map +1 -0
  151. package/models/components/webhookdatainvoiceupdated.d.ts +22 -0
  152. package/models/components/webhookdatainvoiceupdated.d.ts.map +1 -0
  153. package/models/components/webhookdatainvoiceupdated.js +63 -0
  154. package/models/components/webhookdatainvoiceupdated.js.map +1 -0
  155. package/models/components/webhookeventtype.d.ts +2 -0
  156. package/models/components/webhookeventtype.d.ts.map +1 -1
  157. package/models/components/webhookeventtype.js +2 -0
  158. package/models/components/webhookeventtype.js.map +1 -1
  159. package/models/errors/createinvoiceerror.d.ts +40 -0
  160. package/models/errors/createinvoiceerror.d.ts.map +1 -0
  161. package/models/errors/createinvoiceerror.js +100 -0
  162. package/models/errors/createinvoiceerror.js.map +1 -0
  163. package/models/errors/index.d.ts +4 -0
  164. package/models/errors/index.d.ts.map +1 -1
  165. package/models/errors/index.js +4 -0
  166. package/models/errors/index.js.map +1 -1
  167. package/models/errors/listinvoicesvalidationerror.d.ts +33 -0
  168. package/models/errors/listinvoicesvalidationerror.d.ts.map +1 -0
  169. package/models/errors/listinvoicesvalidationerror.js +88 -0
  170. package/models/errors/listinvoicesvalidationerror.js.map +1 -0
  171. package/models/errors/markinvoicepaiderror.d.ts +30 -0
  172. package/models/errors/markinvoicepaiderror.d.ts.map +1 -0
  173. package/models/errors/markinvoicepaiderror.js +83 -0
  174. package/models/errors/markinvoicepaiderror.js.map +1 -0
  175. package/models/errors/updateinvoiceerror.d.ts +40 -0
  176. package/models/errors/updateinvoiceerror.d.ts.map +1 -0
  177. package/models/errors/updateinvoiceerror.js +99 -0
  178. package/models/errors/updateinvoiceerror.js.map +1 -0
  179. package/models/operations/createinvoice.d.ts +66 -0
  180. package/models/operations/createinvoice.d.ts.map +1 -0
  181. package/models/operations/createinvoice.js +122 -0
  182. package/models/operations/createinvoice.js.map +1 -0
  183. package/models/operations/getinvoice.d.ts +66 -0
  184. package/models/operations/getinvoice.d.ts.map +1 -0
  185. package/models/operations/getinvoice.js +114 -0
  186. package/models/operations/getinvoice.js.map +1 -0
  187. package/models/operations/index.d.ts +6 -0
  188. package/models/operations/index.d.ts.map +1 -1
  189. package/models/operations/index.js +6 -0
  190. package/models/operations/index.js.map +1 -1
  191. package/models/operations/listfeerevenue.d.ts +81 -0
  192. package/models/operations/listfeerevenue.d.ts.map +1 -0
  193. package/models/operations/listfeerevenue.js +120 -0
  194. package/models/operations/listfeerevenue.js.map +1 -0
  195. package/models/operations/listinvoices.d.ts +72 -0
  196. package/models/operations/listinvoices.d.ts.map +1 -0
  197. package/models/operations/listinvoices.js +120 -0
  198. package/models/operations/listinvoices.js.map +1 -0
  199. package/models/operations/markpaidinvoice.d.ts +68 -0
  200. package/models/operations/markpaidinvoice.d.ts.map +1 -0
  201. package/models/operations/markpaidinvoice.js +124 -0
  202. package/models/operations/markpaidinvoice.js.map +1 -0
  203. package/models/operations/updateinvoice.d.ts +68 -0
  204. package/models/operations/updateinvoice.d.ts.map +1 -0
  205. package/models/operations/updateinvoice.js +124 -0
  206. package/models/operations/updateinvoice.js.map +1 -0
  207. package/package.json +1 -1
  208. package/sdk/feeplans.d.ts +8 -1
  209. package/sdk/feeplans.d.ts.map +1 -1
  210. package/sdk/feeplans.js +11 -1
  211. package/sdk/feeplans.js.map +1 -1
  212. package/sdk/invoices.d.ts +41 -0
  213. package/sdk/invoices.d.ts.map +1 -0
  214. package/sdk/invoices.js +63 -0
  215. package/sdk/invoices.js.map +1 -0
  216. package/sdk/sdk.d.ts +3 -0
  217. package/sdk/sdk.d.ts.map +1 -1
  218. package/sdk/sdk.js +4 -0
  219. package/sdk/sdk.js.map +1 -1
  220. package/src/funcs/feePlansListFeeRevenue.ts +187 -0
  221. package/src/funcs/feePlansRetrieveFees.ts +1 -1
  222. package/src/funcs/invoicesCreateInvoice.ts +201 -0
  223. package/src/funcs/invoicesGetInvoice.ts +185 -0
  224. package/src/funcs/invoicesListInvoices.ts +194 -0
  225. package/src/funcs/invoicesMarkPaidInvoice.ts +208 -0
  226. package/src/funcs/invoicesUpdateInvoice.ts +207 -0
  227. package/src/lib/config.ts +2 -2
  228. package/src/mcp-server/mcp-server.ts +1 -1
  229. package/src/mcp-server/server.ts +13 -1
  230. package/src/mcp-server/tools/feePlansListFeeRevenue.ts +39 -0
  231. package/src/mcp-server/tools/feePlansRetrieveFees.ts +1 -1
  232. package/src/mcp-server/tools/invoicesCreateInvoice.ts +38 -0
  233. package/src/mcp-server/tools/invoicesGetInvoice.ts +38 -0
  234. package/src/mcp-server/tools/invoicesListInvoices.ts +38 -0
  235. package/src/mcp-server/tools/invoicesMarkPaidInvoice.ts +39 -0
  236. package/src/mcp-server/tools/invoicesUpdateInvoice.ts +38 -0
  237. package/src/models/components/amountdecimalupdate.ts +65 -0
  238. package/src/models/components/createinvoice.ts +84 -0
  239. package/src/models/components/index.ts +19 -0
  240. package/src/models/components/instantbankcreditpaymentmethod.ts +95 -0
  241. package/src/models/components/invoice.ts +178 -0
  242. package/src/models/components/invoiceexternalpayment.ts +91 -0
  243. package/src/models/components/invoicelineitem.ts +95 -0
  244. package/src/models/components/invoicelineitemoption.ts +84 -0
  245. package/src/models/components/invoicelineitemoptionvalidationerror.ts +72 -0
  246. package/src/models/components/invoicelineitems.ts +63 -0
  247. package/src/models/components/invoicelineitemsupdate.ts +63 -0
  248. package/src/models/components/invoicelineitemsvalidationerror.ts +59 -0
  249. package/src/models/components/invoicelineitemvalidationerror.ts +85 -0
  250. package/src/models/components/invoicepayment.ts +77 -0
  251. package/src/models/components/invoicestatus.ts +25 -0
  252. package/src/models/components/invoicetransferpayment.ts +68 -0
  253. package/src/models/components/markinvoicepaid.ts +58 -0
  254. package/src/models/components/paymentmethod.ts +22 -0
  255. package/src/models/components/paymentmethodtype.ts +1 -0
  256. package/src/models/components/updateinvoice.ts +94 -0
  257. package/src/models/components/webhookdata.ts +20 -0
  258. package/src/models/components/webhookdatainvoicecreated.ts +55 -0
  259. package/src/models/components/webhookdatainvoiceupdated.ts +64 -0
  260. package/src/models/components/webhookeventtype.ts +2 -0
  261. package/src/models/errors/createinvoiceerror.ts +102 -0
  262. package/src/models/errors/index.ts +4 -0
  263. package/src/models/errors/listinvoicesvalidationerror.ts +86 -0
  264. package/src/models/errors/markinvoicepaiderror.ts +78 -0
  265. package/src/models/errors/updateinvoiceerror.ts +100 -0
  266. package/src/models/operations/createinvoice.ts +187 -0
  267. package/src/models/operations/getinvoice.ts +179 -0
  268. package/src/models/operations/index.ts +6 -0
  269. package/src/models/operations/listfeerevenue.ts +200 -0
  270. package/src/models/operations/listinvoices.ts +191 -0
  271. package/src/models/operations/markpaidinvoice.ts +191 -0
  272. package/src/models/operations/updateinvoice.ts +191 -0
  273. package/src/sdk/feeplans.ts +19 -1
  274. package/src/sdk/invoices.ts +100 -0
  275. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,179 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetInvoiceGlobals = {
13
+ /**
14
+ * Specify an API version.
15
+ *
16
+ * @remarks
17
+ *
18
+ * API versioning follows the format `vYYYY.QQ.BB`, where
19
+ * - `YYYY` is the year
20
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
21
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
22
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
23
+ *
24
+ * The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
25
+ * When no version is specified, the API defaults to `v2024.01.00`.
26
+ */
27
+ xMoovVersion?: string | undefined;
28
+ };
29
+
30
+ export type GetInvoiceRequest = {
31
+ accountID: string;
32
+ invoiceID: string;
33
+ };
34
+
35
+ export type GetInvoiceResponse = {
36
+ headers: { [k: string]: Array<string> };
37
+ result: components.Invoice;
38
+ };
39
+
40
+ /** @internal */
41
+ export const GetInvoiceGlobals$inboundSchema: z.ZodType<
42
+ GetInvoiceGlobals,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ "X-Moov-Version": z.string().optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ "X-Moov-Version": "xMoovVersion",
50
+ });
51
+ });
52
+ /** @internal */
53
+ export type GetInvoiceGlobals$Outbound = {
54
+ "X-Moov-Version"?: string | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const GetInvoiceGlobals$outboundSchema: z.ZodType<
59
+ GetInvoiceGlobals$Outbound,
60
+ z.ZodTypeDef,
61
+ GetInvoiceGlobals
62
+ > = z.object({
63
+ xMoovVersion: z.string().optional(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
66
+ xMoovVersion: "X-Moov-Version",
67
+ });
68
+ });
69
+
70
+ export function getInvoiceGlobalsToJSON(
71
+ getInvoiceGlobals: GetInvoiceGlobals,
72
+ ): string {
73
+ return JSON.stringify(
74
+ GetInvoiceGlobals$outboundSchema.parse(getInvoiceGlobals),
75
+ );
76
+ }
77
+ export function getInvoiceGlobalsFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<GetInvoiceGlobals, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => GetInvoiceGlobals$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'GetInvoiceGlobals' from JSON`,
84
+ );
85
+ }
86
+
87
+ /** @internal */
88
+ export const GetInvoiceRequest$inboundSchema: z.ZodType<
89
+ GetInvoiceRequest,
90
+ z.ZodTypeDef,
91
+ unknown
92
+ > = z.object({
93
+ accountID: z.string(),
94
+ invoiceID: z.string(),
95
+ });
96
+ /** @internal */
97
+ export type GetInvoiceRequest$Outbound = {
98
+ accountID: string;
99
+ invoiceID: string;
100
+ };
101
+
102
+ /** @internal */
103
+ export const GetInvoiceRequest$outboundSchema: z.ZodType<
104
+ GetInvoiceRequest$Outbound,
105
+ z.ZodTypeDef,
106
+ GetInvoiceRequest
107
+ > = z.object({
108
+ accountID: z.string(),
109
+ invoiceID: z.string(),
110
+ });
111
+
112
+ export function getInvoiceRequestToJSON(
113
+ getInvoiceRequest: GetInvoiceRequest,
114
+ ): string {
115
+ return JSON.stringify(
116
+ GetInvoiceRequest$outboundSchema.parse(getInvoiceRequest),
117
+ );
118
+ }
119
+ export function getInvoiceRequestFromJSON(
120
+ jsonString: string,
121
+ ): SafeParseResult<GetInvoiceRequest, SDKValidationError> {
122
+ return safeParse(
123
+ jsonString,
124
+ (x) => GetInvoiceRequest$inboundSchema.parse(JSON.parse(x)),
125
+ `Failed to parse 'GetInvoiceRequest' from JSON`,
126
+ );
127
+ }
128
+
129
+ /** @internal */
130
+ export const GetInvoiceResponse$inboundSchema: z.ZodType<
131
+ GetInvoiceResponse,
132
+ z.ZodTypeDef,
133
+ unknown
134
+ > = z.object({
135
+ Headers: z.record(z.array(z.string())).default({}),
136
+ Result: components.Invoice$inboundSchema,
137
+ }).transform((v) => {
138
+ return remap$(v, {
139
+ "Headers": "headers",
140
+ "Result": "result",
141
+ });
142
+ });
143
+ /** @internal */
144
+ export type GetInvoiceResponse$Outbound = {
145
+ Headers: { [k: string]: Array<string> };
146
+ Result: components.Invoice$Outbound;
147
+ };
148
+
149
+ /** @internal */
150
+ export const GetInvoiceResponse$outboundSchema: z.ZodType<
151
+ GetInvoiceResponse$Outbound,
152
+ z.ZodTypeDef,
153
+ GetInvoiceResponse
154
+ > = z.object({
155
+ headers: z.record(z.array(z.string())),
156
+ result: components.Invoice$outboundSchema,
157
+ }).transform((v) => {
158
+ return remap$(v, {
159
+ headers: "Headers",
160
+ result: "Result",
161
+ });
162
+ });
163
+
164
+ export function getInvoiceResponseToJSON(
165
+ getInvoiceResponse: GetInvoiceResponse,
166
+ ): string {
167
+ return JSON.stringify(
168
+ GetInvoiceResponse$outboundSchema.parse(getInvoiceResponse),
169
+ );
170
+ }
171
+ export function getInvoiceResponseFromJSON(
172
+ jsonString: string,
173
+ ): SafeParseResult<GetInvoiceResponse, SDKValidationError> {
174
+ return safeParse(
175
+ jsonString,
176
+ (x) => GetInvoiceResponse$inboundSchema.parse(JSON.parse(x)),
177
+ `Failed to parse 'GetInvoiceResponse' from JSON`,
178
+ );
179
+ }
@@ -13,6 +13,7 @@ export * from "./createapplepaysession.js";
13
13
  export * from "./createbrand.js";
14
14
  export * from "./createcancellation.js";
15
15
  export * from "./createfeeplanagreements.js";
16
+ export * from "./createinvoice.js";
16
17
  export * from "./createonboardinginvite.js";
17
18
  export * from "./createpaymentlink.js";
18
19
  export * from "./createproduct.js";
@@ -58,6 +59,7 @@ export * from "./getenrichmentprofile.js";
58
59
  export * from "./getfiledetails.js";
59
60
  export * from "./getfullissuedcard.js";
60
61
  export * from "./getimagemetadata.js";
62
+ export * from "./getinvoice.js";
61
63
  export * from "./getissuedcard.js";
62
64
  export * from "./getissuedcardauthorization.js";
63
65
  export * from "./getissuedcardtransaction.js";
@@ -101,11 +103,13 @@ export * from "./listdisputeevidence.js";
101
103
  export * from "./listdisputes.js";
102
104
  export * from "./listfeeplanagreements.js";
103
105
  export * from "./listfeeplans.js";
106
+ export * from "./listfeerevenue.js";
104
107
  export * from "./listfeesfetch.js";
105
108
  export * from "./listfiles.js";
106
109
  export * from "./listimagemetadata.js";
107
110
  export * from "./listindustries.js";
108
111
  export * from "./listinstitutions.js";
112
+ export * from "./listinvoices.js";
109
113
  export * from "./listissuedcardauthorizationevents.js";
110
114
  export * from "./listissuedcardauthorizations.js";
111
115
  export * from "./listissuedcards.js";
@@ -131,6 +135,7 @@ export * from "./listtickets.js";
131
135
  export * from "./listtransfers.js";
132
136
  export * from "./listwallets.js";
133
137
  export * from "./listwallettransactions.js";
138
+ export * from "./markpaidinvoice.js";
134
139
  export * from "./ping.js";
135
140
  export * from "./registerapplepaymerchantdomains.js";
136
141
  export * from "./requestcapabilities.js";
@@ -149,6 +154,7 @@ export * from "./updatecard.js";
149
154
  export * from "./updatedisputeevidence.js";
150
155
  export * from "./updateimage.js";
151
156
  export * from "./updateimagemetadata.js";
157
+ export * from "./updateinvoice.js";
152
158
  export * from "./updateissuedcard.js";
153
159
  export * from "./updatepaymentlink.js";
154
160
  export * from "./updateproduct.js";
@@ -0,0 +1,200 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ListFeeRevenueGlobals = {
13
+ /**
14
+ * Specify an API version.
15
+ *
16
+ * @remarks
17
+ *
18
+ * API versioning follows the format `vYYYY.QQ.BB`, where
19
+ * - `YYYY` is the year
20
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
21
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
22
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
23
+ *
24
+ * The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
25
+ * When no version is specified, the API defaults to `v2024.01.00`.
26
+ */
27
+ xMoovVersion?: string | undefined;
28
+ };
29
+
30
+ export type ListFeeRevenueRequest = {
31
+ skip?: number | undefined;
32
+ count?: number | undefined;
33
+ /**
34
+ * The Partner's AccountID.
35
+ */
36
+ accountID: string;
37
+ /**
38
+ * Optional date-time to inclusively filter all fees created after this date-time.
39
+ */
40
+ startDateTime?: string | undefined;
41
+ /**
42
+ * Optional date-time to exclusively filter all fees created before this date-time.
43
+ */
44
+ endDateTime?: string | undefined;
45
+ };
46
+
47
+ export type ListFeeRevenueResponse = {
48
+ headers: { [k: string]: Array<string> };
49
+ result: Array<components.IncurredFee>;
50
+ };
51
+
52
+ /** @internal */
53
+ export const ListFeeRevenueGlobals$inboundSchema: z.ZodType<
54
+ ListFeeRevenueGlobals,
55
+ z.ZodTypeDef,
56
+ unknown
57
+ > = z.object({
58
+ "X-Moov-Version": z.string().optional(),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ "X-Moov-Version": "xMoovVersion",
62
+ });
63
+ });
64
+ /** @internal */
65
+ export type ListFeeRevenueGlobals$Outbound = {
66
+ "X-Moov-Version"?: string | undefined;
67
+ };
68
+
69
+ /** @internal */
70
+ export const ListFeeRevenueGlobals$outboundSchema: z.ZodType<
71
+ ListFeeRevenueGlobals$Outbound,
72
+ z.ZodTypeDef,
73
+ ListFeeRevenueGlobals
74
+ > = z.object({
75
+ xMoovVersion: z.string().optional(),
76
+ }).transform((v) => {
77
+ return remap$(v, {
78
+ xMoovVersion: "X-Moov-Version",
79
+ });
80
+ });
81
+
82
+ export function listFeeRevenueGlobalsToJSON(
83
+ listFeeRevenueGlobals: ListFeeRevenueGlobals,
84
+ ): string {
85
+ return JSON.stringify(
86
+ ListFeeRevenueGlobals$outboundSchema.parse(listFeeRevenueGlobals),
87
+ );
88
+ }
89
+ export function listFeeRevenueGlobalsFromJSON(
90
+ jsonString: string,
91
+ ): SafeParseResult<ListFeeRevenueGlobals, SDKValidationError> {
92
+ return safeParse(
93
+ jsonString,
94
+ (x) => ListFeeRevenueGlobals$inboundSchema.parse(JSON.parse(x)),
95
+ `Failed to parse 'ListFeeRevenueGlobals' from JSON`,
96
+ );
97
+ }
98
+
99
+ /** @internal */
100
+ export const ListFeeRevenueRequest$inboundSchema: z.ZodType<
101
+ ListFeeRevenueRequest,
102
+ z.ZodTypeDef,
103
+ unknown
104
+ > = z.object({
105
+ skip: z.number().int().optional(),
106
+ count: z.number().int().optional(),
107
+ accountID: z.string(),
108
+ startDateTime: z.string().optional(),
109
+ endDateTime: z.string().optional(),
110
+ });
111
+ /** @internal */
112
+ export type ListFeeRevenueRequest$Outbound = {
113
+ skip?: number | undefined;
114
+ count?: number | undefined;
115
+ accountID: string;
116
+ startDateTime?: string | undefined;
117
+ endDateTime?: string | undefined;
118
+ };
119
+
120
+ /** @internal */
121
+ export const ListFeeRevenueRequest$outboundSchema: z.ZodType<
122
+ ListFeeRevenueRequest$Outbound,
123
+ z.ZodTypeDef,
124
+ ListFeeRevenueRequest
125
+ > = z.object({
126
+ skip: z.number().int().optional(),
127
+ count: z.number().int().optional(),
128
+ accountID: z.string(),
129
+ startDateTime: z.string().optional(),
130
+ endDateTime: z.string().optional(),
131
+ });
132
+
133
+ export function listFeeRevenueRequestToJSON(
134
+ listFeeRevenueRequest: ListFeeRevenueRequest,
135
+ ): string {
136
+ return JSON.stringify(
137
+ ListFeeRevenueRequest$outboundSchema.parse(listFeeRevenueRequest),
138
+ );
139
+ }
140
+ export function listFeeRevenueRequestFromJSON(
141
+ jsonString: string,
142
+ ): SafeParseResult<ListFeeRevenueRequest, SDKValidationError> {
143
+ return safeParse(
144
+ jsonString,
145
+ (x) => ListFeeRevenueRequest$inboundSchema.parse(JSON.parse(x)),
146
+ `Failed to parse 'ListFeeRevenueRequest' from JSON`,
147
+ );
148
+ }
149
+
150
+ /** @internal */
151
+ export const ListFeeRevenueResponse$inboundSchema: z.ZodType<
152
+ ListFeeRevenueResponse,
153
+ z.ZodTypeDef,
154
+ unknown
155
+ > = z.object({
156
+ Headers: z.record(z.array(z.string())).default({}),
157
+ Result: z.array(components.IncurredFee$inboundSchema),
158
+ }).transform((v) => {
159
+ return remap$(v, {
160
+ "Headers": "headers",
161
+ "Result": "result",
162
+ });
163
+ });
164
+ /** @internal */
165
+ export type ListFeeRevenueResponse$Outbound = {
166
+ Headers: { [k: string]: Array<string> };
167
+ Result: Array<components.IncurredFee$Outbound>;
168
+ };
169
+
170
+ /** @internal */
171
+ export const ListFeeRevenueResponse$outboundSchema: z.ZodType<
172
+ ListFeeRevenueResponse$Outbound,
173
+ z.ZodTypeDef,
174
+ ListFeeRevenueResponse
175
+ > = z.object({
176
+ headers: z.record(z.array(z.string())),
177
+ result: z.array(components.IncurredFee$outboundSchema),
178
+ }).transform((v) => {
179
+ return remap$(v, {
180
+ headers: "Headers",
181
+ result: "Result",
182
+ });
183
+ });
184
+
185
+ export function listFeeRevenueResponseToJSON(
186
+ listFeeRevenueResponse: ListFeeRevenueResponse,
187
+ ): string {
188
+ return JSON.stringify(
189
+ ListFeeRevenueResponse$outboundSchema.parse(listFeeRevenueResponse),
190
+ );
191
+ }
192
+ export function listFeeRevenueResponseFromJSON(
193
+ jsonString: string,
194
+ ): SafeParseResult<ListFeeRevenueResponse, SDKValidationError> {
195
+ return safeParse(
196
+ jsonString,
197
+ (x) => ListFeeRevenueResponse$inboundSchema.parse(JSON.parse(x)),
198
+ `Failed to parse 'ListFeeRevenueResponse' from JSON`,
199
+ );
200
+ }
@@ -0,0 +1,191 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ListInvoicesGlobals = {
13
+ /**
14
+ * Specify an API version.
15
+ *
16
+ * @remarks
17
+ *
18
+ * API versioning follows the format `vYYYY.QQ.BB`, where
19
+ * - `YYYY` is the year
20
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
21
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
22
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
23
+ *
24
+ * The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
25
+ * When no version is specified, the API defaults to `v2024.01.00`.
26
+ */
27
+ xMoovVersion?: string | undefined;
28
+ };
29
+
30
+ export type ListInvoicesRequest = {
31
+ skip?: number | undefined;
32
+ count?: number | undefined;
33
+ status?: components.InvoiceStatus | undefined;
34
+ customerAccountID?: string | undefined;
35
+ accountID: string;
36
+ };
37
+
38
+ export type ListInvoicesResponse = {
39
+ headers: { [k: string]: Array<string> };
40
+ result: Array<components.Invoice>;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ListInvoicesGlobals$inboundSchema: z.ZodType<
45
+ ListInvoicesGlobals,
46
+ z.ZodTypeDef,
47
+ unknown
48
+ > = z.object({
49
+ "X-Moov-Version": z.string().optional(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ "X-Moov-Version": "xMoovVersion",
53
+ });
54
+ });
55
+ /** @internal */
56
+ export type ListInvoicesGlobals$Outbound = {
57
+ "X-Moov-Version"?: string | undefined;
58
+ };
59
+
60
+ /** @internal */
61
+ export const ListInvoicesGlobals$outboundSchema: z.ZodType<
62
+ ListInvoicesGlobals$Outbound,
63
+ z.ZodTypeDef,
64
+ ListInvoicesGlobals
65
+ > = z.object({
66
+ xMoovVersion: z.string().optional(),
67
+ }).transform((v) => {
68
+ return remap$(v, {
69
+ xMoovVersion: "X-Moov-Version",
70
+ });
71
+ });
72
+
73
+ export function listInvoicesGlobalsToJSON(
74
+ listInvoicesGlobals: ListInvoicesGlobals,
75
+ ): string {
76
+ return JSON.stringify(
77
+ ListInvoicesGlobals$outboundSchema.parse(listInvoicesGlobals),
78
+ );
79
+ }
80
+ export function listInvoicesGlobalsFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<ListInvoicesGlobals, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => ListInvoicesGlobals$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'ListInvoicesGlobals' from JSON`,
87
+ );
88
+ }
89
+
90
+ /** @internal */
91
+ export const ListInvoicesRequest$inboundSchema: z.ZodType<
92
+ ListInvoicesRequest,
93
+ z.ZodTypeDef,
94
+ unknown
95
+ > = z.object({
96
+ skip: z.number().int().optional(),
97
+ count: z.number().int().optional(),
98
+ status: components.InvoiceStatus$inboundSchema.optional(),
99
+ customerAccountID: z.string().optional(),
100
+ accountID: z.string(),
101
+ });
102
+ /** @internal */
103
+ export type ListInvoicesRequest$Outbound = {
104
+ skip?: number | undefined;
105
+ count?: number | undefined;
106
+ status?: string | undefined;
107
+ customerAccountID?: string | undefined;
108
+ accountID: string;
109
+ };
110
+
111
+ /** @internal */
112
+ export const ListInvoicesRequest$outboundSchema: z.ZodType<
113
+ ListInvoicesRequest$Outbound,
114
+ z.ZodTypeDef,
115
+ ListInvoicesRequest
116
+ > = z.object({
117
+ skip: z.number().int().optional(),
118
+ count: z.number().int().optional(),
119
+ status: components.InvoiceStatus$outboundSchema.optional(),
120
+ customerAccountID: z.string().optional(),
121
+ accountID: z.string(),
122
+ });
123
+
124
+ export function listInvoicesRequestToJSON(
125
+ listInvoicesRequest: ListInvoicesRequest,
126
+ ): string {
127
+ return JSON.stringify(
128
+ ListInvoicesRequest$outboundSchema.parse(listInvoicesRequest),
129
+ );
130
+ }
131
+ export function listInvoicesRequestFromJSON(
132
+ jsonString: string,
133
+ ): SafeParseResult<ListInvoicesRequest, SDKValidationError> {
134
+ return safeParse(
135
+ jsonString,
136
+ (x) => ListInvoicesRequest$inboundSchema.parse(JSON.parse(x)),
137
+ `Failed to parse 'ListInvoicesRequest' from JSON`,
138
+ );
139
+ }
140
+
141
+ /** @internal */
142
+ export const ListInvoicesResponse$inboundSchema: z.ZodType<
143
+ ListInvoicesResponse,
144
+ z.ZodTypeDef,
145
+ unknown
146
+ > = z.object({
147
+ Headers: z.record(z.array(z.string())).default({}),
148
+ Result: z.array(components.Invoice$inboundSchema),
149
+ }).transform((v) => {
150
+ return remap$(v, {
151
+ "Headers": "headers",
152
+ "Result": "result",
153
+ });
154
+ });
155
+ /** @internal */
156
+ export type ListInvoicesResponse$Outbound = {
157
+ Headers: { [k: string]: Array<string> };
158
+ Result: Array<components.Invoice$Outbound>;
159
+ };
160
+
161
+ /** @internal */
162
+ export const ListInvoicesResponse$outboundSchema: z.ZodType<
163
+ ListInvoicesResponse$Outbound,
164
+ z.ZodTypeDef,
165
+ ListInvoicesResponse
166
+ > = z.object({
167
+ headers: z.record(z.array(z.string())),
168
+ result: z.array(components.Invoice$outboundSchema),
169
+ }).transform((v) => {
170
+ return remap$(v, {
171
+ headers: "Headers",
172
+ result: "Result",
173
+ });
174
+ });
175
+
176
+ export function listInvoicesResponseToJSON(
177
+ listInvoicesResponse: ListInvoicesResponse,
178
+ ): string {
179
+ return JSON.stringify(
180
+ ListInvoicesResponse$outboundSchema.parse(listInvoicesResponse),
181
+ );
182
+ }
183
+ export function listInvoicesResponseFromJSON(
184
+ jsonString: string,
185
+ ): SafeParseResult<ListInvoicesResponse, SDKValidationError> {
186
+ return safeParse(
187
+ jsonString,
188
+ (x) => ListInvoicesResponse$inboundSchema.parse(JSON.parse(x)),
189
+ `Failed to parse 'ListInvoicesResponse' from JSON`,
190
+ );
191
+ }