mangopay4-nodejs-sdk 1.64.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/.github/workflows/node.js.yml +32 -0
- package/.github/workflows/npm-publish.yml +26 -0
- package/.jshintrc +16 -0
- package/CHANGELOG.md +946 -0
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/docs/BankAccounts.md +35 -0
- package/docs/BankingAliases.md +108 -0
- package/docs/CardPreAuthorizations.md +55 -0
- package/docs/CardRegistrations.md +55 -0
- package/docs/Cards.md +82 -0
- package/docs/Clients.md +142 -0
- package/docs/DisputeDocuments.md +53 -0
- package/docs/Disputes.md +292 -0
- package/docs/Events.md +23 -0
- package/docs/Hooks.md +68 -0
- package/docs/Idempotency.md +11 -0
- package/docs/KycDocuments.md +52 -0
- package/docs/Mandates.md +125 -0
- package/docs/OptionsHelper.md +32 -0
- package/docs/PayIns.md +72 -0
- package/docs/PayOuts.md +55 -0
- package/docs/README.md +131 -0
- package/docs/Refunds.md +25 -0
- package/docs/Reports.md +63 -0
- package/docs/Repudiations.md +25 -0
- package/docs/Responses.md +33 -0
- package/docs/Transfers.md +72 -0
- package/docs/UboDeclarations.md +70 -0
- package/docs/Users.md +322 -0
- package/docs/Wallets.md +70 -0
- package/docs/templates/class.mustache +11 -0
- package/docs/templates/file.mustache +53 -0
- package/docs/templates/function.mustache +33 -0
- package/docs/templates/index.mustache +26 -0
- package/docs/templates/overview.mustache +1 -0
- package/examples/createUsers.js +112 -0
- package/examples/createWallet.js +28 -0
- package/examples/failedRequest.js +20 -0
- package/examples/getBankAccounts.js +29 -0
- package/examples/getUserEmoney.js +16 -0
- package/examples/getUsers.js +32 -0
- package/examples/readResponseHeaders.js +42 -0
- package/index.js +1 -0
- package/lib/Model.js +58 -0
- package/lib/api.js +467 -0
- package/lib/apiMethods.js +270 -0
- package/lib/config.js +57 -0
- package/lib/log.js +9 -0
- package/lib/mangopay.js +8 -0
- package/lib/models/Address.js +32 -0
- package/lib/models/BankAccount.js +45 -0
- package/lib/models/BankAccountDetails.js +7 -0
- package/lib/models/BankAccountDetailsCA.js +12 -0
- package/lib/models/BankAccountDetailsGB.js +10 -0
- package/lib/models/BankAccountDetailsIBAN.js +10 -0
- package/lib/models/BankAccountDetailsOTHER.js +16 -0
- package/lib/models/BankAccountDetailsUS.js +14 -0
- package/lib/models/BankAccountType.js +8 -0
- package/lib/models/BankingAlias.js +37 -0
- package/lib/models/BankingAliasIBAN.js +27 -0
- package/lib/models/Billing.js +14 -0
- package/lib/models/BinData.js +16 -0
- package/lib/models/Birthplace.js +10 -0
- package/lib/models/BrowserInfo.js +15 -0
- package/lib/models/Card.js +19 -0
- package/lib/models/CardInfo.js +32 -0
- package/lib/models/CardPreAuthorization.js +144 -0
- package/lib/models/CardRegistration.js +29 -0
- package/lib/models/CardValidation.js +19 -0
- package/lib/models/CategorizeUserLegal.js +15 -0
- package/lib/models/CategorizeUserNatural.js +18 -0
- package/lib/models/Check.js +13 -0
- package/lib/models/CheckData.js +8 -0
- package/lib/models/Client.js +62 -0
- package/lib/models/ClientWallet.js +28 -0
- package/lib/models/Conversion.js +19 -0
- package/lib/models/ConversionRate.js +10 -0
- package/lib/models/CountryAuthorization.js +12 -0
- package/lib/models/DebitedBankAccount.js +15 -0
- package/lib/models/DeclaredUbo.js +29 -0
- package/lib/models/DeclaredUboStatus.js +17 -0
- package/lib/models/Deposit.js +29 -0
- package/lib/models/Dispute.js +46 -0
- package/lib/models/DisputeDocument.js +10 -0
- package/lib/models/DisputeDocumentPage.js +12 -0
- package/lib/models/DisputeReason.js +11 -0
- package/lib/models/Document.js +12 -0
- package/lib/models/DocumentPageConsult.js +17 -0
- package/lib/models/EMoney.js +30 -0
- package/lib/models/EntityBase.js +70 -0
- package/lib/models/Hook.js +19 -0
- package/lib/models/IdempotencyResponse.js +11 -0
- package/lib/models/IdentityVerification.js +12 -0
- package/lib/models/KycDocument.js +11 -0
- package/lib/models/KycDocumentStatus.js +7 -0
- package/lib/models/KycDocumentType.js +7 -0
- package/lib/models/KycPage.js +12 -0
- package/lib/models/LegalPersonType.js +7 -0
- package/lib/models/LegalRepresentative.js +16 -0
- package/lib/models/Mandate.js +69 -0
- package/lib/models/MandateStatus.js +7 -0
- package/lib/models/Money.js +16 -0
- package/lib/models/PayByBankSupportedBank.js +7 -0
- package/lib/models/PayIn.js +36 -0
- package/lib/models/PayInExecutionDetails.js +7 -0
- package/lib/models/PayInExecutionDetailsBankingAlias.js +19 -0
- package/lib/models/PayInExecutionDetailsDirect.js +29 -0
- package/lib/models/PayInExecutionDetailsWeb.js +40 -0
- package/lib/models/PayInExecutionType.js +5 -0
- package/lib/models/PayInIntent.js +20 -0
- package/lib/models/PayInIntentSplit.js +14 -0
- package/lib/models/PayInIntentSplits.js +7 -0
- package/lib/models/PayInPaymentDetails.js +7 -0
- package/lib/models/PayInPaymentDetailsApplePay.js +19 -0
- package/lib/models/PayInPaymentDetailsBancontact.js +13 -0
- package/lib/models/PayInPaymentDetailsBankWire.js +23 -0
- package/lib/models/PayInPaymentDetailsBankingAlias.js +18 -0
- package/lib/models/PayInPaymentDetailsBizum.js +23 -0
- package/lib/models/PayInPaymentDetailsBlik.js +17 -0
- package/lib/models/PayInPaymentDetailsCard.js +10 -0
- package/lib/models/PayInPaymentDetailsCardDirect.js +14 -0
- package/lib/models/PayInPaymentDetailsCardWeb.js +28 -0
- package/lib/models/PayInPaymentDetailsDirectDebitDirect.js +22 -0
- package/lib/models/PayInPaymentDetailsDirectDebitWeb.js +13 -0
- package/lib/models/PayInPaymentDetailsGiropay.js +15 -0
- package/lib/models/PayInPaymentDetailsGooglePay.js +35 -0
- package/lib/models/PayInPaymentDetailsIdeal.js +25 -0
- package/lib/models/PayInPaymentDetailsKlarna.js +36 -0
- package/lib/models/PayInPaymentDetailsMbway.js +20 -0
- package/lib/models/PayInPaymentDetailsMultibanco.js +14 -0
- package/lib/models/PayInPaymentDetailsPayByBank.js +71 -0
- package/lib/models/PayInPaymentDetailsPayPal.js +63 -0
- package/lib/models/PayInPaymentDetailsPayconiq.js +23 -0
- package/lib/models/PayInPaymentDetailsPreAuthorized.js +10 -0
- package/lib/models/PayInPaymentDetailsSatispay.js +19 -0
- package/lib/models/PayInPaymentDetailsSwish.js +35 -0
- package/lib/models/PayInPaymentDetailsTwint.js +15 -0
- package/lib/models/PayInPaymentType.js +21 -0
- package/lib/models/PayInRecurringRegistration.js +64 -0
- package/lib/models/PayInTemplateURLOptions.js +10 -0
- package/lib/models/PayOut.js +24 -0
- package/lib/models/PayOutPaymentDetails.js +7 -0
- package/lib/models/PayOutPaymentDetailsBankWire.js +32 -0
- package/lib/models/PayOutPaymentType.js +3 -0
- package/lib/models/PaymentData.js +20 -0
- package/lib/models/PaymentMethodMetadata.js +38 -0
- package/lib/models/PayoutMethods.js +7 -0
- package/lib/models/PendingUserAction.js +16 -0
- package/lib/models/PersonType.js +5 -0
- package/lib/models/PlatformCategorization.js +16 -0
- package/lib/models/PlatformType.js +10 -0
- package/lib/models/Quote.js +11 -0
- package/lib/models/Recipient.js +20 -0
- package/lib/models/RecipientSchema.js +17 -0
- package/lib/models/RecurringPayIn.js +10 -0
- package/lib/models/RecurringPayInCIT.js +32 -0
- package/lib/models/RecurringPayInCurrentState.js +24 -0
- package/lib/models/RecurringPayInMIT.js +27 -0
- package/lib/models/RecurringPayInPut.js +24 -0
- package/lib/models/Refund.js +26 -0
- package/lib/models/RefundReasonDetails.js +10 -0
- package/lib/models/Report.js +54 -0
- package/lib/models/ReportFilter.js +52 -0
- package/lib/models/ReportFilterV2.js +11 -0
- package/lib/models/ReportV2.js +28 -0
- package/lib/models/Repudiation.js +51 -0
- package/lib/models/SecurityInfo.js +12 -0
- package/lib/models/Settlement.js +16 -0
- package/lib/models/SettlementTransfer.js +37 -0
- package/lib/models/Shipping.js +14 -0
- package/lib/models/ShippingAddress.js +25 -0
- package/lib/models/ShippingPreference.js +5 -0
- package/lib/models/Transaction.js +50 -0
- package/lib/models/Transfer.js +13 -0
- package/lib/models/Ubo.js +19 -0
- package/lib/models/UboDeclaration.js +42 -0
- package/lib/models/UboDeclarationRefusedReasonType.js +23 -0
- package/lib/models/UboDeclarationStatus.js +26 -0
- package/lib/models/UboRefusedReasonType.js +14 -0
- package/lib/models/User.js +66 -0
- package/lib/models/UserCategory.js +5 -0
- package/lib/models/UserConsent.js +7 -0
- package/lib/models/UserDataFormatValidation.js +7 -0
- package/lib/models/UserEnrollmentResult.js +7 -0
- package/lib/models/UserLegal.js +65 -0
- package/lib/models/UserLegalOwner.js +66 -0
- package/lib/models/UserLegalPayer.js +66 -0
- package/lib/models/UserLegalSca.js +57 -0
- package/lib/models/UserNatural.js +51 -0
- package/lib/models/UserNaturalCapacity.js +13 -0
- package/lib/models/UserNaturalOwner.js +55 -0
- package/lib/models/UserNaturalPayer.js +55 -0
- package/lib/models/UserNaturalPut.js +49 -0
- package/lib/models/UserNaturalSca.js +56 -0
- package/lib/models/VirtualAccount.js +22 -0
- package/lib/models/Wallet.js +32 -0
- package/lib/models/index.js +102 -0
- package/lib/service.js +14 -0
- package/lib/services/BankAccounts.js +31 -0
- package/lib/services/BankingAliases.js +137 -0
- package/lib/services/CardPreAuthorizations.js +75 -0
- package/lib/services/CardRegistrations.js +64 -0
- package/lib/services/Cards.js +168 -0
- package/lib/services/Clients.js +196 -0
- package/lib/services/Conversions.js +155 -0
- package/lib/services/Deposits.js +109 -0
- package/lib/services/DisputeDocuments.js +65 -0
- package/lib/services/Disputes.js +409 -0
- package/lib/services/Events.js +24 -0
- package/lib/services/Hooks.js +81 -0
- package/lib/services/Idempotency.js +17 -0
- package/lib/services/IdentityVerifications.js +48 -0
- package/lib/services/KycDocuments.js +66 -0
- package/lib/services/Mandates.js +161 -0
- package/lib/services/OptionsHelper.js +20 -0
- package/lib/services/PayIns.js +690 -0
- package/lib/services/PayOuts.js +110 -0
- package/lib/services/Recipients.js +117 -0
- package/lib/services/Refunds.js +29 -0
- package/lib/services/Regulatory.js +29 -0
- package/lib/services/Reports.js +61 -0
- package/lib/services/ReportsV2.js +55 -0
- package/lib/services/Repudiations.js +33 -0
- package/lib/services/Responses.js +23 -0
- package/lib/services/Settlements.js +74 -0
- package/lib/services/Transfers.js +87 -0
- package/lib/services/UboDeclarations.js +135 -0
- package/lib/services/Users.js +831 -0
- package/lib/services/VirtualAccounts.js +99 -0
- package/lib/services/Wallets.js +85 -0
- package/lib/services/index.js +34 -0
- package/lib/utils.js +36 -0
- package/package.json +40 -0
- package/test/TestKycPageFile.png +0 -0
- package/test/helpers.js +1431 -0
- package/test/main.js +10 -0
- package/test/mocha.opts +3 -0
- package/test/services/BankAccounts.js +46 -0
- package/test/services/BankingAliases.js +89 -0
- package/test/services/CardPreAuthorizations.js +70 -0
- package/test/services/CardRegistrations.js +239 -0
- package/test/services/Cards.js +54 -0
- package/test/services/Clients.js +235 -0
- package/test/services/Conversions.js +308 -0
- package/test/services/Deposits.js +148 -0
- package/test/services/Disputes.js +542 -0
- package/test/services/EMoney.js +54 -0
- package/test/services/Events.js +143 -0
- package/test/services/Hooks.js +109 -0
- package/test/services/Idempotency.js +46 -0
- package/test/services/IdentityVerifications.js +68 -0
- package/test/services/KycDocuments.js +73 -0
- package/test/services/Mandates.js +256 -0
- package/test/services/PayIns.js +2553 -0
- package/test/services/PayOuts.js +106 -0
- package/test/services/RateLimit.js +48 -0
- package/test/services/Recipients.js +234 -0
- package/test/services/Refunds.js +123 -0
- package/test/services/Regulatory.js +45 -0
- package/test/services/Reports.js +114 -0
- package/test/services/ReportsV2.js +306 -0
- package/test/services/Repudiations.js +22 -0
- package/test/services/Settlements.js +58 -0
- package/test/services/Tokens.js +55 -0
- package/test/services/Transfers.js +137 -0
- package/test/services/UboDeclarations.js +135 -0
- package/test/services/Users.js +1303 -0
- package/test/services/VirtualAccounts.js +105 -0
- package/test/services/Wallets.js +132 -0
- package/test/settlement_sample.csv +8 -0
- package/typings/base.d.ts +308 -0
- package/typings/enums.d.ts +204 -0
- package/typings/index.d.ts +885 -0
- package/typings/index.test-d.ts +1535 -0
- package/typings/models/address.d.ts +70 -0
- package/typings/models/bankAccount.d.ts +235 -0
- package/typings/models/bankingAlias.d.ts +97 -0
- package/typings/models/billing.d.ts +42 -0
- package/typings/models/birthplace.d.ts +9 -0
- package/typings/models/card.d.ts +119 -0
- package/typings/models/cardPreauthorization.d.ts +157 -0
- package/typings/models/cardRegistration.d.ts +83 -0
- package/typings/models/cardValidation.d.ts +125 -0
- package/typings/models/client.d.ts +208 -0
- package/typings/models/conversion.d.ts +225 -0
- package/typings/models/conversionRate.d.ts +29 -0
- package/typings/models/countryAuthorization.d.ts +16 -0
- package/typings/models/deposit.d.ts +104 -0
- package/typings/models/dispute.d.ts +116 -0
- package/typings/models/disputeDocument.d.ts +119 -0
- package/typings/models/entityBase.d.ts +9 -0
- package/typings/models/event.d.ts +142 -0
- package/typings/models/hook.d.ts +39 -0
- package/typings/models/idempotency.d.ts +36 -0
- package/typings/models/identityVerification.d.ts +98 -0
- package/typings/models/kycDocument.d.ts +114 -0
- package/typings/models/mandate.d.ts +93 -0
- package/typings/models/money.d.ts +45 -0
- package/typings/models/payIn.d.ts +3742 -0
- package/typings/models/payOut.d.ts +144 -0
- package/typings/models/recipient.d.ts +242 -0
- package/typings/models/refund.d.ts +92 -0
- package/typings/models/report.d.ts +234 -0
- package/typings/models/reportV2.d.ts +145 -0
- package/typings/models/repudiation.d.ts +26 -0
- package/typings/models/securityInfo.d.ts +12 -0
- package/typings/models/settlement.d.ts +50 -0
- package/typings/models/settlementTransfer.d.ts +37 -0
- package/typings/models/shipping.d.ts +37 -0
- package/typings/models/shippingAddress.d.ts +15 -0
- package/typings/models/transaction.d.ts +85 -0
- package/typings/models/transfer.d.ts +119 -0
- package/typings/models/uboDeclaration.d.ts +100 -0
- package/typings/models/user.d.ts +1001 -0
- package/typings/models/virtualAccount.d.ts +182 -0
- package/typings/models/wallet.d.ts +46 -0
- package/typings/models.d.ts +74 -0
- package/typings/services/BankAccounts.d.ts +12 -0
- package/typings/services/BankingAliases.d.ts +51 -0
- package/typings/services/CardPreauthorizations.d.ts +44 -0
- package/typings/services/CardRegistrations.d.ts +43 -0
- package/typings/services/Cards.d.ts +80 -0
- package/typings/services/Clients.d.ts +77 -0
- package/typings/services/Conversions.d.ts +23 -0
- package/typings/services/Deposits.d.ts +20 -0
- package/typings/services/DisputeDocuments.d.ts +27 -0
- package/typings/services/Disputes.d.ts +169 -0
- package/typings/services/Events.d.ts +11 -0
- package/typings/services/Hooks.d.ts +33 -0
- package/typings/services/Idempotency.d.ts +7 -0
- package/typings/services/IdentityVerifications.d.ts +29 -0
- package/typings/services/KycDocuments.d.ts +38 -0
- package/typings/services/Mandates.d.ts +59 -0
- package/typings/services/OptionsHelper.d.ts +11 -0
- package/typings/services/PayIns.d.ts +319 -0
- package/typings/services/PayOuts.d.ts +34 -0
- package/typings/services/Recipients.d.ts +55 -0
- package/typings/services/Refunds.d.ts +12 -0
- package/typings/services/Regulatory.d.ts +17 -0
- package/typings/services/Reports.d.ts +26 -0
- package/typings/services/ReportsV2.d.ts +26 -0
- package/typings/services/Repudiations.d.ts +12 -0
- package/typings/services/Responses.d.ts +10 -0
- package/typings/services/Settlements.d.ts +28 -0
- package/typings/services/Transfers.d.ts +38 -0
- package/typings/services/UboDeclarations.d.ts +81 -0
- package/typings/services/Users.d.ts +308 -0
- package/typings/services/VirtualAccounts.d.ts +42 -0
- package/typings/services/Wallets.d.ts +36 -0
- package/typings/tsconfig.json +20 -0
- package/typings/tslint.json +11 -0
- package/typings/types.d.ts +652 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { payOut } from "../models/payOut";
|
|
2
|
+
import { refund } from "../models/refund";
|
|
3
|
+
import { base } from "../base";
|
|
4
|
+
import MethodOverload = base.MethodOverload;
|
|
5
|
+
|
|
6
|
+
export class PayOuts {
|
|
7
|
+
/**
|
|
8
|
+
* Create new pay-out
|
|
9
|
+
* @param payOut
|
|
10
|
+
* @param options
|
|
11
|
+
*/
|
|
12
|
+
create: MethodOverload<payOut.CreatePayOut, payOut.PayOutData>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get payout
|
|
16
|
+
* @param payOutId
|
|
17
|
+
* @param options
|
|
18
|
+
*/
|
|
19
|
+
get: MethodOverload<string, payOut.PayOutData>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Gets list of Refunds of a PayOut
|
|
23
|
+
* @param payOutId
|
|
24
|
+
* @param options
|
|
25
|
+
*/
|
|
26
|
+
getRefunds: MethodOverload<string, refund.RefundData[]>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Check Instant PayOut Eligibility
|
|
30
|
+
* @param payOut
|
|
31
|
+
* @param options
|
|
32
|
+
*/
|
|
33
|
+
checkEligibility: MethodOverload<payOut.CheckPayOutEligibility, payOut.CheckPayOutEligibilityData>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { base } from "../base";
|
|
2
|
+
import { recipient } from "../models/recipient";
|
|
3
|
+
import MethodOverload = base.MethodOverload;
|
|
4
|
+
import TwoArgsMethodOverload = base.TwoArgsMethodOverload;
|
|
5
|
+
import FourArgsMethodOverload = base.FourArgsMethodOverload;
|
|
6
|
+
|
|
7
|
+
export class Recipients {
|
|
8
|
+
/**
|
|
9
|
+
* Create a Recipient
|
|
10
|
+
* @param recipient
|
|
11
|
+
* @param userId
|
|
12
|
+
*/
|
|
13
|
+
create: TwoArgsMethodOverload<recipient.CreateRecipientData, string, recipient.RecipientData>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Get a Recipient
|
|
17
|
+
* @param recipientId
|
|
18
|
+
*/
|
|
19
|
+
get: MethodOverload<string, recipient.RecipientData>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Get all Recipients for a user
|
|
23
|
+
* @param userId
|
|
24
|
+
*/
|
|
25
|
+
getUserRecipients: MethodOverload<string, recipient.RecipientData[]>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Get a Recipient schema
|
|
29
|
+
* @param payoutMethodType
|
|
30
|
+
* @param recipientType
|
|
31
|
+
* @param currency
|
|
32
|
+
* @param country
|
|
33
|
+
*/
|
|
34
|
+
getSchema: FourArgsMethodOverload<string, string, string, string, recipient.RecipientSchemaData>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get a Payment Methods
|
|
38
|
+
* @param country
|
|
39
|
+
* @param currency
|
|
40
|
+
*/
|
|
41
|
+
getPayoutMethods: TwoArgsMethodOverload<string, string, recipient.PayoutMethodData>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Validates a Recipient
|
|
45
|
+
* @param recipient
|
|
46
|
+
* @param userId
|
|
47
|
+
*/
|
|
48
|
+
validate: TwoArgsMethodOverload<recipient.CreateRecipientData, string, void>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Deactivates a Recipient
|
|
52
|
+
* @param recipientId
|
|
53
|
+
*/
|
|
54
|
+
deactivate: MethodOverload<string, recipient.RecipientData>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { refund } from "../models/refund";
|
|
2
|
+
import { base } from "../base";
|
|
3
|
+
import MethodOverload = base.MethodOverload;
|
|
4
|
+
|
|
5
|
+
export class Refunds {
|
|
6
|
+
/**
|
|
7
|
+
* Get events
|
|
8
|
+
* @param refundId
|
|
9
|
+
* @param options
|
|
10
|
+
*/
|
|
11
|
+
get: MethodOverload<string, refund.RefundData>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { base } from "../base";
|
|
2
|
+
import { countryAuthorization } from "../models/countryAuthorization";
|
|
3
|
+
import MethodOverload = base.MethodOverload;
|
|
4
|
+
import NoArgMethodOverload = base.NoArgMethodOverload;
|
|
5
|
+
|
|
6
|
+
export class Regulatory {
|
|
7
|
+
/**
|
|
8
|
+
* View the restrictions for a specific country
|
|
9
|
+
* @param countryCode: the code of the Country
|
|
10
|
+
*/
|
|
11
|
+
getCountryAuthorizations: MethodOverload<string, countryAuthorization.CountryAuthorizationData>;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* View the restrictions for al countries
|
|
15
|
+
*/
|
|
16
|
+
getAllCountriesAuthorizations: NoArgMethodOverload<countryAuthorization.CountryAuthorizationData[]>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { report } from "../models/report";
|
|
2
|
+
import { base } from "../base";
|
|
3
|
+
import MethodOverload = base.MethodOverload;
|
|
4
|
+
import NoArgMethodOverload = base.NoArgMethodOverload;
|
|
5
|
+
|
|
6
|
+
export class Reports {
|
|
7
|
+
/**
|
|
8
|
+
* Create a report
|
|
9
|
+
* @param report
|
|
10
|
+
* @param options
|
|
11
|
+
*/
|
|
12
|
+
create: MethodOverload<report.CreateReport, report.ReportData>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get a report
|
|
16
|
+
* @param reportId
|
|
17
|
+
* @param options
|
|
18
|
+
*/
|
|
19
|
+
get: MethodOverload<string, report.ReportData>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Get all reports
|
|
23
|
+
* @param options
|
|
24
|
+
*/
|
|
25
|
+
getAll: NoArgMethodOverload<report.ReportData[]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {reportV2} from "../models/reportV2";
|
|
2
|
+
import {base} from "../base";
|
|
3
|
+
import MethodOverload = base.MethodOverload;
|
|
4
|
+
import NoArgMethodOverload = base.NoArgMethodOverload;
|
|
5
|
+
|
|
6
|
+
export class ReportsV2 {
|
|
7
|
+
/**
|
|
8
|
+
* Create a report
|
|
9
|
+
* @param report
|
|
10
|
+
* @param options
|
|
11
|
+
*/
|
|
12
|
+
create: MethodOverload<reportV2.CreateReportV2, reportV2.ReportDataV2>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get a report
|
|
16
|
+
* @param reportId
|
|
17
|
+
* @param options
|
|
18
|
+
*/
|
|
19
|
+
get: MethodOverload<string, reportV2.ReportDataV2>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Get all reports
|
|
23
|
+
* @param options
|
|
24
|
+
*/
|
|
25
|
+
getAll: NoArgMethodOverload<reportV2.ReportDataV2[]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { refund } from "../models/refund";
|
|
2
|
+
import { base } from "../base";
|
|
3
|
+
import MethodOverload = base.MethodOverload;
|
|
4
|
+
|
|
5
|
+
export class Repudiations {
|
|
6
|
+
/**
|
|
7
|
+
* Gets list of Refunds of a Repudiation
|
|
8
|
+
* @param repudiationId
|
|
9
|
+
* @param options
|
|
10
|
+
*/
|
|
11
|
+
getRefunds: MethodOverload<string, refund.RefundData[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {base} from "../base";
|
|
2
|
+
import {settlement} from "../models/settlement";
|
|
3
|
+
import MethodOverload = base.MethodOverload;
|
|
4
|
+
import TwoArgsMethodOverload = base.TwoArgsMethodOverload;
|
|
5
|
+
|
|
6
|
+
export class Settlements {
|
|
7
|
+
/**
|
|
8
|
+
* Upload a settlement file
|
|
9
|
+
* @param {Buffer} file The settlement file to be uploaded
|
|
10
|
+
* @param {Object} options Request options
|
|
11
|
+
*/
|
|
12
|
+
upload: MethodOverload<string, settlement.SettlementData>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get a settlement
|
|
16
|
+
* @param {string} settlementId
|
|
17
|
+
* @param {Object} options
|
|
18
|
+
*/
|
|
19
|
+
get: MethodOverload<string, settlement.SettlementData>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Update a settlement file
|
|
23
|
+
* @param {string} settlementId The settlement identifier
|
|
24
|
+
* @param {Buffer} file The settlement file to be uploaded
|
|
25
|
+
* @param {Object} options Request options
|
|
26
|
+
*/
|
|
27
|
+
update: TwoArgsMethodOverload<string, string, settlement.SettlementData>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { transfer } from "../models/transfer";
|
|
2
|
+
import { refund } from "../models/refund";
|
|
3
|
+
import { base } from "../base";
|
|
4
|
+
import MethodOverload = base.MethodOverload;
|
|
5
|
+
import TwoArgsMethodOverload = base.TwoArgsMethodOverload;
|
|
6
|
+
|
|
7
|
+
export class Transfers {
|
|
8
|
+
/**
|
|
9
|
+
* Create new transfer
|
|
10
|
+
* @param transfer
|
|
11
|
+
* @param options
|
|
12
|
+
*/
|
|
13
|
+
create: MethodOverload<transfer.CreateTransfer, transfer.TransferData>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Get transfer
|
|
17
|
+
* @param transferId
|
|
18
|
+
* @param options
|
|
19
|
+
*/
|
|
20
|
+
get: MethodOverload<string, transfer.TransferData>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Create refund for transfer object
|
|
24
|
+
* @param transferId
|
|
25
|
+
* @param refund
|
|
26
|
+
* @param options
|
|
27
|
+
*/
|
|
28
|
+
createRefund: TwoArgsMethodOverload<string,
|
|
29
|
+
refund.CreateTransferRefund,
|
|
30
|
+
refund.RefundData>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets list of Refunds of a Transfer
|
|
34
|
+
* @param transferId
|
|
35
|
+
* @param options
|
|
36
|
+
*/
|
|
37
|
+
getRefunds: MethodOverload<string, refund.RefundData[]>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { uboDeclaration } from "../models/uboDeclaration";
|
|
2
|
+
import { base } from "../base";
|
|
3
|
+
import TwoArgsMethodOverload = base.TwoArgsMethodOverload;
|
|
4
|
+
import MethodOverload = base.MethodOverload;
|
|
5
|
+
import ThreeArgsMethodOverload = base.ThreeArgsMethodOverload;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* An UBO Declaration is an electronic version of the previous KYC document "Shareholder Declaration", in order to declare all the Ultimate Beneficial Owners of a BUSINESS-typed legal User
|
|
9
|
+
* (ie the shareholders with >25% of capital or voting rights).
|
|
10
|
+
*
|
|
11
|
+
* 1. Create each Ultimate Beneficial Owner as a Natural User, who must have a "DECLARATIVE" Capacity.
|
|
12
|
+
* 2. Create a new UBO Declaration for your legal user, and link every Ultimate Beneficial Owners created previously thanks to DeclaredUBOs.
|
|
13
|
+
* - This list can be empty if your legal user has no Ultimate Beneficial Owner, or no eligible one (ie. no Ultimate Beneficial Owner that owns more than 25% of this company).
|
|
14
|
+
* 3. Edit the UBODeclaration object and set the Status field to "VALIDATION_ASKED" (instead of "CREATED")
|
|
15
|
+
* 4. The demand is received by our team and once processed, it will either get a "VALIDATED" status, or "REFUSED" with more information provided in the RefusedReasonTypes parameter
|
|
16
|
+
*
|
|
17
|
+
* Note that UBO declarations are not yet a requirement for your user to be KYC verified and are optional at this stage
|
|
18
|
+
*/
|
|
19
|
+
export class UboDeclarations {
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use the 'getById' method, which doesn't require passing the userId.
|
|
22
|
+
*
|
|
23
|
+
* Retrieves a UBO declaration object from the API.
|
|
24
|
+
* @param {String} userId User Unique identifier
|
|
25
|
+
* @param {String} id Unique identifier
|
|
26
|
+
* @param {Object} options
|
|
27
|
+
*/
|
|
28
|
+
get: TwoArgsMethodOverload<string, string, uboDeclaration.UboDeclarationData>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves a UBO declaration object from the API.
|
|
32
|
+
* @param {String} id Unique identifier
|
|
33
|
+
* @param {Object} options
|
|
34
|
+
*/
|
|
35
|
+
getById: MethodOverload<string, uboDeclaration.UboDeclarationData>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Updates a UBO declaration entity.
|
|
39
|
+
* @param {String} userId User Unique Identifier
|
|
40
|
+
* @param {Object} uboDeclaration Updated UBO declaration entity - must have ID!
|
|
41
|
+
* @param {Object} options
|
|
42
|
+
*/
|
|
43
|
+
update: TwoArgsMethodOverload<
|
|
44
|
+
string,
|
|
45
|
+
uboDeclaration.UpdateUboDeclaration,
|
|
46
|
+
uboDeclaration.UboDeclarationData
|
|
47
|
+
>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Create a UBO declaration object from the API
|
|
51
|
+
* @param {String} userId user Unique identifier
|
|
52
|
+
* @param {Object} options
|
|
53
|
+
*/
|
|
54
|
+
create: MethodOverload<string, uboDeclaration.UboDeclarationData>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {String} userId user Uniquer identifier
|
|
58
|
+
*/
|
|
59
|
+
getAll: MethodOverload<string, uboDeclaration.UboDeclarationData[]>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @param {String} userId User Uniquer identifier
|
|
63
|
+
* @param {String} uboDeclarationId UboDeclaration Uniquer identifier
|
|
64
|
+
* @param {Object} Ubo object
|
|
65
|
+
*/
|
|
66
|
+
createUbo: ThreeArgsMethodOverload<string, string, uboDeclaration.CreateUbo, uboDeclaration.UboData>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @param {String} userId User Uniquer identifier
|
|
70
|
+
* @param {String} uboDeclarationId UboDeclaration Uniquer identifier
|
|
71
|
+
* @param {String} uboId Ubo Uniquer identifier
|
|
72
|
+
*/
|
|
73
|
+
getUbo: ThreeArgsMethodOverload<string, string, string, uboDeclaration.UboData>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {String} userId User Uniquer identifier
|
|
77
|
+
* @param {String} uboDeclarationId UboDeclaration Uniquer identifier
|
|
78
|
+
* @param {Object} Ubo object
|
|
79
|
+
*/
|
|
80
|
+
updateUbo: ThreeArgsMethodOverload<string, string, uboDeclaration.UpdateUbo, uboDeclaration.UboData>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { user } from "../models/user";
|
|
2
|
+
import { Models } from "../models";
|
|
3
|
+
import { bankAccount } from "../models/bankAccount";
|
|
4
|
+
import { wallet } from "../models/wallet";
|
|
5
|
+
import { transaction } from "../models/transaction";
|
|
6
|
+
import { card } from "../models/card";
|
|
7
|
+
import { kycDocument } from "../models/kycDocument";
|
|
8
|
+
import { money } from "../models/money";
|
|
9
|
+
import { cardPreAuthorization } from "../models/cardPreauthorization";
|
|
10
|
+
import { base } from "../base";
|
|
11
|
+
import MethodOverload = base.MethodOverload;
|
|
12
|
+
import NoArgMethodOverload = base.NoArgMethodOverload;
|
|
13
|
+
import TwoArgsMethodOverload = base.TwoArgsMethodOverload;
|
|
14
|
+
import ThreeArgsMethodOverload = base.ThreeArgsMethodOverload;
|
|
15
|
+
|
|
16
|
+
export class Users {
|
|
17
|
+
/**
|
|
18
|
+
* Create a new user
|
|
19
|
+
* @param user
|
|
20
|
+
*/
|
|
21
|
+
create: MethodOverload<user.CreateUserLegalData, user.UserLegalData> &
|
|
22
|
+
MethodOverload<user.CreateUserNaturalData, user.UserNaturalData> &
|
|
23
|
+
MethodOverload<user.CreateUserNaturalPayerData, user.UserNaturalData> &
|
|
24
|
+
MethodOverload<user.CreateUserNaturalOwnerData, user.UserNaturalData> &
|
|
25
|
+
MethodOverload<user.CreateUserLegalPayerData, user.UserLegalData> &
|
|
26
|
+
MethodOverload<user.CreateUserLegalOwnerData, user.UserLegalData> &
|
|
27
|
+
MethodOverload<user.CreateUserNaturalScaData, user.UserNaturalScaData> &
|
|
28
|
+
MethodOverload<user.CreateUserLegalScaData, user.UserLegalScaData>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Update a user
|
|
32
|
+
* @param user
|
|
33
|
+
* @param options
|
|
34
|
+
*/
|
|
35
|
+
update: MethodOverload<Models.UserLegal | user.UpdateUserLegalData, user.UserLegalData> &
|
|
36
|
+
MethodOverload<Models.UserNatural | user.UpdateUserNaturalData, user.UserNaturalData>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Modify details for a Natural/Legal Payer or Owner without changing category
|
|
40
|
+
* @param user
|
|
41
|
+
* @param options
|
|
42
|
+
*/
|
|
43
|
+
updateSca: MethodOverload<user.UpdateUserLegalScaData, user.UserLegalScaData> &
|
|
44
|
+
MethodOverload<user.UpdateUserNaturalScaData, user.UserNaturalScaData>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get natural or legal user by ID
|
|
48
|
+
* @param userId
|
|
49
|
+
* @param options
|
|
50
|
+
*/
|
|
51
|
+
get: MethodOverload<string, user.UserLegalData | user.UserNaturalData>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get natural or legal SCA user by ID
|
|
55
|
+
* @param userId
|
|
56
|
+
* @param options
|
|
57
|
+
*/
|
|
58
|
+
getSca: MethodOverload<string, user.UserLegalScaData | user.UserNaturalScaData>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Get natural user by ID
|
|
62
|
+
* @param userId
|
|
63
|
+
* @param options
|
|
64
|
+
*/
|
|
65
|
+
getNatural: MethodOverload<string, user.UserNaturalData>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Get natural SCA user by ID
|
|
69
|
+
* @param userId
|
|
70
|
+
* @param options
|
|
71
|
+
*/
|
|
72
|
+
getNaturalSca: MethodOverload<string, user.UserNaturalScaData>;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Get legal user by ID
|
|
76
|
+
* @param userId
|
|
77
|
+
* @param options
|
|
78
|
+
*/
|
|
79
|
+
getLegal: MethodOverload<string, user.UserLegalData>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Get legal SCA user by ID
|
|
83
|
+
* @param userId
|
|
84
|
+
* @param options
|
|
85
|
+
*/
|
|
86
|
+
getLegalSca: MethodOverload<string, user.UserLegalScaData>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Get all users
|
|
90
|
+
*/
|
|
91
|
+
getAll: NoArgMethodOverload<
|
|
92
|
+
Array<user.UserLegalData | user.UserNaturalData>
|
|
93
|
+
>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Create bank account for user
|
|
97
|
+
* @param userId
|
|
98
|
+
* @param bankAccount
|
|
99
|
+
* @param options
|
|
100
|
+
*/
|
|
101
|
+
createBankAccount:
|
|
102
|
+
TwoArgsMethodOverload<string, bankAccount.USDetails, bankAccount.USData> &
|
|
103
|
+
TwoArgsMethodOverload<string, bankAccount.OtherDetails, bankAccount.OtherData> &
|
|
104
|
+
TwoArgsMethodOverload<string, bankAccount.IBANDetails, bankAccount.IBANData> &
|
|
105
|
+
TwoArgsMethodOverload<string, bankAccount.GBDetails, bankAccount.GBData> &
|
|
106
|
+
TwoArgsMethodOverload<string, bankAccount.CADetails, bankAccount.CAData>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Deactivate a bank account
|
|
110
|
+
*
|
|
111
|
+
* Note that once deactivated, a bank account can't be reactivated afterwards
|
|
112
|
+
* @param userId
|
|
113
|
+
* @param bankAccountId
|
|
114
|
+
* @param options
|
|
115
|
+
*/
|
|
116
|
+
deactivateBankAccount: TwoArgsMethodOverload<string, string, bankAccount.Data>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Get all bank accounts for user
|
|
120
|
+
* @param userId
|
|
121
|
+
* @param options
|
|
122
|
+
*/
|
|
123
|
+
getBankAccounts: MethodOverload<string, bankAccount.Data[]>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Get all bank accounts for user
|
|
127
|
+
* @param userId
|
|
128
|
+
* @param bankAccountId
|
|
129
|
+
* @param options
|
|
130
|
+
*/
|
|
131
|
+
getBankAccount: TwoArgsMethodOverload<string, string, bankAccount.Data>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Get all wallets accounts for user
|
|
135
|
+
*/
|
|
136
|
+
getWallets: MethodOverload<string, wallet.WalletData[]>;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Get all transactions for user
|
|
140
|
+
* @param userId
|
|
141
|
+
* @param options
|
|
142
|
+
*/
|
|
143
|
+
getTransactions: MethodOverload<string, transaction.TransactionData[]>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Get all cards for user
|
|
147
|
+
* @param userId
|
|
148
|
+
* @param options
|
|
149
|
+
*/
|
|
150
|
+
getCards: MethodOverload<string, card.CardData[]>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Create new KYC document
|
|
154
|
+
* @param userId
|
|
155
|
+
* @param kycDocument
|
|
156
|
+
* @param options
|
|
157
|
+
*/
|
|
158
|
+
createKycDocument: TwoArgsMethodOverload<
|
|
159
|
+
string,
|
|
160
|
+
kycDocument.CreateKycDocument,
|
|
161
|
+
kycDocument.KycDocumentData
|
|
162
|
+
>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Get all KYC documents for user
|
|
166
|
+
* @param userId
|
|
167
|
+
* @param options
|
|
168
|
+
*/
|
|
169
|
+
getKycDocuments: MethodOverload<string, kycDocument.KycDocumentData[]>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Get KYC document
|
|
173
|
+
* @param userId
|
|
174
|
+
* @param kycDocumentId
|
|
175
|
+
* @param options
|
|
176
|
+
*/
|
|
177
|
+
getKycDocument: TwoArgsMethodOverload<
|
|
178
|
+
string,
|
|
179
|
+
string,
|
|
180
|
+
kycDocument.KycDocumentData
|
|
181
|
+
>;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Update status of KYC Document (Currently only allows for submitting the document)
|
|
185
|
+
* @param userId
|
|
186
|
+
* @param kycDocument
|
|
187
|
+
* @param options
|
|
188
|
+
*/
|
|
189
|
+
updateKycDocument: TwoArgsMethodOverload<
|
|
190
|
+
string,
|
|
191
|
+
kycDocument.SubmitKycDocument,
|
|
192
|
+
kycDocument.KycDocumentData
|
|
193
|
+
>;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Create page for KYC document
|
|
197
|
+
* @param userId
|
|
198
|
+
* @param kycDocumentId
|
|
199
|
+
* @param kycPage
|
|
200
|
+
* @param options
|
|
201
|
+
*/
|
|
202
|
+
createKycPage: ThreeArgsMethodOverload<
|
|
203
|
+
string,
|
|
204
|
+
string,
|
|
205
|
+
kycDocument.CreateKycPage,
|
|
206
|
+
kycDocument.KycDocumentData
|
|
207
|
+
>;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Create page for KYC document
|
|
211
|
+
* @param userId
|
|
212
|
+
* @param kycDocumentId
|
|
213
|
+
* @param filePath
|
|
214
|
+
* @param options
|
|
215
|
+
*/
|
|
216
|
+
createKycPageFromFile: ThreeArgsMethodOverload<
|
|
217
|
+
string,
|
|
218
|
+
string,
|
|
219
|
+
string,
|
|
220
|
+
kycDocument.KycDocumentData
|
|
221
|
+
>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Get users's EMoney
|
|
225
|
+
* @param userId
|
|
226
|
+
* @param options
|
|
227
|
+
*/
|
|
228
|
+
getEMoney: MethodOverload<string, money.EMoneyData>;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Get all user preauthorizations
|
|
232
|
+
* @param userId
|
|
233
|
+
* @param options
|
|
234
|
+
*/
|
|
235
|
+
getPreAuthorizations: MethodOverload<
|
|
236
|
+
string,
|
|
237
|
+
cardPreAuthorization.CardPreAuthorizationData[]
|
|
238
|
+
>;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* This endpoint allows you to transition a user whose UserCategory is PAYER into an OWNER
|
|
242
|
+
* by providing the required information and redirecting them on the PendingUserAction.RedirectUrl
|
|
243
|
+
* response value to complete SCA enrollment.
|
|
244
|
+
*
|
|
245
|
+
* For Natural Users, optionally, you can update the Email and provide or update the PhoneNumber
|
|
246
|
+
* and PhoneNumberCountry before SCA redirection.
|
|
247
|
+
*
|
|
248
|
+
* For Legal Users, optionally, you can update the LegalRepresentative.Email and provide or update
|
|
249
|
+
* the LegalRepresentative.PhoneNumber and LegalRepresentative.PhoneNumberCountry before SCA redirection.
|
|
250
|
+
*
|
|
251
|
+
* @param user
|
|
252
|
+
* @param options
|
|
253
|
+
*/
|
|
254
|
+
categorize: MethodOverload<user.CategorizeUserNatural, user.UserNaturalScaData> &
|
|
255
|
+
MethodOverload<user.CategorizeUserLegal, user.UserLegalScaData>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* If UserCategory is OWNER, this endpoint allows you to enroll a user in SCA.
|
|
259
|
+
* Your platform needs to retrieve the returned PendingUserAction.RedirectUrl,
|
|
260
|
+
* add an encoded returnUrl query parameter for them to be returned to after the SCA session,
|
|
261
|
+
* and redirect the userGet natural or legal user by ID
|
|
262
|
+
*
|
|
263
|
+
* @param userId
|
|
264
|
+
* @param options
|
|
265
|
+
*/
|
|
266
|
+
enroll: MethodOverload<string, user.UserEnrollmentResult>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Manage user consent
|
|
270
|
+
*
|
|
271
|
+
* @param userId
|
|
272
|
+
* @param options
|
|
273
|
+
*/
|
|
274
|
+
manageConsent: MethodOverload<string, user.UserConsent>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Close a user (change status to CLOSED). The resource remains available for historical purposes.
|
|
278
|
+
* @param user
|
|
279
|
+
* @param options
|
|
280
|
+
*/
|
|
281
|
+
close: MethodOverload<user.UserNaturalData | user.UserNaturalScaData, void> &
|
|
282
|
+
MethodOverload<user.UserLegalData | user.UserLegalScaData, void>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Validate the format of User data
|
|
286
|
+
* @param dataValidation
|
|
287
|
+
* @param options
|
|
288
|
+
*/
|
|
289
|
+
validateDataFormat: MethodOverload<user.UserDataFormatValidation, user.UserDataFormatValidation>
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Get user regulatory
|
|
293
|
+
* @param {string} userId User identifier
|
|
294
|
+
* @param {Function} callback Callback function
|
|
295
|
+
* @param {Object} options Request options
|
|
296
|
+
* @return {Object} Request promise
|
|
297
|
+
*/
|
|
298
|
+
getRegulatory: MethodOverload<string, user.RegulatoryData>
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Get user block status
|
|
302
|
+
* @param {string} userId User identifier
|
|
303
|
+
* @param {Function} callback Callback function
|
|
304
|
+
* @param {Object} options Request options
|
|
305
|
+
* @return {Object} Request promise
|
|
306
|
+
*/
|
|
307
|
+
getBlockStatus: MethodOverload<string, user.RegulatoryData>
|
|
308
|
+
}
|