@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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, k as PaginationMetadata } from '../../index.d-yOiKSwHO.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Cu0yYexQ.js';
|
|
2
3
|
|
|
3
4
|
type StrictOmit<T, K extends keyof T> = Omit<T, K>;
|
|
4
5
|
|
|
@@ -6,11 +7,27 @@ type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEME
|
|
|
6
7
|
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";
|
|
7
8
|
type AccountPurpose = "charitable_donations" | "ecommerce_retail_payments" | "investment_purposes" | "business_expenses" | "payments_to_friends_or_family_abroad" | "personal_or_living_expenses" | "protect_wealth" | "purchase_goods_and_services" | "receive_payments_for_goods_and_services" | "tax_optimization" | "third_party_money_transmission" | "other" | "payroll" | "treasury_management";
|
|
8
9
|
type BusinessType = "corporation" | "llc" | "partnership" | "sole_proprietorship" | "trust" | "non_profit";
|
|
9
|
-
type BusinessIndustry = "
|
|
10
|
+
type BusinessIndustry = "111998" | "112120" | "113310" | "115114" | "211120" | "212114" | "213112" | "221310" | "236115" | "236220" | "237310" | "238210" | "311421" | "312130" | "313110" | "315990" | "322220" | "325412" | "334111" | "334118" | "334210" | "336110" | "336111" | "336390" | "337121" | "339112" | "339910" | "339920" | "339930" | "423110" | "423430" | "423510" | "423690" | "423830" | "423840" | "423940" | "424210" | "424410" | "424480" | "424690" | "424990" | "444110" | "445110" | "445320" | "449210" | "454110" | "455110" | "455219" | "456110" | "457110" | "458110" | "458210" | "458310" | "459120" | "459210" | "481111" | "483111" | "484121" | "485210" | "488510" | "493110" | "511210" | "512250" | "513130" | "516120" | "517110" | "517111" | "517112" | "517410" | "518210" | "519130" | "522110" | "522210" | "522320" | "523110" | "523150" | "523920" | "523940" | "523999" | "524113" | "531110" | "531120" | "531130" | "531190" | "531210" | "531311" | "531312" | "531320" | "531390" | "532111" | "541110" | "541211" | "541214" | "541330" | "541430" | "541511" | "541512" | "541519" | "541611" | "541618" | "541715" | "541810" | "541922" | "541930" | "541940" | "541990" | "551112" | "561311" | "561422" | "561499" | "561510" | "561612" | "561730" | "561740" | "562111" | "562920" | "611110" | "611310" | "611410" | "611710" | "621111" | "621210" | "621399" | "621511" | "621910" | "622110" | "623110" | "623220" | "624410" | "711110" | "711211" | "711410" | "711510" | "712110" | "713110" | "713210" | "721110" | "722511" | "722513" | "811111" | "811210" | "812111" | "812112" | "812199" | "813110" | "813211" | "813219";
|
|
10
11
|
type EstimatedAnnualRevenue = "0_99999" | "100000_999999" | "1000000_9999999" | "10000000_49999999" | "50000000_249999999" | "2500000000_plus";
|
|
11
12
|
type SourceOfWealth = "business_dividends_or_profits" | "investments" | "asset_sales" | "client_investor_contributions" | "gambling" | "charitable_contributions" | "inheritance" | "affiliate_or_royalty_income";
|
|
12
13
|
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";
|
|
13
14
|
type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
|
|
15
|
+
type ReceiverKycStatus = "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
|
|
16
|
+
type AmlStatus = "clear" | "hit" | "error";
|
|
17
|
+
type AmlHits = {
|
|
18
|
+
has_sanction_match: boolean;
|
|
19
|
+
has_pep_match: boolean;
|
|
20
|
+
has_watchlist_match: boolean;
|
|
21
|
+
has_crimelist_match: boolean;
|
|
22
|
+
has_adversemedia_match: boolean;
|
|
23
|
+
};
|
|
24
|
+
type FraudWarning = {
|
|
25
|
+
id: string | null;
|
|
26
|
+
name: string | null;
|
|
27
|
+
operation: string | null;
|
|
28
|
+
score: number | null;
|
|
29
|
+
};
|
|
30
|
+
type OwnerTaxType = "SSN" | "ITIN";
|
|
14
31
|
type KycType = "light" | "standard" | "enhanced";
|
|
15
32
|
type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
|
|
16
33
|
type Owner = {
|
|
@@ -34,6 +51,9 @@ type Owner = {
|
|
|
34
51
|
proof_of_address_doc_file: string | null;
|
|
35
52
|
ownership_percentage: number | null;
|
|
36
53
|
title: string | null;
|
|
54
|
+
tax_type?: OwnerTaxType | null;
|
|
55
|
+
instance_id?: string;
|
|
56
|
+
receiver_id?: string;
|
|
37
57
|
};
|
|
38
58
|
type IndividualWithStandardKYC = {
|
|
39
59
|
id: string;
|
|
@@ -77,6 +97,22 @@ type IndividualWithStandardKYC = {
|
|
|
77
97
|
daily: number;
|
|
78
98
|
monthly: number;
|
|
79
99
|
};
|
|
100
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
101
|
+
aml_status?: AmlStatus | null;
|
|
102
|
+
aml_hits?: AmlHits | null;
|
|
103
|
+
account_purpose?: AccountPurpose | null;
|
|
104
|
+
account_purpose_other?: string | null;
|
|
105
|
+
occupation?: string | null;
|
|
106
|
+
external_id?: string | null;
|
|
107
|
+
is_fbo?: boolean | null;
|
|
108
|
+
selfie_file?: string | null;
|
|
109
|
+
source_of_funds_doc_type?: SourceOfFundsDocType | null;
|
|
110
|
+
source_of_funds_doc_file?: string | null;
|
|
111
|
+
business_description?: string | null;
|
|
112
|
+
business_industry?: BusinessIndustry | null;
|
|
113
|
+
estimated_annual_revenue?: EstimatedAnnualRevenue | null;
|
|
114
|
+
source_of_wealth?: SourceOfWealth | null;
|
|
115
|
+
publicly_traded?: boolean | null;
|
|
80
116
|
};
|
|
81
117
|
type IndividualWithEnhancedKYC = {
|
|
82
118
|
id: string;
|
|
@@ -125,6 +161,20 @@ type IndividualWithEnhancedKYC = {
|
|
|
125
161
|
daily: number;
|
|
126
162
|
monthly: number;
|
|
127
163
|
};
|
|
164
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
165
|
+
aml_status?: AmlStatus | null;
|
|
166
|
+
aml_hits?: AmlHits | null;
|
|
167
|
+
account_purpose?: AccountPurpose | null;
|
|
168
|
+
account_purpose_other?: string | null;
|
|
169
|
+
occupation?: string | null;
|
|
170
|
+
external_id?: string | null;
|
|
171
|
+
is_fbo?: boolean | null;
|
|
172
|
+
selfie_file?: string | null;
|
|
173
|
+
business_description?: string | null;
|
|
174
|
+
business_industry?: BusinessIndustry | null;
|
|
175
|
+
estimated_annual_revenue?: EstimatedAnnualRevenue | null;
|
|
176
|
+
source_of_wealth?: SourceOfWealth | null;
|
|
177
|
+
publicly_traded?: boolean | null;
|
|
128
178
|
};
|
|
129
179
|
type BusinessWithStandardKYB = {
|
|
130
180
|
id: string;
|
|
@@ -170,6 +220,19 @@ type BusinessWithStandardKYB = {
|
|
|
170
220
|
daily: number;
|
|
171
221
|
monthly: number;
|
|
172
222
|
};
|
|
223
|
+
fraud_warnings?: FraudWarning[] | null;
|
|
224
|
+
aml_status?: AmlStatus | null;
|
|
225
|
+
aml_hits?: AmlHits | null;
|
|
226
|
+
account_purpose?: AccountPurpose | null;
|
|
227
|
+
account_purpose_other?: string | null;
|
|
228
|
+
occupation?: string | null;
|
|
229
|
+
selfie_file?: string | null;
|
|
230
|
+
source_of_funds_doc_type?: SourceOfFundsDocType | null;
|
|
231
|
+
source_of_funds_doc_file?: string | null;
|
|
232
|
+
business_description?: string | null;
|
|
233
|
+
business_industry?: BusinessIndustry | null;
|
|
234
|
+
estimated_annual_revenue?: EstimatedAnnualRevenue | null;
|
|
235
|
+
source_of_wealth?: SourceOfWealth | null;
|
|
173
236
|
};
|
|
174
237
|
type CreateIndividualWithStandardKYCInput = {
|
|
175
238
|
country: Country;
|
|
@@ -199,6 +262,8 @@ type CreateIndividualWithStandardKYCInput = {
|
|
|
199
262
|
state_province_region?: string | null;
|
|
200
263
|
tax_id?: string | null;
|
|
201
264
|
tos_id?: string | null;
|
|
265
|
+
account_purpose_other?: string | null;
|
|
266
|
+
occupation?: string | null;
|
|
202
267
|
};
|
|
203
268
|
type CreateIndividualWithStandardKYCResponse = {
|
|
204
269
|
id: string;
|
|
@@ -233,6 +298,8 @@ type CreateIndividualWithEnhancedKYCInput = {
|
|
|
233
298
|
state_province_region?: string | null;
|
|
234
299
|
tax_id?: string | null;
|
|
235
300
|
tos_id?: string | null;
|
|
301
|
+
account_purpose_other?: string | null;
|
|
302
|
+
occupation?: string | null;
|
|
236
303
|
};
|
|
237
304
|
type CreateIndividualWithEnhancedKYCResponse = {
|
|
238
305
|
id: string;
|
|
@@ -269,11 +336,24 @@ type CreateBusinessWithStandardKYBInput = {
|
|
|
269
336
|
tax_id?: string | null;
|
|
270
337
|
tos_id?: string | null;
|
|
271
338
|
website?: string | null;
|
|
339
|
+
account_purpose_other?: string | null;
|
|
340
|
+
occupation?: string | null;
|
|
272
341
|
};
|
|
273
342
|
type CreateBusinessWithStandardKYBResponse = {
|
|
274
343
|
id: string;
|
|
275
344
|
};
|
|
276
|
-
type
|
|
345
|
+
type ListReceiversInput = PaginationParams & {
|
|
346
|
+
full_name?: string;
|
|
347
|
+
receiver_name?: string;
|
|
348
|
+
status?: string;
|
|
349
|
+
receiver_id?: string;
|
|
350
|
+
bank_account_id?: string;
|
|
351
|
+
country?: Country;
|
|
352
|
+
};
|
|
353
|
+
type ListReceiversResponse = {
|
|
354
|
+
data: Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
|
|
355
|
+
pagination: PaginationMetadata;
|
|
356
|
+
};
|
|
277
357
|
type GetReceiverInput = string;
|
|
278
358
|
type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
|
|
279
359
|
type UpdateReceiverInput = {
|
|
@@ -319,6 +399,8 @@ type UpdateReceiverInput = {
|
|
|
319
399
|
tax_id?: string;
|
|
320
400
|
tos_id?: string;
|
|
321
401
|
website?: string;
|
|
402
|
+
account_purpose_other?: string | null;
|
|
403
|
+
occupation?: string | null;
|
|
322
404
|
};
|
|
323
405
|
type DeleteReceiverInput = string;
|
|
324
406
|
type GetReceiverLimitsInput = string;
|
|
@@ -348,6 +430,9 @@ type GetLimitIncreaseRequestsResponse = Array<{
|
|
|
348
430
|
supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
|
|
349
431
|
created_at: string;
|
|
350
432
|
updated_at: string;
|
|
433
|
+
approved_per_transaction?: number | null;
|
|
434
|
+
approved_daily?: number | null;
|
|
435
|
+
approved_monthly?: number | null;
|
|
351
436
|
}>;
|
|
352
437
|
type RequestLimitIncreaseInput = {
|
|
353
438
|
receiver_id: string;
|
|
@@ -361,7 +446,7 @@ type RequestLimitIncreaseResponse = {
|
|
|
361
446
|
id: string;
|
|
362
447
|
};
|
|
363
448
|
declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
|
|
364
|
-
list(): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
449
|
+
list(params?: ListReceiversInput): Promise<BlindpayApiResponse<ListReceiversResponse>>;
|
|
365
450
|
createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
|
|
366
451
|
createIndividualWithEnhancedKYC(data: CreateIndividualWithEnhancedKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithEnhancedKYCResponse>>;
|
|
367
452
|
createBusinessWithStandardKYB(data: CreateBusinessWithStandardKYBInput): Promise<BlindpayApiResponse<CreateBusinessWithStandardKYBResponse>>;
|
|
@@ -373,4 +458,4 @@ declare function createReceiversResource(instanceId: string, client: InternalApi
|
|
|
373
458
|
requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
|
|
374
459
|
};
|
|
375
460
|
|
|
376
|
-
export { type AccountPurpose, type BusinessIndustry, type BusinessType, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type EstimatedAnnualRevenue, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversResponse, type Owner, type OwnerRole, type ProofOfAddressDocType, type PurposeOfTransactions, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type SourceOfWealth, type UpdateReceiverInput, createReceiversResource };
|
|
461
|
+
export { type AccountPurpose, type AmlHits, type AmlStatus, type BusinessIndustry, type BusinessType, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type EstimatedAnnualRevenue, type FraudWarning, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversInput, type ListReceiversResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type PurposeOfTransactions, type ReceiverKycStatus, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type SourceOfFundsDocType, type SourceOfWealth, type UpdateReceiverInput, createReceiversResource };
|
|
@@ -51,8 +51,9 @@ __export(receivers_exports, {
|
|
|
51
51
|
module.exports = __toCommonJS(receivers_exports);
|
|
52
52
|
function createReceiversResource(instanceId, client) {
|
|
53
53
|
return {
|
|
54
|
-
list() {
|
|
55
|
-
|
|
54
|
+
list(params) {
|
|
55
|
+
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
56
|
+
return client.get(`/instances/${instanceId}/receivers${queryParams}`);
|
|
56
57
|
},
|
|
57
58
|
createIndividualWithStandardKYC(data) {
|
|
58
59
|
return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
|
|
@@ -77,7 +78,7 @@ function createReceiversResource(instanceId, client) {
|
|
|
77
78
|
},
|
|
78
79
|
update(_a) {
|
|
79
80
|
var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
|
|
80
|
-
return client.
|
|
81
|
+
return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
|
|
81
82
|
},
|
|
82
83
|
delete(receiver_id) {
|
|
83
84
|
return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
|