@blindpay/node 2.0.2 → 2.0.4
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/{chunk-AHAC4IDO.mjs → chunk-KJM53ZD6.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/resources/api-keys/api-keys.test.js +1 -1
- package/dist/resources/api-keys/api-keys.test.mjs +1 -1
- package/dist/resources/available/available.test.js +1 -1
- package/dist/resources/available/available.test.mjs +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +1 -1
- package/dist/resources/instances/instances.test.js +1 -1
- package/dist/resources/instances/instances.test.mjs +1 -1
- package/dist/resources/partner-fees/partner-fees.test.js +1 -1
- package/dist/resources/partner-fees/partner-fees.test.mjs +1 -1
- package/dist/resources/payins/payins-quotes.test.js +1 -1
- package/dist/resources/payins/payins-quotes.test.mjs +1 -1
- package/dist/resources/payins/payins.test.js +1 -1
- package/dist/resources/payins/payins.test.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +1 -1
- package/dist/resources/payouts/payouts.test.mjs +1 -1
- package/dist/resources/quotes/quotes.test.js +1 -1
- package/dist/resources/quotes/quotes.test.mjs +1 -1
- package/dist/resources/receivers/index.d.mts +10 -5
- package/dist/resources/receivers/index.d.ts +10 -5
- package/dist/resources/receivers/receivers.test.js +6 -1
- package/dist/resources/receivers/receivers.test.mjs +6 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +1 -1
- package/dist/resources/wallets/blockchain.test.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +1 -1
- package/dist/resources/wallets/offramp.test.mjs +1 -1
- package/dist/resources/webhooks/webhooks.test.js +1 -1
- package/dist/resources/webhooks/webhooks.test.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -18709,7 +18709,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18709
18709
|
var import_node_crypto = require("crypto");
|
|
18710
18710
|
|
|
18711
18711
|
// package.json
|
|
18712
|
-
var version = "2.0.
|
|
18712
|
+
var version = "2.0.4";
|
|
18713
18713
|
|
|
18714
18714
|
// src/internal/blindpay-error.ts
|
|
18715
18715
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -24,7 +24,7 @@ type Owner = {
|
|
|
24
24
|
id_doc_country: Country;
|
|
25
25
|
id_doc_type: IdentificationDocument;
|
|
26
26
|
id_doc_front_file: string;
|
|
27
|
-
id_doc_back_file: string;
|
|
27
|
+
id_doc_back_file: string | null;
|
|
28
28
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
29
29
|
proof_of_address_doc_file: string;
|
|
30
30
|
};
|
|
@@ -138,7 +138,7 @@ type BusinessWithStandardKYB = {
|
|
|
138
138
|
postal_code: string;
|
|
139
139
|
ip_address: string | null;
|
|
140
140
|
image_url: string | null;
|
|
141
|
-
phone_number: string;
|
|
141
|
+
phone_number: string | null;
|
|
142
142
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
143
143
|
proof_of_address_doc_file: string;
|
|
144
144
|
legal_name: string;
|
|
@@ -161,7 +161,7 @@ type BusinessWithStandardKYB = {
|
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
163
|
type CreateIndividualWithStandardKYCInput = {
|
|
164
|
-
|
|
164
|
+
external_id?: string;
|
|
165
165
|
address_line_1: string;
|
|
166
166
|
address_line_2?: string;
|
|
167
167
|
city: string;
|
|
@@ -169,9 +169,11 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
169
169
|
date_of_birth: string;
|
|
170
170
|
email: string;
|
|
171
171
|
first_name: string;
|
|
172
|
+
phone_number: string | null;
|
|
172
173
|
id_doc_country: Country;
|
|
173
174
|
id_doc_front_file: string;
|
|
174
175
|
id_doc_type: IdentificationDocument;
|
|
176
|
+
id_doc_back_file: string | null;
|
|
175
177
|
last_name: string;
|
|
176
178
|
postal_code: string;
|
|
177
179
|
proof_of_address_doc_file: string;
|
|
@@ -184,7 +186,7 @@ type CreateIndividualWithStandardKYCResponse = {
|
|
|
184
186
|
id: string;
|
|
185
187
|
};
|
|
186
188
|
type CreateIndividualWithEnhancedKYCInput = {
|
|
187
|
-
|
|
189
|
+
external_id?: string;
|
|
188
190
|
address_line_1: string;
|
|
189
191
|
address_line_2?: string;
|
|
190
192
|
city: string;
|
|
@@ -195,14 +197,17 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
195
197
|
id_doc_country: Country;
|
|
196
198
|
id_doc_front_file: string;
|
|
197
199
|
id_doc_type: IdentificationDocument;
|
|
200
|
+
id_doc_back_file: string | null;
|
|
198
201
|
individual_holding_doc_front_file: string;
|
|
199
202
|
last_name: string;
|
|
200
203
|
postal_code: string;
|
|
204
|
+
phone_number: string | null;
|
|
201
205
|
proof_of_address_doc_file: string;
|
|
202
206
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
203
207
|
purpose_of_transactions: PurposeOfTransactions;
|
|
204
208
|
source_of_funds_doc_file: string;
|
|
205
209
|
source_of_funds_doc_type: SourceOfFundsDocType;
|
|
210
|
+
purpose_of_transactions_explanation: string | null;
|
|
206
211
|
state_province_region: string;
|
|
207
212
|
tax_id: string;
|
|
208
213
|
tos_id: string;
|
|
@@ -211,7 +216,7 @@ type CreateIndividualWithEnhancedKYCResponse = {
|
|
|
211
216
|
id: string;
|
|
212
217
|
};
|
|
213
218
|
type CreateBusinessWithStandardKYBInput = {
|
|
214
|
-
|
|
219
|
+
external_id?: string;
|
|
215
220
|
address_line_1: string;
|
|
216
221
|
address_line_2?: string;
|
|
217
222
|
alternate_name: string;
|
|
@@ -24,7 +24,7 @@ type Owner = {
|
|
|
24
24
|
id_doc_country: Country;
|
|
25
25
|
id_doc_type: IdentificationDocument;
|
|
26
26
|
id_doc_front_file: string;
|
|
27
|
-
id_doc_back_file: string;
|
|
27
|
+
id_doc_back_file: string | null;
|
|
28
28
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
29
29
|
proof_of_address_doc_file: string;
|
|
30
30
|
};
|
|
@@ -138,7 +138,7 @@ type BusinessWithStandardKYB = {
|
|
|
138
138
|
postal_code: string;
|
|
139
139
|
ip_address: string | null;
|
|
140
140
|
image_url: string | null;
|
|
141
|
-
phone_number: string;
|
|
141
|
+
phone_number: string | null;
|
|
142
142
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
143
143
|
proof_of_address_doc_file: string;
|
|
144
144
|
legal_name: string;
|
|
@@ -161,7 +161,7 @@ type BusinessWithStandardKYB = {
|
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
163
|
type CreateIndividualWithStandardKYCInput = {
|
|
164
|
-
|
|
164
|
+
external_id?: string;
|
|
165
165
|
address_line_1: string;
|
|
166
166
|
address_line_2?: string;
|
|
167
167
|
city: string;
|
|
@@ -169,9 +169,11 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
169
169
|
date_of_birth: string;
|
|
170
170
|
email: string;
|
|
171
171
|
first_name: string;
|
|
172
|
+
phone_number: string | null;
|
|
172
173
|
id_doc_country: Country;
|
|
173
174
|
id_doc_front_file: string;
|
|
174
175
|
id_doc_type: IdentificationDocument;
|
|
176
|
+
id_doc_back_file: string | null;
|
|
175
177
|
last_name: string;
|
|
176
178
|
postal_code: string;
|
|
177
179
|
proof_of_address_doc_file: string;
|
|
@@ -184,7 +186,7 @@ type CreateIndividualWithStandardKYCResponse = {
|
|
|
184
186
|
id: string;
|
|
185
187
|
};
|
|
186
188
|
type CreateIndividualWithEnhancedKYCInput = {
|
|
187
|
-
|
|
189
|
+
external_id?: string;
|
|
188
190
|
address_line_1: string;
|
|
189
191
|
address_line_2?: string;
|
|
190
192
|
city: string;
|
|
@@ -195,14 +197,17 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
195
197
|
id_doc_country: Country;
|
|
196
198
|
id_doc_front_file: string;
|
|
197
199
|
id_doc_type: IdentificationDocument;
|
|
200
|
+
id_doc_back_file: string | null;
|
|
198
201
|
individual_holding_doc_front_file: string;
|
|
199
202
|
last_name: string;
|
|
200
203
|
postal_code: string;
|
|
204
|
+
phone_number: string | null;
|
|
201
205
|
proof_of_address_doc_file: string;
|
|
202
206
|
proof_of_address_doc_type: ProofOfAddressDocType;
|
|
203
207
|
purpose_of_transactions: PurposeOfTransactions;
|
|
204
208
|
source_of_funds_doc_file: string;
|
|
205
209
|
source_of_funds_doc_type: SourceOfFundsDocType;
|
|
210
|
+
purpose_of_transactions_explanation: string | null;
|
|
206
211
|
state_province_region: string;
|
|
207
212
|
tax_id: string;
|
|
208
213
|
tos_id: string;
|
|
@@ -211,7 +216,7 @@ type CreateIndividualWithEnhancedKYCResponse = {
|
|
|
211
216
|
id: string;
|
|
212
217
|
};
|
|
213
218
|
type CreateBusinessWithStandardKYBInput = {
|
|
214
|
-
|
|
219
|
+
external_id?: string;
|
|
215
220
|
address_line_1: string;
|
|
216
221
|
address_line_2?: string;
|
|
217
222
|
alternate_name: string;
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -19505,12 +19505,14 @@ describe("Receivers", () => {
|
|
|
19505
19505
|
state_province_region: "SP",
|
|
19506
19506
|
country: "BR",
|
|
19507
19507
|
postal_code: "01310-100",
|
|
19508
|
+
phone_number: "+5511987654321",
|
|
19508
19509
|
first_name: "Bernardo",
|
|
19509
19510
|
last_name: "Simonassi",
|
|
19510
19511
|
date_of_birth: "1998-02-02T00:00:00.000Z",
|
|
19511
19512
|
id_doc_country: "BR",
|
|
19512
19513
|
id_doc_type: "PASSPORT",
|
|
19513
19514
|
id_doc_front_file: "https://example.com/image.png",
|
|
19515
|
+
id_doc_back_file: "https://example.com/image.png",
|
|
19514
19516
|
proof_of_address_doc_type: "UTILITY_BILL",
|
|
19515
19517
|
proof_of_address_doc_file: "https://example.com/image.png",
|
|
19516
19518
|
tos_id: "to_tPiz4bM2nh5K"
|
|
@@ -19536,15 +19538,18 @@ describe("Receivers", () => {
|
|
|
19536
19538
|
postal_code: "01310-100",
|
|
19537
19539
|
first_name: "Bernardo",
|
|
19538
19540
|
last_name: "Simonassi",
|
|
19541
|
+
phone_number: "+5511987654321",
|
|
19539
19542
|
date_of_birth: "1998-02-02T00:00:00.000Z",
|
|
19540
19543
|
id_doc_country: "BR",
|
|
19541
19544
|
id_doc_type: "PASSPORT",
|
|
19542
19545
|
id_doc_front_file: "https://example.com/image.png",
|
|
19546
|
+
id_doc_back_file: "https://example.com/image.png",
|
|
19543
19547
|
proof_of_address_doc_type: "UTILITY_BILL",
|
|
19544
19548
|
proof_of_address_doc_file: "https://example.com/image.png",
|
|
19545
19549
|
individual_holding_doc_front_file: "https://example.com/image.png",
|
|
19546
19550
|
purpose_of_transactions: "personal_or_living_expenses",
|
|
19547
19551
|
source_of_funds_doc_type: "savings",
|
|
19552
|
+
purpose_of_transactions_explanation: "I am receiving salary payments from my employer",
|
|
19548
19553
|
source_of_funds_doc_file: "https://example.com/image.png",
|
|
19549
19554
|
tos_id: "to_3ZZhllJkvo5Z"
|
|
19550
19555
|
});
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-KJM53ZD6.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
@@ -212,12 +212,14 @@ var require_receivers_test = __commonJS({
|
|
|
212
212
|
state_province_region: "SP",
|
|
213
213
|
country: "BR",
|
|
214
214
|
postal_code: "01310-100",
|
|
215
|
+
phone_number: "+5511987654321",
|
|
215
216
|
first_name: "Bernardo",
|
|
216
217
|
last_name: "Simonassi",
|
|
217
218
|
date_of_birth: "1998-02-02T00:00:00.000Z",
|
|
218
219
|
id_doc_country: "BR",
|
|
219
220
|
id_doc_type: "PASSPORT",
|
|
220
221
|
id_doc_front_file: "https://example.com/image.png",
|
|
222
|
+
id_doc_back_file: "https://example.com/image.png",
|
|
221
223
|
proof_of_address_doc_type: "UTILITY_BILL",
|
|
222
224
|
proof_of_address_doc_file: "https://example.com/image.png",
|
|
223
225
|
tos_id: "to_tPiz4bM2nh5K"
|
|
@@ -243,15 +245,18 @@ var require_receivers_test = __commonJS({
|
|
|
243
245
|
postal_code: "01310-100",
|
|
244
246
|
first_name: "Bernardo",
|
|
245
247
|
last_name: "Simonassi",
|
|
248
|
+
phone_number: "+5511987654321",
|
|
246
249
|
date_of_birth: "1998-02-02T00:00:00.000Z",
|
|
247
250
|
id_doc_country: "BR",
|
|
248
251
|
id_doc_type: "PASSPORT",
|
|
249
252
|
id_doc_front_file: "https://example.com/image.png",
|
|
253
|
+
id_doc_back_file: "https://example.com/image.png",
|
|
250
254
|
proof_of_address_doc_type: "UTILITY_BILL",
|
|
251
255
|
proof_of_address_doc_file: "https://example.com/image.png",
|
|
252
256
|
individual_holding_doc_front_file: "https://example.com/image.png",
|
|
253
257
|
purpose_of_transactions: "personal_or_living_expenses",
|
|
254
258
|
source_of_funds_doc_type: "savings",
|
|
259
|
+
purpose_of_transactions_explanation: "I am receiving salary payments from my employer",
|
|
255
260
|
source_of_funds_doc_file: "https://example.com/image.png",
|
|
256
261
|
tos_id: "to_3ZZhllJkvo5Z"
|
|
257
262
|
});
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18714,7 +18714,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18714
18714
|
var import_node_crypto = require("crypto");
|
|
18715
18715
|
|
|
18716
18716
|
// package.json
|
|
18717
|
-
var version = "2.0.
|
|
18717
|
+
var version = "2.0.4";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|