@moovio/sdk 0.21.1 → 0.21.4

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 (71) hide show
  1. package/bin/mcp-server.js +79 -61
  2. package/bin/mcp-server.js.map +11 -10
  3. package/examples/package-lock.json +1 -1
  4. package/hooks/hooks.d.ts +3 -2
  5. package/hooks/hooks.d.ts.map +1 -1
  6. package/hooks/hooks.js.map +1 -1
  7. package/hooks/moov-version-hook.d.ts +6 -0
  8. package/hooks/moov-version-hook.d.ts.map +1 -0
  9. package/hooks/moov-version-hook.js +12 -0
  10. package/hooks/moov-version-hook.js.map +1 -0
  11. package/hooks/registration.d.ts.map +1 -1
  12. package/hooks/registration.js +3 -1
  13. package/hooks/registration.js.map +1 -1
  14. package/hooks/types.d.ts +2 -6
  15. package/hooks/types.d.ts.map +1 -1
  16. package/jsr.json +1 -1
  17. package/lib/config.d.ts +2 -2
  18. package/lib/config.js +2 -2
  19. package/lib/sdks.d.ts.map +1 -1
  20. package/lib/sdks.js +5 -6
  21. package/lib/sdks.js.map +1 -1
  22. package/mcp-server/mcp-server.js +1 -1
  23. package/mcp-server/server.js +1 -1
  24. package/package.json +1 -1
  25. package/src/hooks/hooks.ts +2 -2
  26. package/src/hooks/moov-version-hook.ts +9 -0
  27. package/src/hooks/registration.ts +4 -1
  28. package/src/hooks/types.ts +2 -7
  29. package/src/lib/config.ts +2 -2
  30. package/src/lib/sdks.ts +6 -7
  31. package/src/mcp-server/mcp-server.ts +1 -1
  32. package/src/mcp-server/server.ts +1 -1
  33. package/docs/sdks/accounts/README.md +0 -1038
  34. package/docs/sdks/accountterminalapplications/README.md +0 -371
  35. package/docs/sdks/adjustments/README.md +0 -185
  36. package/docs/sdks/applepay/README.md +0 -572
  37. package/docs/sdks/authentication/README.md +0 -191
  38. package/docs/sdks/avatars/README.md +0 -95
  39. package/docs/sdks/bankaccounts/README.md +0 -951
  40. package/docs/sdks/branding/README.md +0 -407
  41. package/docs/sdks/capabilities/README.md +0 -380
  42. package/docs/sdks/cardissuing/README.md +0 -533
  43. package/docs/sdks/cards/README.md +0 -544
  44. package/docs/sdks/disputes/README.md +0 -1085
  45. package/docs/sdks/endtoendencryption/README.md +0 -174
  46. package/docs/sdks/enrichedaddress/README.md +0 -95
  47. package/docs/sdks/enrichedprofile/README.md +0 -95
  48. package/docs/sdks/feeplans/README.md +0 -921
  49. package/docs/sdks/files/README.md +0 -293
  50. package/docs/sdks/images/README.md +0 -616
  51. package/docs/sdks/industries/README.md +0 -91
  52. package/docs/sdks/institutions/README.md +0 -184
  53. package/docs/sdks/issuingtransactions/README.md +0 -465
  54. package/docs/sdks/onboarding/README.md +0 -389
  55. package/docs/sdks/paymentlinks/README.md +0 -615
  56. package/docs/sdks/paymentmethods/README.md +0 -187
  57. package/docs/sdks/ping/README.md +0 -91
  58. package/docs/sdks/products/README.md +0 -616
  59. package/docs/sdks/receipts/README.md +0 -180
  60. package/docs/sdks/representatives/README.md +0 -603
  61. package/docs/sdks/scheduling/README.md +0 -1018
  62. package/docs/sdks/statements/README.md +0 -194
  63. package/docs/sdks/support/README.md +0 -505
  64. package/docs/sdks/sweeps/README.md +0 -571
  65. package/docs/sdks/terminalapplications/README.md +0 -460
  66. package/docs/sdks/transfers/README.md +0 -1136
  67. package/docs/sdks/underwriting/README.md +0 -331
  68. package/docs/sdks/wallets/README.md +0 -416
  69. package/docs/sdks/wallettransactions/README.md +0 -202
  70. package/examples/README.md +0 -31
  71. package/test/README.md +0 -14
