@blindpay/node 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api-client-Cu0yYexQ.d.ts +16 -0
- package/dist/api-client-DV5jG52T.d.mts +16 -0
- package/dist/{chunk-AFXWEXL6.mjs → chunk-3I7S2HKM.mjs} +47 -23
- package/dist/chunk-ALHMJWQN.mjs +21 -0
- package/dist/{chunk-VOB7TMKL.mjs → chunk-F5Z45GCA.mjs} +8 -0
- package/dist/chunk-ISHZTBAN.mjs +39 -0
- package/dist/chunk-KMU6V4LW.mjs +50 -0
- package/dist/chunk-UDRMLZWT.mjs +53 -0
- package/dist/{chunk-CPOSU35L.mjs → chunk-UOAM7SX3.mjs} +43 -25
- package/dist/{chunk-U7CKUUO7.mjs → chunk-WE73MTQL.mjs} +3 -0
- package/dist/{chunk-67XECGMJ.mjs → chunk-YIZJM2GU.mjs} +4 -3
- package/dist/{api-client-CIPV5zmo.d.mts → index.d-yOiKSwHO.d.mts} +6 -19
- package/dist/{api-client-CIPV5zmo.d.ts → index.d-yOiKSwHO.d.ts} +6 -19
- package/dist/index.d.mts +21 -8
- package/dist/index.d.ts +21 -8
- package/dist/index.js +183 -30
- package/dist/index.mjs +46 -22
- package/dist/resources/api-keys/api-keys.test.js +175 -30
- package/dist/resources/api-keys/api-keys.test.mjs +13 -9
- package/dist/resources/api-keys/index.d.mts +2 -1
- package/dist/resources/api-keys/index.d.ts +2 -1
- package/dist/resources/available/available.test.js +199 -30
- package/dist/resources/available/available.test.mjs +37 -9
- package/dist/resources/available/index.d.mts +8 -2
- package/dist/resources/available/index.d.ts +8 -2
- package/dist/resources/available/index.js +3 -0
- package/dist/resources/available/index.mjs +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +230 -32
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +68 -11
- package/dist/resources/bank-accounts/index.d.mts +90 -9
- package/dist/resources/bank-accounts/index.d.ts +90 -9
- package/dist/resources/bank-accounts/index.js +43 -25
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/fees/fees.test.d.mts +2 -0
- package/dist/resources/fees/fees.test.d.ts +2 -0
- package/dist/resources/fees/fees.test.js +19845 -0
- package/dist/resources/fees/fees.test.mjs +85 -0
- package/dist/resources/fees/index.d.mts +36 -0
- package/dist/resources/fees/index.d.ts +36 -0
- package/dist/resources/fees/index.js +36 -0
- package/dist/resources/fees/index.mjs +9 -0
- package/dist/resources/instances/index.d.mts +2 -1
- package/dist/resources/instances/index.d.ts +2 -1
- package/dist/resources/instances/instances.test.js +175 -30
- package/dist/resources/instances/instances.test.mjs +13 -9
- package/dist/resources/partner-fees/index.d.mts +2 -1
- package/dist/resources/partner-fees/index.d.ts +2 -1
- package/dist/resources/partner-fees/partner-fees.test.js +175 -30
- package/dist/resources/partner-fees/partner-fees.test.mjs +13 -9
- package/dist/resources/payins/index.d.mts +2 -1
- package/dist/resources/payins/index.d.ts +2 -1
- package/dist/resources/payins/payins-quotes.test.js +175 -30
- package/dist/resources/payins/payins-quotes.test.mjs +13 -9
- package/dist/resources/payins/payins.test.js +175 -30
- package/dist/resources/payins/payins.test.mjs +13 -9
- package/dist/resources/payins/quotes.d.mts +2 -1
- package/dist/resources/payins/quotes.d.ts +2 -1
- package/dist/resources/payouts/index.d.mts +15 -3
- package/dist/resources/payouts/index.d.ts +15 -3
- package/dist/resources/payouts/index.js +8 -0
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +194 -30
- package/dist/resources/payouts/payouts.test.mjs +32 -9
- package/dist/resources/quotes/index.d.mts +2 -1
- package/dist/resources/quotes/index.d.ts +2 -1
- package/dist/resources/quotes/quotes.test.js +175 -30
- package/dist/resources/quotes/quotes.test.mjs +13 -9
- package/dist/resources/receivers/index.d.mts +90 -5
- package/dist/resources/receivers/index.d.ts +90 -5
- package/dist/resources/receivers/index.js +4 -3
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +423 -179
- package/dist/resources/receivers/receivers.test.mjs +261 -158
- package/dist/resources/terms-of-service/index.d.mts +2 -1
- package/dist/resources/terms-of-service/index.d.ts +2 -1
- package/dist/resources/terms-of-service/terms-of-service.test.js +175 -30
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +13 -9
- package/dist/resources/transfers/index.d.mts +94 -0
- package/dist/resources/transfers/index.d.ts +94 -0
- package/dist/resources/transfers/index.js +67 -0
- package/dist/resources/transfers/index.mjs +9 -0
- package/dist/resources/transfers/transfers.test.d.mts +2 -0
- package/dist/resources/transfers/transfers.test.d.ts +2 -0
- package/dist/resources/transfers/transfers.test.js +19931 -0
- package/dist/resources/transfers/transfers.test.mjs +171 -0
- package/dist/resources/upload/index.d.mts +16 -0
- package/dist/resources/upload/index.d.ts +16 -0
- package/dist/resources/upload/index.js +100 -0
- package/dist/resources/upload/index.mjs +9 -0
- package/dist/resources/upload/upload.test.d.mts +2 -0
- package/dist/resources/upload/upload.test.d.ts +2 -0
- package/dist/resources/upload/upload.test.js +19840 -0
- package/dist/resources/upload/upload.test.mjs +80 -0
- package/dist/resources/virtual-accounts/index.d.mts +13 -3
- package/dist/resources/virtual-accounts/index.d.ts +13 -3
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +235 -30
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +73 -9
- package/dist/resources/wallets/blockchain.d.mts +2 -1
- package/dist/resources/wallets/blockchain.d.ts +2 -1
- package/dist/resources/wallets/blockchain.test.js +175 -30
- package/dist/resources/wallets/blockchain.test.mjs +13 -9
- package/dist/resources/wallets/custodial.d.mts +55 -0
- package/dist/resources/wallets/custodial.d.ts +55 -0
- package/dist/resources/wallets/custodial.js +78 -0
- package/dist/resources/wallets/custodial.mjs +9 -0
- package/dist/resources/wallets/custodial.test.d.mts +2 -0
- package/dist/resources/wallets/custodial.test.d.ts +2 -0
- package/dist/resources/wallets/custodial.test.js +19901 -0
- package/dist/resources/wallets/custodial.test.mjs +141 -0
- package/dist/resources/wallets/offramp.d.mts +11 -7
- package/dist/resources/wallets/offramp.d.ts +11 -7
- package/dist/resources/wallets/offramp.test.js +195 -30
- package/dist/resources/wallets/offramp.test.mjs +33 -9
- package/dist/resources/webhooks/index.d.mts +3 -2
- package/dist/resources/webhooks/index.d.ts +3 -2
- package/dist/resources/webhooks/webhooks.test.js +175 -30
- package/dist/resources/webhooks/webhooks.test.mjs +13 -9
- package/package.json +2 -2
|
@@ -8,22 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-3I7S2HKM.mjs";
|
|
12
|
+
import "../../chunk-KMU6V4LW.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
|
+
import "../../chunk-LEPGLH7Q.mjs";
|
|
14
15
|
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
+
import "../../chunk-UDRMLZWT.mjs";
|
|
15
17
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-FG25JHDX.mjs";
|
|
19
|
+
import "../../chunk-E7M4CJKR.mjs";
|
|
20
|
+
import "../../chunk-F5Z45GCA.mjs";
|
|
21
|
+
import "../../chunk-YIZJM2GU.mjs";
|
|
17
22
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
18
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-ISHZTBAN.mjs";
|
|
24
|
+
import "../../chunk-ALHMJWQN.mjs";
|
|
19
25
|
import "../../chunk-RC5NN5UF.mjs";
|
|
26
|
+
import "../../chunk-B5T7AQLH.mjs";
|
|
20
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
21
|
-
import "../../chunk-E7M4CJKR.mjs";
|
|
22
|
-
import "../../chunk-VOB7TMKL.mjs";
|
|
23
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-B5T7AQLH.mjs";
|
|
29
|
+
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
+
import "../../chunk-UOAM7SX3.mjs";
|
|
27
31
|
import {
|
|
28
32
|
__async,
|
|
29
33
|
__commonJS
|
|
@@ -39,159 +43,166 @@ var require_receivers_test = __commonJS({
|
|
|
39
43
|
const blindpay = new BlindPay({ apiKey: "test-key", instanceId: "in_000000000000" });
|
|
40
44
|
describe("List receivers", () => {
|
|
41
45
|
it("should list receivers", () => __async(null, null, function* () {
|
|
42
|
-
const mockedReceivers =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
const mockedReceivers = {
|
|
47
|
+
data: [
|
|
48
|
+
{
|
|
49
|
+
id: "re_Euw7HN4OdxPn",
|
|
50
|
+
type: "individual",
|
|
51
|
+
kyc_type: "standard",
|
|
52
|
+
kyc_status: "verifying",
|
|
53
|
+
is_tos_accepted: true,
|
|
54
|
+
kyc_warnings: [
|
|
55
|
+
{
|
|
56
|
+
code: null,
|
|
57
|
+
message: null,
|
|
58
|
+
resolution_status: null,
|
|
59
|
+
warning_id: null
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
email: "bernardo@gmail.com",
|
|
63
|
+
tax_id: "12345678900",
|
|
64
|
+
address_line_1: "Av. Paulista, 1000",
|
|
65
|
+
address_line_2: "Apto 101",
|
|
66
|
+
city: "S\xE3o Paulo",
|
|
67
|
+
state_province_region: "SP",
|
|
68
|
+
country: "BR",
|
|
69
|
+
postal_code: "01310-100",
|
|
70
|
+
ip_address: "127.0.0.1",
|
|
71
|
+
image_url: "https://example.com/image.png",
|
|
72
|
+
phone_number: "+5511987654321",
|
|
73
|
+
proof_of_address_doc_type: "UTILITY_BILL",
|
|
74
|
+
proof_of_address_doc_file: "https://example.com/image.png",
|
|
75
|
+
first_name: "Bernardo",
|
|
76
|
+
last_name: "Simonassi",
|
|
77
|
+
date_of_birth: "1998-02-02T00:00:00.000Z",
|
|
78
|
+
id_doc_country: "BR",
|
|
79
|
+
id_doc_type: "PASSPORT",
|
|
80
|
+
id_doc_front_file: "https://example.com/image.png",
|
|
81
|
+
id_doc_back_file: "https://example.com/image.png",
|
|
82
|
+
aiprise_validation_key: "",
|
|
83
|
+
instance_id: "in_000000000000",
|
|
84
|
+
tos_id: "to_3ZZhllJkvo5Z",
|
|
85
|
+
created_at: "2021-01-01T00:00:00.000Z",
|
|
86
|
+
updated_at: "2021-01-01T00:00:00.000Z",
|
|
87
|
+
limit: {
|
|
88
|
+
per_transaction: 1e5,
|
|
89
|
+
daily: 2e5,
|
|
90
|
+
monthly: 1e6
|
|
55
91
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
date_of_birth: "1995-05-15T00:00:00.000Z",
|
|
162
|
-
tax_id: "12345678901",
|
|
163
|
-
address_line_1: "Rua Augusta, 1500",
|
|
164
|
-
address_line_2: null,
|
|
165
|
-
city: "S\xE3o Paulo",
|
|
166
|
-
state_province_region: "SP",
|
|
167
|
-
country: "BR",
|
|
168
|
-
postal_code: "01304-001",
|
|
169
|
-
id_doc_country: "BR",
|
|
170
|
-
id_doc_type: "PASSPORT",
|
|
171
|
-
id_doc_front_file: "https://example.com/image.png",
|
|
172
|
-
id_doc_back_file: "https://example.com/image.png",
|
|
173
|
-
proof_of_address_doc_type: "UTILITY_BILL",
|
|
174
|
-
proof_of_address_doc_file: "https://example.com/image.png",
|
|
175
|
-
ownership_percentage: 25,
|
|
176
|
-
title: "CEO",
|
|
177
|
-
id: "ub_000000000000"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: "re_YuaMcI2B8zbQ",
|
|
95
|
+
type: "individual",
|
|
96
|
+
is_tos_accepted: true,
|
|
97
|
+
kyc_type: "enhanced",
|
|
98
|
+
kyc_status: "approved",
|
|
99
|
+
kyc_warnings: null,
|
|
100
|
+
email: "alice.johnson@example.com",
|
|
101
|
+
tax_id: "98765432100",
|
|
102
|
+
address_line_1: "123 Main St",
|
|
103
|
+
address_line_2: null,
|
|
104
|
+
city: "New York",
|
|
105
|
+
state_province_region: "NY",
|
|
106
|
+
country: "US",
|
|
107
|
+
postal_code: "10001",
|
|
108
|
+
ip_address: "192.168.1.1",
|
|
109
|
+
image_url: null,
|
|
110
|
+
phone_number: "+15555555555",
|
|
111
|
+
proof_of_address_doc_type: "BANK_STATEMENT",
|
|
112
|
+
proof_of_address_doc_file: "https://example.com/image.png",
|
|
113
|
+
first_name: "Alice",
|
|
114
|
+
last_name: "Johnson",
|
|
115
|
+
date_of_birth: "1990-05-10T00:00:00.000Z",
|
|
116
|
+
id_doc_country: "US",
|
|
117
|
+
id_doc_type: "PASSPORT",
|
|
118
|
+
id_doc_front_file: "https://example.com/image.png",
|
|
119
|
+
id_doc_back_file: null,
|
|
120
|
+
aiprise_validation_key: "enhanced-key",
|
|
121
|
+
instance_id: "in_000000000001",
|
|
122
|
+
source_of_funds_doc_type: "salary",
|
|
123
|
+
source_of_funds_doc_file: "https://example.com/image.png",
|
|
124
|
+
individual_holding_doc_front_file: "https://example.com/image.png",
|
|
125
|
+
purpose_of_transactions: "investment_purposes",
|
|
126
|
+
purpose_of_transactions_explanation: "Investing in stocks",
|
|
127
|
+
tos_id: "to_nppX66ntvtHs",
|
|
128
|
+
created_at: "2022-02-02T00:00:00.000Z",
|
|
129
|
+
updated_at: "2022-02-02T00:00:00.000Z",
|
|
130
|
+
limit: {
|
|
131
|
+
per_transaction: 5e4,
|
|
132
|
+
daily: 1e5,
|
|
133
|
+
monthly: 5e5
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: "re_IOxAUL24LG7P",
|
|
138
|
+
type: "business",
|
|
139
|
+
kyc_type: "standard",
|
|
140
|
+
is_tos_accepted: true,
|
|
141
|
+
is_fbo: false,
|
|
142
|
+
kyc_status: "pending",
|
|
143
|
+
kyc_warnings: null,
|
|
144
|
+
email: "business@example.com",
|
|
145
|
+
tax_id: "20096178000195",
|
|
146
|
+
address_line_1: "1 King St W",
|
|
147
|
+
address_line_2: "Suite 100",
|
|
148
|
+
city: "Toronto",
|
|
149
|
+
state_province_region: "ON",
|
|
150
|
+
country: "CA",
|
|
151
|
+
postal_code: "M5H 1A1",
|
|
152
|
+
ip_address: null,
|
|
153
|
+
image_url: null,
|
|
154
|
+
phone_number: "+14165555555",
|
|
155
|
+
proof_of_address_doc_type: "UTILITY_BILL",
|
|
156
|
+
proof_of_address_doc_file: "https://example.com/image.png",
|
|
157
|
+
legal_name: "Business Corp",
|
|
158
|
+
alternate_name: "BizCo",
|
|
159
|
+
formation_date: "2010-01-01T00:00:00.000Z",
|
|
160
|
+
website: "https://businesscorp.com",
|
|
161
|
+
owners: [
|
|
162
|
+
{
|
|
163
|
+
role: "beneficial_owner",
|
|
164
|
+
first_name: "Carlos",
|
|
165
|
+
last_name: "Silva",
|
|
166
|
+
date_of_birth: "1995-05-15T00:00:00.000Z",
|
|
167
|
+
tax_id: "12345678901",
|
|
168
|
+
address_line_1: "Rua Augusta, 1500",
|
|
169
|
+
address_line_2: null,
|
|
170
|
+
city: "S\xE3o Paulo",
|
|
171
|
+
state_province_region: "SP",
|
|
172
|
+
country: "BR",
|
|
173
|
+
postal_code: "01304-001",
|
|
174
|
+
id_doc_country: "BR",
|
|
175
|
+
id_doc_type: "PASSPORT",
|
|
176
|
+
id_doc_front_file: "https://example.com/image.png",
|
|
177
|
+
id_doc_back_file: "https://example.com/image.png",
|
|
178
|
+
proof_of_address_doc_type: "UTILITY_BILL",
|
|
179
|
+
proof_of_address_doc_file: "https://example.com/image.png",
|
|
180
|
+
ownership_percentage: 25,
|
|
181
|
+
title: "CEO",
|
|
182
|
+
id: "ub_000000000000"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
incorporation_doc_file: "https://example.com/image.png",
|
|
186
|
+
proof_of_ownership_doc_file: "https://example.com/image.png",
|
|
187
|
+
external_id: null,
|
|
188
|
+
instance_id: "in_000000000002",
|
|
189
|
+
tos_id: "to_nppX66ntvtHs",
|
|
190
|
+
aiprise_validation_key: "",
|
|
191
|
+
created_at: "2015-03-15T00:00:00.000Z",
|
|
192
|
+
updated_at: "2015-03-15T00:00:00.000Z",
|
|
193
|
+
limit: {
|
|
194
|
+
per_transaction: 2e5,
|
|
195
|
+
daily: 4e5,
|
|
196
|
+
monthly: 2e6
|
|
178
197
|
}
|
|
179
|
-
],
|
|
180
|
-
incorporation_doc_file: "https://example.com/image.png",
|
|
181
|
-
proof_of_ownership_doc_file: "https://example.com/image.png",
|
|
182
|
-
external_id: null,
|
|
183
|
-
instance_id: "in_000000000002",
|
|
184
|
-
tos_id: "to_nppX66ntvtHs",
|
|
185
|
-
aiprise_validation_key: "",
|
|
186
|
-
created_at: "2015-03-15T00:00:00.000Z",
|
|
187
|
-
updated_at: "2015-03-15T00:00:00.000Z",
|
|
188
|
-
limit: {
|
|
189
|
-
per_transaction: 2e5,
|
|
190
|
-
daily: 4e5,
|
|
191
|
-
monthly: 2e6
|
|
192
198
|
}
|
|
199
|
+
],
|
|
200
|
+
pagination: {
|
|
201
|
+
has_more: false,
|
|
202
|
+
next_page: "",
|
|
203
|
+
prev_page: ""
|
|
193
204
|
}
|
|
194
|
-
|
|
205
|
+
};
|
|
195
206
|
fetchMock.mockResponseOnce(JSON.stringify(mockedReceivers), {
|
|
196
207
|
headers: { "Content-Type": "application/json" }
|
|
197
208
|
});
|
|
@@ -329,6 +340,71 @@ var require_receivers_test = __commonJS({
|
|
|
329
340
|
}));
|
|
330
341
|
});
|
|
331
342
|
describe("Get receiver", () => {
|
|
343
|
+
it("should get a receiver with new fields", () => __async(null, null, function* () {
|
|
344
|
+
const mockedReceiver = {
|
|
345
|
+
id: "re_YuaMcI2B8zbQ",
|
|
346
|
+
is_tos_accepted: true,
|
|
347
|
+
type: "individual",
|
|
348
|
+
kyc_type: "standard",
|
|
349
|
+
kyc_status: "approved",
|
|
350
|
+
kyc_warnings: null,
|
|
351
|
+
email: "john@example.com",
|
|
352
|
+
tax_id: "12345678900",
|
|
353
|
+
address_line_1: "123 Main St",
|
|
354
|
+
city: "New York",
|
|
355
|
+
state_province_region: "NY",
|
|
356
|
+
country: "US",
|
|
357
|
+
postal_code: "10001",
|
|
358
|
+
ip_address: null,
|
|
359
|
+
image_url: null,
|
|
360
|
+
phone_number: "+15555555555",
|
|
361
|
+
proof_of_address_doc_type: "UTILITY_BILL",
|
|
362
|
+
proof_of_address_doc_file: "https://example.com/image.png",
|
|
363
|
+
first_name: "John",
|
|
364
|
+
last_name: "Doe",
|
|
365
|
+
date_of_birth: "1990-01-01T00:00:00.000Z",
|
|
366
|
+
id_doc_country: "US",
|
|
367
|
+
id_doc_type: "PASSPORT",
|
|
368
|
+
id_doc_front_file: "https://example.com/image.png",
|
|
369
|
+
id_doc_back_file: "https://example.com/image.png",
|
|
370
|
+
aiprise_validation_key: "",
|
|
371
|
+
instance_id: "in_000000000000",
|
|
372
|
+
tos_id: null,
|
|
373
|
+
created_at: "2021-01-01T00:00:00.000Z",
|
|
374
|
+
updated_at: "2021-01-01T00:00:00.000Z",
|
|
375
|
+
limit: {
|
|
376
|
+
per_transaction: 1e5,
|
|
377
|
+
daily: 2e5,
|
|
378
|
+
monthly: 1e6
|
|
379
|
+
},
|
|
380
|
+
fraud_warnings: [
|
|
381
|
+
{
|
|
382
|
+
id: "UC114",
|
|
383
|
+
name: "User never used a Datacenter proxy",
|
|
384
|
+
operation: "+",
|
|
385
|
+
score: 10
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
aml_status: "clear",
|
|
389
|
+
aml_hits: {
|
|
390
|
+
has_sanction_match: false,
|
|
391
|
+
has_pep_match: false,
|
|
392
|
+
has_watchlist_match: false,
|
|
393
|
+
has_crimelist_match: false,
|
|
394
|
+
has_adversemedia_match: false
|
|
395
|
+
},
|
|
396
|
+
account_purpose_other: null,
|
|
397
|
+
occupation: "Software Engineer",
|
|
398
|
+
external_id: "ext_123",
|
|
399
|
+
is_fbo: false
|
|
400
|
+
};
|
|
401
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedReceiver), {
|
|
402
|
+
headers: { "Content-Type": "application/json" }
|
|
403
|
+
});
|
|
404
|
+
const { data, error } = yield blindpay.receivers.get("re_YuaMcI2B8zbQ");
|
|
405
|
+
globalExpect(error).toBeNull();
|
|
406
|
+
globalExpect(data).toEqual(mockedReceiver);
|
|
407
|
+
}));
|
|
332
408
|
it("should get a receiver", () => __async(null, null, function* () {
|
|
333
409
|
const mockedReceiver = {
|
|
334
410
|
id: "re_YuaMcI2B8zbQ",
|
|
@@ -522,6 +598,33 @@ var require_receivers_test = __commonJS({
|
|
|
522
598
|
globalExpect(data).toEqual(mockedLimitIncreaseRequests);
|
|
523
599
|
}));
|
|
524
600
|
});
|
|
601
|
+
describe("Get limit increase requests with approved fields", () => {
|
|
602
|
+
it("should get limit increase requests with approved amounts", () => __async(null, null, function* () {
|
|
603
|
+
const mockedLimitIncreaseRequests = [
|
|
604
|
+
{
|
|
605
|
+
id: "rl_000000000000",
|
|
606
|
+
receiver_id: "re_YuaMcI2B8zbQ",
|
|
607
|
+
status: "approved",
|
|
608
|
+
daily: 5e4,
|
|
609
|
+
monthly: 25e4,
|
|
610
|
+
per_transaction: 25e3,
|
|
611
|
+
supporting_document_file: "https://example.com/bank-statement.pdf",
|
|
612
|
+
supporting_document_type: "individual_bank_statement",
|
|
613
|
+
created_at: "2025-01-15T10:30:00.000Z",
|
|
614
|
+
updated_at: "2025-01-15T10:30:00.000Z",
|
|
615
|
+
approved_per_transaction: 2e4,
|
|
616
|
+
approved_daily: 4e4,
|
|
617
|
+
approved_monthly: 2e5
|
|
618
|
+
}
|
|
619
|
+
];
|
|
620
|
+
fetchMock.mockResponseOnce(JSON.stringify(mockedLimitIncreaseRequests), {
|
|
621
|
+
headers: { "Content-Type": "application/json" }
|
|
622
|
+
});
|
|
623
|
+
const { data, error } = yield blindpay.receivers.getLimitIncreaseRequests("re_YuaMcI2B8zbQ");
|
|
624
|
+
globalExpect(error).toBeNull();
|
|
625
|
+
globalExpect(data).toEqual(mockedLimitIncreaseRequests);
|
|
626
|
+
}));
|
|
627
|
+
});
|
|
525
628
|
describe("Request limit increase", () => {
|
|
526
629
|
it("should request a limit increase for a receiver", () => __async(null, null, function* () {
|
|
527
630
|
const mockedResponse = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BlindpayApiResponse } from '../../index.d-yOiKSwHO.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-DV5jG52T.mjs';
|
|
2
3
|
|
|
3
4
|
type InitiateInput = {
|
|
4
5
|
idempotency_key: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BlindpayApiResponse } from '../../index.d-yOiKSwHO.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Cu0yYexQ.js';
|
|
2
3
|
|
|
3
4
|
type InitiateInput = {
|
|
4
5
|
idempotency_key: string;
|