@moovio/sdk 0.21.0 → 0.21.2
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.
- package/bin/mcp-server.js +79 -61
- package/bin/mcp-server.js.map +11 -10
- package/examples/package-lock.json +1 -1
- package/hooks/hooks.d.ts +3 -2
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js.map +1 -1
- package/hooks/moov-version-hook.d.ts +6 -0
- package/hooks/moov-version-hook.d.ts.map +1 -0
- package/hooks/moov-version-hook.js +12 -0
- package/hooks/moov-version-hook.js.map +1 -0
- package/hooks/registration.d.ts.map +1 -1
- package/hooks/registration.js +3 -1
- package/hooks/registration.js.map +1 -1
- package/hooks/types.d.ts +2 -6
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +5 -6
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/package.json +1 -1
- package/src/hooks/hooks.ts +2 -2
- package/src/hooks/moov-version-hook.ts +9 -0
- package/src/hooks/registration.ts +4 -1
- package/src/hooks/types.ts +2 -7
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +6 -7
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/docs/sdks/accounts/README.md +0 -1038
- package/docs/sdks/accountterminalapplications/README.md +0 -371
- package/docs/sdks/adjustments/README.md +0 -185
- package/docs/sdks/applepay/README.md +0 -572
- package/docs/sdks/authentication/README.md +0 -191
- package/docs/sdks/avatars/README.md +0 -95
- package/docs/sdks/bankaccounts/README.md +0 -951
- package/docs/sdks/branding/README.md +0 -407
- package/docs/sdks/capabilities/README.md +0 -380
- package/docs/sdks/cardissuing/README.md +0 -533
- package/docs/sdks/cards/README.md +0 -544
- package/docs/sdks/disputes/README.md +0 -1085
- package/docs/sdks/endtoendencryption/README.md +0 -174
- package/docs/sdks/enrichedaddress/README.md +0 -95
- package/docs/sdks/enrichedprofile/README.md +0 -95
- package/docs/sdks/feeplans/README.md +0 -921
- package/docs/sdks/files/README.md +0 -293
- package/docs/sdks/images/README.md +0 -616
- package/docs/sdks/industries/README.md +0 -91
- package/docs/sdks/institutions/README.md +0 -184
- package/docs/sdks/issuingtransactions/README.md +0 -465
- package/docs/sdks/onboarding/README.md +0 -389
- package/docs/sdks/paymentlinks/README.md +0 -615
- package/docs/sdks/paymentmethods/README.md +0 -187
- package/docs/sdks/ping/README.md +0 -91
- package/docs/sdks/products/README.md +0 -616
- package/docs/sdks/receipts/README.md +0 -180
- package/docs/sdks/representatives/README.md +0 -603
- package/docs/sdks/scheduling/README.md +0 -1018
- package/docs/sdks/statements/README.md +0 -194
- package/docs/sdks/support/README.md +0 -505
- package/docs/sdks/sweeps/README.md +0 -571
- package/docs/sdks/terminalapplications/README.md +0 -460
- package/docs/sdks/transfers/README.md +0 -1136
- package/docs/sdks/underwriting/README.md +0 -331
- package/docs/sdks/wallets/README.md +0 -416
- package/docs/sdks/wallettransactions/README.md +0 -202
- package/examples/README.md +0 -31
- 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 | \*/\* |
|