@@ -1,180 +0,0 @@
1
- # Receipts
2
- (*receipts*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [create](#create) - Create receipts for transfers and scheduled transfers.
9
-
10
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
11
- you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
12
- * [list](#list) - List receipts by transferID, scheduleID, or occurrenceID.
13
-
14
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
15
- you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
16
-
17
- ## create
18
-
19
- Create receipts for transfers and scheduled transfers.
20
-
21
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
22
- you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
23
-
24
- ### Example Usage
25
-
26
- <!-- UsageSnippet language="typescript" operationID="createReceipts" method="post" path="/receipts" -->
27
- ```typescript
28
- import { Moov } from "@moovio/sdk";
29
-
30
- const moov = new Moov({
31
- xMoovVersion: "v2024.01.00",
32
- security: {
33
- username: "",
34
- password: "",
35
- },
36
- });
37
-
38
- async function run() {
39
- const result = await moov.receipts.create([]);
40
-
41
- console.log(result);
42
- }
43
-
44
- run();
45
- ```
46
-
47
- ### Standalone function
48
-
49
- The standalone function version of this method:
50
-
51
- ```typescript
52
- import { MoovCore } from "@moovio/sdk/core.js";
53
- import { receiptsCreate } from "@moovio/sdk/funcs/receiptsCreate.js";
54
-
55
- // Use `MoovCore` for best tree-shaking performance.
56
- // You can create one instance of it to use across an application.
57
- const moov = new MoovCore({
58
- xMoovVersion: "v2024.01.00",
59
- security: {
60
- username: "",
61
- password: "",
62
- },
63
- });
64
-
65
- async function run() {
66
- const res = await receiptsCreate(moov, []);
67
- if (res.ok) {
68
- const { value: result } = res;
69
- console.log(result);
70
- } else {
71
- console.log("receiptsCreate failed:", res.error);
72
- }
73
- }
74
-
75
- run();
76
- ```
77
-
78
- ### Parameters
79
-
80
- | Parameter | Type | Required | Description |
81
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
82
- | `request` | [components.ReceiptRequest[]](../../models/.md) | :heavy_check_mark: | The request object to use for the request. |
83
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
84
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
85
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
86
-
87
- ### Response
88
-
89
- **Promise\<[operations.CreateReceiptsResponse](../../models/operations/createreceiptsresponse.md)\>**
90
-
91
- ### Errors
92
-
93
- | Error Type | Status Code | Content Type |
94
- | ------------------- | ------------------- | ------------------- |
95
- | errors.GenericError | 400, 409 | application/json |
96
- | errors.APIError | 4XX, 5XX | \*/\* |
97
-
98
- ## list
99
-
100
- List receipts by transferID, scheduleID, or occurrenceID.
101
-
102
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
103
- you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
104
-
105
- ### Example Usage
106
-
107
- <!-- UsageSnippet language="typescript" operationID="listReceipts" method="get" path="/receipts" -->
108
- ```typescript
109
- import { Moov } from "@moovio/sdk";
110
-
111
- const moov = new Moov({
112
- xMoovVersion: "v2024.01.00",
113
- security: {
114
- username: "",
115
- password: "",
116
- },
117
- });
118
-
119
- async function run() {
120
- const result = await moov.receipts.list({
121
- id: "8508cf6c-9ce4-4e35-84c1-4b77320a620b",
122
- });
123
-
124
- console.log(result);
125
- }
126
-
127
- run();
128
- ```
129
-
130
- ### Standalone function
131
-
132
- The standalone function version of this method:
133
-
134
- ```typescript
135
- import { MoovCore } from "@moovio/sdk/core.js";
136
- import { receiptsList } from "@moovio/sdk/funcs/receiptsList.js";
137
-
138
- // Use `MoovCore` for best tree-shaking performance.
139
- // You can create one instance of it to use across an application.
140
- const moov = new MoovCore({
141
- xMoovVersion: "v2024.01.00",
142
- security: {
143
- username: "",
144
- password: "",
145
- },
146
- });
147
-
148
- async function run() {
149
- const res = await receiptsList(moov, {
150
- id: "8508cf6c-9ce4-4e35-84c1-4b77320a620b",
151
- });
152
- if (res.ok) {
153
- const { value: result } = res;
154
- console.log(result);
155
- } else {
156
- console.log("receiptsList failed:", res.error);
157
- }
158
- }
159
-
160
- run();
161
- ```
162
-
163
- ### Parameters
164
-
165
- | Parameter | Type | Required | Description |
166
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
167
- | `request` | [operations.ListReceiptsRequest](../../models/operations/listreceiptsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
168
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
169
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
170
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
171
-
172
- ### Response
173
-
174
- **Promise\<[operations.ListReceiptsResponse](../../models/operations/listreceiptsresponse.md)\>**
175
-
176
- ### Errors
177
-
178
- | Error Type | Status Code | Content Type |
179
- | --------------- | --------------- | --------------- |
180
- | errors.APIError | 4XX, 5XX | \*/\* |