@blindpay/node 1.0.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/LICENSE +21 -0
- package/README.md +124 -0
- package/dist/api-client-Cw2mNJeR.d.mts +349 -0
- package/dist/api-client-Cw2mNJeR.d.ts +349 -0
- package/dist/chunk-2DAKB5XK.mjs +212 -0
- package/dist/chunk-3CZJEDS5.mjs +41 -0
- package/dist/chunk-CNNEROQ7.mjs +46 -0
- package/dist/chunk-ES7RXEM7.mjs +245 -0
- package/dist/chunk-GCCHFONX.mjs +17893 -0
- package/dist/chunk-GEDDLCJY.mjs +77 -0
- package/dist/chunk-GNDAATIJ.mjs +35 -0
- package/dist/chunk-HKFAJXJG.mjs +65 -0
- package/dist/chunk-LK3JPQ6I.mjs +49 -0
- package/dist/chunk-LLWEHHKB.mjs +47 -0
- package/dist/chunk-LUDGZPXY.mjs +51 -0
- package/dist/chunk-M6IYYMRW.mjs +35 -0
- package/dist/chunk-OBKEW4AQ.mjs +91 -0
- package/dist/chunk-QHMIK7U3.mjs +24 -0
- package/dist/chunk-QVOSGLUO.mjs +36 -0
- package/dist/chunk-UCAW3RTZ.mjs +47 -0
- package/dist/chunk-VKN2AMCW.mjs +57 -0
- package/dist/index.d.mts +81 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +895 -0
- package/dist/index.mjs +95 -0
- package/dist/magic-string.es-6D2DRE4K.mjs +1325 -0
- package/dist/resources/api-keys/api-keys.test.d.mts +2 -0
- package/dist/resources/api-keys/api-keys.test.d.ts +2 -0
- package/dist/resources/api-keys/api-keys.test.js +19881 -0
- package/dist/resources/api-keys/api-keys.test.mjs +130 -0
- package/dist/resources/api-keys/index.d.mts +45 -0
- package/dist/resources/api-keys/index.d.ts +45 -0
- package/dist/resources/api-keys/index.js +64 -0
- package/dist/resources/api-keys/index.mjs +9 -0
- package/dist/resources/available/available.test.d.mts +2 -0
- package/dist/resources/available/available.test.d.ts +2 -0
- package/dist/resources/available/available.test.js +19877 -0
- package/dist/resources/available/available.test.mjs +122 -0
- package/dist/resources/available/index.d.mts +25 -0
- package/dist/resources/available/index.d.ts +25 -0
- package/dist/resources/available/index.js +39 -0
- package/dist/resources/available/index.mjs +9 -0
- package/dist/resources/bank-accounts/bank-accounts.test.d.mts +2 -0
- package/dist/resources/bank-accounts/bank-accounts.test.d.ts +2 -0
- package/dist/resources/bank-accounts/bank-accounts.test.js +20173 -0
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +418 -0
- package/dist/resources/bank-accounts/index.d.mts +414 -0
- package/dist/resources/bank-accounts/index.d.ts +414 -0
- package/dist/resources/bank-accounts/index.js +227 -0
- package/dist/resources/bank-accounts/index.mjs +9 -0
- package/dist/resources/instances/index.d.mts +42 -0
- package/dist/resources/instances/index.d.ts +42 -0
- package/dist/resources/instances/index.js +75 -0
- package/dist/resources/instances/index.mjs +9 -0
- package/dist/resources/instances/instances.test.d.mts +2 -0
- package/dist/resources/instances/instances.test.d.ts +2 -0
- package/dist/resources/instances/instances.test.js +19873 -0
- package/dist/resources/instances/instances.test.mjs +118 -0
- package/dist/resources/partner-fees/index.d.mts +65 -0
- package/dist/resources/partner-fees/index.d.ts +65 -0
- package/dist/resources/partner-fees/index.js +69 -0
- package/dist/resources/partner-fees/index.mjs +9 -0
- package/dist/resources/partner-fees/partner-fees.test.d.mts +2 -0
- package/dist/resources/partner-fees/partner-fees.test.d.ts +2 -0
- package/dist/resources/partner-fees/partner-fees.test.js +19889 -0
- package/dist/resources/partner-fees/partner-fees.test.mjs +134 -0
- package/dist/resources/payins/index.d.mts +200 -0
- package/dist/resources/payins/index.d.ts +200 -0
- package/dist/resources/payins/index.js +75 -0
- package/dist/resources/payins/index.mjs +9 -0
- package/dist/resources/payins/payins-quotes.test.d.mts +2 -0
- package/dist/resources/payins/payins-quotes.test.d.ts +2 -0
- package/dist/resources/payins/payins-quotes.test.js +19852 -0
- package/dist/resources/payins/payins-quotes.test.mjs +97 -0
- package/dist/resources/payins/payins.test.d.mts +2 -0
- package/dist/resources/payins/payins.test.d.ts +2 -0
- package/dist/resources/payins/payins.test.js +20268 -0
- package/dist/resources/payins/payins.test.mjs +513 -0
- package/dist/resources/payins/quotes.d.mts +45 -0
- package/dist/resources/payins/quotes.d.ts +45 -0
- package/dist/resources/payins/quotes.js +63 -0
- package/dist/resources/payins/quotes.mjs +9 -0
- package/dist/resources/payouts/index.d.mts +155 -0
- package/dist/resources/payouts/index.d.ts +155 -0
- package/dist/resources/payouts/index.js +93 -0
- package/dist/resources/payouts/index.mjs +9 -0
- package/dist/resources/payouts/payouts.test.d.mts +2 -0
- package/dist/resources/payouts/payouts.test.d.ts +2 -0
- package/dist/resources/payouts/payouts.test.js +20346 -0
- package/dist/resources/payouts/payouts.test.mjs +591 -0
- package/dist/resources/quotes/index.d.mts +59 -0
- package/dist/resources/quotes/index.d.ts +59 -0
- package/dist/resources/quotes/index.js +63 -0
- package/dist/resources/quotes/index.mjs +9 -0
- package/dist/resources/quotes/quotes.test.d.mts +2 -0
- package/dist/resources/quotes/quotes.test.d.ts +2 -0
- package/dist/resources/quotes/quotes.test.js +19866 -0
- package/dist/resources/quotes/quotes.test.mjs +111 -0
- package/dist/resources/receivers/index.d.mts +205 -0
- package/dist/resources/receivers/index.d.ts +205 -0
- package/dist/resources/receivers/index.js +85 -0
- package/dist/resources/receivers/index.mjs +9 -0
- package/dist/resources/receivers/receivers.test.d.mts +2 -0
- package/dist/resources/receivers/receivers.test.d.ts +2 -0
- package/dist/resources/receivers/receivers.test.js +20145 -0
- package/dist/resources/receivers/receivers.test.mjs +390 -0
- package/dist/resources/virtual-accounts/index.d.mts +58 -0
- package/dist/resources/virtual-accounts/index.d.ts +58 -0
- package/dist/resources/virtual-accounts/index.js +79 -0
- package/dist/resources/virtual-accounts/index.mjs +9 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.d.mts +2 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.d.ts +2 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +19902 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +147 -0
- package/dist/resources/wallets/blockchain.d.mts +83 -0
- package/dist/resources/wallets/blockchain.d.ts +83 -0
- package/dist/resources/wallets/blockchain.js +105 -0
- package/dist/resources/wallets/blockchain.mjs +9 -0
- package/dist/resources/wallets/blockchain.test.d.mts +2 -0
- package/dist/resources/wallets/blockchain.test.d.ts +2 -0
- package/dist/resources/wallets/blockchain.test.js +19897 -0
- package/dist/resources/wallets/blockchain.test.mjs +142 -0
- package/dist/resources/wallets/offramp.d.mts +46 -0
- package/dist/resources/wallets/offramp.d.ts +46 -0
- package/dist/resources/wallets/offramp.js +77 -0
- package/dist/resources/wallets/offramp.mjs +9 -0
- package/dist/resources/wallets/offramp.test.d.mts +2 -0
- package/dist/resources/wallets/offramp.test.d.ts +2 -0
- package/dist/resources/wallets/offramp.test.js +19872 -0
- package/dist/resources/wallets/offramp.test.mjs +117 -0
- package/dist/resources/webhooks/index.d.mts +49 -0
- package/dist/resources/webhooks/index.d.ts +49 -0
- package/dist/resources/webhooks/index.js +74 -0
- package/dist/resources/webhooks/index.mjs +9 -0
- package/dist/resources/webhooks/webhooks.test.d.mts +2 -0
- package/dist/resources/webhooks/webhooks.test.d.ts +2 -0
- package/dist/resources/webhooks/webhooks.test.js +19878 -0
- package/dist/resources/webhooks/webhooks.test.mjs +123 -0
- package/package.json +65 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, b as TrackingTransaction, c as TrackingPayment, i as TrackingLiquidity, d as TrackingComplete, e as TrackingPartnerFee, N as Network, S as StablecoinToken, h as Currency, j as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, f as PaginationMetadata } from '../../api-client-Cw2mNJeR.mjs';
|
|
2
|
+
|
|
3
|
+
type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
|
|
4
|
+
type Payout = {
|
|
5
|
+
receiver_id: string;
|
|
6
|
+
id: string;
|
|
7
|
+
status: TransactionStatus;
|
|
8
|
+
sender_wallet_address: string;
|
|
9
|
+
signed_transaction: string;
|
|
10
|
+
quote_id: string;
|
|
11
|
+
instance_id: string;
|
|
12
|
+
tracking_transaction: TrackingTransaction;
|
|
13
|
+
tracking_payment: TrackingPayment;
|
|
14
|
+
tracking_liquidity: TrackingLiquidity;
|
|
15
|
+
tracking_complete: TrackingComplete;
|
|
16
|
+
tracking_partner_fee: TrackingPartnerFee;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
image_url: string;
|
|
20
|
+
first_name: string;
|
|
21
|
+
last_name: string;
|
|
22
|
+
legal_name: string;
|
|
23
|
+
network: Network;
|
|
24
|
+
token: StablecoinToken;
|
|
25
|
+
description: string;
|
|
26
|
+
sender_amount: number;
|
|
27
|
+
receiver_amount: number;
|
|
28
|
+
partner_fee_amount: number;
|
|
29
|
+
commercial_quotation: number;
|
|
30
|
+
blindpay_quotation: number;
|
|
31
|
+
total_fee_amount: number;
|
|
32
|
+
receiver_local_amount: number;
|
|
33
|
+
currency: Exclude<Currency, "USDT" | "USDB">;
|
|
34
|
+
transaction_document_file: string;
|
|
35
|
+
transaction_document_type: TransactionDocumentType;
|
|
36
|
+
transaction_document_id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
type: Rail;
|
|
39
|
+
pix_key?: string;
|
|
40
|
+
account_number?: string;
|
|
41
|
+
routing_number?: string;
|
|
42
|
+
country?: Country;
|
|
43
|
+
account_class?: AccountClass;
|
|
44
|
+
address_line_1?: string;
|
|
45
|
+
address_line_2?: string;
|
|
46
|
+
city?: string;
|
|
47
|
+
state_province_region?: string;
|
|
48
|
+
postal_code?: string;
|
|
49
|
+
account_type?: BankAccountType;
|
|
50
|
+
ach_cop_beneficiary_first_name?: string;
|
|
51
|
+
ach_cop_bank_account?: string;
|
|
52
|
+
ach_cop_bank_code?: string;
|
|
53
|
+
ach_cop_beneficiary_last_name?: string;
|
|
54
|
+
ach_cop_document_id?: string;
|
|
55
|
+
ach_cop_document_type?: string;
|
|
56
|
+
ach_cop_email?: string;
|
|
57
|
+
beneficiary_name?: string;
|
|
58
|
+
spei_clabe?: string;
|
|
59
|
+
spei_protocol?: SpeiProtocol;
|
|
60
|
+
spei_institution_code?: string;
|
|
61
|
+
swift_beneficiary_country?: Country;
|
|
62
|
+
swift_code_bic?: string;
|
|
63
|
+
swift_account_holder_name?: string;
|
|
64
|
+
swift_account_number_iban?: string;
|
|
65
|
+
transfers_account?: string;
|
|
66
|
+
transfers_type: "CVU" | "CBU" | "ALIAS";
|
|
67
|
+
has_virtual_account: boolean;
|
|
68
|
+
};
|
|
69
|
+
type ListPayoutsInput = {
|
|
70
|
+
instanceId: string;
|
|
71
|
+
params?: PaginationParams & {
|
|
72
|
+
receiver_id?: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type ListPayoutsResponse = {
|
|
76
|
+
data: Payout[];
|
|
77
|
+
pagination: PaginationMetadata;
|
|
78
|
+
};
|
|
79
|
+
type CreatePayoutInput = {
|
|
80
|
+
instanceId: string;
|
|
81
|
+
receiver_id: string;
|
|
82
|
+
bank_account_id: string;
|
|
83
|
+
amount: number;
|
|
84
|
+
currency: string;
|
|
85
|
+
description?: string | null;
|
|
86
|
+
reference?: string | null;
|
|
87
|
+
network?: Network | null;
|
|
88
|
+
token?: StablecoinToken | null;
|
|
89
|
+
};
|
|
90
|
+
type GetPayoutInput = {
|
|
91
|
+
instanceId: string;
|
|
92
|
+
id: string;
|
|
93
|
+
};
|
|
94
|
+
type GetPayoutResponse = Payout;
|
|
95
|
+
type GetPayoutTrackInput = {
|
|
96
|
+
id: string;
|
|
97
|
+
};
|
|
98
|
+
type GetPayoutTrackResponse = Payout;
|
|
99
|
+
type ExportPayoutsInput = {
|
|
100
|
+
instanceId: string;
|
|
101
|
+
params?: Pick<PaginationParams, "limit" | "offset">;
|
|
102
|
+
};
|
|
103
|
+
type ExportPayoutsResponse = Payout[];
|
|
104
|
+
type AuthorizeStellarTokenInput = {
|
|
105
|
+
instanceId: string;
|
|
106
|
+
quote_id: string;
|
|
107
|
+
sender_wallet_address: string;
|
|
108
|
+
};
|
|
109
|
+
type AuthorizeStellarTokenResponse = {
|
|
110
|
+
transaction_hash: string;
|
|
111
|
+
};
|
|
112
|
+
type CreateStellarPayoutInput = {
|
|
113
|
+
instanceId: string;
|
|
114
|
+
quote_id: string;
|
|
115
|
+
sender_wallet_address: string;
|
|
116
|
+
signed_transaction?: string;
|
|
117
|
+
};
|
|
118
|
+
type CreateStellarPayoutResponse = {
|
|
119
|
+
id: string;
|
|
120
|
+
status: TransactionStatus;
|
|
121
|
+
sender_wallet_address: string;
|
|
122
|
+
tracking_complete?: TrackingComplete;
|
|
123
|
+
tracking_payment?: TrackingPayment;
|
|
124
|
+
tracking_transaction?: TrackingTransaction;
|
|
125
|
+
tracking_partner_fee?: TrackingPartnerFee;
|
|
126
|
+
tracking_liquidity?: TrackingLiquidity;
|
|
127
|
+
receiver_id: string;
|
|
128
|
+
};
|
|
129
|
+
type CreateEvmPayoutInput = {
|
|
130
|
+
instanceId: string;
|
|
131
|
+
quote_id: string;
|
|
132
|
+
sender_wallet_address: string;
|
|
133
|
+
};
|
|
134
|
+
type CreateEvmPayoutResponse = {
|
|
135
|
+
id: string;
|
|
136
|
+
status: TransactionStatus;
|
|
137
|
+
sender_wallet_address: string;
|
|
138
|
+
tracking_complete?: TrackingComplete;
|
|
139
|
+
tracking_payment?: TrackingPayment;
|
|
140
|
+
tracking_transaction?: TrackingTransaction;
|
|
141
|
+
tracking_partner_fee?: TrackingPartnerFee;
|
|
142
|
+
tracking_liquidity?: TrackingLiquidity;
|
|
143
|
+
receiver_id: string;
|
|
144
|
+
};
|
|
145
|
+
declare function createPayoutsResource(client: InternalApiClient): {
|
|
146
|
+
list({ instanceId, params, }: ListPayoutsInput): Promise<BlindpayApiResponse<ListPayoutsResponse>>;
|
|
147
|
+
export({ instanceId, params, }: ExportPayoutsInput): Promise<BlindpayApiResponse<ExportPayoutsResponse>>;
|
|
148
|
+
get({ instanceId, id }: GetPayoutInput): Promise<BlindpayApiResponse<GetPayoutResponse>>;
|
|
149
|
+
getTrack({ id, }: GetPayoutTrackInput): Promise<BlindpayApiResponse<GetPayoutTrackResponse>>;
|
|
150
|
+
authorizeStellarToken({ instanceId, ...data }: AuthorizeStellarTokenInput): Promise<BlindpayApiResponse<AuthorizeStellarTokenResponse>>;
|
|
151
|
+
createStellar({ instanceId, ...data }: CreateStellarPayoutInput): Promise<BlindpayApiResponse<CreateStellarPayoutResponse>>;
|
|
152
|
+
createEvm({ instanceId, ...data }: CreateEvmPayoutInput): Promise<BlindpayApiResponse<CreateEvmPayoutResponse>>;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export { type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { I as InternalApiClient, P as PaginationParams, B as BlindpayApiResponse, T as TransactionStatus, b as TrackingTransaction, c as TrackingPayment, i as TrackingLiquidity, d as TrackingComplete, e as TrackingPartnerFee, N as Network, S as StablecoinToken, h as Currency, j as TransactionDocumentType, R as Rail, C as Country, A as AccountClass, a as BankAccountType, f as PaginationMetadata } from '../../api-client-Cw2mNJeR.js';
|
|
2
|
+
|
|
3
|
+
type SpeiProtocol = "clabe" | "debitcard" | "phonenum";
|
|
4
|
+
type Payout = {
|
|
5
|
+
receiver_id: string;
|
|
6
|
+
id: string;
|
|
7
|
+
status: TransactionStatus;
|
|
8
|
+
sender_wallet_address: string;
|
|
9
|
+
signed_transaction: string;
|
|
10
|
+
quote_id: string;
|
|
11
|
+
instance_id: string;
|
|
12
|
+
tracking_transaction: TrackingTransaction;
|
|
13
|
+
tracking_payment: TrackingPayment;
|
|
14
|
+
tracking_liquidity: TrackingLiquidity;
|
|
15
|
+
tracking_complete: TrackingComplete;
|
|
16
|
+
tracking_partner_fee: TrackingPartnerFee;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
image_url: string;
|
|
20
|
+
first_name: string;
|
|
21
|
+
last_name: string;
|
|
22
|
+
legal_name: string;
|
|
23
|
+
network: Network;
|
|
24
|
+
token: StablecoinToken;
|
|
25
|
+
description: string;
|
|
26
|
+
sender_amount: number;
|
|
27
|
+
receiver_amount: number;
|
|
28
|
+
partner_fee_amount: number;
|
|
29
|
+
commercial_quotation: number;
|
|
30
|
+
blindpay_quotation: number;
|
|
31
|
+
total_fee_amount: number;
|
|
32
|
+
receiver_local_amount: number;
|
|
33
|
+
currency: Exclude<Currency, "USDT" | "USDB">;
|
|
34
|
+
transaction_document_file: string;
|
|
35
|
+
transaction_document_type: TransactionDocumentType;
|
|
36
|
+
transaction_document_id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
type: Rail;
|
|
39
|
+
pix_key?: string;
|
|
40
|
+
account_number?: string;
|
|
41
|
+
routing_number?: string;
|
|
42
|
+
country?: Country;
|
|
43
|
+
account_class?: AccountClass;
|
|
44
|
+
address_line_1?: string;
|
|
45
|
+
address_line_2?: string;
|
|
46
|
+
city?: string;
|
|
47
|
+
state_province_region?: string;
|
|
48
|
+
postal_code?: string;
|
|
49
|
+
account_type?: BankAccountType;
|
|
50
|
+
ach_cop_beneficiary_first_name?: string;
|
|
51
|
+
ach_cop_bank_account?: string;
|
|
52
|
+
ach_cop_bank_code?: string;
|
|
53
|
+
ach_cop_beneficiary_last_name?: string;
|
|
54
|
+
ach_cop_document_id?: string;
|
|
55
|
+
ach_cop_document_type?: string;
|
|
56
|
+
ach_cop_email?: string;
|
|
57
|
+
beneficiary_name?: string;
|
|
58
|
+
spei_clabe?: string;
|
|
59
|
+
spei_protocol?: SpeiProtocol;
|
|
60
|
+
spei_institution_code?: string;
|
|
61
|
+
swift_beneficiary_country?: Country;
|
|
62
|
+
swift_code_bic?: string;
|
|
63
|
+
swift_account_holder_name?: string;
|
|
64
|
+
swift_account_number_iban?: string;
|
|
65
|
+
transfers_account?: string;
|
|
66
|
+
transfers_type: "CVU" | "CBU" | "ALIAS";
|
|
67
|
+
has_virtual_account: boolean;
|
|
68
|
+
};
|
|
69
|
+
type ListPayoutsInput = {
|
|
70
|
+
instanceId: string;
|
|
71
|
+
params?: PaginationParams & {
|
|
72
|
+
receiver_id?: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type ListPayoutsResponse = {
|
|
76
|
+
data: Payout[];
|
|
77
|
+
pagination: PaginationMetadata;
|
|
78
|
+
};
|
|
79
|
+
type CreatePayoutInput = {
|
|
80
|
+
instanceId: string;
|
|
81
|
+
receiver_id: string;
|
|
82
|
+
bank_account_id: string;
|
|
83
|
+
amount: number;
|
|
84
|
+
currency: string;
|
|
85
|
+
description?: string | null;
|
|
86
|
+
reference?: string | null;
|
|
87
|
+
network?: Network | null;
|
|
88
|
+
token?: StablecoinToken | null;
|
|
89
|
+
};
|
|
90
|
+
type GetPayoutInput = {
|
|
91
|
+
instanceId: string;
|
|
92
|
+
id: string;
|
|
93
|
+
};
|
|
94
|
+
type GetPayoutResponse = Payout;
|
|
95
|
+
type GetPayoutTrackInput = {
|
|
96
|
+
id: string;
|
|
97
|
+
};
|
|
98
|
+
type GetPayoutTrackResponse = Payout;
|
|
99
|
+
type ExportPayoutsInput = {
|
|
100
|
+
instanceId: string;
|
|
101
|
+
params?: Pick<PaginationParams, "limit" | "offset">;
|
|
102
|
+
};
|
|
103
|
+
type ExportPayoutsResponse = Payout[];
|
|
104
|
+
type AuthorizeStellarTokenInput = {
|
|
105
|
+
instanceId: string;
|
|
106
|
+
quote_id: string;
|
|
107
|
+
sender_wallet_address: string;
|
|
108
|
+
};
|
|
109
|
+
type AuthorizeStellarTokenResponse = {
|
|
110
|
+
transaction_hash: string;
|
|
111
|
+
};
|
|
112
|
+
type CreateStellarPayoutInput = {
|
|
113
|
+
instanceId: string;
|
|
114
|
+
quote_id: string;
|
|
115
|
+
sender_wallet_address: string;
|
|
116
|
+
signed_transaction?: string;
|
|
117
|
+
};
|
|
118
|
+
type CreateStellarPayoutResponse = {
|
|
119
|
+
id: string;
|
|
120
|
+
status: TransactionStatus;
|
|
121
|
+
sender_wallet_address: string;
|
|
122
|
+
tracking_complete?: TrackingComplete;
|
|
123
|
+
tracking_payment?: TrackingPayment;
|
|
124
|
+
tracking_transaction?: TrackingTransaction;
|
|
125
|
+
tracking_partner_fee?: TrackingPartnerFee;
|
|
126
|
+
tracking_liquidity?: TrackingLiquidity;
|
|
127
|
+
receiver_id: string;
|
|
128
|
+
};
|
|
129
|
+
type CreateEvmPayoutInput = {
|
|
130
|
+
instanceId: string;
|
|
131
|
+
quote_id: string;
|
|
132
|
+
sender_wallet_address: string;
|
|
133
|
+
};
|
|
134
|
+
type CreateEvmPayoutResponse = {
|
|
135
|
+
id: string;
|
|
136
|
+
status: TransactionStatus;
|
|
137
|
+
sender_wallet_address: string;
|
|
138
|
+
tracking_complete?: TrackingComplete;
|
|
139
|
+
tracking_payment?: TrackingPayment;
|
|
140
|
+
tracking_transaction?: TrackingTransaction;
|
|
141
|
+
tracking_partner_fee?: TrackingPartnerFee;
|
|
142
|
+
tracking_liquidity?: TrackingLiquidity;
|
|
143
|
+
receiver_id: string;
|
|
144
|
+
};
|
|
145
|
+
declare function createPayoutsResource(client: InternalApiClient): {
|
|
146
|
+
list({ instanceId, params, }: ListPayoutsInput): Promise<BlindpayApiResponse<ListPayoutsResponse>>;
|
|
147
|
+
export({ instanceId, params, }: ExportPayoutsInput): Promise<BlindpayApiResponse<ExportPayoutsResponse>>;
|
|
148
|
+
get({ instanceId, id }: GetPayoutInput): Promise<BlindpayApiResponse<GetPayoutResponse>>;
|
|
149
|
+
getTrack({ id, }: GetPayoutTrackInput): Promise<BlindpayApiResponse<GetPayoutTrackResponse>>;
|
|
150
|
+
authorizeStellarToken({ instanceId, ...data }: AuthorizeStellarTokenInput): Promise<BlindpayApiResponse<AuthorizeStellarTokenResponse>>;
|
|
151
|
+
createStellar({ instanceId, ...data }: CreateStellarPayoutInput): Promise<BlindpayApiResponse<CreateStellarPayoutResponse>>;
|
|
152
|
+
createEvm({ instanceId, ...data }: CreateEvmPayoutInput): Promise<BlindpayApiResponse<CreateEvmPayoutResponse>>;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export { type AuthorizeStellarTokenInput, type AuthorizeStellarTokenResponse, type CreateEvmPayoutInput, type CreateEvmPayoutResponse, type CreatePayoutInput, type CreateStellarPayoutInput, type CreateStellarPayoutResponse, type ExportPayoutsInput, type ExportPayoutsResponse, type GetPayoutInput, type GetPayoutResponse, type GetPayoutTrackInput, type GetPayoutTrackResponse, type ListPayoutsInput, type ListPayoutsResponse, type Payout, type SpeiProtocol, createPayoutsResource };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __objRest = (source, exclude) => {
|
|
9
|
+
var target = {};
|
|
10
|
+
for (var prop in source)
|
|
11
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
if (source != null && __getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
15
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
16
|
+
target[prop] = source[prop];
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// src/resources/payouts/index.ts
|
|
35
|
+
var payouts_exports = {};
|
|
36
|
+
__export(payouts_exports, {
|
|
37
|
+
createPayoutsResource: () => createPayoutsResource
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(payouts_exports);
|
|
40
|
+
function createPayoutsResource(client) {
|
|
41
|
+
return {
|
|
42
|
+
list({
|
|
43
|
+
instanceId,
|
|
44
|
+
params
|
|
45
|
+
}) {
|
|
46
|
+
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
47
|
+
return client.get(`/instances/${instanceId}/payouts${queryParams}`);
|
|
48
|
+
},
|
|
49
|
+
export({
|
|
50
|
+
instanceId,
|
|
51
|
+
params
|
|
52
|
+
}) {
|
|
53
|
+
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
54
|
+
return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
|
|
55
|
+
},
|
|
56
|
+
get({ instanceId, id }) {
|
|
57
|
+
return client.get(`/instances/${instanceId}/payouts/${id}`);
|
|
58
|
+
},
|
|
59
|
+
getTrack({
|
|
60
|
+
id
|
|
61
|
+
}) {
|
|
62
|
+
return client.get(`/e/payouts/${id}`);
|
|
63
|
+
},
|
|
64
|
+
authorizeStellarToken(_a) {
|
|
65
|
+
var _b = _a, {
|
|
66
|
+
instanceId
|
|
67
|
+
} = _b, data = __objRest(_b, [
|
|
68
|
+
"instanceId"
|
|
69
|
+
]);
|
|
70
|
+
return client.post(`/instances/${instanceId}/payouts/stellar/authorize`, data);
|
|
71
|
+
},
|
|
72
|
+
createStellar(_c) {
|
|
73
|
+
var _d = _c, {
|
|
74
|
+
instanceId
|
|
75
|
+
} = _d, data = __objRest(_d, [
|
|
76
|
+
"instanceId"
|
|
77
|
+
]);
|
|
78
|
+
return client.post(`/instances/${instanceId}/payouts/stellar`, data);
|
|
79
|
+
},
|
|
80
|
+
createEvm(_e) {
|
|
81
|
+
var _f = _e, {
|
|
82
|
+
instanceId
|
|
83
|
+
} = _f, data = __objRest(_f, [
|
|
84
|
+
"instanceId"
|
|
85
|
+
]);
|
|
86
|
+
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
91
|
+
0 && (module.exports = {
|
|
92
|
+
createPayoutsResource
|
|
93
|
+
});
|