@augustusbank/typescript-sdk 0.21.0 → 0.22.1
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 +39 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-holders.d.mts +1555 -1184
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +1555 -1184
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/account-holders.js +59 -0
- package/resources/account-holders.js.map +1 -1
- package/resources/account-holders.mjs +59 -0
- package/resources/account-holders.mjs.map +1 -1
- package/resources/account-programs.d.mts +22 -17
- package/resources/account-programs.d.mts.map +1 -1
- package/resources/account-programs.d.ts +22 -17
- package/resources/account-programs.d.ts.map +1 -1
- package/resources/account-programs.js +2 -2
- package/resources/account-programs.js.map +1 -1
- package/resources/account-programs.mjs +2 -2
- package/resources/account-programs.mjs.map +1 -1
- package/resources/accounts.d.mts +226 -48
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +226 -48
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +55 -2
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +55 -2
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-versions.d.mts +3 -0
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts +3 -0
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/conversions.d.mts +36 -81
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +36 -81
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.js +25 -1
- package/resources/conversions.js.map +1 -1
- package/resources/conversions.mjs +25 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/counterparties.d.mts +1042 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +1042 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +45 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +41 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/deposits.d.mts +48 -186
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +48 -186
- package/resources/deposits.d.ts.map +1 -1
- package/resources/events.d.mts +3 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +133 -335
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +133 -335
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +25 -0
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +25 -0
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +7 -11
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +7 -11
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/quotes.d.mts +4 -8
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +4 -8
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.js.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +84 -39
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +84 -39
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +22 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +22 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts +4 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +4 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/simulations/account-programs.d.mts +215 -0
- package/resources/simulations/account-programs.d.mts.map +1 -0
- package/resources/simulations/account-programs.d.ts +215 -0
- package/resources/simulations/account-programs.d.ts.map +1 -0
- package/resources/simulations/account-programs.js +96 -0
- package/resources/simulations/account-programs.js.map +1 -0
- package/resources/simulations/account-programs.mjs +92 -0
- package/resources/simulations/account-programs.mjs.map +1 -0
- package/resources/simulations/accounts.d.mts +209 -0
- package/resources/simulations/accounts.d.mts.map +1 -0
- package/resources/simulations/accounts.d.ts +209 -0
- package/resources/simulations/accounts.d.ts.map +1 -0
- package/resources/simulations/accounts.js +90 -0
- package/resources/simulations/accounts.js.map +1 -0
- package/resources/simulations/accounts.mjs +86 -0
- package/resources/simulations/accounts.mjs.map +1 -0
- package/resources/simulations/conversions.d.mts +54 -0
- package/resources/simulations/conversions.d.mts.map +1 -0
- package/resources/simulations/conversions.d.ts +54 -0
- package/resources/simulations/conversions.d.ts.map +1 -0
- package/resources/simulations/conversions.js +39 -0
- package/resources/simulations/conversions.js.map +1 -0
- package/resources/simulations/conversions.mjs +35 -0
- package/resources/simulations/conversions.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +202 -0
- package/resources/simulations/deposits.d.mts.map +1 -0
- package/resources/simulations/deposits.d.ts +202 -0
- package/resources/simulations/deposits.d.ts.map +1 -0
- package/resources/simulations/deposits.js +25 -0
- package/resources/simulations/deposits.js.map +1 -0
- package/resources/simulations/deposits.mjs +21 -0
- package/resources/simulations/deposits.mjs.map +1 -0
- package/resources/simulations/index.d.mts +7 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts +7 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +17 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +8 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/payouts.d.mts +62 -0
- package/resources/simulations/payouts.d.mts.map +1 -0
- package/resources/simulations/payouts.d.ts +62 -0
- package/resources/simulations/payouts.d.ts.map +1 -0
- package/resources/simulations/payouts.js +39 -0
- package/resources/simulations/payouts.js.map +1 -0
- package/resources/simulations/payouts.mjs +35 -0
- package/resources/simulations/payouts.mjs.map +1 -0
- package/resources/simulations/simulations.d.mts +26 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +26 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +33 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +28 -0
- package/resources/simulations/simulations.mjs.map +1 -0
- package/resources/simulations.d.mts +2 -0
- package/resources/simulations.d.mts.map +1 -0
- package/resources/simulations.d.ts +2 -0
- package/resources/simulations.d.ts.map +1 -0
- package/resources/simulations.js +6 -0
- package/resources/simulations.js.map +1 -0
- package/resources/simulations.mjs +3 -0
- package/resources/simulations.mjs.map +1 -0
- package/resources/transactions.d.mts +342 -162
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +342 -162
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +61 -11
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +61 -11
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +49 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +49 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +976 -978
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +976 -978
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +48 -8
- package/src/resources/account-holders.ts +1701 -1282
- package/src/resources/account-programs.ts +30 -19
- package/src/resources/accounts.ts +265 -50
- package/src/resources/api-keys.ts +3 -0
- package/src/resources/api-versions.ts +3 -0
- package/src/resources/conversions.ts +36 -93
- package/src/resources/counterparties.ts +3127 -0
- package/src/resources/deposits.ts +66 -269
- package/src/resources/events.ts +18 -12
- package/src/resources/index.ts +21 -4
- package/src/resources/payouts.ts +204 -439
- package/src/resources/quotes/indicative.ts +7 -12
- package/src/resources/quotes/quotes.ts +4 -9
- package/src/resources/returns.ts +144 -40
- package/src/resources/scopes.ts +7 -1
- package/src/resources/simulations/account-programs.ts +282 -0
- package/src/resources/simulations/accounts.ts +265 -0
- package/src/resources/simulations/conversions.ts +70 -0
- package/src/resources/simulations/deposits.ts +522 -0
- package/src/resources/simulations/index.ts +33 -0
- package/src/resources/simulations/payouts.ts +80 -0
- package/src/resources/simulations/simulations.ts +92 -0
- package/src/resources/simulations.ts +3 -0
- package/src/resources/transactions.ts +954 -206
- package/src/resources/webhook-subscriptions.ts +102 -36
- package/src/resources/webhooks.ts +1283 -1153
- package/src/version.ts +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/payouts.d.mts
CHANGED
|
@@ -5,14 +5,39 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
5
5
|
export declare class Payouts extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new payout.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const payout = await client.payouts.create({
|
|
12
|
+
* account_id: '550e8400-e29b-41d4-a716-44665544000b',
|
|
13
|
+
* amount: '100.50',
|
|
14
|
+
* counterparty_id: '550e8400-e29b-41d4-a716-446655440000',
|
|
15
|
+
* currency: 'EUR',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
8
18
|
*/
|
|
9
19
|
create(body: PayoutCreateParams, options?: RequestOptions): APIPromise<PayoutCreateResponse>;
|
|
10
20
|
/**
|
|
11
21
|
* Retrieves a payout by ID.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const payout = await client.payouts.retrieve(
|
|
26
|
+
* '550e8400-e29b-41d4-a716-446655440003',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
12
29
|
*/
|
|
13
30
|
retrieve(id: string, options?: RequestOptions): APIPromise<PayoutRetrieveResponse>;
|
|
14
31
|
/**
|
|
15
32
|
* Lists payouts for the merchant with cursor-based pagination.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* // Automatically fetches more pages as needed.
|
|
37
|
+
* for await (const payoutListResponse of client.payouts.list()) {
|
|
38
|
+
* // ...
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
16
41
|
*/
|
|
17
42
|
list(query?: PayoutListParams | null | undefined, options?: RequestOptions): PagePromise<PayoutListResponsesCursorPage, PayoutListResponse>;
|
|
18
43
|
}
|
|
@@ -22,26 +47,30 @@ export interface PayoutCreateResponse {
|
|
|
22
47
|
* Unique identifier of the payout.
|
|
23
48
|
*/
|
|
24
49
|
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* ID of the account that was debited.
|
|
52
|
+
*/
|
|
53
|
+
account_id: string;
|
|
25
54
|
/**
|
|
26
55
|
* Amount as a string decimal (e.g. "100.50").
|
|
27
56
|
*/
|
|
28
57
|
amount: string;
|
|
29
58
|
/**
|
|
30
|
-
*
|
|
59
|
+
* ID of the counterparty that receives the money.
|
|
31
60
|
*/
|
|
32
|
-
|
|
61
|
+
counterparty_id: string;
|
|
33
62
|
/**
|
|
34
|
-
* Currency code (ISO 4217
|
|
63
|
+
* Currency code (ISO 4217 or crypto).
|
|
35
64
|
*/
|
|
36
65
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
37
|
-
/**
|
|
38
|
-
* Bank account or crypto wallet the payout was sent to.
|
|
39
|
-
*/
|
|
40
|
-
destination: PayoutCreateResponse.IbanFinancialAddress | PayoutCreateResponse.SortCodeFinancialAddress | PayoutCreateResponse.AbaFinancialAddress | PayoutCreateResponse.CryptoWalletFinancialAddress;
|
|
41
66
|
/**
|
|
42
67
|
* Failure details when status is failed, otherwise null.
|
|
43
68
|
*/
|
|
44
69
|
failure: PayoutCreateResponse.Failure | null;
|
|
70
|
+
/**
|
|
71
|
+
* ISO 8601 UTC timestamp when the payout was initiated.
|
|
72
|
+
*/
|
|
73
|
+
initiated_at: string;
|
|
45
74
|
/**
|
|
46
75
|
* Key-value pairs stored with the payout.
|
|
47
76
|
*/
|
|
@@ -49,95 +78,38 @@ export interface PayoutCreateResponse {
|
|
|
49
78
|
[key: string]: string;
|
|
50
79
|
};
|
|
51
80
|
/**
|
|
52
|
-
* Payment
|
|
81
|
+
* Payment scheme or blockchain used for the payout, or null when unknown.
|
|
53
82
|
*/
|
|
54
|
-
|
|
83
|
+
rail: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'internal' | 'target' | 'ach' | 'fedwire' | 'bitcoin' | 'bitcoin_testnet4' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy' | null;
|
|
55
84
|
/**
|
|
56
|
-
*
|
|
85
|
+
* ISO 8601 UTC timestamp when the payout was sent.
|
|
57
86
|
*/
|
|
58
|
-
|
|
87
|
+
sent_at: string | null;
|
|
59
88
|
/**
|
|
60
89
|
* Current status of the payout.
|
|
61
90
|
*/
|
|
62
|
-
status: '
|
|
91
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
92
|
+
/**
|
|
93
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
94
|
+
* for SWIFT payments.
|
|
95
|
+
*/
|
|
96
|
+
tracking_reference: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
99
|
+
* rails support this field.
|
|
100
|
+
*/
|
|
101
|
+
tx_hash: string | null;
|
|
63
102
|
/**
|
|
64
103
|
* Resource type discriminator.
|
|
65
104
|
*/
|
|
66
105
|
type: 'payout';
|
|
67
106
|
/**
|
|
68
|
-
*
|
|
107
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
108
|
+
* support this field.
|
|
69
109
|
*/
|
|
70
|
-
|
|
110
|
+
unstructured_remittance_information: string | null;
|
|
71
111
|
}
|
|
72
112
|
export declare namespace PayoutCreateResponse {
|
|
73
|
-
interface IbanFinancialAddress {
|
|
74
|
-
/**
|
|
75
|
-
* Name of the account holder.
|
|
76
|
-
*/
|
|
77
|
-
account_holder_name: string;
|
|
78
|
-
/**
|
|
79
|
-
* Bank Identifier Code, or null if not provided.
|
|
80
|
-
*/
|
|
81
|
-
bic: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* International Bank Account Number.
|
|
84
|
-
*/
|
|
85
|
-
iban: string;
|
|
86
|
-
/**
|
|
87
|
-
* Discriminator for IBAN financial address.
|
|
88
|
-
*/
|
|
89
|
-
type: 'iban';
|
|
90
|
-
}
|
|
91
|
-
interface SortCodeFinancialAddress {
|
|
92
|
-
/**
|
|
93
|
-
* Name of the account holder.
|
|
94
|
-
*/
|
|
95
|
-
account_holder_name: string;
|
|
96
|
-
/**
|
|
97
|
-
* UK account number (8 digits).
|
|
98
|
-
*/
|
|
99
|
-
account_number: string;
|
|
100
|
-
/**
|
|
101
|
-
* UK sort code (6 digits).
|
|
102
|
-
*/
|
|
103
|
-
sort_code: string;
|
|
104
|
-
/**
|
|
105
|
-
* Discriminator for UK sort code financial address.
|
|
106
|
-
*/
|
|
107
|
-
type: 'sort_code';
|
|
108
|
-
}
|
|
109
|
-
interface AbaFinancialAddress {
|
|
110
|
-
/**
|
|
111
|
-
* Name of the account holder.
|
|
112
|
-
*/
|
|
113
|
-
account_holder_name: string;
|
|
114
|
-
/**
|
|
115
|
-
* Bank account number.
|
|
116
|
-
*/
|
|
117
|
-
account_number: string;
|
|
118
|
-
/**
|
|
119
|
-
* ABA routing number (9 digits).
|
|
120
|
-
*/
|
|
121
|
-
routing_number: string;
|
|
122
|
-
/**
|
|
123
|
-
* Discriminator for ABA wire financial address.
|
|
124
|
-
*/
|
|
125
|
-
type: 'aba';
|
|
126
|
-
}
|
|
127
|
-
interface CryptoWalletFinancialAddress {
|
|
128
|
-
/**
|
|
129
|
-
* Wallet address on the specified blockchain.
|
|
130
|
-
*/
|
|
131
|
-
address: string;
|
|
132
|
-
/**
|
|
133
|
-
* Blockchain network for the crypto wallet.
|
|
134
|
-
*/
|
|
135
|
-
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
136
|
-
/**
|
|
137
|
-
* Discriminator for crypto wallet financial address.
|
|
138
|
-
*/
|
|
139
|
-
type: 'crypto_wallet';
|
|
140
|
-
}
|
|
141
113
|
/**
|
|
142
114
|
* Failure details when status is failed, otherwise null.
|
|
143
115
|
*/
|
|
@@ -145,7 +117,7 @@ export declare namespace PayoutCreateResponse {
|
|
|
145
117
|
/**
|
|
146
118
|
* Failure code.
|
|
147
119
|
*/
|
|
148
|
-
code: 'account_closed' | 'account_blocked' | 'insufficient_funds' | 'invalid_account_format' | 'invalid_instruction' | 'invalid_amount' | 'invalid_time' | 'duplicate_transaction' | 'payee_verification_failed' | 'system_error' | 'provider_system_error' | 'rejected_by_correspondent_bank' | 'blocked_by_review' | 'unknown';
|
|
120
|
+
code: 'account_closed' | 'account_blocked' | 'insufficient_funds' | 'invalid_account_format' | 'invalid_routing_number' | 'invalid_instruction' | 'invalid_amount' | 'invalid_time' | 'duplicate_transaction' | 'payee_verification_failed' | 'system_error' | 'provider_system_error' | 'rejected_by_correspondent_bank' | 'blocked_by_review' | 'unknown';
|
|
149
121
|
/**
|
|
150
122
|
* Human-readable description of the failure.
|
|
151
123
|
*/
|
|
@@ -161,26 +133,30 @@ export interface PayoutRetrieveResponse {
|
|
|
161
133
|
* Unique identifier of the payout.
|
|
162
134
|
*/
|
|
163
135
|
id: string;
|
|
136
|
+
/**
|
|
137
|
+
* ID of the account that was debited.
|
|
138
|
+
*/
|
|
139
|
+
account_id: string;
|
|
164
140
|
/**
|
|
165
141
|
* Amount as a string decimal (e.g. "100.50").
|
|
166
142
|
*/
|
|
167
143
|
amount: string;
|
|
168
144
|
/**
|
|
169
|
-
*
|
|
145
|
+
* ID of the counterparty that receives the money.
|
|
170
146
|
*/
|
|
171
|
-
|
|
147
|
+
counterparty_id: string;
|
|
172
148
|
/**
|
|
173
|
-
* Currency code (ISO 4217
|
|
149
|
+
* Currency code (ISO 4217 or crypto).
|
|
174
150
|
*/
|
|
175
151
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
176
|
-
/**
|
|
177
|
-
* Bank account or crypto wallet the payout was sent to.
|
|
178
|
-
*/
|
|
179
|
-
destination: PayoutRetrieveResponse.IbanFinancialAddress | PayoutRetrieveResponse.SortCodeFinancialAddress | PayoutRetrieveResponse.AbaFinancialAddress | PayoutRetrieveResponse.CryptoWalletFinancialAddress;
|
|
180
152
|
/**
|
|
181
153
|
* Failure details when status is failed, otherwise null.
|
|
182
154
|
*/
|
|
183
155
|
failure: PayoutRetrieveResponse.Failure | null;
|
|
156
|
+
/**
|
|
157
|
+
* ISO 8601 UTC timestamp when the payout was initiated.
|
|
158
|
+
*/
|
|
159
|
+
initiated_at: string;
|
|
184
160
|
/**
|
|
185
161
|
* Key-value pairs stored with the payout.
|
|
186
162
|
*/
|
|
@@ -188,95 +164,38 @@ export interface PayoutRetrieveResponse {
|
|
|
188
164
|
[key: string]: string;
|
|
189
165
|
};
|
|
190
166
|
/**
|
|
191
|
-
* Payment
|
|
167
|
+
* Payment scheme or blockchain used for the payout, or null when unknown.
|
|
192
168
|
*/
|
|
193
|
-
|
|
169
|
+
rail: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'internal' | 'target' | 'ach' | 'fedwire' | 'bitcoin' | 'bitcoin_testnet4' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy' | null;
|
|
194
170
|
/**
|
|
195
|
-
*
|
|
171
|
+
* ISO 8601 UTC timestamp when the payout was sent.
|
|
196
172
|
*/
|
|
197
|
-
|
|
173
|
+
sent_at: string | null;
|
|
198
174
|
/**
|
|
199
175
|
* Current status of the payout.
|
|
200
176
|
*/
|
|
201
|
-
status: '
|
|
177
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
178
|
+
/**
|
|
179
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
180
|
+
* for SWIFT payments.
|
|
181
|
+
*/
|
|
182
|
+
tracking_reference: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
185
|
+
* rails support this field.
|
|
186
|
+
*/
|
|
187
|
+
tx_hash: string | null;
|
|
202
188
|
/**
|
|
203
189
|
* Resource type discriminator.
|
|
204
190
|
*/
|
|
205
191
|
type: 'payout';
|
|
206
192
|
/**
|
|
207
|
-
*
|
|
193
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
194
|
+
* support this field.
|
|
208
195
|
*/
|
|
209
|
-
|
|
196
|
+
unstructured_remittance_information: string | null;
|
|
210
197
|
}
|
|
211
198
|
export declare namespace PayoutRetrieveResponse {
|
|
212
|
-
interface IbanFinancialAddress {
|
|
213
|
-
/**
|
|
214
|
-
* Name of the account holder.
|
|
215
|
-
*/
|
|
216
|
-
account_holder_name: string;
|
|
217
|
-
/**
|
|
218
|
-
* Bank Identifier Code, or null if not provided.
|
|
219
|
-
*/
|
|
220
|
-
bic: string | null;
|
|
221
|
-
/**
|
|
222
|
-
* International Bank Account Number.
|
|
223
|
-
*/
|
|
224
|
-
iban: string;
|
|
225
|
-
/**
|
|
226
|
-
* Discriminator for IBAN financial address.
|
|
227
|
-
*/
|
|
228
|
-
type: 'iban';
|
|
229
|
-
}
|
|
230
|
-
interface SortCodeFinancialAddress {
|
|
231
|
-
/**
|
|
232
|
-
* Name of the account holder.
|
|
233
|
-
*/
|
|
234
|
-
account_holder_name: string;
|
|
235
|
-
/**
|
|
236
|
-
* UK account number (8 digits).
|
|
237
|
-
*/
|
|
238
|
-
account_number: string;
|
|
239
|
-
/**
|
|
240
|
-
* UK sort code (6 digits).
|
|
241
|
-
*/
|
|
242
|
-
sort_code: string;
|
|
243
|
-
/**
|
|
244
|
-
* Discriminator for UK sort code financial address.
|
|
245
|
-
*/
|
|
246
|
-
type: 'sort_code';
|
|
247
|
-
}
|
|
248
|
-
interface AbaFinancialAddress {
|
|
249
|
-
/**
|
|
250
|
-
* Name of the account holder.
|
|
251
|
-
*/
|
|
252
|
-
account_holder_name: string;
|
|
253
|
-
/**
|
|
254
|
-
* Bank account number.
|
|
255
|
-
*/
|
|
256
|
-
account_number: string;
|
|
257
|
-
/**
|
|
258
|
-
* ABA routing number (9 digits).
|
|
259
|
-
*/
|
|
260
|
-
routing_number: string;
|
|
261
|
-
/**
|
|
262
|
-
* Discriminator for ABA wire financial address.
|
|
263
|
-
*/
|
|
264
|
-
type: 'aba';
|
|
265
|
-
}
|
|
266
|
-
interface CryptoWalletFinancialAddress {
|
|
267
|
-
/**
|
|
268
|
-
* Wallet address on the specified blockchain.
|
|
269
|
-
*/
|
|
270
|
-
address: string;
|
|
271
|
-
/**
|
|
272
|
-
* Blockchain network for the crypto wallet.
|
|
273
|
-
*/
|
|
274
|
-
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
275
|
-
/**
|
|
276
|
-
* Discriminator for crypto wallet financial address.
|
|
277
|
-
*/
|
|
278
|
-
type: 'crypto_wallet';
|
|
279
|
-
}
|
|
280
199
|
/**
|
|
281
200
|
* Failure details when status is failed, otherwise null.
|
|
282
201
|
*/
|
|
@@ -284,7 +203,7 @@ export declare namespace PayoutRetrieveResponse {
|
|
|
284
203
|
/**
|
|
285
204
|
* Failure code.
|
|
286
205
|
*/
|
|
287
|
-
code: 'account_closed' | 'account_blocked' | 'insufficient_funds' | 'invalid_account_format' | 'invalid_instruction' | 'invalid_amount' | 'invalid_time' | 'duplicate_transaction' | 'payee_verification_failed' | 'system_error' | 'provider_system_error' | 'rejected_by_correspondent_bank' | 'blocked_by_review' | 'unknown';
|
|
206
|
+
code: 'account_closed' | 'account_blocked' | 'insufficient_funds' | 'invalid_account_format' | 'invalid_routing_number' | 'invalid_instruction' | 'invalid_amount' | 'invalid_time' | 'duplicate_transaction' | 'payee_verification_failed' | 'system_error' | 'provider_system_error' | 'rejected_by_correspondent_bank' | 'blocked_by_review' | 'unknown';
|
|
288
207
|
/**
|
|
289
208
|
* Human-readable description of the failure.
|
|
290
209
|
*/
|
|
@@ -300,26 +219,30 @@ export interface PayoutListResponse {
|
|
|
300
219
|
* Unique identifier of the payout.
|
|
301
220
|
*/
|
|
302
221
|
id: string;
|
|
222
|
+
/**
|
|
223
|
+
* ID of the account that was debited.
|
|
224
|
+
*/
|
|
225
|
+
account_id: string;
|
|
303
226
|
/**
|
|
304
227
|
* Amount as a string decimal (e.g. "100.50").
|
|
305
228
|
*/
|
|
306
229
|
amount: string;
|
|
307
230
|
/**
|
|
308
|
-
*
|
|
231
|
+
* ID of the counterparty that receives the money.
|
|
309
232
|
*/
|
|
310
|
-
|
|
233
|
+
counterparty_id: string;
|
|
311
234
|
/**
|
|
312
|
-
* Currency code (ISO 4217
|
|
235
|
+
* Currency code (ISO 4217 or crypto).
|
|
313
236
|
*/
|
|
314
237
|
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
315
|
-
/**
|
|
316
|
-
* Bank account or crypto wallet the payout was sent to.
|
|
317
|
-
*/
|
|
318
|
-
destination: PayoutListResponse.IbanFinancialAddress | PayoutListResponse.SortCodeFinancialAddress | PayoutListResponse.AbaFinancialAddress | PayoutListResponse.CryptoWalletFinancialAddress;
|
|
319
238
|
/**
|
|
320
239
|
* Failure details when status is failed, otherwise null.
|
|
321
240
|
*/
|
|
322
241
|
failure: PayoutListResponse.Failure | null;
|
|
242
|
+
/**
|
|
243
|
+
* ISO 8601 UTC timestamp when the payout was initiated.
|
|
244
|
+
*/
|
|
245
|
+
initiated_at: string;
|
|
323
246
|
/**
|
|
324
247
|
* Key-value pairs stored with the payout.
|
|
325
248
|
*/
|
|
@@ -327,95 +250,38 @@ export interface PayoutListResponse {
|
|
|
327
250
|
[key: string]: string;
|
|
328
251
|
};
|
|
329
252
|
/**
|
|
330
|
-
* Payment
|
|
253
|
+
* Payment scheme or blockchain used for the payout, or null when unknown.
|
|
331
254
|
*/
|
|
332
|
-
|
|
255
|
+
rail: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'internal' | 'target' | 'ach' | 'fedwire' | 'bitcoin' | 'bitcoin_testnet4' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy' | null;
|
|
333
256
|
/**
|
|
334
|
-
*
|
|
257
|
+
* ISO 8601 UTC timestamp when the payout was sent.
|
|
335
258
|
*/
|
|
336
|
-
|
|
259
|
+
sent_at: string | null;
|
|
337
260
|
/**
|
|
338
261
|
* Current status of the payout.
|
|
339
262
|
*/
|
|
340
|
-
status: '
|
|
263
|
+
status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
264
|
+
/**
|
|
265
|
+
* Reference used to track the payment across the payment network, such as the UETR
|
|
266
|
+
* for SWIFT payments.
|
|
267
|
+
*/
|
|
268
|
+
tracking_reference: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* Transaction hash for crypto payouts, or null when not known. Only blockchain
|
|
271
|
+
* rails support this field.
|
|
272
|
+
*/
|
|
273
|
+
tx_hash: string | null;
|
|
341
274
|
/**
|
|
342
275
|
* Resource type discriminator.
|
|
343
276
|
*/
|
|
344
277
|
type: 'payout';
|
|
345
278
|
/**
|
|
346
|
-
*
|
|
279
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
280
|
+
* support this field.
|
|
347
281
|
*/
|
|
348
|
-
|
|
282
|
+
unstructured_remittance_information: string | null;
|
|
349
283
|
}
|
|
350
284
|
export declare namespace PayoutListResponse {
|
|
351
|
-
interface IbanFinancialAddress {
|
|
352
|
-
/**
|
|
353
|
-
* Name of the account holder.
|
|
354
|
-
*/
|
|
355
|
-
account_holder_name: string;
|
|
356
|
-
/**
|
|
357
|
-
* Bank Identifier Code, or null if not provided.
|
|
358
|
-
*/
|
|
359
|
-
bic: string | null;
|
|
360
|
-
/**
|
|
361
|
-
* International Bank Account Number.
|
|
362
|
-
*/
|
|
363
|
-
iban: string;
|
|
364
|
-
/**
|
|
365
|
-
* Discriminator for IBAN financial address.
|
|
366
|
-
*/
|
|
367
|
-
type: 'iban';
|
|
368
|
-
}
|
|
369
|
-
interface SortCodeFinancialAddress {
|
|
370
|
-
/**
|
|
371
|
-
* Name of the account holder.
|
|
372
|
-
*/
|
|
373
|
-
account_holder_name: string;
|
|
374
|
-
/**
|
|
375
|
-
* UK account number (8 digits).
|
|
376
|
-
*/
|
|
377
|
-
account_number: string;
|
|
378
|
-
/**
|
|
379
|
-
* UK sort code (6 digits).
|
|
380
|
-
*/
|
|
381
|
-
sort_code: string;
|
|
382
|
-
/**
|
|
383
|
-
* Discriminator for UK sort code financial address.
|
|
384
|
-
*/
|
|
385
|
-
type: 'sort_code';
|
|
386
|
-
}
|
|
387
|
-
interface AbaFinancialAddress {
|
|
388
|
-
/**
|
|
389
|
-
* Name of the account holder.
|
|
390
|
-
*/
|
|
391
|
-
account_holder_name: string;
|
|
392
|
-
/**
|
|
393
|
-
* Bank account number.
|
|
394
|
-
*/
|
|
395
|
-
account_number: string;
|
|
396
|
-
/**
|
|
397
|
-
* ABA routing number (9 digits).
|
|
398
|
-
*/
|
|
399
|
-
routing_number: string;
|
|
400
|
-
/**
|
|
401
|
-
* Discriminator for ABA wire financial address.
|
|
402
|
-
*/
|
|
403
|
-
type: 'aba';
|
|
404
|
-
}
|
|
405
|
-
interface CryptoWalletFinancialAddress {
|
|
406
|
-
/**
|
|
407
|
-
* Wallet address on the specified blockchain.
|
|
408
|
-
*/
|
|
409
|
-
address: string;
|
|
410
|
-
/**
|
|
411
|
-
* Blockchain network for the crypto wallet.
|
|
412
|
-
*/
|
|
413
|
-
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
414
|
-
/**
|
|
415
|
-
* Discriminator for crypto wallet financial address.
|
|
416
|
-
*/
|
|
417
|
-
type: 'crypto_wallet';
|
|
418
|
-
}
|
|
419
285
|
/**
|
|
420
286
|
* Failure details when status is failed, otherwise null.
|
|
421
287
|
*/
|
|
@@ -423,7 +289,7 @@ export declare namespace PayoutListResponse {
|
|
|
423
289
|
/**
|
|
424
290
|
* Failure code.
|
|
425
291
|
*/
|
|
426
|
-
code: 'account_closed' | 'account_blocked' | 'insufficient_funds' | 'invalid_account_format' | 'invalid_instruction' | 'invalid_amount' | 'invalid_time' | 'duplicate_transaction' | 'payee_verification_failed' | 'system_error' | 'provider_system_error' | 'rejected_by_correspondent_bank' | 'blocked_by_review' | 'unknown';
|
|
292
|
+
code: 'account_closed' | 'account_blocked' | 'insufficient_funds' | 'invalid_account_format' | 'invalid_routing_number' | 'invalid_instruction' | 'invalid_amount' | 'invalid_time' | 'duplicate_transaction' | 'payee_verification_failed' | 'system_error' | 'provider_system_error' | 'rejected_by_correspondent_bank' | 'blocked_by_review' | 'unknown';
|
|
427
293
|
/**
|
|
428
294
|
* Human-readable description of the failure.
|
|
429
295
|
*/
|
|
@@ -436,105 +302,37 @@ export declare namespace PayoutListResponse {
|
|
|
436
302
|
}
|
|
437
303
|
export interface PayoutCreateParams {
|
|
438
304
|
/**
|
|
439
|
-
*
|
|
440
|
-
*/
|
|
441
|
-
amount: string;
|
|
442
|
-
/**
|
|
443
|
-
* Currency for the payout.
|
|
305
|
+
* ID of the account to debit.
|
|
444
306
|
*/
|
|
445
|
-
|
|
307
|
+
account_id: string;
|
|
446
308
|
/**
|
|
447
|
-
*
|
|
309
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
448
310
|
*/
|
|
449
|
-
|
|
311
|
+
amount: string;
|
|
450
312
|
/**
|
|
451
|
-
*
|
|
313
|
+
* ID of the saved counterparty that receives the money.
|
|
452
314
|
*/
|
|
453
|
-
|
|
315
|
+
counterparty_id: string;
|
|
454
316
|
/**
|
|
455
|
-
*
|
|
317
|
+
* Currency code (ISO 4217 or crypto).
|
|
456
318
|
*/
|
|
457
|
-
|
|
319
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
458
320
|
/**
|
|
459
321
|
* Key-value pairs stored with the payout.
|
|
460
322
|
*/
|
|
461
323
|
metadata?: {
|
|
462
324
|
[key: string]: string;
|
|
463
|
-
};
|
|
325
|
+
} | null;
|
|
464
326
|
/**
|
|
465
|
-
*
|
|
327
|
+
* Settlement rail the counterparty is reachable on. Selected automatically when
|
|
328
|
+
* omitted. Validated against the counterparty financial address at runtime.
|
|
466
329
|
*/
|
|
467
|
-
rail?: '
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
*/
|
|
474
|
-
account_holder_name: string;
|
|
475
|
-
/**
|
|
476
|
-
* International Bank Account Number.
|
|
477
|
-
*/
|
|
478
|
-
iban: string;
|
|
479
|
-
/**
|
|
480
|
-
* Discriminator for IBAN financial address.
|
|
481
|
-
*/
|
|
482
|
-
type: 'iban';
|
|
483
|
-
/**
|
|
484
|
-
* Bank Identifier Code.
|
|
485
|
-
*/
|
|
486
|
-
bic?: string;
|
|
487
|
-
}
|
|
488
|
-
interface SortCodeFinancialAddress {
|
|
489
|
-
/**
|
|
490
|
-
* Name of the account holder.
|
|
491
|
-
*/
|
|
492
|
-
account_holder_name: string;
|
|
493
|
-
/**
|
|
494
|
-
* UK account number (8 digits).
|
|
495
|
-
*/
|
|
496
|
-
account_number: string;
|
|
497
|
-
/**
|
|
498
|
-
* UK sort code (6 digits).
|
|
499
|
-
*/
|
|
500
|
-
sort_code: string;
|
|
501
|
-
/**
|
|
502
|
-
* Discriminator for UK sort code financial address.
|
|
503
|
-
*/
|
|
504
|
-
type: 'sort_code';
|
|
505
|
-
}
|
|
506
|
-
interface AbaFinancialAddress {
|
|
507
|
-
/**
|
|
508
|
-
* Name of the account holder.
|
|
509
|
-
*/
|
|
510
|
-
account_holder_name: string;
|
|
511
|
-
/**
|
|
512
|
-
* Bank account number.
|
|
513
|
-
*/
|
|
514
|
-
account_number: string;
|
|
515
|
-
/**
|
|
516
|
-
* ABA routing number (9 digits).
|
|
517
|
-
*/
|
|
518
|
-
routing_number: string;
|
|
519
|
-
/**
|
|
520
|
-
* Discriminator for ABA wire financial address.
|
|
521
|
-
*/
|
|
522
|
-
type: 'aba';
|
|
523
|
-
}
|
|
524
|
-
interface CryptoWalletFinancialAddress {
|
|
525
|
-
/**
|
|
526
|
-
* Wallet address on the specified blockchain.
|
|
527
|
-
*/
|
|
528
|
-
address: string;
|
|
529
|
-
/**
|
|
530
|
-
* Blockchain network for the crypto wallet.
|
|
531
|
-
*/
|
|
532
|
-
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
533
|
-
/**
|
|
534
|
-
* Discriminator for crypto wallet financial address.
|
|
535
|
-
*/
|
|
536
|
-
type: 'crypto_wallet';
|
|
537
|
-
}
|
|
330
|
+
rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'ach' | 'fedwire' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy';
|
|
331
|
+
/**
|
|
332
|
+
* Unstructured remittance information attached to the transfer. This appears on
|
|
333
|
+
* the counterparty's bank statement. Not supported by blockchain rails.
|
|
334
|
+
*/
|
|
335
|
+
unstructured_remittance_information?: string | null;
|
|
538
336
|
}
|
|
539
337
|
export interface PayoutListParams extends CursorPageParams {
|
|
540
338
|
created_at?: PayoutListParams.CreatedAt;
|
|
@@ -546,7 +344,7 @@ export interface PayoutListParams extends CursorPageParams {
|
|
|
546
344
|
/**
|
|
547
345
|
* Filter by payout status.
|
|
548
346
|
*/
|
|
549
|
-
status?: '
|
|
347
|
+
status?: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
|
|
550
348
|
}
|
|
551
349
|
export declare namespace PayoutListParams {
|
|
552
350
|
interface CreatedAt {
|