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,885 @@
|
|
|
1
|
+
// TypeScript Version: 3.0
|
|
2
|
+
|
|
3
|
+
/// <reference types="node" />
|
|
4
|
+
|
|
5
|
+
import { ApiMethod, CultureISO, CountryISO, CurrencyISO, MakeKeysRequired, SecureMode, Timestamp } from "./types";
|
|
6
|
+
import { base } from "./base";
|
|
7
|
+
import { Users } from "./services/Users";
|
|
8
|
+
import { BankAccounts } from "./services/BankAccounts";
|
|
9
|
+
import { BankingAliases } from "./services/BankingAliases";
|
|
10
|
+
import { DisputeDocuments } from "./services/DisputeDocuments";
|
|
11
|
+
import { Wallets } from "./services/Wallets";
|
|
12
|
+
import { KycDocuments } from "./services/KycDocuments";
|
|
13
|
+
import { UboDeclarations } from "./services/UboDeclarations";
|
|
14
|
+
import { Cards } from "./services/Cards";
|
|
15
|
+
import { CardRegistrations } from "./services/CardRegistrations";
|
|
16
|
+
import { CardPreAuthorizations } from "./services/CardPreauthorizations";
|
|
17
|
+
import { PayIns } from "./services/PayIns";
|
|
18
|
+
import { Transfers } from "./services/Transfers";
|
|
19
|
+
import { PayOuts } from "./services/PayOuts";
|
|
20
|
+
import { Refunds } from "./services/Refunds";
|
|
21
|
+
import { Clients } from "./services/Clients";
|
|
22
|
+
import { Disputes } from "./services/Disputes";
|
|
23
|
+
import { Repudiations } from "./services/Repudiations";
|
|
24
|
+
import { Events } from "./services/Events";
|
|
25
|
+
import { Responses } from "./services/Responses";
|
|
26
|
+
import { Mandates } from "./services/Mandates";
|
|
27
|
+
import { Hooks } from "./services/Hooks";
|
|
28
|
+
import { Reports } from "./services/Reports";
|
|
29
|
+
import { ReportsV2 } from "./services/ReportsV2";
|
|
30
|
+
import { Idempotency } from "./services/Idempotency";
|
|
31
|
+
import { address } from "./models/address";
|
|
32
|
+
import { enums } from "./enums";
|
|
33
|
+
import { bankingAlias } from "./models/bankingAlias";
|
|
34
|
+
import { bankAccount } from "./models/bankAccount";
|
|
35
|
+
import { transaction } from "./models/transaction";
|
|
36
|
+
import { wallet } from "./models/wallet";
|
|
37
|
+
import { disputeDocument } from "./models/disputeDocument";
|
|
38
|
+
import { uboDeclaration } from "./models/uboDeclaration";
|
|
39
|
+
import { kycDocument } from "./models/kycDocument";
|
|
40
|
+
import { money } from "./models/money";
|
|
41
|
+
import { conversionRate } from "./models/conversionRate";
|
|
42
|
+
import { conversion } from "./models/conversion";
|
|
43
|
+
import { cardRegistration } from "./models/cardRegistration";
|
|
44
|
+
import { card } from "./models/card";
|
|
45
|
+
import { cardPreAuthorization } from "./models/cardPreauthorization";
|
|
46
|
+
import { entityBase } from "./models/entityBase";
|
|
47
|
+
import { user } from "./models/user";
|
|
48
|
+
import { payIn } from "./models/payIn";
|
|
49
|
+
import { refund } from "./models/refund";
|
|
50
|
+
import { repudiation } from "./models/repudiation";
|
|
51
|
+
import { client } from "./models/client";
|
|
52
|
+
import { dispute } from "./models/dispute";
|
|
53
|
+
import { settlementTransfer } from "./models/settlementTransfer";
|
|
54
|
+
import { transfer } from "./models/transfer";
|
|
55
|
+
import { shippingAddress } from "./models/shippingAddress";
|
|
56
|
+
import { payOut } from "./models/payOut";
|
|
57
|
+
import { mandate } from "./models/mandate";
|
|
58
|
+
import { hook } from "./models/hook";
|
|
59
|
+
import { report } from "./models/report";
|
|
60
|
+
import { billing } from "./models/billing";
|
|
61
|
+
import { deposit } from "./models/deposit";
|
|
62
|
+
import { birthplace } from "./models/birthplace";
|
|
63
|
+
import { event } from "./models/event";
|
|
64
|
+
import { idempotency } from "./models/idempotency";
|
|
65
|
+
import { securityInfo } from "./models/securityInfo";
|
|
66
|
+
import { shipping } from "./models/shipping";
|
|
67
|
+
import { countryAuthorization } from "./models/countryAuthorization";
|
|
68
|
+
import { Regulatory } from "./services/Regulatory";
|
|
69
|
+
import { Deposits } from "./services/Deposits";
|
|
70
|
+
import { cardValidation } from "./models/cardValidation";
|
|
71
|
+
import { Conversions } from "./services/Conversions";
|
|
72
|
+
import { VirtualAccounts } from "./services/VirtualAccounts";
|
|
73
|
+
import { virtualAccount } from "./models/virtualAccount";
|
|
74
|
+
import { IdentityVerifications } from "./services/IdentityVerifications";
|
|
75
|
+
import { identityVerification } from "./models/identityVerification";
|
|
76
|
+
import { recipient } from "./models/recipient";
|
|
77
|
+
import { Recipients } from "./services/Recipients";
|
|
78
|
+
import { Settlements } from "./services/Settlements";
|
|
79
|
+
import { OptionsHelper } from "./services/OptionsHelper";
|
|
80
|
+
|
|
81
|
+
export = MangoPay;
|
|
82
|
+
|
|
83
|
+
declare class MangoPay {
|
|
84
|
+
constructor(config: base.Config);
|
|
85
|
+
|
|
86
|
+
config: base.Config;
|
|
87
|
+
requestOptions: base.RequestOptions;
|
|
88
|
+
Users: Users;
|
|
89
|
+
BankAccounts: BankAccounts;
|
|
90
|
+
BankingAliases: BankingAliases;
|
|
91
|
+
DisputeDocuments: DisputeDocuments;
|
|
92
|
+
Wallets: Wallets;
|
|
93
|
+
KycDocuments: KycDocuments;
|
|
94
|
+
UboDeclarations: UboDeclarations;
|
|
95
|
+
Cards: Cards;
|
|
96
|
+
CardRegistrations: CardRegistrations;
|
|
97
|
+
CardPreAuthorizations: CardPreAuthorizations;
|
|
98
|
+
PayIns: PayIns;
|
|
99
|
+
Transfers: Transfers;
|
|
100
|
+
PayOuts: PayOuts;
|
|
101
|
+
Refunds: Refunds;
|
|
102
|
+
Clients: Clients;
|
|
103
|
+
Disputes: Disputes;
|
|
104
|
+
Repudiations: Repudiations;
|
|
105
|
+
Events: Events;
|
|
106
|
+
Responses: Responses;
|
|
107
|
+
Mandates: Mandates;
|
|
108
|
+
Hooks: Hooks;
|
|
109
|
+
Reports: Reports;
|
|
110
|
+
ReportsV2: ReportsV2;
|
|
111
|
+
Idempotency: Idempotency;
|
|
112
|
+
Regulatory: Regulatory;
|
|
113
|
+
Deposits: Deposits;
|
|
114
|
+
Conversions: Conversions;
|
|
115
|
+
VirtualAccounts: VirtualAccounts;
|
|
116
|
+
IdentityVerifications: IdentityVerifications;
|
|
117
|
+
Recipients: Recipients;
|
|
118
|
+
Settlements: Settlements;
|
|
119
|
+
OptionsHelper: OptionsHelper;
|
|
120
|
+
|
|
121
|
+
models: typeof MangoPay.models;
|
|
122
|
+
|
|
123
|
+
rateLimits: MangoPay.models.RateLimit[];
|
|
124
|
+
|
|
125
|
+
Log(...args: any[]): void;
|
|
126
|
+
|
|
127
|
+
authorize(callback: (data: base.AuthorizationData) => void): void;
|
|
128
|
+
|
|
129
|
+
authorize(): Promise<base.AuthorizationData>;
|
|
130
|
+
|
|
131
|
+
buildRequestData(entity: any): any;
|
|
132
|
+
|
|
133
|
+
canReadSubRequestData(entity: any, propertyName: any): boolean;
|
|
134
|
+
|
|
135
|
+
isExpired(): boolean;
|
|
136
|
+
|
|
137
|
+
method(
|
|
138
|
+
method: ApiMethod,
|
|
139
|
+
callback: (...args: any[]) => void,
|
|
140
|
+
options: base.RequestOptions
|
|
141
|
+
): any;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare namespace MangoPay {
|
|
145
|
+
namespace models {
|
|
146
|
+
import DependsObject = base.DependsObject;
|
|
147
|
+
import MoneyData = money.MoneyData;
|
|
148
|
+
import ConversionRateData = conversionRate.ConversionRateData;
|
|
149
|
+
|
|
150
|
+
import BillingData = billing.BillingData;
|
|
151
|
+
const PayInExecutionType: enums.IPayInExecutionType;
|
|
152
|
+
const PayInPaymentType: enums.IPayInPaymentType;
|
|
153
|
+
const RecurringPayInRegistrationPaymentType: enums.IRecurringPayInRegistrationPaymentType;
|
|
154
|
+
const MandateStatus: enums.IMandateStatus;
|
|
155
|
+
const LegalPersonType: enums.ILegalPersonType;
|
|
156
|
+
const PersonType: enums.IPersonType;
|
|
157
|
+
const UserCategory: enums.IUserCategory;
|
|
158
|
+
const BankAccountType: enums.IBankAccountType;
|
|
159
|
+
const DeclaredUboStatus: enums.IDeclaredUboStatus;
|
|
160
|
+
const KycDocumentStatus: enums.IKycDocumentStatus;
|
|
161
|
+
const KycDocumentType: enums.IKycDocumentType;
|
|
162
|
+
const PayOutPaymentType: enums.IPayOutPaymentType;
|
|
163
|
+
const PlatformType: enums.IPlatformType;
|
|
164
|
+
const UboDeclarationRefusedReasonType: enums.IUboDeclarationRefusedReasonType;
|
|
165
|
+
const UboDeclarationStatus: enums.IUboDeclarationStatus;
|
|
166
|
+
const UboRefusedReasonType: enums.IUboRefusedReasonType;
|
|
167
|
+
const UserNaturalCapacity: enums.IUserNaturalCapacity;
|
|
168
|
+
const DepositStatus: enums.IDepositStatus;
|
|
169
|
+
const PaymentStatus: enums.IPaymentStatus;
|
|
170
|
+
const ShippingPreference: enums.IShippingPreference;
|
|
171
|
+
|
|
172
|
+
interface ModelMethods<T extends {}> {
|
|
173
|
+
initialize(): void;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Returns object property value
|
|
177
|
+
* @param attribute
|
|
178
|
+
*/
|
|
179
|
+
getData<K extends keyof T>(attribute: K): T[K];
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @param attribute - attribute's value to be set or hash of properties with values
|
|
183
|
+
* @param value - value to be set
|
|
184
|
+
*/
|
|
185
|
+
setData<K extends keyof T>(attribute: K, value: T[K]): this;
|
|
186
|
+
|
|
187
|
+
setData(attribute: Partial<T>): this;
|
|
188
|
+
|
|
189
|
+
getReadOnlyProperties(): Array<keyof T>;
|
|
190
|
+
|
|
191
|
+
getDependsObjects(): DependsObject[];
|
|
192
|
+
|
|
193
|
+
parse(): void;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
class Model<T extends {} = any> implements ModelMethods<T> {
|
|
197
|
+
initialize(): void;
|
|
198
|
+
|
|
199
|
+
getData<K extends keyof T>(attribute: K): T[K];
|
|
200
|
+
|
|
201
|
+
setData<K extends keyof T>(attribute: K, value: T[K]): this;
|
|
202
|
+
|
|
203
|
+
setData(attribute: Partial<T>): this;
|
|
204
|
+
|
|
205
|
+
setData(attribute: any, value?: any): this;
|
|
206
|
+
|
|
207
|
+
getReadOnlyProperties(): Array<keyof T>;
|
|
208
|
+
|
|
209
|
+
getDependsObjects(): DependsObject[];
|
|
210
|
+
|
|
211
|
+
parse(): void;
|
|
212
|
+
|
|
213
|
+
constructor(data: T);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
class EntityBase<T extends {} = any> extends Model<T> {
|
|
217
|
+
initialize(): void;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Returns object property value
|
|
221
|
+
*/
|
|
222
|
+
getData<K extends keyof T>(attribute: K): T[K];
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @param attribute - attribute's value to be set or hash of properties with values
|
|
226
|
+
* @param value - value to be set
|
|
227
|
+
*/
|
|
228
|
+
setData<K extends keyof T>(attribute: K, value: T[K]): this;
|
|
229
|
+
|
|
230
|
+
setData(attribute: Partial<T>): this;
|
|
231
|
+
|
|
232
|
+
getReadOnlyProperties(): Array<keyof T>;
|
|
233
|
+
|
|
234
|
+
getDependsObjects(): DependsObject[];
|
|
235
|
+
|
|
236
|
+
parse(): void;
|
|
237
|
+
|
|
238
|
+
toJSON(): any;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
interface RateLimit {
|
|
242
|
+
minutesInterval: number;
|
|
243
|
+
callsMade: number;
|
|
244
|
+
callsRemaining: number;
|
|
245
|
+
resetTimeMillis: number;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface ApiError {
|
|
249
|
+
Message: string;
|
|
250
|
+
Type: string;
|
|
251
|
+
Id: string;
|
|
252
|
+
Date: number;
|
|
253
|
+
errors: [string, string];
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
class ConversionRate extends EntityBase<ConversionRateData> {
|
|
257
|
+
constructor(data: ConversionRateData);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
class Money extends EntityBase<MoneyData> {
|
|
261
|
+
constructor(data: MoneyData);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
class Billing extends EntityBase<BillingData> {
|
|
265
|
+
constructor(data: BillingData);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
class Address extends EntityBase<address.AddressData> {
|
|
269
|
+
constructor(data: Partial<address.AddressData> | address.CreateAddress);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface Address extends address.AddressData {
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
class BankingAlias extends EntityBase<bankingAlias.IBANBankingAliasData> {
|
|
276
|
+
constructor(data: Partial<bankingAlias.BankingAliasData>);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
class BankingAliasIBAN extends BankingAlias {
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
interface BankingAlias extends bankingAlias.IBANBankingAliasData {
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
class BankAccount extends EntityBase<bankAccount.BaseData> {
|
|
286
|
+
constructor(data: bankAccount.CreationDetails);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
interface BankAccount extends bankAccount.BaseData {
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
class BankAccountDetails {
|
|
293
|
+
constructor(data: any);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
class BankAccountDetailsCA extends BankAccountDetails {
|
|
297
|
+
constructor(data: any);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
interface BankAccountDetailsCA extends bankAccount.CADetails {
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
class BankAccountDetailsOther extends BankAccountDetails {
|
|
304
|
+
constructor(data: any);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
interface BankAccountDetailsOther extends bankAccount.OtherDetails {
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
class BankAccountDetailsGB extends BankAccountDetails {
|
|
311
|
+
constructor(data: any);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
interface BankAccountDetailsGB extends bankAccount.GBDetails {
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
class BankAccountDetailsIBAN extends BankAccountDetails {
|
|
318
|
+
constructor(data: any);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface BankAccountDetailsIBAN extends bankAccount.IBANDetails {
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
class BankAccountDetailsUS extends BankAccountDetails {
|
|
325
|
+
constructor(data: any);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
interface BankAccountDetailsUS extends bankAccount.USDetails {
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
class Transaction extends EntityBase<transaction.TransactionData> {
|
|
332
|
+
constructor(data: transaction.TransactionData);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface Transaction extends transaction.TransactionData {
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
class ClientWallet extends EntityBase<wallet.WalletData> {
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
class Wallet extends EntityBase<wallet.WalletData> {
|
|
342
|
+
constructor(data: wallet.CreateWallet | wallet.UpdateWallet);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
class DocumentPageConsult extends Model {
|
|
346
|
+
constructor(data: Partial<disputeDocument.DocumentPageConsult>);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
interface DocumentPageConsult extends disputeDocument.DocumentPageConsult {
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
class Document extends EntityBase {
|
|
353
|
+
constructor(data: any);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
class DisputeDocument extends Document {
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
interface DisputeDocument extends disputeDocument.DisputeDocumentData {
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
class DisputeDocumentPage extends EntityBase {
|
|
363
|
+
constructor(data: disputeDocument.CreateDisputeDocumentPage);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
interface DisputeDocumentPage
|
|
367
|
+
extends disputeDocument.CreateDisputeDocumentPage {
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
class DeclaredUbo extends Model<uboDeclaration.UboDeclarationData> {
|
|
371
|
+
constructor(data: Partial<uboDeclaration.UboDeclarationData>);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
class KycDocument extends EntityBase<kycDocument.KycDocumentData> {
|
|
375
|
+
constructor(data: Partial<kycDocument.KycDocumentData>);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
interface KycDocument extends kycDocument.KycDocumentData {
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
class KycPage {
|
|
382
|
+
constructor(data: kycDocument.CreateKycPage);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
interface KycPage extends kycDocument.CreateKycPage {
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
class EMoney {
|
|
389
|
+
constructor(data: money.EMoneyData);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
interface EMoney extends money.EMoneyData {
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
class UboDeclaration extends EntityBase<uboDeclaration.UboDeclarationData> {
|
|
396
|
+
constructor(
|
|
397
|
+
data: uboDeclaration.UboDeclarationData
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
interface UboDeclaration extends uboDeclaration.UboDeclarationData {
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
class Ubo extends EntityBase<uboDeclaration.UboData> {
|
|
405
|
+
constructor(
|
|
406
|
+
data: uboDeclaration.UboData
|
|
407
|
+
)
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
interface Ubo extends uboDeclaration.UboData {
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
class CardRegistration extends EntityBase<cardRegistration.CardRegistrationData> {
|
|
414
|
+
constructor(
|
|
415
|
+
data:
|
|
416
|
+
| cardRegistration.CreateCardRegistration
|
|
417
|
+
| cardRegistration.UpdateCardRegistration
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
interface CardRegistration extends cardRegistration.CardRegistrationData {
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
class CardValidation extends EntityBase<cardValidation.CardValidationData> {
|
|
425
|
+
constructor(
|
|
426
|
+
data:
|
|
427
|
+
| cardValidation.CreateCardValidation
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
interface CardValidation extends cardValidation.CardValidationData {
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
class Card extends EntityBase<card.CardData> {
|
|
435
|
+
constructor(data: card.CardData);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
interface Card extends card.CardData {
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
class CardPreAuthorization {
|
|
442
|
+
constructor(
|
|
443
|
+
data:
|
|
444
|
+
| cardPreAuthorization.CardPreAuthorizationData
|
|
445
|
+
| cardPreAuthorization.UpdateCardPreAuthorization
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
interface CardPreAuthorization
|
|
450
|
+
extends cardPreAuthorization.CardPreAuthorizationData {
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
class SecurityInfo extends EntityBase<SecurityInfo & entityBase.EntityBaseData> {
|
|
454
|
+
constructor(data: SecurityInfo);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
class UserLegal extends EntityBase<user.UserLegalData> {
|
|
458
|
+
PersonType: "LEGAL";
|
|
459
|
+
|
|
460
|
+
constructor(
|
|
461
|
+
data: MakeKeysRequired<Partial<user.UserLegalData>,
|
|
462
|
+
user.RequiredUserLegalData>
|
|
463
|
+
);
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Sets the person type for the model
|
|
467
|
+
* @param personType
|
|
468
|
+
*/
|
|
469
|
+
setPersonType(type: user.PersonType): void;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
interface UserLegal extends user.UserLegalData {
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
class UserNatural extends EntityBase<user.UserNaturalData> {
|
|
476
|
+
PersonType: "NATURAL";
|
|
477
|
+
|
|
478
|
+
constructor(
|
|
479
|
+
data: MakeKeysRequired<Partial<user.UserNaturalData>,
|
|
480
|
+
user.RequiredUserNaturalData>
|
|
481
|
+
);
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Sets the person type for the model
|
|
485
|
+
* @param personType
|
|
486
|
+
*/
|
|
487
|
+
setPersonType(type: user.PersonType): void;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
interface UserNatural extends user.UserNaturalData {
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
class UserNaturalPayer extends EntityBase<user.UserNaturalData> {
|
|
494
|
+
PersonType: "NATURAL";
|
|
495
|
+
UserCategory: "PAYER";
|
|
496
|
+
|
|
497
|
+
constructor(
|
|
498
|
+
data: MakeKeysRequired<Partial<user.UserNaturalData>,
|
|
499
|
+
user.RequiredUserNaturalPayerData>
|
|
500
|
+
);
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Sets the person type for the model
|
|
504
|
+
* @param personType
|
|
505
|
+
*/
|
|
506
|
+
setPersonType(type: user.PersonType): void;
|
|
507
|
+
|
|
508
|
+
setUserCategory(category: user.UserCategory): void;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
interface UserNaturalPayer extends user.UserNaturalData {
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
class UserNaturalSca extends EntityBase<user.UserNaturalScaData> {
|
|
515
|
+
PersonType: "NATURAL";
|
|
516
|
+
|
|
517
|
+
constructor(
|
|
518
|
+
data: MakeKeysRequired<Partial<user.UserNaturalScaData>,
|
|
519
|
+
user.RequiredUserNaturalScaData>
|
|
520
|
+
);
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Sets the person type for the model
|
|
524
|
+
* @param personType
|
|
525
|
+
*/
|
|
526
|
+
setPersonType(type: user.PersonType): void;
|
|
527
|
+
|
|
528
|
+
setUserCategory(category: user.UserCategory): void;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
interface UserNaturalSca extends user.UserNaturalScaData {
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
class UserNaturalOwner extends EntityBase<user.UserNaturalData> {
|
|
535
|
+
PersonType: "NATURAL";
|
|
536
|
+
UserCategory: "OWNER";
|
|
537
|
+
|
|
538
|
+
constructor(
|
|
539
|
+
data: MakeKeysRequired<Partial<user.UserNaturalData>,
|
|
540
|
+
user.RequiredUserNaturalOwnerData>
|
|
541
|
+
);
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Sets the person type for the model
|
|
545
|
+
* @param personType
|
|
546
|
+
*/
|
|
547
|
+
setPersonType(type: user.PersonType): void;
|
|
548
|
+
|
|
549
|
+
setUserCategory(category: user.UserCategory): void;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
interface UserNaturalOwner extends user.UserNaturalData {
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
class UserLegalSca extends EntityBase<user.UserLegalScaData> {
|
|
556
|
+
PersonType: "LEGAL";
|
|
557
|
+
|
|
558
|
+
constructor(
|
|
559
|
+
data: MakeKeysRequired<Partial<user.UserLegalScaData>,
|
|
560
|
+
user.RequiredUserLegalScaData>
|
|
561
|
+
);
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Sets the person type for the model
|
|
565
|
+
* @param personType
|
|
566
|
+
*/
|
|
567
|
+
setPersonType(type: user.PersonType): void;
|
|
568
|
+
|
|
569
|
+
setUserCategory(category: user.UserCategory): void;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
interface UserLegalSca extends user.UserLegalScaData {
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
class UserLegalPayer extends EntityBase<user.UserLegalData> {
|
|
576
|
+
PersonType: "LEGAL";
|
|
577
|
+
UserCategory: "PAYER";
|
|
578
|
+
|
|
579
|
+
constructor(
|
|
580
|
+
data: MakeKeysRequired<Partial<user.UserLegalData>,
|
|
581
|
+
user.RequiredUserLegalPayerData>
|
|
582
|
+
);
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Sets the person type for the model
|
|
586
|
+
* @param personType
|
|
587
|
+
*/
|
|
588
|
+
setPersonType(type: user.PersonType): void;
|
|
589
|
+
|
|
590
|
+
setUserCategory(category: user.UserCategory): void;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
interface UserLegalPayer extends user.UserLegalData {
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
class UserLegalOwner extends EntityBase<user.UserLegalData> {
|
|
597
|
+
PersonType: "LEGAL";
|
|
598
|
+
UserCategory: "OWNER";
|
|
599
|
+
|
|
600
|
+
constructor(
|
|
601
|
+
data: MakeKeysRequired<Partial<user.UserLegalData>,
|
|
602
|
+
user.RequiredUserLegalOwnerData>
|
|
603
|
+
);
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Sets the person type for the model
|
|
607
|
+
* @param personType
|
|
608
|
+
*/
|
|
609
|
+
setPersonType(type: user.PersonType): void;
|
|
610
|
+
|
|
611
|
+
setUserCategory(category: user.UserCategory): void;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
interface UserLegalOwner extends user.UserLegalData {
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
class User extends EntityBase<user.UserData> {
|
|
618
|
+
constructor(data: user.UserData);
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Sets the person type for the model
|
|
622
|
+
* @param personType
|
|
623
|
+
*/
|
|
624
|
+
setPersonType(type: user.PersonType): void;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
interface User extends user.UserData {
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
class PayIn extends EntityBase<payIn.BasePayInData> {
|
|
631
|
+
constructor(data: any);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
interface PayIn extends payIn.BasePayInData {
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
class PayInPaymentDetails extends EntityBase {
|
|
638
|
+
constructor(data: any);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
class PayInExecutionDetails extends EntityBase {
|
|
642
|
+
constructor(data: any);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
class PayInExecutionDetailsDirect extends PayInExecutionDetails {
|
|
646
|
+
constructor(data: any);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
class PayInExecutionDetailsWeb extends PayInExecutionDetails {
|
|
650
|
+
constructor(data: any);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
class PayInExecutionDetailsBankingAlias extends PayInExecutionDetails {
|
|
654
|
+
constructor(data: any);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
class PayInPaymentDetailsBankWire extends PayInPaymentDetails {
|
|
658
|
+
constructor(data: any);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
class PayInPaymentDetailsBankingAlias extends PayInPaymentDetails {
|
|
662
|
+
constructor(data: any);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
class PayInPaymentDetailsCard extends PayInPaymentDetails {
|
|
666
|
+
constructor(data: any);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
class PayInPaymentDetailsPayconiq extends PayInPaymentDetails {
|
|
670
|
+
constructor(data: any);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
class PayInPaymentDetailsCardDirect extends PayInPaymentDetails {
|
|
674
|
+
constructor(data: any);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
class PayInPaymentDetailsCardWeb extends PayInPaymentDetails {
|
|
678
|
+
constructor(data: any);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
class PayInPaymentDetailsDirectDebitDirect extends PayInPaymentDetails {
|
|
682
|
+
constructor(data: any);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
class PayInPaymentDetailsDirectDebitWeb extends PayInPaymentDetails {
|
|
686
|
+
constructor(data: any);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
class PayInPaymentDetailsPayPal extends PayInPaymentDetails {
|
|
690
|
+
constructor(data: any);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
class PayInPaymentDetailsApplePay extends PayInPaymentDetails {
|
|
694
|
+
constructor(data: any);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
class PayInPaymentDetailsGooglePay extends PayInPaymentDetails {
|
|
698
|
+
constructor(data: any);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
class PayInPaymentDetailsPreAuthorized extends PayInPaymentDetails {
|
|
702
|
+
constructor(data: any);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
class PayInTemplateURLOptions extends EntityBase {
|
|
706
|
+
constructor(data: any);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
class Refund extends EntityBase<refund.RefundData> {
|
|
710
|
+
constructor(data: refund.CreatePayInRefund | refund.CreateTransferRefund);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
class RefundReasonDetails extends EntityBase {
|
|
714
|
+
constructor(data: any);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
class Repudiation extends EntityBase<repudiation.RepudiationData> {
|
|
718
|
+
constructor(data: Partial<repudiation.RepudiationData>);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
interface Repudiation extends repudiation.RepudiationData {
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
class Client extends EntityBase<client.ClientData> {
|
|
725
|
+
constructor(data?: Partial<client.ClientData>);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
interface Client extends client.ClientData {
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
class PlatformCategorization extends EntityBase<client.PlatformCategorization> {
|
|
732
|
+
constructor(data: client.PlatformCategorization);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
class Dispute extends EntityBase<dispute.DisputeData> {
|
|
736
|
+
constructor(data: Partial<dispute.DisputeData>);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
interface Dispute extends dispute.DisputeData {
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
class DisputeReason extends Model {
|
|
743
|
+
constructor(data: any);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
class SettlementTransfer extends EntityBase<settlementTransfer.SettlementTransferData> {
|
|
747
|
+
constructor(data: Partial<settlementTransfer.SettlementTransferData>);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
interface SettlementTransfer
|
|
751
|
+
extends settlementTransfer.SettlementTransferData {
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
class Transfer extends EntityBase<transfer.TransferData> {
|
|
755
|
+
constructor(data: Partial<transfer.CreateTransfer>);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
interface Transfer extends transfer.TransferData {
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
class ShippingAddress extends EntityBase<shippingAddress.ShippingAddressData> {
|
|
762
|
+
constructor(data: Partial<shippingAddress.ShippingAddressData>);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
interface ShippingAddress extends shippingAddress.ShippingAddressData {
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
class PayOut extends EntityBase<payOut.PayOutData> {
|
|
769
|
+
constructor(data: Partial<payOut.CreatePayOut>);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
class PayOutPaymentDetails extends EntityBase {
|
|
773
|
+
constructor(data?: any);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
class PayOutPaymentDetailsBankWire extends PayOutPaymentDetails {
|
|
777
|
+
constructor(data?: any);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
class Mandate extends EntityBase<mandate.MandateData> {
|
|
781
|
+
constructor(data?: Partial<mandate.MandateData>);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
interface Mandate extends mandate.MandateData {
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
class Hook extends EntityBase<hook.HookData> {
|
|
788
|
+
constructor(data?: Partial<hook.HookData>);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
interface Hook extends hook.HookData {
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
class Report extends EntityBase<report.ReportData> {
|
|
795
|
+
constructor(data?: Partial<report.ReportData>);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
interface Report extends report.ReportData {
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
class ReportFilter extends Model<report.Filters> {
|
|
802
|
+
constructor(data?: Partial<report.Filters>);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
class DebitedBankAccount extends EntityBase<bankAccount.DebitedBankAccountData> {
|
|
806
|
+
constructor(data: bankAccount.DebitedBankAccountData);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
interface DebitedBankAccount extends bankAccount.DebitedBankAccountData {
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
class CountryAuthorization extends EntityBase<countryAuthorization.CountryAuthorizationData> {
|
|
813
|
+
constructor(data?: Partial<countryAuthorization.CountryAuthorizationData>);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
interface CountryAuthorization extends countryAuthorization.CountryAuthorizationData {
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
class Deposit extends EntityBase<deposit.DepositData> {
|
|
820
|
+
constructor(data?: Partial<deposit.CreateDeposit>);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
interface Deposit extends deposit.DepositData {
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
class VirtualAccount extends EntityBase<virtualAccount.VirtualAccountData> {
|
|
827
|
+
constructor(data: Partial<virtualAccount.VirtualAccountData> | virtualAccount.CreateVirtualAccount)
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
interface VirtualAccount extends virtualAccount.VirtualAccountData {
|
|
831
|
+
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export {
|
|
836
|
+
models,
|
|
837
|
+
base,
|
|
838
|
+
address,
|
|
839
|
+
bankAccount,
|
|
840
|
+
bankingAlias,
|
|
841
|
+
billing,
|
|
842
|
+
birthplace,
|
|
843
|
+
card,
|
|
844
|
+
cardPreAuthorization,
|
|
845
|
+
cardRegistration,
|
|
846
|
+
cardValidation,
|
|
847
|
+
client,
|
|
848
|
+
dispute,
|
|
849
|
+
disputeDocument,
|
|
850
|
+
entityBase,
|
|
851
|
+
event,
|
|
852
|
+
hook,
|
|
853
|
+
idempotency,
|
|
854
|
+
kycDocument,
|
|
855
|
+
mandate,
|
|
856
|
+
money,
|
|
857
|
+
payIn,
|
|
858
|
+
payOut,
|
|
859
|
+
refund,
|
|
860
|
+
report,
|
|
861
|
+
repudiation,
|
|
862
|
+
securityInfo,
|
|
863
|
+
settlementTransfer,
|
|
864
|
+
shipping,
|
|
865
|
+
shippingAddress,
|
|
866
|
+
transaction,
|
|
867
|
+
transfer,
|
|
868
|
+
uboDeclaration,
|
|
869
|
+
user,
|
|
870
|
+
wallet,
|
|
871
|
+
Timestamp,
|
|
872
|
+
SecureMode,
|
|
873
|
+
enums,
|
|
874
|
+
CountryISO,
|
|
875
|
+
CultureISO,
|
|
876
|
+
CurrencyISO,
|
|
877
|
+
countryAuthorization,
|
|
878
|
+
deposit,
|
|
879
|
+
conversionRate,
|
|
880
|
+
conversion,
|
|
881
|
+
virtualAccount,
|
|
882
|
+
identityVerification,
|
|
883
|
+
recipient
|
|
884
|
+
};
|
|
885
|
+
}
|