@blindpay/node 2.0.0 → 2.0.2
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-URXUVGMC.mjs → chunk-AHAC4IDO.mjs} +6 -6
- package/dist/{chunk-MPJKYFDD.mjs → chunk-E6ALTWR5.mjs} +14 -4
- package/dist/index.js +13 -4
- package/dist/index.mjs +6 -6
- package/dist/resources/api-keys/api-keys.test.js +13 -4
- package/dist/resources/api-keys/api-keys.test.mjs +3 -3
- package/dist/resources/available/available.test.js +13 -4
- package/dist/resources/available/available.test.mjs +3 -3
- package/dist/resources/bank-accounts/bank-accounts.test.js +13 -4
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +3 -3
- package/dist/resources/instances/instances.test.js +13 -4
- package/dist/resources/instances/instances.test.mjs +3 -3
- package/dist/resources/partner-fees/partner-fees.test.js +13 -4
- package/dist/resources/partner-fees/partner-fees.test.mjs +3 -3
- package/dist/resources/payins/payins-quotes.test.js +13 -4
- package/dist/resources/payins/payins-quotes.test.mjs +3 -3
- package/dist/resources/payins/payins.test.js +13 -4
- package/dist/resources/payins/payins.test.mjs +3 -3
- package/dist/resources/payouts/payouts.test.js +13 -4
- package/dist/resources/payouts/payouts.test.mjs +3 -3
- package/dist/resources/quotes/quotes.test.js +13 -4
- package/dist/resources/quotes/quotes.test.mjs +3 -3
- package/dist/resources/receivers/index.d.mts +6 -9
- package/dist/resources/receivers/index.d.ts +6 -9
- package/dist/resources/receivers/index.js +24 -3
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +13 -10
- package/dist/resources/receivers/receivers.test.mjs +3 -9
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +13 -4
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +3 -3
- package/dist/resources/wallets/blockchain.test.js +13 -4
- package/dist/resources/wallets/blockchain.test.mjs +3 -3
- package/dist/resources/wallets/offramp.test.js +13 -4
- package/dist/resources/wallets/offramp.test.mjs +3 -3
- package/dist/resources/webhooks/webhooks.test.js +13 -4
- package/dist/resources/webhooks/webhooks.test.mjs +3 -3
- package/package.json +1 -1
|
@@ -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.2";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18994,13 +18994,22 @@ function createReceiversResource(instanceId, client) {
|
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
18996
|
createIndividualWithStandardKYC(data) {
|
|
18997
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
18998
19001
|
},
|
|
18999
19002
|
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19001
19007
|
},
|
|
19002
19008
|
createBusinessWithStandardKYB(data) {
|
|
19003
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
19004
19013
|
},
|
|
19005
19014
|
get(receiver_id) {
|
|
19006
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-AHAC4IDO.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
19
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
21
20
|
import "../../chunk-E7M4CJKR.mjs";
|
|
22
21
|
import "../../chunk-3QQCDR3E.mjs";
|
|
23
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-Cw2mNJeR.mjs';
|
|
2
2
|
|
|
3
3
|
type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
|
|
4
|
-
type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses";
|
|
5
|
-
type SourceOfFundsDocType = "business_income" | "gambling_proceeds" | "gifts" | "government_benefits" | "inheritance" | "investment_loans" | "pension_retirement" | "salary" | "sale_of_assets_real_estate" | "savings" | "esops" | "investment_proceeds";
|
|
4
|
+
type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_good_and_services" | "receive_payment_for_freelancing" | "receive_salary" | "other";
|
|
5
|
+
type SourceOfFundsDocType = "business_income" | "gambling_proceeds" | "gifts" | "government_benefits" | "inheritance" | "investment_loans" | "pension_retirement" | "salary" | "sale_of_assets_real_estate" | "savings" | "esops" | "investment_proceeds" | "someone_else_funds";
|
|
6
6
|
type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
|
|
7
7
|
type KycType = "light" | "standard" | "enhanced";
|
|
8
8
|
type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
|
|
@@ -160,8 +160,8 @@ type BusinessWithStandardKYB = {
|
|
|
160
160
|
monthly: number;
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
|
-
type ListReceiversResponse = Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
164
163
|
type CreateIndividualWithStandardKYCInput = {
|
|
164
|
+
externalId?: string;
|
|
165
165
|
address_line_1: string;
|
|
166
166
|
address_line_2?: string;
|
|
167
167
|
city: string;
|
|
@@ -172,7 +172,6 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
172
172
|
id_doc_country: Country;
|
|
173
173
|
id_doc_front_file: string;
|
|
174
174
|
id_doc_type: IdentificationDocument;
|
|
175
|
-
kyc_type: "standard";
|
|
176
175
|
last_name: string;
|
|
177
176
|
postal_code: string;
|
|
178
177
|
proof_of_address_doc_file: string;
|
|
@@ -180,12 +179,12 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
180
179
|
state_province_region: string;
|
|
181
180
|
tax_id: string;
|
|
182
181
|
tos_id: string;
|
|
183
|
-
type: "individual";
|
|
184
182
|
};
|
|
185
183
|
type CreateIndividualWithStandardKYCResponse = {
|
|
186
184
|
id: string;
|
|
187
185
|
};
|
|
188
186
|
type CreateIndividualWithEnhancedKYCInput = {
|
|
187
|
+
externalId?: string;
|
|
189
188
|
address_line_1: string;
|
|
190
189
|
address_line_2?: string;
|
|
191
190
|
city: string;
|
|
@@ -197,7 +196,6 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
197
196
|
id_doc_front_file: string;
|
|
198
197
|
id_doc_type: IdentificationDocument;
|
|
199
198
|
individual_holding_doc_front_file: string;
|
|
200
|
-
kyc_type: "enhanced";
|
|
201
199
|
last_name: string;
|
|
202
200
|
postal_code: string;
|
|
203
201
|
proof_of_address_doc_file: string;
|
|
@@ -208,12 +206,12 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
208
206
|
state_province_region: string;
|
|
209
207
|
tax_id: string;
|
|
210
208
|
tos_id: string;
|
|
211
|
-
type: "individual";
|
|
212
209
|
};
|
|
213
210
|
type CreateIndividualWithEnhancedKYCResponse = {
|
|
214
211
|
id: string;
|
|
215
212
|
};
|
|
216
213
|
type CreateBusinessWithStandardKYBInput = {
|
|
214
|
+
externalId?: string;
|
|
217
215
|
address_line_1: string;
|
|
218
216
|
address_line_2?: string;
|
|
219
217
|
alternate_name: string;
|
|
@@ -222,7 +220,6 @@ type CreateBusinessWithStandardKYBInput = {
|
|
|
222
220
|
email: string;
|
|
223
221
|
formation_date: string;
|
|
224
222
|
incorporation_doc_file: string;
|
|
225
|
-
kyc_type: "standard";
|
|
226
223
|
legal_name: string;
|
|
227
224
|
owners: Owner[];
|
|
228
225
|
postal_code: string;
|
|
@@ -232,12 +229,12 @@ type CreateBusinessWithStandardKYBInput = {
|
|
|
232
229
|
state_province_region: string;
|
|
233
230
|
tax_id: string;
|
|
234
231
|
tos_id: string;
|
|
235
|
-
type: "business";
|
|
236
232
|
website: string | null;
|
|
237
233
|
};
|
|
238
234
|
type CreateBusinessWithStandardKYBResponse = {
|
|
239
235
|
id: string;
|
|
240
236
|
};
|
|
237
|
+
type ListReceiversResponse = Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
241
238
|
type GetReceiverInput = string;
|
|
242
239
|
type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
|
|
243
240
|
type UpdateReceiverInput = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { I as InternalApiClient, B as BlindpayApiResponse, A as AccountClass, C as Country } from '../../api-client-Cw2mNJeR.js';
|
|
2
2
|
|
|
3
3
|
type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
|
|
4
|
-
type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses";
|
|
5
|
-
type SourceOfFundsDocType = "business_income" | "gambling_proceeds" | "gifts" | "government_benefits" | "inheritance" | "investment_loans" | "pension_retirement" | "salary" | "sale_of_assets_real_estate" | "savings" | "esops" | "investment_proceeds";
|
|
4
|
+
type PurposeOfTransactions = "business_transactions" | "charitable_donations" | "investment_purposes" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_good_and_services" | "receive_payment_for_freelancing" | "receive_salary" | "other";
|
|
5
|
+
type SourceOfFundsDocType = "business_income" | "gambling_proceeds" | "gifts" | "government_benefits" | "inheritance" | "investment_loans" | "pension_retirement" | "salary" | "sale_of_assets_real_estate" | "savings" | "esops" | "investment_proceeds" | "someone_else_funds";
|
|
6
6
|
type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
|
|
7
7
|
type KycType = "light" | "standard" | "enhanced";
|
|
8
8
|
type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
|
|
@@ -160,8 +160,8 @@ type BusinessWithStandardKYB = {
|
|
|
160
160
|
monthly: number;
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
|
-
type ListReceiversResponse = Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
164
163
|
type CreateIndividualWithStandardKYCInput = {
|
|
164
|
+
externalId?: string;
|
|
165
165
|
address_line_1: string;
|
|
166
166
|
address_line_2?: string;
|
|
167
167
|
city: string;
|
|
@@ -172,7 +172,6 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
172
172
|
id_doc_country: Country;
|
|
173
173
|
id_doc_front_file: string;
|
|
174
174
|
id_doc_type: IdentificationDocument;
|
|
175
|
-
kyc_type: "standard";
|
|
176
175
|
last_name: string;
|
|
177
176
|
postal_code: string;
|
|
178
177
|
proof_of_address_doc_file: string;
|
|
@@ -180,12 +179,12 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
180
179
|
state_province_region: string;
|
|
181
180
|
tax_id: string;
|
|
182
181
|
tos_id: string;
|
|
183
|
-
type: "individual";
|
|
184
182
|
};
|
|
185
183
|
type CreateIndividualWithStandardKYCResponse = {
|
|
186
184
|
id: string;
|
|
187
185
|
};
|
|
188
186
|
type CreateIndividualWithEnhancedKYCInput = {
|
|
187
|
+
externalId?: string;
|
|
189
188
|
address_line_1: string;
|
|
190
189
|
address_line_2?: string;
|
|
191
190
|
city: string;
|
|
@@ -197,7 +196,6 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
197
196
|
id_doc_front_file: string;
|
|
198
197
|
id_doc_type: IdentificationDocument;
|
|
199
198
|
individual_holding_doc_front_file: string;
|
|
200
|
-
kyc_type: "enhanced";
|
|
201
199
|
last_name: string;
|
|
202
200
|
postal_code: string;
|
|
203
201
|
proof_of_address_doc_file: string;
|
|
@@ -208,12 +206,12 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
208
206
|
state_province_region: string;
|
|
209
207
|
tax_id: string;
|
|
210
208
|
tos_id: string;
|
|
211
|
-
type: "individual";
|
|
212
209
|
};
|
|
213
210
|
type CreateIndividualWithEnhancedKYCResponse = {
|
|
214
211
|
id: string;
|
|
215
212
|
};
|
|
216
213
|
type CreateBusinessWithStandardKYBInput = {
|
|
214
|
+
externalId?: string;
|
|
217
215
|
address_line_1: string;
|
|
218
216
|
address_line_2?: string;
|
|
219
217
|
alternate_name: string;
|
|
@@ -222,7 +220,6 @@ type CreateBusinessWithStandardKYBInput = {
|
|
|
222
220
|
email: string;
|
|
223
221
|
formation_date: string;
|
|
224
222
|
incorporation_doc_file: string;
|
|
225
|
-
kyc_type: "standard";
|
|
226
223
|
legal_name: string;
|
|
227
224
|
owners: Owner[];
|
|
228
225
|
postal_code: string;
|
|
@@ -232,12 +229,12 @@ type CreateBusinessWithStandardKYBInput = {
|
|
|
232
229
|
state_province_region: string;
|
|
233
230
|
tax_id: string;
|
|
234
231
|
tos_id: string;
|
|
235
|
-
type: "business";
|
|
236
232
|
website: string | null;
|
|
237
233
|
};
|
|
238
234
|
type CreateBusinessWithStandardKYBResponse = {
|
|
239
235
|
id: string;
|
|
240
236
|
};
|
|
237
|
+
type ListReceiversResponse = Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
241
238
|
type GetReceiverInput = string;
|
|
242
239
|
type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
|
|
243
240
|
type UpdateReceiverInput = {
|
|
@@ -5,6 +5,18 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
8
20
|
var __objRest = (source, exclude) => {
|
|
9
21
|
var target = {};
|
|
10
22
|
for (var prop in source)
|
|
@@ -43,13 +55,22 @@ function createReceiversResource(instanceId, client) {
|
|
|
43
55
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
44
56
|
},
|
|
45
57
|
createIndividualWithStandardKYC(data) {
|
|
46
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
58
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
59
|
+
kyc_type: "standard",
|
|
60
|
+
type: "individual"
|
|
61
|
+
}, data));
|
|
47
62
|
},
|
|
48
63
|
createIndividualWithEnhancedKYC(data) {
|
|
49
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
64
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
65
|
+
kyc_type: "enhanced",
|
|
66
|
+
type: "individual"
|
|
67
|
+
}, data));
|
|
50
68
|
},
|
|
51
69
|
createBusinessWithStandardKYB(data) {
|
|
52
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
70
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
71
|
+
kyc_type: "standard",
|
|
72
|
+
type: "business"
|
|
73
|
+
}, data));
|
|
53
74
|
},
|
|
54
75
|
get(receiver_id) {
|
|
55
76
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -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.2";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18994,13 +18994,22 @@ function createReceiversResource(instanceId, client) {
|
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
18996
|
createIndividualWithStandardKYC(data) {
|
|
18997
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
18998
19001
|
},
|
|
18999
19002
|
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19001
19007
|
},
|
|
19002
19008
|
createBusinessWithStandardKYB(data) {
|
|
19003
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
19004
19013
|
},
|
|
19005
19014
|
get(receiver_id) {
|
|
19006
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -19488,8 +19497,6 @@ describe("Receivers", () => {
|
|
|
19488
19497
|
headers: { "Content-Type": "application/json" }
|
|
19489
19498
|
});
|
|
19490
19499
|
const { data, error } = yield blindpay.receivers.createIndividualWithStandardKYC({
|
|
19491
|
-
type: "individual",
|
|
19492
|
-
kyc_type: "standard",
|
|
19493
19500
|
email: "bernardo.simonassi@gmail.com",
|
|
19494
19501
|
tax_id: "12345678900",
|
|
19495
19502
|
address_line_1: "Av. Paulista, 1000",
|
|
@@ -19519,8 +19526,6 @@ describe("Receivers", () => {
|
|
|
19519
19526
|
headers: { "Content-Type": "application/json" }
|
|
19520
19527
|
});
|
|
19521
19528
|
const { data, error } = yield blindpay.receivers.createIndividualWithEnhancedKYC({
|
|
19522
|
-
type: "individual",
|
|
19523
|
-
kyc_type: "enhanced",
|
|
19524
19529
|
email: "bernardo.simonassi@gmail.com",
|
|
19525
19530
|
tax_id: "12345678900",
|
|
19526
19531
|
address_line_1: "Av. Paulista, 1000",
|
|
@@ -19554,8 +19559,6 @@ describe("Receivers", () => {
|
|
|
19554
19559
|
headers: { "Content-Type": "application/json" }
|
|
19555
19560
|
});
|
|
19556
19561
|
const { data, error } = yield blindpay.receivers.createBusinessWithStandardKYB({
|
|
19557
|
-
type: "business",
|
|
19558
|
-
kyc_type: "standard",
|
|
19559
19562
|
email: "contato@empresa.com.br",
|
|
19560
19563
|
tax_id: "20096178000195",
|
|
19561
19564
|
address_line_1: "Av. Brigadeiro Faria Lima, 400",
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-AHAC4IDO.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
19
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
21
20
|
import "../../chunk-E7M4CJKR.mjs";
|
|
22
21
|
import "../../chunk-3QQCDR3E.mjs";
|
|
23
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -204,8 +204,6 @@ var require_receivers_test = __commonJS({
|
|
|
204
204
|
headers: { "Content-Type": "application/json" }
|
|
205
205
|
});
|
|
206
206
|
const { data, error } = yield blindpay.receivers.createIndividualWithStandardKYC({
|
|
207
|
-
type: "individual",
|
|
208
|
-
kyc_type: "standard",
|
|
209
207
|
email: "bernardo.simonassi@gmail.com",
|
|
210
208
|
tax_id: "12345678900",
|
|
211
209
|
address_line_1: "Av. Paulista, 1000",
|
|
@@ -235,8 +233,6 @@ var require_receivers_test = __commonJS({
|
|
|
235
233
|
headers: { "Content-Type": "application/json" }
|
|
236
234
|
});
|
|
237
235
|
const { data, error } = yield blindpay.receivers.createIndividualWithEnhancedKYC({
|
|
238
|
-
type: "individual",
|
|
239
|
-
kyc_type: "enhanced",
|
|
240
236
|
email: "bernardo.simonassi@gmail.com",
|
|
241
237
|
tax_id: "12345678900",
|
|
242
238
|
address_line_1: "Av. Paulista, 1000",
|
|
@@ -270,8 +266,6 @@ var require_receivers_test = __commonJS({
|
|
|
270
266
|
headers: { "Content-Type": "application/json" }
|
|
271
267
|
});
|
|
272
268
|
const { data, error } = yield blindpay.receivers.createBusinessWithStandardKYB({
|
|
273
|
-
type: "business",
|
|
274
|
-
kyc_type: "standard",
|
|
275
269
|
email: "contato@empresa.com.br",
|
|
276
270
|
tax_id: "20096178000195",
|
|
277
271
|
address_line_1: "Av. Brigadeiro Faria Lima, 400",
|
|
@@ -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.2";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18994,13 +18994,22 @@ function createReceiversResource(instanceId, client) {
|
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
18996
|
createIndividualWithStandardKYC(data) {
|
|
18997
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
18998
19001
|
},
|
|
18999
19002
|
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19001
19007
|
},
|
|
19002
19008
|
createBusinessWithStandardKYB(data) {
|
|
19003
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
19004
19013
|
},
|
|
19005
19014
|
get(receiver_id) {
|
|
19006
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-AHAC4IDO.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
19
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
21
20
|
import "../../chunk-E7M4CJKR.mjs";
|
|
22
21
|
import "../../chunk-3QQCDR3E.mjs";
|
|
23
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -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.2";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18994,13 +18994,22 @@ function createReceiversResource(instanceId, client) {
|
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
18996
|
createIndividualWithStandardKYC(data) {
|
|
18997
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
18998
19001
|
},
|
|
18999
19002
|
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19001
19007
|
},
|
|
19002
19008
|
createBusinessWithStandardKYB(data) {
|
|
19003
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
19004
19013
|
},
|
|
19005
19014
|
get(receiver_id) {
|
|
19006
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-AHAC4IDO.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
19
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
21
20
|
import "../../chunk-E7M4CJKR.mjs";
|
|
22
21
|
import "../../chunk-3QQCDR3E.mjs";
|
|
23
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -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.2";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18994,13 +18994,22 @@ function createReceiversResource(instanceId, client) {
|
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
18996
|
createIndividualWithStandardKYC(data) {
|
|
18997
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
18998
19001
|
},
|
|
18999
19002
|
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19001
19007
|
},
|
|
19002
19008
|
createBusinessWithStandardKYB(data) {
|
|
19003
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
19004
19013
|
},
|
|
19005
19014
|
get(receiver_id) {
|
|
19006
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-AHAC4IDO.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
19
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
21
20
|
import "../../chunk-E7M4CJKR.mjs";
|
|
22
21
|
import "../../chunk-3QQCDR3E.mjs";
|
|
23
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
@@ -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.2";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18994,13 +18994,22 @@ function createReceiversResource(instanceId, client) {
|
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
18996
|
createIndividualWithStandardKYC(data) {
|
|
18997
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
18998
19001
|
},
|
|
18999
19002
|
createIndividualWithEnhancedKYC(data) {
|
|
19000
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19001
19007
|
},
|
|
19002
19008
|
createBusinessWithStandardKYB(data) {
|
|
19003
|
-
return client.post(`/instances/${instanceId}/receivers`,
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
19004
19013
|
},
|
|
19005
19014
|
get(receiver_id) {
|
|
19006
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-AHAC4IDO.mjs";
|
|
12
12
|
import "../../chunk-IZYPRCCV.mjs";
|
|
13
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
14
|
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-E6ALTWR5.mjs";
|
|
17
17
|
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
-
import "../../chunk-CPOSU35L.mjs";
|
|
19
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
21
20
|
import "../../chunk-E7M4CJKR.mjs";
|
|
22
21
|
import "../../chunk-3QQCDR3E.mjs";
|
|
23
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
24
|
+
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|