@moovio/sdk 0.0.0-dev.5 → 0.0.0-dev.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 (210) hide show
  1. package/README.md +115 -55
  2. package/bin/mcp-server.js +1792 -876
  3. package/bin/mcp-server.js.map +43 -27
  4. package/funcs/disputesUploadEvidenceFile.js +6 -0
  5. package/funcs/disputesUploadEvidenceFile.js.map +1 -1
  6. package/funcs/filesUpload.js +6 -0
  7. package/funcs/filesUpload.js.map +1 -1
  8. package/funcs/imagesUpdate.js +7 -0
  9. package/funcs/imagesUpdate.js.map +1 -1
  10. package/funcs/imagesUpload.js +7 -0
  11. package/funcs/imagesUpload.js.map +1 -1
  12. package/funcs/invoicesDelete.d.ts +24 -0
  13. package/funcs/invoicesDelete.d.ts.map +1 -0
  14. package/funcs/invoicesDelete.js +146 -0
  15. package/funcs/invoicesDelete.js.map +1 -0
  16. package/funcs/resolutionLinksCreate.d.ts +20 -0
  17. package/funcs/resolutionLinksCreate.d.ts.map +1 -0
  18. package/funcs/resolutionLinksCreate.js +145 -0
  19. package/funcs/resolutionLinksCreate.js.map +1 -0
  20. package/funcs/resolutionLinksDisable.d.ts +18 -0
  21. package/funcs/resolutionLinksDisable.d.ts.map +1 -0
  22. package/funcs/resolutionLinksDisable.js +135 -0
  23. package/funcs/resolutionLinksDisable.js.map +1 -0
  24. package/funcs/resolutionLinksGet.d.ts +17 -0
  25. package/funcs/resolutionLinksGet.d.ts.map +1 -0
  26. package/funcs/resolutionLinksGet.js +126 -0
  27. package/funcs/resolutionLinksGet.js.map +1 -0
  28. package/funcs/resolutionLinksList.d.ts +17 -0
  29. package/funcs/resolutionLinksList.d.ts.map +1 -0
  30. package/funcs/resolutionLinksList.js +125 -0
  31. package/funcs/resolutionLinksList.js.map +1 -0
  32. package/hooks/moov-version-hook.d.ts +3 -4
  33. package/hooks/moov-version-hook.d.ts.map +1 -1
  34. package/hooks/moov-version-hook.js +5 -4
  35. package/hooks/moov-version-hook.js.map +1 -1
  36. package/hooks/registration.js +1 -1
  37. package/hooks/registration.js.map +1 -1
  38. package/jsr.json +1 -1
  39. package/lib/config.d.ts +3 -3
  40. package/lib/config.js +3 -3
  41. package/lib/config.js.map +1 -1
  42. package/lib/matchers.d.ts.map +1 -1
  43. package/lib/matchers.js +0 -1
  44. package/lib/matchers.js.map +1 -1
  45. package/lib/security.d.ts.map +1 -1
  46. package/lib/security.js +1 -2
  47. package/lib/security.js.map +1 -1
  48. package/mcp-server/mcp-server.js +1 -1
  49. package/mcp-server/server.d.ts.map +1 -1
  50. package/mcp-server/server.js +11 -1
  51. package/mcp-server/server.js.map +1 -1
  52. package/mcp-server/shared.js +1 -1
  53. package/mcp-server/shared.js.map +1 -1
  54. package/mcp-server/tools/invoicesDelete.d.ts +8 -0
  55. package/mcp-server/tools/invoicesDelete.d.ts.map +1 -0
  56. package/mcp-server/tools/invoicesDelete.js +70 -0
  57. package/mcp-server/tools/invoicesDelete.js.map +1 -0
  58. package/mcp-server/tools/resolutionLinksCreate.d.ts +8 -0
  59. package/mcp-server/tools/resolutionLinksCreate.d.ts.map +1 -0
  60. package/mcp-server/tools/resolutionLinksCreate.js +67 -0
  61. package/mcp-server/tools/resolutionLinksCreate.js.map +1 -0
  62. package/mcp-server/tools/resolutionLinksDisable.d.ts +8 -0
  63. package/mcp-server/tools/resolutionLinksDisable.d.ts.map +1 -0
  64. package/mcp-server/tools/resolutionLinksDisable.js +64 -0
  65. package/mcp-server/tools/resolutionLinksDisable.js.map +1 -0
  66. package/mcp-server/tools/resolutionLinksGet.d.ts +8 -0
  67. package/mcp-server/tools/resolutionLinksGet.d.ts.map +1 -0
  68. package/mcp-server/tools/resolutionLinksGet.js +65 -0
  69. package/mcp-server/tools/resolutionLinksGet.js.map +1 -0
  70. package/mcp-server/tools/resolutionLinksList.d.ts +8 -0
  71. package/mcp-server/tools/resolutionLinksList.d.ts.map +1 -0
  72. package/mcp-server/tools/resolutionLinksList.js +65 -0
  73. package/mcp-server/tools/resolutionLinksList.js.map +1 -0
  74. package/models/components/createinvoicelineitem.d.ts +2 -1
  75. package/models/components/createinvoicelineitem.d.ts.map +1 -1
  76. package/models/components/createinvoicelineitem.js.map +1 -1
  77. package/models/components/createpaymentlinklineitem.d.ts +2 -1
  78. package/models/components/createpaymentlinklineitem.d.ts.map +1 -1
  79. package/models/components/createpaymentlinklineitem.js.map +1 -1
  80. package/models/components/createresolutionlink.d.ts +24 -0
  81. package/models/components/createresolutionlink.d.ts.map +1 -0
  82. package/models/components/{rtpfailurecode.js → createresolutionlink.js} +18 -19
  83. package/models/components/createresolutionlink.js.map +1 -0
  84. package/models/components/index.d.ts +3 -3
  85. package/models/components/index.d.ts.map +1 -1
  86. package/models/components/index.js +3 -3
  87. package/models/components/index.js.map +1 -1
  88. package/models/components/invoice.d.ts +12 -0
  89. package/models/components/invoice.d.ts.map +1 -1
  90. package/models/components/invoice.js +6 -0
  91. package/models/components/invoice.js.map +1 -1
  92. package/models/components/invoicelineitem.d.ts +2 -1
  93. package/models/components/invoicelineitem.d.ts.map +1 -1
  94. package/models/components/invoicelineitem.js.map +1 -1
  95. package/models/components/resolutionlink.d.ts +63 -0
  96. package/models/components/resolutionlink.d.ts.map +1 -0
  97. package/models/components/resolutionlink.js +75 -0
  98. package/models/components/resolutionlink.js.map +1 -0
  99. package/models/components/resolutionlinkrecipient.d.ts +29 -0
  100. package/models/components/resolutionlinkrecipient.d.ts.map +1 -0
  101. package/models/components/{rtptransactionstatus.js → resolutionlinkrecipient.js} +20 -13
  102. package/models/components/resolutionlinkrecipient.js.map +1 -0
  103. package/models/components/transferdestination.d.ts +0 -6
  104. package/models/components/transferdestination.d.ts.map +1 -1
  105. package/models/components/transferdestination.js +0 -3
  106. package/models/components/transferdestination.js.map +1 -1
  107. package/models/components/updateinvoice.d.ts +4 -1
  108. package/models/components/updateinvoice.d.ts.map +1 -1
  109. package/models/components/updateinvoice.js.map +1 -1
  110. package/models/errors/createresolutionlinkerror.d.ts +45 -0
  111. package/models/errors/createresolutionlinkerror.d.ts.map +1 -0
  112. package/models/errors/createresolutionlinkerror.js +82 -0
  113. package/models/errors/createresolutionlinkerror.js.map +1 -0
  114. package/models/errors/index.d.ts +1 -0
  115. package/models/errors/index.d.ts.map +1 -1
  116. package/models/errors/index.js +1 -0
  117. package/models/errors/index.js.map +1 -1
  118. package/models/operations/createresolutionlink.d.ts +66 -0
  119. package/models/operations/createresolutionlink.d.ts.map +1 -0
  120. package/models/operations/createresolutionlink.js +122 -0
  121. package/models/operations/createresolutionlink.js.map +1 -0
  122. package/models/operations/deleteinvoice.d.ts +63 -0
  123. package/models/operations/deleteinvoice.d.ts.map +1 -0
  124. package/models/operations/deleteinvoice.js +109 -0
  125. package/models/operations/deleteinvoice.js.map +1 -0
  126. package/models/operations/disableresolutionlink.d.ts +63 -0
  127. package/models/operations/disableresolutionlink.d.ts.map +1 -0
  128. package/models/operations/disableresolutionlink.js +109 -0
  129. package/models/operations/disableresolutionlink.js.map +1 -0
  130. package/models/operations/getresolutionlink.d.ts +66 -0
  131. package/models/operations/getresolutionlink.d.ts.map +1 -0
  132. package/models/operations/getresolutionlink.js +114 -0
  133. package/models/operations/getresolutionlink.js.map +1 -0
  134. package/models/operations/index.d.ts +5 -0
  135. package/models/operations/index.d.ts.map +1 -1
  136. package/models/operations/index.js +5 -0
  137. package/models/operations/index.js.map +1 -1
  138. package/models/operations/listresolutionlinks.d.ts +64 -0
  139. package/models/operations/listresolutionlinks.d.ts.map +1 -0
  140. package/models/operations/listresolutionlinks.js +112 -0
  141. package/models/operations/listresolutionlinks.js.map +1 -0
  142. package/package.json +1 -1
  143. package/sdk/invoices.d.ts +13 -0
  144. package/sdk/invoices.d.ts.map +1 -1
  145. package/sdk/invoices.js +16 -0
  146. package/sdk/invoices.js.map +1 -1
  147. package/sdk/resolutionlinks.d.ts +35 -0
  148. package/sdk/resolutionlinks.d.ts.map +1 -0
  149. package/sdk/resolutionlinks.js +54 -0
  150. package/sdk/resolutionlinks.js.map +1 -0
  151. package/sdk/sdk.d.ts +3 -0
  152. package/sdk/sdk.d.ts.map +1 -1
  153. package/sdk/sdk.js +4 -0
  154. package/sdk/sdk.js.map +1 -1
  155. package/src/funcs/disputesUploadEvidenceFile.ts +15 -0
  156. package/src/funcs/filesUpload.ts +15 -0
  157. package/src/funcs/imagesUpdate.ts +16 -0
  158. package/src/funcs/imagesUpload.ts +16 -0
  159. package/src/funcs/invoicesDelete.ts +206 -0
  160. package/src/funcs/resolutionLinksCreate.ts +208 -0
  161. package/src/funcs/resolutionLinksDisable.ts +204 -0
  162. package/src/funcs/resolutionLinksGet.ts +186 -0
  163. package/src/funcs/resolutionLinksList.ts +180 -0
  164. package/src/hooks/moov-version-hook.ts +10 -6
  165. package/src/hooks/registration.ts +1 -1
  166. package/src/lib/config.ts +3 -3
  167. package/src/lib/matchers.ts +3 -2
  168. package/src/lib/security.ts +1 -2
  169. package/src/mcp-server/mcp-server.ts +1 -1
  170. package/src/mcp-server/server.ts +11 -1
  171. package/src/mcp-server/shared.ts +2 -2
  172. package/src/mcp-server/tools/invoicesDelete.ts +43 -0
  173. package/src/mcp-server/tools/resolutionLinksCreate.ts +41 -0
  174. package/src/mcp-server/tools/resolutionLinksDisable.ts +37 -0
  175. package/src/mcp-server/tools/resolutionLinksGet.ts +38 -0
  176. package/src/mcp-server/tools/resolutionLinksList.ts +38 -0
  177. package/src/models/components/createinvoicelineitem.ts +2 -1
  178. package/src/models/components/createpaymentlinklineitem.ts +2 -1
  179. package/src/models/components/createresolutionlink.ts +63 -0
  180. package/src/models/components/index.ts +3 -3
  181. package/src/models/components/invoice.ts +20 -0
  182. package/src/models/components/invoicelineitem.ts +2 -1
  183. package/src/models/components/resolutionlink.ts +110 -0
  184. package/src/models/components/resolutionlinkrecipient.ts +70 -0
  185. package/src/models/components/transferdestination.ts +0 -13
  186. package/src/models/components/updateinvoice.ts +4 -1
  187. package/src/models/errors/createresolutionlinkerror.ts +90 -0
  188. package/src/models/errors/index.ts +1 -0
  189. package/src/models/operations/createresolutionlink.ts +193 -0
  190. package/src/models/operations/deleteinvoice.ts +172 -0
  191. package/src/models/operations/disableresolutionlink.ts +178 -0
  192. package/src/models/operations/getresolutionlink.ts +179 -0
  193. package/src/models/operations/index.ts +5 -0
  194. package/src/models/operations/listresolutionlinks.ts +177 -0
  195. package/src/sdk/invoices.ts +24 -0
  196. package/src/sdk/resolutionlinks.ts +83 -0
  197. package/src/sdk/sdk.ts +6 -0
  198. package/models/components/rtpfailurecode.d.ts +0 -26
  199. package/models/components/rtpfailurecode.d.ts.map +0 -1
  200. package/models/components/rtpfailurecode.js.map +0 -1
  201. package/models/components/rtptransactiondetails.d.ts +0 -43
  202. package/models/components/rtptransactiondetails.d.ts.map +0 -1
  203. package/models/components/rtptransactiondetails.js +0 -75
  204. package/models/components/rtptransactiondetails.js.map +0 -1
  205. package/models/components/rtptransactionstatus.d.ts +0 -20
  206. package/models/components/rtptransactionstatus.d.ts.map +0 -1
  207. package/models/components/rtptransactionstatus.js.map +0 -1
  208. package/src/models/components/rtpfailurecode.ts +0 -35
  209. package/src/models/components/rtptransactiondetails.ts +0 -102
  210. package/src/models/components/rtptransactionstatus.ts +0 -29
