@blindpay/node 2.5.0 → 3.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/dist/{api-client-Drd7alfK.d.mts → api-client-B7VQkM_4.d.mts} +94 -33
- package/dist/{api-client-Drd7alfK.d.ts → api-client-B7VQkM_4.d.ts} +94 -33
- package/dist/{chunk-5XJJKYXE.mjs → chunk-LEPGLH7Q.mjs} +20 -10
- package/dist/{chunk-3QQCDR3E.mjs → chunk-VBZHAPK7.mjs} +8 -0
- package/dist/{chunk-CEJF5Y4K.mjs → chunk-WH2VNZE7.mjs} +11 -11
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +29 -11
- package/dist/index.mjs +11 -11
- package/dist/resources/api-keys/api-keys.test.js +29 -11
- package/dist/resources/api-keys/api-keys.test.mjs +5 -5
- package/dist/resources/api-keys/index.d.mts +1 -1
- package/dist/resources/api-keys/index.d.ts +1 -1
- package/dist/resources/available/available.test.js +29 -11
- package/dist/resources/available/available.test.mjs +5 -5
- package/dist/resources/available/index.d.mts +1 -1
- package/dist/resources/available/index.d.ts +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +29 -11
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +5 -5
- package/dist/resources/bank-accounts/index.d.mts +2 -4
- package/dist/resources/bank-accounts/index.d.ts +2 -4
- package/dist/resources/instances/index.d.mts +1 -1
- package/dist/resources/instances/index.d.ts +1 -1
- package/dist/resources/instances/instances.test.js +29 -11
- package/dist/resources/instances/instances.test.mjs +5 -5
- package/dist/resources/partner-fees/index.d.mts +1 -1
- package/dist/resources/partner-fees/index.d.ts +1 -1
- package/dist/resources/partner-fees/partner-fees.test.js +29 -11
- package/dist/resources/partner-fees/partner-fees.test.mjs +5 -5
- package/dist/resources/payins/index.d.mts +9 -33
- package/dist/resources/payins/index.d.ts +9 -33
- package/dist/resources/payins/payins-quotes.test.js +29 -11
- package/dist/resources/payins/payins-quotes.test.mjs +5 -5
- package/dist/resources/payins/payins.test.js +141 -36
- package/dist/resources/payins/payins.test.mjs +117 -30
- package/dist/resources/payins/quotes.d.mts +1 -1
- package/dist/resources/payins/quotes.d.ts +1 -1
- package/dist/resources/payouts/index.d.mts +42 -17
- package/dist/resources/payouts/index.d.ts +42 -17
- package/dist/resources/payouts/index.js +8 -0
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +139 -11
- package/dist/resources/payouts/payouts.test.mjs +115 -5
- package/dist/resources/quotes/index.d.mts +1 -1
- package/dist/resources/quotes/index.d.ts +1 -1
- package/dist/resources/quotes/quotes.test.js +29 -11
- package/dist/resources/quotes/quotes.test.mjs +5 -5
- package/dist/resources/receivers/index.d.mts +9 -7
- package/dist/resources/receivers/index.d.ts +9 -7
- package/dist/resources/receivers/receivers.test.js +36 -19
- package/dist/resources/receivers/receivers.test.mjs +12 -13
- package/dist/resources/terms-of-service/index.d.mts +1 -1
- package/dist/resources/terms-of-service/index.d.ts +1 -1
- package/dist/resources/terms-of-service/terms-of-service.test.js +29 -11
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +5 -5
- package/dist/resources/virtual-accounts/index.d.mts +22 -7
- package/dist/resources/virtual-accounts/index.d.ts +22 -7
- package/dist/resources/virtual-accounts/index.js +20 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +148 -30
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +124 -24
- package/dist/resources/wallets/blockchain.d.mts +1 -1
- package/dist/resources/wallets/blockchain.d.ts +1 -1
- package/dist/resources/wallets/blockchain.test.js +29 -11
- package/dist/resources/wallets/blockchain.test.mjs +5 -5
- package/dist/resources/wallets/offramp.d.mts +1 -1
- package/dist/resources/wallets/offramp.d.ts +1 -1
- package/dist/resources/wallets/offramp.test.js +29 -11
- package/dist/resources/wallets/offramp.test.mjs +5 -5
- package/dist/resources/webhooks/index.d.mts +1 -1
- package/dist/resources/webhooks/index.d.ts +1 -1
- package/dist/resources/webhooks/webhooks.test.js +29 -11
- package/dist/resources/webhooks/webhooks.test.mjs +5 -5
- package/package.json +2 -1
|
@@ -296,42 +296,103 @@ type PaginationMetadata = {
|
|
|
296
296
|
prev_page: string;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
type
|
|
300
|
-
step: string;
|
|
301
|
-
status: string;
|
|
302
|
-
transaction_hash: string;
|
|
303
|
-
completed_at: string;
|
|
304
|
-
};
|
|
299
|
+
type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
|
|
305
300
|
|
|
306
|
-
type
|
|
307
|
-
step: string;
|
|
308
|
-
provider_name: string;
|
|
309
|
-
provider_transaction_id: string;
|
|
310
|
-
provider_status: string;
|
|
311
|
-
estimated_time_of_arrival: string;
|
|
312
|
-
completed_at: string;
|
|
313
|
-
};
|
|
301
|
+
type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
|
|
314
302
|
|
|
315
|
-
type
|
|
316
|
-
step:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
303
|
+
type PayinTrackingTransaction = {
|
|
304
|
+
step: TrackingStatus
|
|
305
|
+
status: 'failed' | 'completed' | null;
|
|
306
|
+
external_id: string | null;
|
|
307
|
+
completed_at: string | null;
|
|
308
|
+
sender_name: string | null;
|
|
309
|
+
sender_tax_id: string | null;
|
|
310
|
+
sender_bank_code: string | null;
|
|
311
|
+
sender_account_number: string | null;
|
|
312
|
+
trace_number: string | null;
|
|
313
|
+
transaction_reference: string | null;
|
|
314
|
+
description: string | null;
|
|
315
|
+
pse_instruction: {
|
|
316
|
+
payment_link: string;
|
|
317
|
+
fid: string;
|
|
318
|
+
full_name: string;
|
|
319
|
+
tax_id: string;
|
|
320
|
+
document_type: Extract<AchCopDocument, 'CC' | 'NIT'>;
|
|
321
|
+
phone: string;
|
|
322
|
+
email: string;
|
|
323
|
+
bank_code: string | null;
|
|
324
|
+
} | null
|
|
325
|
+
transfers_instruction: {
|
|
326
|
+
account: string;
|
|
327
|
+
type: ArgentinaTransfers;
|
|
328
|
+
tax_id: string | null;
|
|
329
|
+
} | null
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
type PayinTrackingPayment = {
|
|
333
|
+
step: TrackingStatus
|
|
334
|
+
provider_name?: string | null
|
|
335
|
+
completed_at?: string | null
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
type PayinTrackingComplete = {
|
|
339
|
+
step: TrackingStatus
|
|
340
|
+
transaction_hash: string | null;
|
|
341
|
+
completed_at: string | null;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
type PayinTrackingPartnerFee = {
|
|
345
|
+
step: TrackingStatus
|
|
346
|
+
transaction_hash?: string | null
|
|
347
|
+
completed_at?: string | null
|
|
348
|
+
}
|
|
322
349
|
|
|
323
|
-
type
|
|
324
|
-
step: string;
|
|
325
|
-
status: string;
|
|
326
|
-
transaction_hash: string;
|
|
327
|
-
completed_at: string;
|
|
328
|
-
};
|
|
350
|
+
type TrackingStatus = 'processing' | 'on_hold' | 'completed';
|
|
329
351
|
|
|
330
|
-
type
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
352
|
+
type EstimatedTimeOfArrival = '5_min' | '30_min' | '2_hours' | '1_business_day' | '2_business_days' | '5_business_days';
|
|
353
|
+
|
|
354
|
+
type PayoutTrackingTransaction = {
|
|
355
|
+
step: TrackingStatus
|
|
356
|
+
status: 'failed' | 'found';
|
|
357
|
+
transaction_hash: string | null
|
|
358
|
+
completed_at: string | null
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
type PayoutTrackingPayment = {
|
|
362
|
+
step: TrackingStatus
|
|
363
|
+
provider_name: string | null ;
|
|
364
|
+
provider_transaction_id: string | null ;
|
|
365
|
+
provider_status: 'canceled' | 'failed' | 'returned' | 'sent' | null
|
|
366
|
+
recipient_name: string | null ;
|
|
367
|
+
recipient_tax_id: string | null ;
|
|
368
|
+
recipient_bank_code: string | null ;
|
|
369
|
+
recipient_branch_code: string | null ;
|
|
370
|
+
recipient_account_number: string | null ;
|
|
371
|
+
recipient_account_type: string | null ;
|
|
372
|
+
estimated_time_of_arrival: EstimatedTimeOfArrival | null ;
|
|
373
|
+
completed_at: string | null ;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
type PayoutTrackingLiquidity = {
|
|
377
|
+
step: TrackingStatus
|
|
378
|
+
provider_transaction_id: string | null ;
|
|
379
|
+
provider_status: 'deposited' | 'converted' | 'withdrawn' | null;
|
|
380
|
+
estimated_time_of_arrival: EstimatedTimeOfArrival | null;
|
|
381
|
+
completed_at: string | null ;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
type PayoutTrackingComplete = {
|
|
385
|
+
step: TrackingStatus
|
|
386
|
+
status: 'tokens_refunded' | 'paid' | null;
|
|
387
|
+
transaction_hash: string | null;
|
|
388
|
+
completed_at: string | null;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
type PayoutTrackingPartnerFee = {
|
|
392
|
+
step: TrackingStatus
|
|
393
|
+
transaction_hash: string | null;
|
|
394
|
+
completed_at: string | null;
|
|
395
|
+
}
|
|
335
396
|
|
|
336
397
|
/**
|
|
337
398
|
*
|
|
@@ -346,4 +407,4 @@ interface InternalApiClient {
|
|
|
346
407
|
delete: <T>(path: string, body?: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
|
|
347
408
|
}
|
|
348
409
|
|
|
349
|
-
export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a,
|
|
410
|
+
export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, PayinTrackingTransaction as d, PayinTrackingPayment as e, PayinTrackingComplete as f, PayinTrackingPartnerFee as g, PaginationMetadata as h, CurrencyType as i, Currency as j, PayoutTrackingTransaction as k, PayoutTrackingPayment as l, PayoutTrackingLiquidity as m, PayoutTrackingComplete as n, PayoutTrackingPartnerFee as o, TransactionDocumentType as p };
|
|
@@ -296,42 +296,103 @@ type PaginationMetadata = {
|
|
|
296
296
|
prev_page: string;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
type
|
|
300
|
-
step: string;
|
|
301
|
-
status: string;
|
|
302
|
-
transaction_hash: string;
|
|
303
|
-
completed_at: string;
|
|
304
|
-
};
|
|
299
|
+
type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
|
|
305
300
|
|
|
306
|
-
type
|
|
307
|
-
step: string;
|
|
308
|
-
provider_name: string;
|
|
309
|
-
provider_transaction_id: string;
|
|
310
|
-
provider_status: string;
|
|
311
|
-
estimated_time_of_arrival: string;
|
|
312
|
-
completed_at: string;
|
|
313
|
-
};
|
|
301
|
+
type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
|
|
314
302
|
|
|
315
|
-
type
|
|
316
|
-
step:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
303
|
+
type PayinTrackingTransaction = {
|
|
304
|
+
step: TrackingStatus
|
|
305
|
+
status: 'failed' | 'completed' | null;
|
|
306
|
+
external_id: string | null;
|
|
307
|
+
completed_at: string | null;
|
|
308
|
+
sender_name: string | null;
|
|
309
|
+
sender_tax_id: string | null;
|
|
310
|
+
sender_bank_code: string | null;
|
|
311
|
+
sender_account_number: string | null;
|
|
312
|
+
trace_number: string | null;
|
|
313
|
+
transaction_reference: string | null;
|
|
314
|
+
description: string | null;
|
|
315
|
+
pse_instruction: {
|
|
316
|
+
payment_link: string;
|
|
317
|
+
fid: string;
|
|
318
|
+
full_name: string;
|
|
319
|
+
tax_id: string;
|
|
320
|
+
document_type: Extract<AchCopDocument, 'CC' | 'NIT'>;
|
|
321
|
+
phone: string;
|
|
322
|
+
email: string;
|
|
323
|
+
bank_code: string | null;
|
|
324
|
+
} | null
|
|
325
|
+
transfers_instruction: {
|
|
326
|
+
account: string;
|
|
327
|
+
type: ArgentinaTransfers;
|
|
328
|
+
tax_id: string | null;
|
|
329
|
+
} | null
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
type PayinTrackingPayment = {
|
|
333
|
+
step: TrackingStatus
|
|
334
|
+
provider_name?: string | null
|
|
335
|
+
completed_at?: string | null
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
type PayinTrackingComplete = {
|
|
339
|
+
step: TrackingStatus
|
|
340
|
+
transaction_hash: string | null;
|
|
341
|
+
completed_at: string | null;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
type PayinTrackingPartnerFee = {
|
|
345
|
+
step: TrackingStatus
|
|
346
|
+
transaction_hash?: string | null
|
|
347
|
+
completed_at?: string | null
|
|
348
|
+
}
|
|
322
349
|
|
|
323
|
-
type
|
|
324
|
-
step: string;
|
|
325
|
-
status: string;
|
|
326
|
-
transaction_hash: string;
|
|
327
|
-
completed_at: string;
|
|
328
|
-
};
|
|
350
|
+
type TrackingStatus = 'processing' | 'on_hold' | 'completed';
|
|
329
351
|
|
|
330
|
-
type
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
352
|
+
type EstimatedTimeOfArrival = '5_min' | '30_min' | '2_hours' | '1_business_day' | '2_business_days' | '5_business_days';
|
|
353
|
+
|
|
354
|
+
type PayoutTrackingTransaction = {
|
|
355
|
+
step: TrackingStatus
|
|
356
|
+
status: 'failed' | 'found';
|
|
357
|
+
transaction_hash: string | null
|
|
358
|
+
completed_at: string | null
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
type PayoutTrackingPayment = {
|
|
362
|
+
step: TrackingStatus
|
|
363
|
+
provider_name: string | null ;
|
|
364
|
+
provider_transaction_id: string | null ;
|
|
365
|
+
provider_status: 'canceled' | 'failed' | 'returned' | 'sent' | null
|
|
366
|
+
recipient_name: string | null ;
|
|
367
|
+
recipient_tax_id: string | null ;
|
|
368
|
+
recipient_bank_code: string | null ;
|
|
369
|
+
recipient_branch_code: string | null ;
|
|
370
|
+
recipient_account_number: string | null ;
|
|
371
|
+
recipient_account_type: string | null ;
|
|
372
|
+
estimated_time_of_arrival: EstimatedTimeOfArrival | null ;
|
|
373
|
+
completed_at: string | null ;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
type PayoutTrackingLiquidity = {
|
|
377
|
+
step: TrackingStatus
|
|
378
|
+
provider_transaction_id: string | null ;
|
|
379
|
+
provider_status: 'deposited' | 'converted' | 'withdrawn' | null;
|
|
380
|
+
estimated_time_of_arrival: EstimatedTimeOfArrival | null;
|
|
381
|
+
completed_at: string | null ;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
type PayoutTrackingComplete = {
|
|
385
|
+
step: TrackingStatus
|
|
386
|
+
status: 'tokens_refunded' | 'paid' | null;
|
|
387
|
+
transaction_hash: string | null;
|
|
388
|
+
completed_at: string | null;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
type PayoutTrackingPartnerFee = {
|
|
392
|
+
step: TrackingStatus
|
|
393
|
+
transaction_hash: string | null;
|
|
394
|
+
completed_at: string | null;
|
|
395
|
+
}
|
|
335
396
|
|
|
336
397
|
/**
|
|
337
398
|
*
|
|
@@ -346,4 +407,4 @@ interface InternalApiClient {
|
|
|
346
407
|
delete: <T>(path: string, body?: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
|
|
347
408
|
}
|
|
348
409
|
|
|
349
|
-
export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a,
|
|
410
|
+
export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, PayinTrackingTransaction as d, PayinTrackingPayment as e, PayinTrackingComplete as f, PayinTrackingPartnerFee as g, PaginationMetadata as h, CurrencyType as i, Currency as j, PayoutTrackingTransaction as k, PayoutTrackingPayment as l, PayoutTrackingLiquidity as m, PayoutTrackingComplete as n, PayoutTrackingPartnerFee as o, TransactionDocumentType as p };
|
|
@@ -6,30 +6,40 @@ import {
|
|
|
6
6
|
// src/resources/virtual-accounts/index.ts
|
|
7
7
|
function createVirtualAccountsResource(instanceId, client) {
|
|
8
8
|
return {
|
|
9
|
-
|
|
9
|
+
list(receiver_id) {
|
|
10
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
11
|
+
},
|
|
12
|
+
get({
|
|
13
|
+
receiver_id,
|
|
14
|
+
id
|
|
15
|
+
}) {
|
|
16
|
+
return client.get(
|
|
17
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
create(_a) {
|
|
10
21
|
var _b = _a, {
|
|
11
22
|
receiver_id
|
|
12
23
|
} = _b, data = __objRest(_b, [
|
|
13
24
|
"receiver_id"
|
|
14
25
|
]);
|
|
15
|
-
return client.
|
|
26
|
+
return client.post(
|
|
16
27
|
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
17
28
|
data
|
|
18
29
|
);
|
|
19
30
|
},
|
|
20
|
-
|
|
31
|
+
update(_c) {
|
|
21
32
|
var _d = _c, {
|
|
22
|
-
receiver_id
|
|
33
|
+
receiver_id,
|
|
34
|
+
id
|
|
23
35
|
} = _d, data = __objRest(_d, [
|
|
24
|
-
"receiver_id"
|
|
36
|
+
"receiver_id",
|
|
37
|
+
"id"
|
|
25
38
|
]);
|
|
26
|
-
return client.
|
|
27
|
-
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
39
|
+
return client.put(
|
|
40
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
|
|
28
41
|
data
|
|
29
42
|
);
|
|
30
|
-
},
|
|
31
|
-
get(receiver_id) {
|
|
32
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
33
43
|
}
|
|
34
44
|
};
|
|
35
45
|
}
|
|
@@ -31,6 +31,14 @@ function createPayoutsResource(instanceId, client) {
|
|
|
31
31
|
createEvm(_c) {
|
|
32
32
|
var data = __objRest(_c, []);
|
|
33
33
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
34
|
+
},
|
|
35
|
+
authorizeSolana(_d) {
|
|
36
|
+
var data = __objRest(_d, []);
|
|
37
|
+
return client.post(`/instances/${instanceId}/payouts/solana/authorize`, data);
|
|
38
|
+
},
|
|
39
|
+
createSolana(_e) {
|
|
40
|
+
var data = __objRest(_e, []);
|
|
41
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
34
42
|
}
|
|
35
43
|
};
|
|
36
44
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createWebhookEndpointsResource,
|
|
3
|
-
init_webhooks
|
|
4
|
-
} from "./chunk-UC57SCKQ.mjs";
|
|
5
1
|
import {
|
|
6
2
|
createBlockchainWalletsResource,
|
|
7
3
|
init_blockchain
|
|
@@ -10,6 +6,10 @@ import {
|
|
|
10
6
|
createOfframpWalletsResource,
|
|
11
7
|
init_offramp
|
|
12
8
|
} from "./chunk-QGNLMN6Z.mjs";
|
|
9
|
+
import {
|
|
10
|
+
createWebhookEndpointsResource,
|
|
11
|
+
init_webhooks
|
|
12
|
+
} from "./chunk-UC57SCKQ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
createQuotesResource,
|
|
15
15
|
init_quotes as init_quotes2
|
|
@@ -25,11 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
createVirtualAccountsResource,
|
|
27
27
|
init_virtual_accounts
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
createAvailableResource,
|
|
31
|
-
init_available
|
|
32
|
-
} from "./chunk-U7CKUUO7.mjs";
|
|
28
|
+
} from "./chunk-LEPGLH7Q.mjs";
|
|
33
29
|
import {
|
|
34
30
|
createPartnerFeesResource,
|
|
35
31
|
init_partner_fees
|
|
@@ -45,7 +41,7 @@ import {
|
|
|
45
41
|
import {
|
|
46
42
|
createPayoutsResource,
|
|
47
43
|
init_payouts
|
|
48
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VBZHAPK7.mjs";
|
|
49
45
|
import {
|
|
50
46
|
createApiKeysResource,
|
|
51
47
|
init_api_keys
|
|
@@ -54,6 +50,10 @@ import {
|
|
|
54
50
|
createBankAccountsResource,
|
|
55
51
|
init_bank_accounts
|
|
56
52
|
} from "./chunk-CPOSU35L.mjs";
|
|
53
|
+
import {
|
|
54
|
+
createAvailableResource,
|
|
55
|
+
init_available
|
|
56
|
+
} from "./chunk-U7CKUUO7.mjs";
|
|
57
57
|
import {
|
|
58
58
|
createInstancesResource,
|
|
59
59
|
init_instances
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
var version;
|
|
70
70
|
var init_package = __esm({
|
|
71
71
|
"package.json"() {
|
|
72
|
-
version = "
|
|
72
|
+
version = "3.0.0";
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyIn
|
|
|
3
3
|
import { createAvailableResource } from './resources/available/index.mjs';
|
|
4
4
|
export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.mjs';
|
|
5
5
|
import { createBankAccountsResource } from './resources/bank-accounts/index.mjs';
|
|
6
|
-
export {
|
|
6
|
+
export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.mjs';
|
|
7
7
|
import { createInstancesResource } from './resources/instances/index.mjs';
|
|
8
8
|
export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.mjs';
|
|
9
9
|
import { createPartnerFeesResource } from './resources/partner-fees/index.mjs';
|
|
@@ -13,21 +13,21 @@ export { CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, ExportPa
|
|
|
13
13
|
import { createPayinQuotesResource } from './resources/payins/quotes.mjs';
|
|
14
14
|
export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse, GetPayinQuoteInput, GetPayinQuoteResponse, ListPayinQuotesInput, ListPayinQuotesResponse, PayinPaymentMethod } from './resources/payins/quotes.mjs';
|
|
15
15
|
import { createPayoutsResource } from './resources/payouts/index.mjs';
|
|
16
|
-
export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.mjs';
|
|
16
|
+
export { AuthorizeSolanaInput, AuthorizeSolanaResponse, AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateSolanaPayoutInput, CreateSolanaPayoutResponse, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.mjs';
|
|
17
17
|
import { createQuotesResource } from './resources/quotes/index.mjs';
|
|
18
18
|
export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
|
|
19
19
|
import { createReceiversResource } from './resources/receivers/index.mjs';
|
|
20
20
|
export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.mjs';
|
|
21
21
|
import { createTermsOfServiceResource } from './resources/terms-of-service/index.mjs';
|
|
22
22
|
import { createVirtualAccountsResource } from './resources/virtual-accounts/index.mjs';
|
|
23
|
-
export { CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.mjs';
|
|
23
|
+
export { BankingPartner, CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, ListVirtualAccountsInput, ListVirtualAccountsResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.mjs';
|
|
24
24
|
import { createBlockchainWalletsResource } from './resources/wallets/blockchain.mjs';
|
|
25
25
|
export { CreateAssetTrustlineInput, CreateAssetTrustlineResponse, CreateBlockchainWalletResponse, CreateBlockchainWalletWithAddressInput, CreateBlockchainWalletWithHashInput, DeleteBlockchainWalletInput, GetBlockchainWalletInput, GetBlockchainWalletMessage, GetBlockchainWalletMessageResponse, GetBlockchainWalletResponse, ListBlockchainWalletsInput, ListBlockchainWalletsResponse, MintUsdbSolanaInput, MintUsdbSolanaResponse, MintUsdbStellarInput, PrepareSolanaDelegationTransactionInput, PrepareSolanaDelegationTransactionResponse } from './resources/wallets/blockchain.mjs';
|
|
26
26
|
import { createOfframpWalletsResource } from './resources/wallets/offramp.mjs';
|
|
27
27
|
export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet } from './resources/wallets/offramp.mjs';
|
|
28
28
|
import { createWebhookEndpointsResource } from './resources/webhooks/index.mjs';
|
|
29
29
|
export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.mjs';
|
|
30
|
-
import './api-client-
|
|
30
|
+
import './api-client-B7VQkM_4.mjs';
|
|
31
31
|
|
|
32
32
|
declare class BlindPay {
|
|
33
33
|
private readonly baseUrl;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyIn
|
|
|
3
3
|
import { createAvailableResource } from './resources/available/index.js';
|
|
4
4
|
export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.js';
|
|
5
5
|
import { createBankAccountsResource } from './resources/bank-accounts/index.js';
|
|
6
|
-
export {
|
|
6
|
+
export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.js';
|
|
7
7
|
import { createInstancesResource } from './resources/instances/index.js';
|
|
8
8
|
export { DeleteInstanceMemberInput, GetInstanceMembersResponse, InstanceMemberRole, UpdateInstanceInput, UpdateInstanceMemberRoleInput } from './resources/instances/index.js';
|
|
9
9
|
import { createPartnerFeesResource } from './resources/partner-fees/index.js';
|
|
@@ -13,21 +13,21 @@ export { CreateEvmPayinInput, CreateEvmPayinResponse, CreatePayinInput, ExportPa
|
|
|
13
13
|
import { createPayinQuotesResource } from './resources/payins/quotes.js';
|
|
14
14
|
export { CreatePayinQuoteInput, CreatePayinQuoteResponse, GetPayinFxRateInput, GetPayinFxRateResponse, GetPayinQuoteInput, GetPayinQuoteResponse, ListPayinQuotesInput, ListPayinQuotesResponse, PayinPaymentMethod } from './resources/payins/quotes.js';
|
|
15
15
|
import { createPayoutsResource } from './resources/payouts/index.js';
|
|
16
|
-
export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.js';
|
|
16
|
+
export { AuthorizeSolanaInput, AuthorizeSolanaResponse, AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateSolanaPayoutInput, CreateSolanaPayoutResponse, CreateStellarPayoutInput, CreateStellarPayoutResponse, ExportPayoutsInput, ExportPayoutsResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol } from './resources/payouts/index.js';
|
|
17
17
|
import { createQuotesResource } from './resources/quotes/index.js';
|
|
18
18
|
export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.js';
|
|
19
19
|
import { createReceiversResource } from './resources/receivers/index.js';
|
|
20
20
|
export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.js';
|
|
21
21
|
import { createTermsOfServiceResource } from './resources/terms-of-service/index.js';
|
|
22
22
|
import { createVirtualAccountsResource } from './resources/virtual-accounts/index.js';
|
|
23
|
-
export { CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.js';
|
|
23
|
+
export { BankingPartner, CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, ListVirtualAccountsInput, ListVirtualAccountsResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.js';
|
|
24
24
|
import { createBlockchainWalletsResource } from './resources/wallets/blockchain.js';
|
|
25
25
|
export { CreateAssetTrustlineInput, CreateAssetTrustlineResponse, CreateBlockchainWalletResponse, CreateBlockchainWalletWithAddressInput, CreateBlockchainWalletWithHashInput, DeleteBlockchainWalletInput, GetBlockchainWalletInput, GetBlockchainWalletMessage, GetBlockchainWalletMessageResponse, GetBlockchainWalletResponse, ListBlockchainWalletsInput, ListBlockchainWalletsResponse, MintUsdbSolanaInput, MintUsdbSolanaResponse, MintUsdbStellarInput, PrepareSolanaDelegationTransactionInput, PrepareSolanaDelegationTransactionResponse } from './resources/wallets/blockchain.js';
|
|
26
26
|
import { createOfframpWalletsResource } from './resources/wallets/offramp.js';
|
|
27
27
|
export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet } from './resources/wallets/offramp.js';
|
|
28
28
|
import { createWebhookEndpointsResource } from './resources/webhooks/index.js';
|
|
29
29
|
export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.js';
|
|
30
|
-
import './api-client-
|
|
30
|
+
import './api-client-B7VQkM_4.js';
|
|
31
31
|
|
|
32
32
|
declare class BlindPay {
|
|
33
33
|
private readonly baseUrl;
|
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
91
91
|
var import_svix = require("svix");
|
|
92
92
|
|
|
93
93
|
// package.json
|
|
94
|
-
var version = "
|
|
94
|
+
var version = "3.0.0";
|
|
95
95
|
|
|
96
96
|
// src/internal/blindpay-error.ts
|
|
97
97
|
var BlindPayError = class extends Error {
|
|
@@ -356,6 +356,14 @@ function createPayoutsResource(instanceId, client) {
|
|
|
356
356
|
createEvm(_c) {
|
|
357
357
|
var data = __objRest(_c, []);
|
|
358
358
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
359
|
+
},
|
|
360
|
+
authorizeSolana(_d) {
|
|
361
|
+
var data = __objRest(_d, []);
|
|
362
|
+
return client.post(`/instances/${instanceId}/payouts/solana/authorize`, data);
|
|
363
|
+
},
|
|
364
|
+
createSolana(_e) {
|
|
365
|
+
var data = __objRest(_e, []);
|
|
366
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
359
367
|
}
|
|
360
368
|
};
|
|
361
369
|
}
|
|
@@ -448,30 +456,40 @@ function createTermsOfServiceResource(instanceId, client) {
|
|
|
448
456
|
// src/resources/virtual-accounts/index.ts
|
|
449
457
|
function createVirtualAccountsResource(instanceId, client) {
|
|
450
458
|
return {
|
|
451
|
-
|
|
459
|
+
list(receiver_id) {
|
|
460
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
461
|
+
},
|
|
462
|
+
get({
|
|
463
|
+
receiver_id,
|
|
464
|
+
id
|
|
465
|
+
}) {
|
|
466
|
+
return client.get(
|
|
467
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
|
|
468
|
+
);
|
|
469
|
+
},
|
|
470
|
+
create(_a) {
|
|
452
471
|
var _b = _a, {
|
|
453
472
|
receiver_id
|
|
454
473
|
} = _b, data = __objRest(_b, [
|
|
455
474
|
"receiver_id"
|
|
456
475
|
]);
|
|
457
|
-
return client.
|
|
476
|
+
return client.post(
|
|
458
477
|
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
459
478
|
data
|
|
460
479
|
);
|
|
461
480
|
},
|
|
462
|
-
|
|
481
|
+
update(_c) {
|
|
463
482
|
var _d = _c, {
|
|
464
|
-
receiver_id
|
|
483
|
+
receiver_id,
|
|
484
|
+
id
|
|
465
485
|
} = _d, data = __objRest(_d, [
|
|
466
|
-
"receiver_id"
|
|
486
|
+
"receiver_id",
|
|
487
|
+
"id"
|
|
467
488
|
]);
|
|
468
|
-
return client.
|
|
469
|
-
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
489
|
+
return client.put(
|
|
490
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
|
|
470
491
|
data
|
|
471
492
|
);
|
|
472
|
-
},
|
|
473
|
-
get(receiver_id) {
|
|
474
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
475
493
|
}
|
|
476
494
|
};
|
|
477
495
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlindPay,
|
|
3
3
|
init_client
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
createWebhookEndpointsResource,
|
|
7
|
-
init_webhooks
|
|
8
|
-
} from "./chunk-UC57SCKQ.mjs";
|
|
4
|
+
} from "./chunk-WH2VNZE7.mjs";
|
|
9
5
|
import {
|
|
10
6
|
createBlockchainWalletsResource,
|
|
11
7
|
init_blockchain
|
|
@@ -14,6 +10,10 @@ import {
|
|
|
14
10
|
createOfframpWalletsResource,
|
|
15
11
|
init_offramp
|
|
16
12
|
} from "./chunk-QGNLMN6Z.mjs";
|
|
13
|
+
import {
|
|
14
|
+
createWebhookEndpointsResource,
|
|
15
|
+
init_webhooks
|
|
16
|
+
} from "./chunk-UC57SCKQ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
createQuotesResource,
|
|
19
19
|
init_quotes as init_quotes2
|
|
@@ -26,11 +26,7 @@ import "./chunk-Z6EYX4D3.mjs";
|
|
|
26
26
|
import {
|
|
27
27
|
createVirtualAccountsResource,
|
|
28
28
|
init_virtual_accounts
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
createAvailableResource,
|
|
32
|
-
init_available
|
|
33
|
-
} from "./chunk-U7CKUUO7.mjs";
|
|
29
|
+
} from "./chunk-LEPGLH7Q.mjs";
|
|
34
30
|
import {
|
|
35
31
|
createPartnerFeesResource,
|
|
36
32
|
init_partner_fees
|
|
@@ -46,7 +42,7 @@ import {
|
|
|
46
42
|
import {
|
|
47
43
|
createPayoutsResource,
|
|
48
44
|
init_payouts
|
|
49
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VBZHAPK7.mjs";
|
|
50
46
|
import {
|
|
51
47
|
createApiKeysResource,
|
|
52
48
|
init_api_keys
|
|
@@ -55,6 +51,10 @@ import {
|
|
|
55
51
|
createBankAccountsResource,
|
|
56
52
|
init_bank_accounts
|
|
57
53
|
} from "./chunk-CPOSU35L.mjs";
|
|
54
|
+
import {
|
|
55
|
+
createAvailableResource,
|
|
56
|
+
init_available
|
|
57
|
+
} from "./chunk-U7CKUUO7.mjs";
|
|
58
58
|
import {
|
|
59
59
|
createInstancesResource,
|
|
60
60
|
init_instances
|