@naturalpay/sdk 0.2.1 → 0.4.0
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/CHANGELOG.md +42 -0
- package/README.md +2 -2
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +37 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -13
- package/client.d.ts.map +1 -1
- package/client.js +30 -6
- package/client.js.map +1 -1
- package/client.mjs +31 -7
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/envelope.d.mts.map +1 -1
- package/lib/envelope.d.ts.map +1 -1
- package/lib/envelope.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/agents.d.mts +4 -153
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +4 -153
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +5 -5
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +5 -5
- package/resources/agents.mjs.map +1 -1
- package/resources/api-keys.d.mts +16 -2
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +16 -2
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +7 -4
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +7 -4
- package/resources/api-keys.mjs.map +1 -1
- package/resources/counterparties.d.mts +5 -55
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +5 -55
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +1 -3
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +1 -3
- package/resources/counterparties.mjs.map +1 -1
- package/resources/customers.d.mts.map +1 -1
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.mjs.map +1 -1
- package/resources/delegations.d.mts.map +1 -1
- package/resources/delegations.d.ts.map +1 -1
- package/resources/delegations.mjs.map +1 -1
- package/resources/escalations.d.mts +1124 -0
- package/resources/escalations.d.mts.map +1 -0
- package/resources/escalations.d.ts +1124 -0
- package/resources/escalations.d.ts.map +1 -0
- package/resources/escalations.js +110 -0
- package/resources/escalations.js.map +1 -0
- package/resources/escalations.mjs +106 -0
- package/resources/escalations.mjs.map +1 -0
- package/resources/external-accounts.d.mts +239 -0
- package/resources/external-accounts.d.mts.map +1 -0
- package/resources/external-accounts.d.ts +239 -0
- package/resources/external-accounts.d.ts.map +1 -0
- package/resources/external-accounts.js +47 -0
- package/resources/external-accounts.js.map +1 -0
- package/resources/external-accounts.mjs +43 -0
- package/resources/external-accounts.mjs.map +1 -0
- package/resources/index.d.mts +8 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invitations.d.mts +17 -8
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +17 -8
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +7 -5
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +7 -5
- package/resources/invitations.mjs.map +1 -1
- package/resources/parties.d.mts +55 -28
- package/resources/parties.d.mts.map +1 -1
- package/resources/parties.d.ts +55 -28
- package/resources/parties.d.ts.map +1 -1
- package/resources/parties.js +30 -4
- package/resources/parties.js.map +1 -1
- package/resources/parties.mjs +30 -4
- package/resources/parties.mjs.map +1 -1
- package/resources/payment-requests.d.mts +751 -39
- package/resources/payment-requests.d.mts.map +1 -1
- package/resources/payment-requests.d.ts +751 -39
- package/resources/payment-requests.d.ts.map +1 -1
- package/resources/payment-requests.js +82 -2
- package/resources/payment-requests.js.map +1 -1
- package/resources/payment-requests.mjs +82 -2
- package/resources/payment-requests.mjs.map +1 -1
- package/resources/payments.d.mts +390 -24
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +390 -24
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +53 -3
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +53 -3
- package/resources/payments.mjs.map +1 -1
- package/resources/transactions.d.mts +53 -113
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +53 -113
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -3
- package/resources/transactions.mjs +3 -3
- package/resources/transactions.mjs.map +1 -1
- package/resources/transfers.d.mts +1030 -0
- package/resources/transfers.d.mts.map +1 -0
- package/resources/transfers.d.ts +1030 -0
- package/resources/transfers.d.ts.map +1 -0
- package/resources/transfers.js +114 -0
- package/resources/transfers.js.map +1 -0
- package/resources/transfers.mjs +110 -0
- package/resources/transfers.mjs.map +1 -0
- package/resources/wallet.d.mts +117 -437
- package/resources/wallet.d.mts.map +1 -1
- package/resources/wallet.d.ts +117 -437
- package/resources/wallet.d.ts.map +1 -1
- package/resources/wallet.js +9 -122
- package/resources/wallet.js.map +1 -1
- package/resources/wallet.mjs +9 -122
- package/resources/wallet.mjs.map +1 -1
- package/resources/webhooks.d.mts +775 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +775 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +163 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +159 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +156 -32
- package/src/resources/agents.ts +5 -185
- package/src/resources/api-keys.ts +26 -4
- package/src/resources/counterparties.ts +5 -64
- package/src/resources/escalations.ts +1422 -0
- package/src/resources/external-accounts.ts +324 -0
- package/src/resources/index.ts +65 -13
- package/src/resources/invitations.ts +27 -11
- package/src/resources/parties.ts +88 -33
- package/src/resources/payment-requests.ts +945 -44
- package/src/resources/payments.ts +518 -23
- package/src/resources/transactions.ts +53 -129
- package/src/resources/transfers.ts +1338 -0
- package/src/resources/wallet.ts +133 -597
- package/src/resources/webhooks.ts +1232 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/wallet.d.mts
CHANGED
|
@@ -2,83 +2,25 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* Wallet balance, deposits, withdrawals, and external
|
|
5
|
+
* Wallet balance, deposits, withdrawals, and external accounts
|
|
6
6
|
*/
|
|
7
7
|
export declare class Wallet extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const response = await client.wallet.getBalance();
|
|
14
|
-
* ```
|
|
9
|
+
* List wallets for the authenticated party, including balance and ACH deposit
|
|
10
|
+
* instructions when available. Currently returns at most one wallet.
|
|
15
11
|
*/
|
|
16
|
-
|
|
12
|
+
list(params?: WalletListParams | null | undefined, options?: RequestOptions): APIPromise<WalletListResponse>;
|
|
17
13
|
/**
|
|
18
|
-
* Get
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const response =
|
|
23
|
-
* await client.wallet.getDepositInstructions();
|
|
24
|
-
* ```
|
|
14
|
+
* Get a wallet visible to the authenticated party, including balance and ACH
|
|
15
|
+
* deposit instructions when available.
|
|
25
16
|
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Initiate a wallet deposit.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const response = await client.wallet.initiateDeposit({
|
|
33
|
-
* amount: 1,
|
|
34
|
-
* externalFundingSourceId:
|
|
35
|
-
* 'efs_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
36
|
-
* 'Idempotency-Key': 'Idempotency-Key',
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
initiateDeposit(params: WalletInitiateDepositParams, options?: RequestOptions): APIPromise<WalletInitiateDepositResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Initiate a wallet withdrawal.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const response = await client.wallet.initiateWithdrawal({
|
|
47
|
-
* amount: 1,
|
|
48
|
-
* externalFundingSourceId:
|
|
49
|
-
* 'efs_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
50
|
-
* 'Idempotency-Key': 'Idempotency-Key',
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
initiateWithdrawal(params: WalletInitiateWithdrawalParams, options?: RequestOptions): APIPromise<WalletInitiateWithdrawalResponse>;
|
|
55
|
-
/**
|
|
56
|
-
* List linked external funding sources with cursor pagination.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const response =
|
|
61
|
-
* await client.wallet.listPaymentInstruments();
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
listPaymentInstruments(params?: WalletListPaymentInstrumentsParams | null | undefined, options?: RequestOptions): APIPromise<WalletListPaymentInstrumentsResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* Remove (unlink) a bank account.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* const response =
|
|
71
|
-
* await client.wallet.removePaymentInstrument(
|
|
72
|
-
* 'efs_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
73
|
-
* );
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
removePaymentInstrument(externalFundingSourceID: string, params?: WalletRemovePaymentInstrumentParams | null | undefined, options?: RequestOptions): APIPromise<WalletRemovePaymentInstrumentResponse>;
|
|
17
|
+
get(walletID: string, params?: WalletGetParams | null | undefined, options?: RequestOptions): APIPromise<WalletGetResponse>;
|
|
77
18
|
}
|
|
78
|
-
export interface
|
|
79
|
-
data:
|
|
19
|
+
export interface WalletListResponse {
|
|
20
|
+
data: Array<WalletListResponse.Data>;
|
|
21
|
+
meta: WalletListResponse.Meta;
|
|
80
22
|
}
|
|
81
|
-
export declare namespace
|
|
23
|
+
export declare namespace WalletListResponse {
|
|
82
24
|
interface Data {
|
|
83
25
|
/**
|
|
84
26
|
* Resource ID
|
|
@@ -103,277 +45,83 @@ export declare namespace WalletGetBalanceResponse {
|
|
|
103
45
|
*/
|
|
104
46
|
interface Attributes {
|
|
105
47
|
/**
|
|
106
|
-
*
|
|
48
|
+
* Wallet ledger balance
|
|
107
49
|
*/
|
|
108
|
-
|
|
50
|
+
balance: Attributes.Balance;
|
|
109
51
|
/**
|
|
110
|
-
*
|
|
52
|
+
* Claimable payment totals
|
|
111
53
|
*/
|
|
112
|
-
|
|
54
|
+
claims: Attributes.Claims;
|
|
113
55
|
/**
|
|
114
|
-
*
|
|
56
|
+
* ACH deposit instructions for this wallet, when available
|
|
115
57
|
*/
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Resource relationships
|
|
120
|
-
*/
|
|
121
|
-
interface Relationships {
|
|
58
|
+
depositInstructions: Attributes.DepositInstructions | null;
|
|
122
59
|
/**
|
|
123
|
-
*
|
|
60
|
+
* Wallet readiness status
|
|
124
61
|
*/
|
|
125
|
-
|
|
62
|
+
status: 'active';
|
|
126
63
|
}
|
|
127
|
-
namespace
|
|
64
|
+
namespace Attributes {
|
|
128
65
|
/**
|
|
129
|
-
*
|
|
66
|
+
* Wallet ledger balance
|
|
130
67
|
*/
|
|
131
|
-
interface
|
|
68
|
+
interface Balance {
|
|
132
69
|
/**
|
|
133
|
-
*
|
|
70
|
+
* Amount currently available to spend or withdraw (cents)
|
|
134
71
|
*/
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
namespace Party {
|
|
72
|
+
available: number;
|
|
138
73
|
/**
|
|
139
|
-
*
|
|
74
|
+
* Currency code
|
|
140
75
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
type: string;
|
|
147
|
-
}
|
|
76
|
+
currency: 'USD';
|
|
77
|
+
/**
|
|
78
|
+
* Total wallet ledger balance (cents)
|
|
79
|
+
*/
|
|
80
|
+
total: number;
|
|
148
81
|
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
export interface WalletGetDepositInstructionsResponse {
|
|
153
|
-
data: WalletGetDepositInstructionsResponse.Data;
|
|
154
|
-
}
|
|
155
|
-
export declare namespace WalletGetDepositInstructionsResponse {
|
|
156
|
-
interface Data {
|
|
157
|
-
/**
|
|
158
|
-
* Resource ID (the wallet handle)
|
|
159
|
-
*/
|
|
160
|
-
id: string;
|
|
161
|
-
/**
|
|
162
|
-
* Resource attributes
|
|
163
|
-
*/
|
|
164
|
-
attributes: Data.Attributes;
|
|
165
|
-
/**
|
|
166
|
-
* Resource type
|
|
167
|
-
*/
|
|
168
|
-
type: string;
|
|
169
|
-
}
|
|
170
|
-
namespace Data {
|
|
171
|
-
/**
|
|
172
|
-
* Resource attributes
|
|
173
|
-
*/
|
|
174
|
-
interface Attributes {
|
|
175
|
-
/**
|
|
176
|
-
* Account number for ACH deposits
|
|
177
|
-
*/
|
|
178
|
-
accountNumber: string;
|
|
179
|
-
/**
|
|
180
|
-
* Name of the receiving bank
|
|
181
|
-
*/
|
|
182
|
-
bankName: string;
|
|
183
|
-
/**
|
|
184
|
-
* Bank routing number for ACH deposits
|
|
185
|
-
*/
|
|
186
|
-
routingNumber: string;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
export interface WalletInitiateDepositResponse {
|
|
191
|
-
data: WalletInitiateDepositResponse.Data;
|
|
192
|
-
}
|
|
193
|
-
export declare namespace WalletInitiateDepositResponse {
|
|
194
|
-
interface Data {
|
|
195
|
-
/**
|
|
196
|
-
* Transaction handle (txn_xxx). Empty when the operation failed before a
|
|
197
|
-
* transaction was created.
|
|
198
|
-
*/
|
|
199
|
-
id: string;
|
|
200
|
-
/**
|
|
201
|
-
* Resource attributes
|
|
202
|
-
*/
|
|
203
|
-
attributes: Data.Attributes;
|
|
204
|
-
/**
|
|
205
|
-
* Resource type
|
|
206
|
-
*/
|
|
207
|
-
type: string;
|
|
208
|
-
}
|
|
209
|
-
namespace Data {
|
|
210
|
-
/**
|
|
211
|
-
* Resource attributes
|
|
212
|
-
*/
|
|
213
|
-
interface Attributes {
|
|
214
|
-
/**
|
|
215
|
-
* Amount in cents
|
|
216
|
-
*/
|
|
217
|
-
amount: number;
|
|
218
|
-
/**
|
|
219
|
-
* Currency code
|
|
220
|
-
*/
|
|
221
|
-
currency: string;
|
|
222
|
-
/**
|
|
223
|
-
* Error message if failed
|
|
224
|
-
*/
|
|
225
|
-
error: string | null;
|
|
226
|
-
/**
|
|
227
|
-
* Detailed error information
|
|
228
|
-
*/
|
|
229
|
-
errorDetails: string | null;
|
|
230
|
-
/**
|
|
231
|
-
* Estimated settlement time
|
|
232
|
-
*/
|
|
233
|
-
estimatedSettlement: string | null;
|
|
234
|
-
/**
|
|
235
|
-
* Operation status
|
|
236
|
-
*/
|
|
237
|
-
status: 'PROCESSING' | 'IN_REVIEW' | 'COMPLETED' | 'FAILED' | 'RETURNED';
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
export interface WalletInitiateWithdrawalResponse {
|
|
242
|
-
data: WalletInitiateWithdrawalResponse.Data;
|
|
243
|
-
}
|
|
244
|
-
export declare namespace WalletInitiateWithdrawalResponse {
|
|
245
|
-
interface Data {
|
|
246
|
-
/**
|
|
247
|
-
* Transaction handle (txn_xxx). Empty when the operation failed before a
|
|
248
|
-
* transaction was created.
|
|
249
|
-
*/
|
|
250
|
-
id: string;
|
|
251
|
-
/**
|
|
252
|
-
* Resource attributes
|
|
253
|
-
*/
|
|
254
|
-
attributes: Data.Attributes;
|
|
255
|
-
/**
|
|
256
|
-
* Resource type
|
|
257
|
-
*/
|
|
258
|
-
type: string;
|
|
259
|
-
}
|
|
260
|
-
namespace Data {
|
|
261
|
-
/**
|
|
262
|
-
* Resource attributes
|
|
263
|
-
*/
|
|
264
|
-
interface Attributes {
|
|
265
|
-
/**
|
|
266
|
-
* Amount in cents
|
|
267
|
-
*/
|
|
268
|
-
amount: number;
|
|
269
|
-
/**
|
|
270
|
-
* Currency code
|
|
271
|
-
*/
|
|
272
|
-
currency: string;
|
|
273
|
-
/**
|
|
274
|
-
* Error message if failed
|
|
275
|
-
*/
|
|
276
|
-
error: string | null;
|
|
277
|
-
/**
|
|
278
|
-
* Detailed error information
|
|
279
|
-
*/
|
|
280
|
-
errorDetails: string | null;
|
|
281
|
-
/**
|
|
282
|
-
* Estimated settlement time
|
|
283
|
-
*/
|
|
284
|
-
estimatedSettlement: string | null;
|
|
285
|
-
/**
|
|
286
|
-
* Payment instruction ID
|
|
287
|
-
*/
|
|
288
|
-
instructionId: string | null;
|
|
289
|
-
/**
|
|
290
|
-
* MFA challenge ID
|
|
291
|
-
*/
|
|
292
|
-
mfaChallengeId: string | null;
|
|
293
|
-
/**
|
|
294
|
-
* MFA challenge expiration
|
|
295
|
-
*/
|
|
296
|
-
mfaExpiresAt: string | null;
|
|
297
|
-
/**
|
|
298
|
-
* Whether MFA is required
|
|
299
|
-
*/
|
|
300
|
-
mfaRequired: boolean;
|
|
301
82
|
/**
|
|
302
|
-
*
|
|
83
|
+
* Claimable payment totals
|
|
303
84
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Resource ID
|
|
316
|
-
*/
|
|
317
|
-
id: string;
|
|
318
|
-
/**
|
|
319
|
-
* Resource attributes
|
|
320
|
-
*/
|
|
321
|
-
attributes: Data.Attributes;
|
|
322
|
-
/**
|
|
323
|
-
* Resource relationships
|
|
324
|
-
*/
|
|
325
|
-
relationships: Data.Relationships;
|
|
326
|
-
/**
|
|
327
|
-
* Resource type
|
|
328
|
-
*/
|
|
329
|
-
type: string;
|
|
330
|
-
}
|
|
331
|
-
namespace Data {
|
|
332
|
-
/**
|
|
333
|
-
* Resource attributes
|
|
334
|
-
*/
|
|
335
|
-
interface Attributes {
|
|
336
|
-
/**
|
|
337
|
-
* Account display name
|
|
338
|
-
*/
|
|
339
|
-
accountName: string | null;
|
|
340
|
-
/**
|
|
341
|
-
* Account type (checking, savings)
|
|
342
|
-
*/
|
|
343
|
-
accountType: 'checking' | 'savings' | 'unknown' | null;
|
|
344
|
-
/**
|
|
345
|
-
* Bank institution name
|
|
346
|
-
*/
|
|
347
|
-
bankName: string | null;
|
|
348
|
-
/**
|
|
349
|
-
* When the funding source was linked
|
|
350
|
-
*/
|
|
351
|
-
createdAt: string;
|
|
352
|
-
/**
|
|
353
|
-
* Last 4 digits of account
|
|
354
|
-
*/
|
|
355
|
-
lastFour: string;
|
|
356
|
-
/**
|
|
357
|
-
* Status (new, active, disabled)
|
|
358
|
-
*/
|
|
359
|
-
status: 'new' | 'active' | 'disabled' | 'deleted' | 'unknown';
|
|
85
|
+
interface Claims {
|
|
86
|
+
/**
|
|
87
|
+
* Total unclaimed product-payment amount (cents)
|
|
88
|
+
*/
|
|
89
|
+
amount: number;
|
|
90
|
+
/**
|
|
91
|
+
* Number of unclaimed product payments
|
|
92
|
+
*/
|
|
93
|
+
count: number;
|
|
94
|
+
}
|
|
360
95
|
/**
|
|
361
|
-
*
|
|
96
|
+
* ACH deposit instructions for this wallet, when available
|
|
362
97
|
*/
|
|
363
|
-
|
|
98
|
+
interface DepositInstructions {
|
|
99
|
+
/**
|
|
100
|
+
* Account number for ACH deposits
|
|
101
|
+
*/
|
|
102
|
+
accountNumber: string;
|
|
103
|
+
/**
|
|
104
|
+
* Name of the receiving bank
|
|
105
|
+
*/
|
|
106
|
+
bankName: string;
|
|
107
|
+
/**
|
|
108
|
+
* Bank routing number for ACH deposits
|
|
109
|
+
*/
|
|
110
|
+
routingNumber: string;
|
|
111
|
+
}
|
|
364
112
|
}
|
|
365
113
|
/**
|
|
366
114
|
* Resource relationships
|
|
367
115
|
*/
|
|
368
116
|
interface Relationships {
|
|
369
117
|
/**
|
|
370
|
-
* Party that owns the
|
|
118
|
+
* Party that owns the wallet
|
|
371
119
|
*/
|
|
372
120
|
party: Relationships.Party;
|
|
373
121
|
}
|
|
374
122
|
namespace Relationships {
|
|
375
123
|
/**
|
|
376
|
-
* Party that owns the
|
|
124
|
+
* Party that owns the wallet
|
|
377
125
|
*/
|
|
378
126
|
interface Party {
|
|
379
127
|
/**
|
|
@@ -405,11 +153,10 @@ export declare namespace WalletListPaymentInstrumentsResponse {
|
|
|
405
153
|
}
|
|
406
154
|
}
|
|
407
155
|
}
|
|
408
|
-
export interface
|
|
409
|
-
data:
|
|
410
|
-
meta: WalletRemovePaymentInstrumentResponse.Meta;
|
|
156
|
+
export interface WalletGetResponse {
|
|
157
|
+
data: WalletGetResponse.Data;
|
|
411
158
|
}
|
|
412
|
-
export declare namespace
|
|
159
|
+
export declare namespace WalletGetResponse {
|
|
413
160
|
interface Data {
|
|
414
161
|
/**
|
|
415
162
|
* Resource ID
|
|
@@ -434,46 +181,83 @@ export declare namespace WalletRemovePaymentInstrumentResponse {
|
|
|
434
181
|
*/
|
|
435
182
|
interface Attributes {
|
|
436
183
|
/**
|
|
437
|
-
*
|
|
184
|
+
* Wallet ledger balance
|
|
438
185
|
*/
|
|
439
|
-
|
|
186
|
+
balance: Attributes.Balance;
|
|
440
187
|
/**
|
|
441
|
-
*
|
|
188
|
+
* Claimable payment totals
|
|
442
189
|
*/
|
|
443
|
-
|
|
190
|
+
claims: Attributes.Claims;
|
|
444
191
|
/**
|
|
445
|
-
*
|
|
192
|
+
* ACH deposit instructions for this wallet, when available
|
|
446
193
|
*/
|
|
447
|
-
|
|
194
|
+
depositInstructions: Attributes.DepositInstructions | null;
|
|
448
195
|
/**
|
|
449
|
-
*
|
|
196
|
+
* Wallet readiness status
|
|
450
197
|
*/
|
|
451
|
-
|
|
198
|
+
status: 'active';
|
|
199
|
+
}
|
|
200
|
+
namespace Attributes {
|
|
452
201
|
/**
|
|
453
|
-
*
|
|
202
|
+
* Wallet ledger balance
|
|
454
203
|
*/
|
|
455
|
-
|
|
204
|
+
interface Balance {
|
|
205
|
+
/**
|
|
206
|
+
* Amount currently available to spend or withdraw (cents)
|
|
207
|
+
*/
|
|
208
|
+
available: number;
|
|
209
|
+
/**
|
|
210
|
+
* Currency code
|
|
211
|
+
*/
|
|
212
|
+
currency: 'USD';
|
|
213
|
+
/**
|
|
214
|
+
* Total wallet ledger balance (cents)
|
|
215
|
+
*/
|
|
216
|
+
total: number;
|
|
217
|
+
}
|
|
456
218
|
/**
|
|
457
|
-
*
|
|
219
|
+
* Claimable payment totals
|
|
458
220
|
*/
|
|
459
|
-
|
|
221
|
+
interface Claims {
|
|
222
|
+
/**
|
|
223
|
+
* Total unclaimed product-payment amount (cents)
|
|
224
|
+
*/
|
|
225
|
+
amount: number;
|
|
226
|
+
/**
|
|
227
|
+
* Number of unclaimed product payments
|
|
228
|
+
*/
|
|
229
|
+
count: number;
|
|
230
|
+
}
|
|
460
231
|
/**
|
|
461
|
-
*
|
|
232
|
+
* ACH deposit instructions for this wallet, when available
|
|
462
233
|
*/
|
|
463
|
-
|
|
234
|
+
interface DepositInstructions {
|
|
235
|
+
/**
|
|
236
|
+
* Account number for ACH deposits
|
|
237
|
+
*/
|
|
238
|
+
accountNumber: string;
|
|
239
|
+
/**
|
|
240
|
+
* Name of the receiving bank
|
|
241
|
+
*/
|
|
242
|
+
bankName: string;
|
|
243
|
+
/**
|
|
244
|
+
* Bank routing number for ACH deposits
|
|
245
|
+
*/
|
|
246
|
+
routingNumber: string;
|
|
247
|
+
}
|
|
464
248
|
}
|
|
465
249
|
/**
|
|
466
250
|
* Resource relationships
|
|
467
251
|
*/
|
|
468
252
|
interface Relationships {
|
|
469
253
|
/**
|
|
470
|
-
* Party that owns the
|
|
254
|
+
* Party that owns the wallet
|
|
471
255
|
*/
|
|
472
256
|
party: Relationships.Party;
|
|
473
257
|
}
|
|
474
258
|
namespace Relationships {
|
|
475
259
|
/**
|
|
476
|
-
* Party that owns the
|
|
260
|
+
* Party that owns the wallet
|
|
477
261
|
*/
|
|
478
262
|
interface Party {
|
|
479
263
|
/**
|
|
@@ -495,29 +279,8 @@ export declare namespace WalletRemovePaymentInstrumentResponse {
|
|
|
495
279
|
}
|
|
496
280
|
}
|
|
497
281
|
}
|
|
498
|
-
interface Meta {
|
|
499
|
-
/**
|
|
500
|
-
* Indicates the resource was deleted
|
|
501
|
-
*/
|
|
502
|
-
deleted: true;
|
|
503
|
-
}
|
|
504
282
|
}
|
|
505
|
-
export interface
|
|
506
|
-
/**
|
|
507
|
-
* Query param
|
|
508
|
-
*/
|
|
509
|
-
partyId?: string;
|
|
510
|
-
/**
|
|
511
|
-
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
512
|
-
*/
|
|
513
|
-
'X-Agent-ID'?: string;
|
|
514
|
-
/**
|
|
515
|
-
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
516
|
-
* for agent observability.
|
|
517
|
-
*/
|
|
518
|
-
'X-Instance-ID'?: string;
|
|
519
|
-
}
|
|
520
|
-
export interface WalletGetDepositInstructionsParams {
|
|
283
|
+
export interface WalletListParams {
|
|
521
284
|
/**
|
|
522
285
|
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
523
286
|
*/
|
|
@@ -528,90 +291,7 @@ export interface WalletGetDepositInstructionsParams {
|
|
|
528
291
|
*/
|
|
529
292
|
'X-Instance-ID'?: string;
|
|
530
293
|
}
|
|
531
|
-
export interface
|
|
532
|
-
/**
|
|
533
|
-
* Body param: Amount in cents
|
|
534
|
-
*/
|
|
535
|
-
amount: number;
|
|
536
|
-
/**
|
|
537
|
-
* Body param: External funding source ID (efs\_\*)
|
|
538
|
-
*/
|
|
539
|
-
externalFundingSourceId: string;
|
|
540
|
-
/**
|
|
541
|
-
* Header param: Unique key for idempotent request handling. If a request with the
|
|
542
|
-
* same key was already processed, the original response is returned.
|
|
543
|
-
*/
|
|
544
|
-
'Idempotency-Key': string;
|
|
545
|
-
/**
|
|
546
|
-
* Body param: Currency code
|
|
547
|
-
*/
|
|
548
|
-
currency?: string;
|
|
549
|
-
/**
|
|
550
|
-
* Body param: Deposit description
|
|
551
|
-
*/
|
|
552
|
-
description?: string;
|
|
553
|
-
/**
|
|
554
|
-
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
555
|
-
*/
|
|
556
|
-
'X-Agent-ID'?: string;
|
|
557
|
-
/**
|
|
558
|
-
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
559
|
-
* for agent observability.
|
|
560
|
-
*/
|
|
561
|
-
'X-Instance-ID'?: string;
|
|
562
|
-
}
|
|
563
|
-
export interface WalletInitiateWithdrawalParams {
|
|
564
|
-
/**
|
|
565
|
-
* Body param: Amount in cents
|
|
566
|
-
*/
|
|
567
|
-
amount: number;
|
|
568
|
-
/**
|
|
569
|
-
* Body param: External funding source ID (efs\_\*)
|
|
570
|
-
*/
|
|
571
|
-
externalFundingSourceId: string;
|
|
572
|
-
/**
|
|
573
|
-
* Header param: Unique key for idempotent request handling. If a request with the
|
|
574
|
-
* same key was already processed, the original response is returned.
|
|
575
|
-
*/
|
|
576
|
-
'Idempotency-Key': string;
|
|
577
|
-
/**
|
|
578
|
-
* Body param: Currency code
|
|
579
|
-
*/
|
|
580
|
-
currency?: string;
|
|
581
|
-
/**
|
|
582
|
-
* Body param: Withdrawal description
|
|
583
|
-
*/
|
|
584
|
-
description?: string;
|
|
585
|
-
/**
|
|
586
|
-
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
587
|
-
*/
|
|
588
|
-
'X-Agent-ID'?: string;
|
|
589
|
-
/**
|
|
590
|
-
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
591
|
-
* for agent observability.
|
|
592
|
-
*/
|
|
593
|
-
'X-Instance-ID'?: string;
|
|
594
|
-
}
|
|
595
|
-
export interface WalletListPaymentInstrumentsParams {
|
|
596
|
-
/**
|
|
597
|
-
* Query param
|
|
598
|
-
*/
|
|
599
|
-
cursor?: string;
|
|
600
|
-
/**
|
|
601
|
-
* Query param
|
|
602
|
-
*/
|
|
603
|
-
limit?: number;
|
|
604
|
-
/**
|
|
605
|
-
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
606
|
-
*/
|
|
607
|
-
'X-Agent-ID'?: string;
|
|
608
|
-
/**
|
|
609
|
-
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
610
|
-
* for agent observability.
|
|
611
|
-
*/
|
|
612
|
-
'X-Instance-ID'?: string;
|
|
613
|
-
}
|
|
614
|
-
export interface WalletRemovePaymentInstrumentParams {
|
|
294
|
+
export interface WalletGetParams {
|
|
615
295
|
/**
|
|
616
296
|
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
617
297
|
*/
|
|
@@ -623,6 +303,6 @@ export interface WalletRemovePaymentInstrumentParams {
|
|
|
623
303
|
'X-Instance-ID'?: string;
|
|
624
304
|
}
|
|
625
305
|
export declare namespace Wallet {
|
|
626
|
-
export { type
|
|
306
|
+
export { type WalletListResponse as WalletListResponse, type WalletGetResponse as WalletGetResponse, type WalletListParams as WalletListParams, type WalletGetParams as WalletGetParams, };
|
|
627
307
|
}
|
|
628
308
|
//# sourceMappingURL=wallet.d.mts.map
|