@blindpay/node 1.2.0 → 2.0.1
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-E4S6NTNE.mjs → chunk-4CYRFSJ7.mjs} +2 -2
- package/dist/{chunk-BONN6PYB.mjs → chunk-E6ALTWR5.mjs} +21 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -6
- package/dist/index.mjs +2 -2
- package/dist/resources/api-keys/api-keys.test.js +20 -6
- package/dist/resources/api-keys/api-keys.test.mjs +2 -2
- package/dist/resources/available/available.test.js +20 -6
- package/dist/resources/available/available.test.mjs +2 -2
- package/dist/resources/bank-accounts/bank-accounts.test.js +20 -6
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +2 -2
- package/dist/resources/instances/instances.test.js +20 -6
- package/dist/resources/instances/instances.test.mjs +2 -2
- package/dist/resources/partner-fees/partner-fees.test.js +20 -6
- package/dist/resources/partner-fees/partner-fees.test.mjs +2 -2
- package/dist/resources/payins/payins-quotes.test.js +20 -6
- package/dist/resources/payins/payins-quotes.test.mjs +2 -2
- package/dist/resources/payins/payins.test.js +20 -6
- package/dist/resources/payins/payins.test.mjs +2 -2
- package/dist/resources/payouts/payouts.test.js +20 -6
- package/dist/resources/payouts/payouts.test.mjs +2 -2
- package/dist/resources/quotes/quotes.test.js +20 -6
- package/dist/resources/quotes/quotes.test.mjs +2 -2
- package/dist/resources/receivers/index.d.mts +163 -53
- package/dist/resources/receivers/index.d.ts +163 -53
- package/dist/resources/receivers/index.js +31 -5
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +284 -174
- package/dist/resources/receivers/receivers.test.mjs +266 -170
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +20 -6
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +2 -2
- package/dist/resources/wallets/blockchain.test.js +20 -6
- package/dist/resources/wallets/blockchain.test.mjs +2 -2
- package/dist/resources/wallets/offramp.test.js +20 -6
- package/dist/resources/wallets/offramp.test.mjs +2 -2
- package/dist/resources/webhooks/webhooks.test.js +20 -6
- package/dist/resources/webhooks/webhooks.test.mjs +2 -2
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
createReceiversResource,
|
|
19
19
|
init_receivers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-E6ALTWR5.mjs";
|
|
21
21
|
import {
|
|
22
22
|
createVirtualAccountsResource,
|
|
23
23
|
init_virtual_accounts
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
var version;
|
|
66
66
|
var init_package = __esm({
|
|
67
67
|
"package.json"() {
|
|
68
|
-
version = "
|
|
68
|
+
version = "2.0.1";
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__esm,
|
|
3
|
-
__objRest
|
|
3
|
+
__objRest,
|
|
4
|
+
__spreadValues
|
|
4
5
|
} from "./chunk-OBKEW4AQ.mjs";
|
|
5
6
|
|
|
6
7
|
// src/resources/receivers/index.ts
|
|
@@ -9,15 +10,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
9
10
|
list() {
|
|
10
11
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
11
12
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
createIndividualWithStandardKYC(data) {
|
|
14
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
15
|
+
kyc_type: "standard",
|
|
16
|
+
type: "individual"
|
|
17
|
+
}, data));
|
|
18
|
+
},
|
|
19
|
+
createIndividualWithEnhancedKYC(data) {
|
|
20
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
21
|
+
kyc_type: "enhanced",
|
|
22
|
+
type: "individual"
|
|
23
|
+
}, data));
|
|
24
|
+
},
|
|
25
|
+
createBusinessWithStandardKYB(data) {
|
|
26
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
27
|
+
kyc_type: "standard",
|
|
28
|
+
type: "business"
|
|
29
|
+
}, data));
|
|
15
30
|
},
|
|
16
31
|
get(receiver_id) {
|
|
17
32
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
18
33
|
},
|
|
19
|
-
update(
|
|
20
|
-
var
|
|
34
|
+
update(_a) {
|
|
35
|
+
var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
21
36
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
22
37
|
},
|
|
23
38
|
delete(receiver_id) {
|
package/dist/index.d.mts
CHANGED
|
@@ -17,7 +17,7 @@ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPay
|
|
|
17
17
|
import { createQuotesResource } from './resources/quotes/index.mjs';
|
|
18
18
|
export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
|
|
19
19
|
import { createReceiversResource } from './resources/receivers/index.mjs';
|
|
20
|
-
export {
|
|
20
|
+
export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.mjs';
|
|
21
21
|
import { createVirtualAccountsResource } from './resources/virtual-accounts/index.mjs';
|
|
22
22
|
export { CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.mjs';
|
|
23
23
|
import { createBlockchainWalletsResource } from './resources/wallets/blockchain.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPay
|
|
|
17
17
|
import { createQuotesResource } from './resources/quotes/index.js';
|
|
18
18
|
export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.js';
|
|
19
19
|
import { createReceiversResource } from './resources/receivers/index.js';
|
|
20
|
-
export {
|
|
20
|
+
export { BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, ListReceiversResponse, Owner, OwnerRole, ProofOfAddressDocType, PurposeOfTransactions, SourceOfFundsDocType, UpdateReceiverInput } from './resources/receivers/index.js';
|
|
21
21
|
import { createVirtualAccountsResource } from './resources/virtual-accounts/index.js';
|
|
22
22
|
export { CreateVirtualAccountInput, CreateVirtualAccountResponse, GetVirtualAccountInput, GetVirtualAccountResponse, UpdateVirtualAccountInput, VirtualAccount } from './resources/virtual-accounts/index.js';
|
|
23
23
|
import { createBlockchainWalletsResource } from './resources/wallets/blockchain.js';
|
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
91
91
|
var import_node_crypto = require("crypto");
|
|
92
92
|
|
|
93
93
|
// package.json
|
|
94
|
-
var version = "
|
|
94
|
+
var version = "2.0.1";
|
|
95
95
|
|
|
96
96
|
// src/internal/blindpay-error.ts
|
|
97
97
|
var BlindPayError = class extends Error {
|
|
@@ -370,15 +370,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
370
370
|
list() {
|
|
371
371
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
372
372
|
},
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
createIndividualWithStandardKYC(data) {
|
|
374
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
375
|
+
kyc_type: "standard",
|
|
376
|
+
type: "individual"
|
|
377
|
+
}, data));
|
|
378
|
+
},
|
|
379
|
+
createIndividualWithEnhancedKYC(data) {
|
|
380
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
381
|
+
kyc_type: "enhanced",
|
|
382
|
+
type: "individual"
|
|
383
|
+
}, data));
|
|
384
|
+
},
|
|
385
|
+
createBusinessWithStandardKYB(data) {
|
|
386
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
387
|
+
kyc_type: "standard",
|
|
388
|
+
type: "business"
|
|
389
|
+
}, data));
|
|
376
390
|
},
|
|
377
391
|
get(receiver_id) {
|
|
378
392
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
379
393
|
},
|
|
380
|
-
update(
|
|
381
|
-
var
|
|
394
|
+
update(_a) {
|
|
395
|
+
var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
382
396
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
383
397
|
},
|
|
384
398
|
delete(receiver_id) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlindPay,
|
|
3
3
|
init_client
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4CYRFSJ7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createBlockchainWalletsResource,
|
|
7
7
|
init_blockchain
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
createReceiversResource,
|
|
23
23
|
init_receivers
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-E6ALTWR5.mjs";
|
|
25
25
|
import {
|
|
26
26
|
createVirtualAccountsResource,
|
|
27
27
|
init_virtual_accounts
|
|
@@ -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 = "
|
|
18712
|
+
var version = "2.0.1";
|
|
18713
18713
|
|
|
18714
18714
|
// src/internal/blindpay-error.ts
|
|
18715
18715
|
var BlindPayError = class extends Error {
|
|
@@ -18988,15 +18988,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18988
18988
|
list() {
|
|
18989
18989
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18990
18990
|
},
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18991
|
+
createIndividualWithStandardKYC(data) {
|
|
18992
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18993
|
+
kyc_type: "standard",
|
|
18994
|
+
type: "individual"
|
|
18995
|
+
}, data));
|
|
18996
|
+
},
|
|
18997
|
+
createIndividualWithEnhancedKYC(data) {
|
|
18998
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18999
|
+
kyc_type: "enhanced",
|
|
19000
|
+
type: "individual"
|
|
19001
|
+
}, data));
|
|
19002
|
+
},
|
|
19003
|
+
createBusinessWithStandardKYB(data) {
|
|
19004
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19005
|
+
kyc_type: "standard",
|
|
19006
|
+
type: "business"
|
|
19007
|
+
}, data));
|
|
18994
19008
|
},
|
|
18995
19009
|
get(receiver_id) {
|
|
18996
19010
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
18997
19011
|
},
|
|
18998
|
-
update(
|
|
18999
|
-
var
|
|
19012
|
+
update(_a3) {
|
|
19013
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19000
19014
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19001
19015
|
},
|
|
19002
19016
|
delete(receiver_id) {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
BlindPay,
|
|
9
9
|
init_client
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-4CYRFSJ7.mjs";
|
|
11
11
|
import "../../chunk-IZYPRCCV.mjs";
|
|
12
12
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
13
13
|
import "../../chunk-UC57SCKQ.mjs";
|
|
14
14
|
import "../../chunk-TBTA7A2P.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-E6ALTWR5.mjs";
|
|
16
16
|
import "../../chunk-5XJJKYXE.mjs";
|
|
17
17
|
import "../../chunk-RC5NN5UF.mjs";
|
|
18
18
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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 = "
|
|
18717
|
+
var version = "2.0.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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 = "
|
|
18717
|
+
var version = "2.0.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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 = "
|
|
18717
|
+
var version = "2.0.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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 = "
|
|
18717
|
+
var version = "2.0.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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 = "
|
|
18717
|
+
var version = "2.0.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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 = "
|
|
18717
|
+
var version = "2.0.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|
|
@@ -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 = "
|
|
18717
|
+
var version = "2.0.1";
|
|
18718
18718
|
|
|
18719
18719
|
// src/internal/blindpay-error.ts
|
|
18720
18720
|
var BlindPayError = class extends Error {
|
|
@@ -18993,15 +18993,29 @@ function createReceiversResource(instanceId, client) {
|
|
|
18993
18993
|
list() {
|
|
18994
18994
|
return client.get(`/instances/${instanceId}/receivers`);
|
|
18995
18995
|
},
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18996
|
+
createIndividualWithStandardKYC(data) {
|
|
18997
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
18998
|
+
kyc_type: "standard",
|
|
18999
|
+
type: "individual"
|
|
19000
|
+
}, data));
|
|
19001
|
+
},
|
|
19002
|
+
createIndividualWithEnhancedKYC(data) {
|
|
19003
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19004
|
+
kyc_type: "enhanced",
|
|
19005
|
+
type: "individual"
|
|
19006
|
+
}, data));
|
|
19007
|
+
},
|
|
19008
|
+
createBusinessWithStandardKYB(data) {
|
|
19009
|
+
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
19010
|
+
kyc_type: "standard",
|
|
19011
|
+
type: "business"
|
|
19012
|
+
}, data));
|
|
18999
19013
|
},
|
|
19000
19014
|
get(receiver_id) {
|
|
19001
19015
|
return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
|
|
19002
19016
|
},
|
|
19003
|
-
update(
|
|
19004
|
-
var
|
|
19017
|
+
update(_a3) {
|
|
19018
|
+
var _b = _a3, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
19005
19019
|
return client.patch(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
19006
19020
|
},
|
|
19007
19021
|
delete(receiver_id) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-4CYRFSJ7.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
18
|
import "../../chunk-RC5NN5UF.mjs";
|
|
19
19
|
import "../../chunk-W7NJUABI.mjs";
|