@blindpay/node 2.5.0 → 3.1.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-DhY5DFpq.d.mts} +109 -34
- package/dist/{api-client-Drd7alfK.d.ts → api-client-DhY5DFpq.d.ts} +109 -34
- package/dist/{chunk-VRA5HP7F.mjs → chunk-E7M4CJKR.mjs} +0 -7
- package/dist/{chunk-5XJJKYXE.mjs → chunk-LEPGLH7Q.mjs} +20 -10
- package/dist/{chunk-CEJF5Y4K.mjs → chunk-V4V47AUC.mjs} +17 -17
- package/dist/{chunk-W7NJUABI.mjs → chunk-VGU72ZNI.mjs} +1 -7
- package/dist/{chunk-3QQCDR3E.mjs → chunk-VOB7TMKL.mjs} +4 -4
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +25 -27
- package/dist/index.mjs +17 -17
- package/dist/resources/api-keys/api-keys.test.js +25 -27
- package/dist/resources/api-keys/api-keys.test.mjs +7 -7
- 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 +25 -27
- package/dist/resources/available/available.test.mjs +7 -7
- 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 +25 -27
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +7 -7
- 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 +25 -27
- package/dist/resources/instances/instances.test.mjs +7 -7
- 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 +25 -27
- package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
- package/dist/resources/payins/index.d.mts +61 -148
- package/dist/resources/payins/index.d.ts +61 -148
- package/dist/resources/payins/index.js +0 -19
- package/dist/resources/payins/index.mjs +1 -1
- package/dist/resources/payins/payins-quotes.test.js +25 -113
- package/dist/resources/payins/payins-quotes.test.mjs +7 -93
- package/dist/resources/payins/payins.test.js +113 -163
- package/dist/resources/payins/payins.test.mjs +95 -143
- package/dist/resources/payins/quotes.d.mts +7 -72
- package/dist/resources/payins/quotes.d.ts +7 -72
- package/dist/resources/payins/quotes.js +0 -7
- package/dist/resources/payins/quotes.mjs +1 -1
- package/dist/resources/payouts/index.d.mts +34 -20
- package/dist/resources/payouts/index.d.ts +34 -20
- package/dist/resources/payouts/index.js +4 -4
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +113 -131
- package/dist/resources/payouts/payouts.test.mjs +95 -111
- package/dist/resources/quotes/index.d.mts +16 -16
- package/dist/resources/quotes/index.d.ts +16 -16
- package/dist/resources/quotes/quotes.test.js +26 -28
- package/dist/resources/quotes/quotes.test.mjs +8 -8
- 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 +32 -35
- package/dist/resources/receivers/receivers.test.mjs +14 -15
- 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 +25 -27
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
- 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 +144 -46
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +126 -26
- 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 +25 -27
- package/dist/resources/wallets/blockchain.test.mjs +7 -7
- 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 +25 -27
- package/dist/resources/wallets/offramp.test.mjs +7 -7
- 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 +25 -27
- package/dist/resources/webhooks/webhooks.test.mjs +7 -7
- package/package.json +2 -1
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "
|
|
18705
|
+
var version = "3.1.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -18905,11 +18905,6 @@ function createPayinsResource(instanceId, client) {
|
|
|
18905
18905
|
getTrack(payinId) {
|
|
18906
18906
|
return client.get(`/e/payins/${payinId}`);
|
|
18907
18907
|
},
|
|
18908
|
-
export(_a3) {
|
|
18909
|
-
var params = __objRest(_a3, []);
|
|
18910
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18911
|
-
return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
|
|
18912
|
-
},
|
|
18913
18908
|
createEvm(payin_quote_id) {
|
|
18914
18909
|
return client.post(`/instances/${instanceId}/payins/evm`, {
|
|
18915
18910
|
payin_quote_id
|
|
@@ -18928,13 +18923,6 @@ function createPayinQuotesResource(instanceId, client) {
|
|
|
18928
18923
|
getFxRate(_b) {
|
|
18929
18924
|
var data = __objRest(_b, []);
|
|
18930
18925
|
return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
|
|
18931
|
-
},
|
|
18932
|
-
get(id) {
|
|
18933
|
-
return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
|
|
18934
|
-
},
|
|
18935
|
-
list(params) {
|
|
18936
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18937
|
-
return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
|
|
18938
18926
|
}
|
|
18939
18927
|
};
|
|
18940
18928
|
}
|
|
@@ -18946,10 +18934,6 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18946
18934
|
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18947
18935
|
return client.get(`/instances/${instanceId}/payouts${queryParams}`);
|
|
18948
18936
|
},
|
|
18949
|
-
export(params) {
|
|
18950
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18951
|
-
return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
|
|
18952
|
-
},
|
|
18953
18937
|
get(payoutId) {
|
|
18954
18938
|
return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
|
|
18955
18939
|
},
|
|
@@ -18967,6 +18951,10 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18967
18951
|
createEvm(_c) {
|
|
18968
18952
|
var data = __objRest(_c, []);
|
|
18969
18953
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
18954
|
+
},
|
|
18955
|
+
createSolana(_d) {
|
|
18956
|
+
var data = __objRest(_d, []);
|
|
18957
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
18970
18958
|
}
|
|
18971
18959
|
};
|
|
18972
18960
|
}
|
|
@@ -19059,30 +19047,40 @@ function createTermsOfServiceResource(instanceId, client) {
|
|
|
19059
19047
|
// src/resources/virtual-accounts/index.ts
|
|
19060
19048
|
function createVirtualAccountsResource(instanceId, client) {
|
|
19061
19049
|
return {
|
|
19062
|
-
|
|
19050
|
+
list(receiver_id) {
|
|
19051
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19052
|
+
},
|
|
19053
|
+
get({
|
|
19054
|
+
receiver_id,
|
|
19055
|
+
id
|
|
19056
|
+
}) {
|
|
19057
|
+
return client.get(
|
|
19058
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
|
|
19059
|
+
);
|
|
19060
|
+
},
|
|
19061
|
+
create(_a3) {
|
|
19063
19062
|
var _b = _a3, {
|
|
19064
19063
|
receiver_id
|
|
19065
19064
|
} = _b, data = __objRest(_b, [
|
|
19066
19065
|
"receiver_id"
|
|
19067
19066
|
]);
|
|
19068
|
-
return client.
|
|
19067
|
+
return client.post(
|
|
19069
19068
|
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19070
19069
|
data
|
|
19071
19070
|
);
|
|
19072
19071
|
},
|
|
19073
|
-
|
|
19072
|
+
update(_c) {
|
|
19074
19073
|
var _d = _c, {
|
|
19075
|
-
receiver_id
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
id
|
|
19076
19076
|
} = _d, data = __objRest(_d, [
|
|
19077
|
-
"receiver_id"
|
|
19077
|
+
"receiver_id",
|
|
19078
|
+
"id"
|
|
19078
19079
|
]);
|
|
19079
|
-
return client.
|
|
19080
|
-
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19080
|
+
return client.put(
|
|
19081
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
|
|
19081
19082
|
data
|
|
19082
19083
|
);
|
|
19083
|
-
},
|
|
19084
|
-
get(receiver_id) {
|
|
19085
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19086
19084
|
}
|
|
19087
19085
|
};
|
|
19088
19086
|
}
|
|
@@ -19386,20 +19384,38 @@ describe("Payins", () => {
|
|
|
19386
19384
|
tracking_transaction: {
|
|
19387
19385
|
step: "processing",
|
|
19388
19386
|
status: "failed",
|
|
19389
|
-
|
|
19390
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19387
|
+
external_id: "12345678",
|
|
19388
|
+
completed_at: "2011-10-05T14:48:00.000Z",
|
|
19389
|
+
sender_name: "John Doe Smith",
|
|
19390
|
+
sender_tax_id: "123.456.789-10",
|
|
19391
|
+
sender_bank_code: "00416968",
|
|
19392
|
+
sender_account_number: "1234567890",
|
|
19393
|
+
trace_number: "1234567890",
|
|
19394
|
+
transaction_reference: "1234567890",
|
|
19395
|
+
description: "Payment from John Doe Smith",
|
|
19396
|
+
pse_instruction: {
|
|
19397
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
19398
|
+
fid: "fid_abc123",
|
|
19399
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
19400
|
+
tax_id: "1234567890",
|
|
19401
|
+
document_type: "CC",
|
|
19402
|
+
phone: "+573001234567",
|
|
19403
|
+
email: "juan@example.com",
|
|
19404
|
+
bank_code: "1007"
|
|
19405
|
+
},
|
|
19406
|
+
transfers_instruction: {
|
|
19407
|
+
account: "0000003100012389237485",
|
|
19408
|
+
type: "CVU",
|
|
19409
|
+
tax_id: "20123456783"
|
|
19410
|
+
}
|
|
19391
19411
|
},
|
|
19392
19412
|
tracking_payment: {
|
|
19393
19413
|
step: "on_hold",
|
|
19394
19414
|
provider_name: "blockchain",
|
|
19395
|
-
provider_transaction_id: "tx_123456789",
|
|
19396
|
-
provider_status: "confirmed",
|
|
19397
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
19398
19415
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19399
19416
|
},
|
|
19400
19417
|
tracking_complete: {
|
|
19401
19418
|
step: "on_hold",
|
|
19402
|
-
status: "completed",
|
|
19403
19419
|
transaction_hash: "0x123...890",
|
|
19404
19420
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19405
19421
|
},
|
|
@@ -19449,11 +19465,6 @@ describe("Payins", () => {
|
|
|
19449
19465
|
name: "BlindPay, Inc.",
|
|
19450
19466
|
address_line_1: "8 The Green, #19364",
|
|
19451
19467
|
address_line_2: "Dover, DE 19901"
|
|
19452
|
-
},
|
|
19453
|
-
receiving_bank: {
|
|
19454
|
-
name: "Column NA - Brex",
|
|
19455
|
-
address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
|
|
19456
|
-
address_line_2: "San Francisco, CA 94129"
|
|
19457
19468
|
}
|
|
19458
19469
|
}
|
|
19459
19470
|
}
|
|
@@ -19486,20 +19497,38 @@ describe("Payins", () => {
|
|
|
19486
19497
|
tracking_transaction: {
|
|
19487
19498
|
step: "processing",
|
|
19488
19499
|
status: "failed",
|
|
19489
|
-
|
|
19490
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19500
|
+
external_id: "12345678",
|
|
19501
|
+
completed_at: "2011-10-05T14:48:00.000Z",
|
|
19502
|
+
sender_name: "John Doe Smith",
|
|
19503
|
+
sender_tax_id: "123.456.789-10",
|
|
19504
|
+
sender_bank_code: "00416968",
|
|
19505
|
+
sender_account_number: "1234567890",
|
|
19506
|
+
trace_number: "1234567890",
|
|
19507
|
+
transaction_reference: "1234567890",
|
|
19508
|
+
description: "Payment from John Doe Smith",
|
|
19509
|
+
pse_instruction: {
|
|
19510
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
19511
|
+
fid: "fid_abc123",
|
|
19512
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
19513
|
+
tax_id: "1234567890",
|
|
19514
|
+
document_type: "CC",
|
|
19515
|
+
phone: "+573001234567",
|
|
19516
|
+
email: "juan@example.com",
|
|
19517
|
+
bank_code: "1007"
|
|
19518
|
+
},
|
|
19519
|
+
transfers_instruction: {
|
|
19520
|
+
account: "0000003100012389237485",
|
|
19521
|
+
type: "CVU",
|
|
19522
|
+
tax_id: "20123456783"
|
|
19523
|
+
}
|
|
19491
19524
|
},
|
|
19492
19525
|
tracking_payment: {
|
|
19493
19526
|
step: "on_hold",
|
|
19494
19527
|
provider_name: "blockchain",
|
|
19495
|
-
provider_transaction_id: "tx_123456789",
|
|
19496
|
-
provider_status: "confirmed",
|
|
19497
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
19498
19528
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19499
19529
|
},
|
|
19500
19530
|
tracking_complete: {
|
|
19501
19531
|
step: "on_hold",
|
|
19502
|
-
status: "completed",
|
|
19503
19532
|
transaction_hash: "0x123...890",
|
|
19504
19533
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19505
19534
|
},
|
|
@@ -19549,11 +19578,6 @@ describe("Payins", () => {
|
|
|
19549
19578
|
name: "BlindPay, Inc.",
|
|
19550
19579
|
address_line_1: "8 The Green, #19364",
|
|
19551
19580
|
address_line_2: "Dover, DE 19901"
|
|
19552
|
-
},
|
|
19553
|
-
receiving_bank: {
|
|
19554
|
-
name: "Column NA - Brex",
|
|
19555
|
-
address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
|
|
19556
|
-
address_line_2: "San Francisco, CA 94129"
|
|
19557
19581
|
}
|
|
19558
19582
|
}
|
|
19559
19583
|
};
|
|
@@ -19587,7 +19611,22 @@ describe("Payins", () => {
|
|
|
19587
19611
|
sender_account_number: "1234567890",
|
|
19588
19612
|
trace_number: "1234567890",
|
|
19589
19613
|
transaction_reference: "1234567890",
|
|
19590
|
-
description: "Payment from John Doe Smith"
|
|
19614
|
+
description: "Payment from John Doe Smith",
|
|
19615
|
+
pse_instruction: {
|
|
19616
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
19617
|
+
fid: "fid_abc123",
|
|
19618
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
19619
|
+
tax_id: "1234567890",
|
|
19620
|
+
document_type: "CC",
|
|
19621
|
+
phone: "+573001234567",
|
|
19622
|
+
email: "juan@example.com",
|
|
19623
|
+
bank_code: "1007"
|
|
19624
|
+
},
|
|
19625
|
+
transfers_instruction: {
|
|
19626
|
+
account: "0000003100012389237485",
|
|
19627
|
+
type: "CVU",
|
|
19628
|
+
tax_id: "20123456783"
|
|
19629
|
+
}
|
|
19591
19630
|
},
|
|
19592
19631
|
tracking_payment: {
|
|
19593
19632
|
step: "on_hold",
|
|
@@ -19645,11 +19684,6 @@ describe("Payins", () => {
|
|
|
19645
19684
|
name: "BlindPay, Inc.",
|
|
19646
19685
|
address_line_1: "8 The Green, #19364",
|
|
19647
19686
|
address_line_2: "Dover, DE 19901"
|
|
19648
|
-
},
|
|
19649
|
-
receiving_bank: {
|
|
19650
|
-
name: "Column NA - Brex",
|
|
19651
|
-
address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
|
|
19652
|
-
address_line_2: "San Francisco, CA 94129"
|
|
19653
19687
|
}
|
|
19654
19688
|
}
|
|
19655
19689
|
};
|
|
@@ -19661,103 +19695,6 @@ describe("Payins", () => {
|
|
|
19661
19695
|
globalExpect(data).toEqual(mockedPayinTrack);
|
|
19662
19696
|
}));
|
|
19663
19697
|
});
|
|
19664
|
-
describe("Export payins", () => {
|
|
19665
|
-
it("should export payins", () => __async(null, null, function* () {
|
|
19666
|
-
const mockedExportPayins = [
|
|
19667
|
-
{
|
|
19668
|
-
receiver_id: "re_000000000000",
|
|
19669
|
-
id: "re_000000000000",
|
|
19670
|
-
pix_code: "00020101021226790014br.gov.bcb.pix2557brcode.starkinfra.com/v2/bcf07f6c4110454e9fd6f120bab13e835204000053039865802BR5915Blind Pay, Inc.6010Vila Velha62070503***6304BCAB",
|
|
19671
|
-
memo_code: "8K45GHBNT6BQ6462",
|
|
19672
|
-
clabe: "014027000000000008",
|
|
19673
|
-
status: "processing",
|
|
19674
|
-
payin_quote_id: "pq_000000000000",
|
|
19675
|
-
instance_id: "in_000000000000",
|
|
19676
|
-
tracking_transaction: {
|
|
19677
|
-
step: "processing",
|
|
19678
|
-
status: "failed",
|
|
19679
|
-
transaction_hash: "0x123...890",
|
|
19680
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19681
|
-
},
|
|
19682
|
-
tracking_payment: {
|
|
19683
|
-
step: "on_hold",
|
|
19684
|
-
provider_name: "blockchain",
|
|
19685
|
-
provider_transaction_id: "tx_123456789",
|
|
19686
|
-
provider_status: "confirmed",
|
|
19687
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
19688
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19689
|
-
},
|
|
19690
|
-
tracking_complete: {
|
|
19691
|
-
step: "on_hold",
|
|
19692
|
-
status: "completed",
|
|
19693
|
-
transaction_hash: "0x123...890",
|
|
19694
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19695
|
-
},
|
|
19696
|
-
tracking_partner_fee: {
|
|
19697
|
-
step: "on_hold",
|
|
19698
|
-
transaction_hash: "0x123...890",
|
|
19699
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19700
|
-
},
|
|
19701
|
-
created_at: "2021-01-01T00:00:00Z",
|
|
19702
|
-
updated_at: "2021-01-01T00:00:00Z",
|
|
19703
|
-
image_url: "https://example.com/image.png",
|
|
19704
|
-
first_name: "John",
|
|
19705
|
-
last_name: "Doe",
|
|
19706
|
-
legal_name: "Company Name Inc.",
|
|
19707
|
-
type: "individual",
|
|
19708
|
-
payment_method: "pix",
|
|
19709
|
-
sender_amount: 5240,
|
|
19710
|
-
receiver_amount: 1010,
|
|
19711
|
-
token: "USDC",
|
|
19712
|
-
partner_fee_amount: 150,
|
|
19713
|
-
total_fee_amount: 1.53,
|
|
19714
|
-
commercial_quotation: 495,
|
|
19715
|
-
blindpay_quotation: 505,
|
|
19716
|
-
currency: "BRL",
|
|
19717
|
-
billing_fee: 100,
|
|
19718
|
-
name: "Wallet Display Name",
|
|
19719
|
-
address: "0xDD6a3aD0949396e57C7738ba8FC1A46A5a1C372C",
|
|
19720
|
-
network: "polygon",
|
|
19721
|
-
blindpay_bank_details: {
|
|
19722
|
-
routing_number: "121145349",
|
|
19723
|
-
account_number: "621327727210181",
|
|
19724
|
-
account_type: "Business checking",
|
|
19725
|
-
swift_bic_code: "CHASUS33",
|
|
19726
|
-
ach: {
|
|
19727
|
-
routing_number: "123456789",
|
|
19728
|
-
account_number: "123456789"
|
|
19729
|
-
},
|
|
19730
|
-
wire: {
|
|
19731
|
-
routing_number: "123456789",
|
|
19732
|
-
account_number: "123456789"
|
|
19733
|
-
},
|
|
19734
|
-
rtp: {
|
|
19735
|
-
routing_number: "123456789",
|
|
19736
|
-
account_number: "123456789"
|
|
19737
|
-
},
|
|
19738
|
-
beneficiary: {
|
|
19739
|
-
name: "BlindPay, Inc.",
|
|
19740
|
-
address_line_1: "8 The Green, #19364",
|
|
19741
|
-
address_line_2: "Dover, DE 19901"
|
|
19742
|
-
},
|
|
19743
|
-
receiving_bank: {
|
|
19744
|
-
name: "Column NA - Brex",
|
|
19745
|
-
address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
|
|
19746
|
-
address_line_2: "San Francisco, CA 94129"
|
|
19747
|
-
}
|
|
19748
|
-
}
|
|
19749
|
-
}
|
|
19750
|
-
];
|
|
19751
|
-
fetchMock.mockResponseOnce(JSON.stringify(mockedExportPayins), {
|
|
19752
|
-
headers: { "Content-Type": "application/json" }
|
|
19753
|
-
});
|
|
19754
|
-
const { data, error } = yield blindpay.payins.export({
|
|
19755
|
-
status: "processing"
|
|
19756
|
-
});
|
|
19757
|
-
globalExpect(error).toBeNull();
|
|
19758
|
-
globalExpect(data).toEqual(mockedExportPayins);
|
|
19759
|
-
}));
|
|
19760
|
-
});
|
|
19761
19698
|
describe("Create EVM payin", () => {
|
|
19762
19699
|
it("should create an EVM payin", () => __async(null, null, function* () {
|
|
19763
19700
|
const mockedEvmPayin = {
|
|
@@ -19768,23 +19705,41 @@ describe("Payins", () => {
|
|
|
19768
19705
|
clabe: "014027000000000008",
|
|
19769
19706
|
tracking_complete: {
|
|
19770
19707
|
step: "on_hold",
|
|
19771
|
-
status: "completed",
|
|
19772
19708
|
transaction_hash: "0x123...890",
|
|
19773
19709
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19774
19710
|
},
|
|
19775
19711
|
tracking_payment: {
|
|
19776
19712
|
step: "on_hold",
|
|
19777
19713
|
provider_name: "blockchain",
|
|
19778
|
-
provider_transaction_id: "tx_123456789",
|
|
19779
|
-
provider_status: "confirmed",
|
|
19780
|
-
estimated_time_of_arrival: "2011-10-05T15:00:00.000Z",
|
|
19781
19714
|
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19782
19715
|
},
|
|
19783
19716
|
tracking_transaction: {
|
|
19784
19717
|
step: "processing",
|
|
19785
19718
|
status: "failed",
|
|
19786
|
-
|
|
19787
|
-
completed_at: "2011-10-05T14:48:00.000Z"
|
|
19719
|
+
external_id: "12345678",
|
|
19720
|
+
completed_at: "2011-10-05T14:48:00.000Z",
|
|
19721
|
+
sender_name: "John Doe Smith",
|
|
19722
|
+
sender_tax_id: "123.456.789-10",
|
|
19723
|
+
sender_bank_code: "00416968",
|
|
19724
|
+
sender_account_number: "1234567890",
|
|
19725
|
+
trace_number: "1234567890",
|
|
19726
|
+
transaction_reference: "1234567890",
|
|
19727
|
+
description: "Payment from John Doe Smith",
|
|
19728
|
+
pse_instruction: {
|
|
19729
|
+
payment_link: "https://pse.example.com/payment/abc123",
|
|
19730
|
+
fid: "fid_abc123",
|
|
19731
|
+
full_name: "Juan P\xE9rez Garc\xEDa",
|
|
19732
|
+
tax_id: "1234567890",
|
|
19733
|
+
document_type: "CC",
|
|
19734
|
+
phone: "+573001234567",
|
|
19735
|
+
email: "juan@example.com",
|
|
19736
|
+
bank_code: "1007"
|
|
19737
|
+
},
|
|
19738
|
+
transfers_instruction: {
|
|
19739
|
+
account: "0000003100012389237485",
|
|
19740
|
+
type: "CVU",
|
|
19741
|
+
tax_id: "20123456783"
|
|
19742
|
+
}
|
|
19788
19743
|
},
|
|
19789
19744
|
tracking_partner_fee: {
|
|
19790
19745
|
step: "on_hold",
|
|
@@ -19812,11 +19767,6 @@ describe("Payins", () => {
|
|
|
19812
19767
|
name: "BlindPay, Inc.",
|
|
19813
19768
|
address_line_1: "8 The Green, #19364",
|
|
19814
19769
|
address_line_2: "Dover, DE 19901"
|
|
19815
|
-
},
|
|
19816
|
-
receiving_bank: {
|
|
19817
|
-
name: "Column NA - Brex",
|
|
19818
|
-
address_line_1: "1 Letterman Drive, Building A, Suite A4-700",
|
|
19819
|
-
address_line_2: "San Francisco, CA 94129"
|
|
19820
19770
|
}
|
|
19821
19771
|
},
|
|
19822
19772
|
receiver_id: "re_000000000000",
|