@@ -1,75 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.RTPTransactionDetails$outboundSchema = exports.RTPTransactionDetails$inboundSchema = void 0;
40
- exports.rtpTransactionDetailsToJSON = rtpTransactionDetailsToJSON;
41
- exports.rtpTransactionDetailsFromJSON = rtpTransactionDetailsFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const rtpfailurecode_js_1 = require("./rtpfailurecode.js");
45
- const rtptransactionstatus_js_1 = require("./rtptransactionstatus.js");
46
- /** @internal */
47
- exports.RTPTransactionDetails$inboundSchema = z.object({
48
- status: rtptransactionstatus_js_1.RTPTransactionStatus$inboundSchema.optional(),
49
- networkResponseCode: z.string().optional(),
50
- failureCode: rtpfailurecode_js_1.RTPFailureCode$inboundSchema.optional(),
51
- initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
52
- .optional(),
53
- completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
54
- .optional(),
55
- failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
56
- .optional(),
57
- acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
58
- });
59
- /** @internal */
60
- exports.RTPTransactionDetails$outboundSchema = z.object({
61
- status: rtptransactionstatus_js_1.RTPTransactionStatus$outboundSchema.optional(),
62
- networkResponseCode: z.string().optional(),
63
- failureCode: rtpfailurecode_js_1.RTPFailureCode$outboundSchema.optional(),
64
- initiatedOn: z.date().transform(v => v.toISOString()).optional(),
65
- completedOn: z.date().transform(v => v.toISOString()).optional(),
66
- failedOn: z.date().transform(v => v.toISOString()).optional(),
67
- acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
68
- });
69
- function rtpTransactionDetailsToJSON(rtpTransactionDetails) {
70
- return JSON.stringify(exports.RTPTransactionDetails$outboundSchema.parse(rtpTransactionDetails));
71
- }
72
- function rtpTransactionDetailsFromJSON(jsonString) {
73
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RTPTransactionDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RTPTransactionDetails' from JSON`);
74
- }
75
- //# sourceMappingURL=rtptransactiondetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rtptransactiondetails.js","sourceRoot":"","sources":["../../src/models/components/rtptransactiondetails.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFH,kEAMC;AACD,sEAQC;AAjGD,0CAA4B;AAC5B,qDAAiD;AAGjD,2DAI6B;AAC7B,uEAImC;AAwBnC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,4DAAkC,CAAC,QAAQ,EAAE;IACrD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IACpD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SAC3E,QAAQ,EAAE;IACb,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SAC3E,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACxE,QAAQ,EAAE;IACb,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC5E,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;CACb,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,6DAAmC,CAAC,QAAQ,EAAE;IACtD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,iDAA6B,CAAC,QAAQ,EAAE;IACrD,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChE,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChE,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7D,wBAAwB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9E,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AACD,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -1,20 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * Status of a transaction within the RTP lifecycle.
5
- */
6
- export declare const RTPTransactionStatus: {
7
- readonly Initiated: "initiated";
8
- readonly Completed: "completed";
9
- readonly Failed: "failed";
10
- readonly AcceptedWithoutPosting: "accepted-without-posting";
11
- };
12
- /**
13
- * Status of a transaction within the RTP lifecycle.
14
- */
15
- export type RTPTransactionStatus = ClosedEnum<typeof RTPTransactionStatus>;
16
- /** @internal */
17
- export declare const RTPTransactionStatus$inboundSchema: z.ZodNativeEnum<typeof RTPTransactionStatus>;
18
- /** @internal */
19
- export declare const RTPTransactionStatus$outboundSchema: z.ZodNativeEnum<typeof RTPTransactionStatus>;
20
- //# sourceMappingURL=rtptransactionstatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rtptransactionstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/rtptransactionstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,oBAAoB,CACS,CAAC;AACvC,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,oBAAoB,CACS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rtptransactionstatus.js","sourceRoot":"","sources":["../../src/models/components/rtptransactionstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,0BAA0B;CAC1C,CAAC;AAMX,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AACvC,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,0CAAkC,CAAC"}
@@ -1,35 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * Status codes for RTP failures.
10
- */
11
- export const RTPFailureCode = {
12
- ProcessingError: "processing-error",
13
- InvalidAccount: "invalid-account",
14
- AccountClosed: "account-closed",
15
- AccountBlocked: "account-blocked",
16
- InvalidField: "invalid-field",
17
- TransactionNotSupported: "transaction-not-supported",
18
- LimitExceeded: "limit-exceeded",
19
- InvalidAmount: "invalid-amount",
20
- CustomerDeceased: "customer-deceased",
21
- Other: "other",
22
- } as const;
23
- /**
24
- * Status codes for RTP failures.
25
- */
26
- export type RTPFailureCode = ClosedEnum<typeof RTPFailureCode>;
27
-
28
- /** @internal */
29
- export const RTPFailureCode$inboundSchema: z.ZodNativeEnum<
30
- typeof RTPFailureCode
31
- > = z.nativeEnum(RTPFailureCode);
32
- /** @internal */
33
- export const RTPFailureCode$outboundSchema: z.ZodNativeEnum<
34
- typeof RTPFailureCode
35
- > = RTPFailureCode$inboundSchema;
@@ -1,102 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- RTPFailureCode,
11
- RTPFailureCode$inboundSchema,
12
- RTPFailureCode$outboundSchema,
13
- } from "./rtpfailurecode.js";
14
- import {
15
- RTPTransactionStatus,
16
- RTPTransactionStatus$inboundSchema,
17
- RTPTransactionStatus$outboundSchema,
18
- } from "./rtptransactionstatus.js";
19
-
20
- /**
21
- * RTP specific details about the transaction.
22
- */
23
- export type RTPTransactionDetails = {
24
- /**
25
- * Status of a transaction within the RTP lifecycle.
26
- */
27
- status?: RTPTransactionStatus | undefined;
28
- /**
29
- * Response code returned by network on failure.
30
- */
31
- networkResponseCode?: string | undefined;
32
- /**
33
- * Status codes for RTP failures.
34
- */
35
- failureCode?: RTPFailureCode | undefined;
36
- initiatedOn?: Date | undefined;
37
- completedOn?: Date | undefined;
38
- failedOn?: Date | undefined;
39
- acceptedWithoutPostingOn?: Date | undefined;
40
- };
41
-
42
- /** @internal */
43
- export const RTPTransactionDetails$inboundSchema: z.ZodType<
44
- RTPTransactionDetails,
45
- z.ZodTypeDef,
46
- unknown
47
- > = z.object({
48
- status: RTPTransactionStatus$inboundSchema.optional(),
49
- networkResponseCode: z.string().optional(),
50
- failureCode: RTPFailureCode$inboundSchema.optional(),
51
- initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
52
- .optional(),
53
- completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
54
- .optional(),
55
- failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
56
- .optional(),
57
- acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
58
- new Date(v)
59
- ).optional(),
60
- });
61
- /** @internal */
62
- export type RTPTransactionDetails$Outbound = {
63
- status?: string | undefined;
64
- networkResponseCode?: string | undefined;
65
- failureCode?: string | undefined;
66
- initiatedOn?: string | undefined;
67
- completedOn?: string | undefined;
68
- failedOn?: string | undefined;
69
- acceptedWithoutPostingOn?: string | undefined;
70
- };
71
-
72
- /** @internal */
73
- export const RTPTransactionDetails$outboundSchema: z.ZodType<
74
- RTPTransactionDetails$Outbound,
75
- z.ZodTypeDef,
76
- RTPTransactionDetails
77
- > = z.object({
78
- status: RTPTransactionStatus$outboundSchema.optional(),
79
- networkResponseCode: z.string().optional(),
80
- failureCode: RTPFailureCode$outboundSchema.optional(),
81
- initiatedOn: z.date().transform(v => v.toISOString()).optional(),
82
- completedOn: z.date().transform(v => v.toISOString()).optional(),
83
- failedOn: z.date().transform(v => v.toISOString()).optional(),
84
- acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
85
- });
86
-
87
- export function rtpTransactionDetailsToJSON(
88
- rtpTransactionDetails: RTPTransactionDetails,
89
- ): string {
90
- return JSON.stringify(
91
- RTPTransactionDetails$outboundSchema.parse(rtpTransactionDetails),
92
- );
93
- }
94
- export function rtpTransactionDetailsFromJSON(
95
- jsonString: string,
96
- ): SafeParseResult<RTPTransactionDetails, SDKValidationError> {
97
- return safeParse(
98
- jsonString,
99
- (x) => RTPTransactionDetails$inboundSchema.parse(JSON.parse(x)),
100
- `Failed to parse 'RTPTransactionDetails' from JSON`,
101
- );
102
- }
@@ -1,29 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * Status of a transaction within the RTP lifecycle.
10
- */
11
- export const RTPTransactionStatus = {
12
- Initiated: "initiated",
13
- Completed: "completed",
14
- Failed: "failed",
15
- AcceptedWithoutPosting: "accepted-without-posting",
16
- } as const;
17
- /**
18
- * Status of a transaction within the RTP lifecycle.
19
- */
20
- export type RTPTransactionStatus = ClosedEnum<typeof RTPTransactionStatus>;
21
-
22
- /** @internal */
23
- export const RTPTransactionStatus$inboundSchema: z.ZodNativeEnum<
24
- typeof RTPTransactionStatus
25
- > = z.nativeEnum(RTPTransactionStatus);
26
- /** @internal */
27
- export const RTPTransactionStatus$outboundSchema: z.ZodNativeEnum<
28
- typeof RTPTransactionStatus
29
- > = RTPTransactionStatus$inboundSchema;