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,15 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
module.exports = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
AcceptHeader: null,
|
|
6
|
+
JavaEnabled: null,
|
|
7
|
+
JavascriptEnabled: null,
|
|
8
|
+
Language: null,
|
|
9
|
+
ColorDepth: null,
|
|
10
|
+
ScreenHeight: null,
|
|
11
|
+
ScreenWidth: null,
|
|
12
|
+
TimeZoneOffset: null,
|
|
13
|
+
UserAgent: null
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
module.exports = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
ExpirationDate: null,
|
|
6
|
+
Alias: null,
|
|
7
|
+
CardProvider: null,
|
|
8
|
+
UserId: null,
|
|
9
|
+
CardType: null,
|
|
10
|
+
Product: null,
|
|
11
|
+
BankCode: null,
|
|
12
|
+
Country: null,
|
|
13
|
+
Active: null,
|
|
14
|
+
Currency: null,
|
|
15
|
+
Validity: null,
|
|
16
|
+
Fingerprint: null,
|
|
17
|
+
CardHolderName: null
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
var CardInfo = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
/**
|
|
6
|
+
* The 6-digit bank identification number (BIN) of the card issuer.
|
|
7
|
+
*/
|
|
8
|
+
BIN: null,
|
|
9
|
+
/**
|
|
10
|
+
* The name of the card issuer.
|
|
11
|
+
*/
|
|
12
|
+
IssuingBank: null,
|
|
13
|
+
/**
|
|
14
|
+
* TThe country where the card was issued.
|
|
15
|
+
*/
|
|
16
|
+
IssuerCountryCode: null,
|
|
17
|
+
/**
|
|
18
|
+
* The type of card product: DEBIT, CREDIT, CHARGE CARD.
|
|
19
|
+
*/
|
|
20
|
+
Type: null,
|
|
21
|
+
/**
|
|
22
|
+
* The card brand. Examples include: AMERICAN EXPRESS, DISCOVER, JCB, MASTERCARD, VISA, etc.
|
|
23
|
+
*/
|
|
24
|
+
Brand: null,
|
|
25
|
+
/**
|
|
26
|
+
* The subtype of the card product. Examples include: CLASSIC, GOLD, PLATINUM, PREPAID, etc.
|
|
27
|
+
*/
|
|
28
|
+
SubType: null
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
module.exports = CardInfo;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var Model = require('../Model');
|
|
3
|
+
var Money = require('./Money');
|
|
4
|
+
var Billing = require('./Billing');
|
|
5
|
+
var SecurityInfo = require('./SecurityInfo');
|
|
6
|
+
var Shipping = require('./Shipping');
|
|
7
|
+
var BrowserInfo = require('./BrowserInfo');
|
|
8
|
+
|
|
9
|
+
var CardPreAuthorization = Model.extend({
|
|
10
|
+
defaults: {
|
|
11
|
+
AuthorId: null,
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* It represents the amount debited on the bank account
|
|
15
|
+
* of the Author.DebitedFunds = Fees + CreditedFunds
|
|
16
|
+
* (amount received on wallet)
|
|
17
|
+
*/
|
|
18
|
+
DebitedFunds: null,
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Status of the PreAuthorization: CREATED, SUCCEEDED, FAILED
|
|
22
|
+
*/
|
|
23
|
+
Status: null,
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The status of the payment after the PreAuthorization:
|
|
27
|
+
* WAITING, CANCELED, EXPIRED, VALIDATED
|
|
28
|
+
*/
|
|
29
|
+
PaymentStatus: null,
|
|
30
|
+
|
|
31
|
+
ResultCode: null,
|
|
32
|
+
ResultMessage: null,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* How the PreAuthorization has been executed.
|
|
36
|
+
* Only on value for now: CARD
|
|
37
|
+
*/
|
|
38
|
+
ExecutionType: null,
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* An optional value to be specified on the user's bank statement
|
|
42
|
+
*/
|
|
43
|
+
StatementDescriptor: null,
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The SecureMode correspond to '3D secure' for CB Visa and MasterCard
|
|
47
|
+
* or 'Amex Safe Key' for American Express.
|
|
48
|
+
* This field lets you activate it manually.
|
|
49
|
+
*/
|
|
50
|
+
SecureMode: null,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the registered card (Got through CardRegistration object)
|
|
54
|
+
*/
|
|
55
|
+
CardId: null,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Boolean. The value is 'true' if the SecureMode was used
|
|
59
|
+
*/
|
|
60
|
+
SecureModeNeeded: null,
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* This is the URL where to redirect users to proceed
|
|
64
|
+
* to 3D secure validation
|
|
65
|
+
*/
|
|
66
|
+
SecureModeRedirectURL: null,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* This is the URL where users are automatically redirected
|
|
70
|
+
* after 3D secure validation (if activated)
|
|
71
|
+
*/
|
|
72
|
+
SecureModeReturnURL: null,
|
|
73
|
+
/**
|
|
74
|
+
* The date when the payment is processed
|
|
75
|
+
*/
|
|
76
|
+
ExpirationDate: null,
|
|
77
|
+
/**
|
|
78
|
+
* The date when the payment was authorized
|
|
79
|
+
*/
|
|
80
|
+
AuthorizationDate: null,
|
|
81
|
+
/**
|
|
82
|
+
* The type of pre-authorization ("CARD" is the only acceptable value at present
|
|
83
|
+
*/
|
|
84
|
+
PaymentType: null,
|
|
85
|
+
PayInId: null,
|
|
86
|
+
Billing: null,
|
|
87
|
+
SecurityInfo: null,
|
|
88
|
+
RemainingFunds: null,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Boolean. The value is 'true' if the MultiCapture was used
|
|
92
|
+
*/
|
|
93
|
+
MultiCapture: null,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Is not Mandatory for 3DSv1 (flag �Use 3DSV2 Scenario� OFF)
|
|
97
|
+
* Is mandatory when the flag �Use 3DSV2 Scenario� is active for (FORCE/DEFAULT/FRICTIONLESS both 3)
|
|
98
|
+
*/
|
|
99
|
+
IpAddress: null,
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Shipping Address
|
|
103
|
+
*/
|
|
104
|
+
Shipping: null,
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
* BrowserInfo
|
|
108
|
+
*/
|
|
109
|
+
BrowserInfo: null,
|
|
110
|
+
|
|
111
|
+
/*
|
|
112
|
+
* Requested3DSVersion
|
|
113
|
+
*/
|
|
114
|
+
Requested3DSVersion: null,
|
|
115
|
+
|
|
116
|
+
/*
|
|
117
|
+
* Applied3DSVersion
|
|
118
|
+
*/
|
|
119
|
+
Applied3DSVersion: null,
|
|
120
|
+
/*
|
|
121
|
+
* Information about the card
|
|
122
|
+
*/
|
|
123
|
+
CardInfo: null
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
getSubObjects: function() {
|
|
127
|
+
return {
|
|
128
|
+
'DebitedFunds': Money,
|
|
129
|
+
'Billing': Billing,
|
|
130
|
+
'SecurityInfo': SecurityInfo,
|
|
131
|
+
'RemainingFunds': Money,
|
|
132
|
+
'Shipping': Shipping,
|
|
133
|
+
'BrowserInfo': BrowserInfo
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
getReadOnlyProperties: function() {
|
|
138
|
+
var properties = Model.prototype.getReadOnlyProperties();
|
|
139
|
+
properties.push('Status', 'ResultCode', 'ResultMessage');
|
|
140
|
+
return properties;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
module.exports = CardPreAuthorization;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var Model = require('../Model');
|
|
3
|
+
|
|
4
|
+
var CardRegistration = Model.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
UserId: null,
|
|
7
|
+
CardType: null,
|
|
8
|
+
AccessKey: null,
|
|
9
|
+
PreregistrationData: null,
|
|
10
|
+
CardRegistrationURL: null,
|
|
11
|
+
CardId: null,
|
|
12
|
+
RegistrationData: null,
|
|
13
|
+
ResultCode: null,
|
|
14
|
+
ResultMessage: null,
|
|
15
|
+
Currency: null,
|
|
16
|
+
Status: null,
|
|
17
|
+
CardHolderName: null
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
getReadOnlyProperties: function() {
|
|
21
|
+
var properties = Model.prototype.getReadOnlyProperties();
|
|
22
|
+
properties.push('AccessKey', 'PreregistrationData', 'CardRegistrationURL', 'CardId', 'ResultCode',
|
|
23
|
+
'ResultMessage', 'Status');
|
|
24
|
+
|
|
25
|
+
return properties;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
module.exports = CardRegistration;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
module.exports = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
AuthorId: null,
|
|
6
|
+
Status: null,
|
|
7
|
+
SecureModeReturnURL: null,
|
|
8
|
+
SecureModeRedirectURL: null,
|
|
9
|
+
SecureModeNeeded: null,
|
|
10
|
+
SecureMode: null,
|
|
11
|
+
IpAddress: null,
|
|
12
|
+
BrowserInfo: null,
|
|
13
|
+
Validity: null,
|
|
14
|
+
Type: null,
|
|
15
|
+
Applied3DSVersion: null,
|
|
16
|
+
ResultCode: null,
|
|
17
|
+
ResultMessage: null
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var Model = require('./../Model');
|
|
2
|
+
|
|
3
|
+
var CategorizeUserLegal = Model.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
Id: null,
|
|
6
|
+
UserCategory: null,
|
|
7
|
+
TermsAndConditionsAccepted: null,
|
|
8
|
+
LegalRepresentative: null,
|
|
9
|
+
HeadquartersAddress: null,
|
|
10
|
+
CompanyNumber: null,
|
|
11
|
+
ScaContext: null
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
module.exports = CategorizeUserLegal;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var Model = require('./../Model');
|
|
2
|
+
|
|
3
|
+
var CategorizeUserNatural = Model.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
Id: null,
|
|
6
|
+
UserCategory: null,
|
|
7
|
+
TermsAndConditionsAccepted: null,
|
|
8
|
+
Email: null,
|
|
9
|
+
Birthday: null,
|
|
10
|
+
Nationality: null,
|
|
11
|
+
CountryOfResidence: null,
|
|
12
|
+
PhoneNumber: null,
|
|
13
|
+
PhoneNumberCountry: null,
|
|
14
|
+
ScaContext: null
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = CategorizeUserNatural;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
var Client = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
Name: null,
|
|
6
|
+
ClientId: null,
|
|
7
|
+
/**
|
|
8
|
+
*The primary branding colour to use for your merchant
|
|
9
|
+
*/
|
|
10
|
+
PrimaryThemeColour: null,
|
|
11
|
+
/**
|
|
12
|
+
* The primary branding colour to use for buttons for your merchant
|
|
13
|
+
*/
|
|
14
|
+
PrimaryButtonColour: null,
|
|
15
|
+
/**
|
|
16
|
+
* The URL of the logo of your client
|
|
17
|
+
*/
|
|
18
|
+
Logo: null,
|
|
19
|
+
/**
|
|
20
|
+
* A list of email addresses to use when contacting you for technical issues/communications
|
|
21
|
+
*/
|
|
22
|
+
TechEmails: null,
|
|
23
|
+
/**
|
|
24
|
+
* A list of email addresses to use when contacting you for admin/commercial issues/communications
|
|
25
|
+
*/
|
|
26
|
+
AdminEmails: null,
|
|
27
|
+
/**
|
|
28
|
+
* A list of email addresses to use when contacting you for fraud/compliance issues/communications
|
|
29
|
+
*/
|
|
30
|
+
FraudEmails: null,
|
|
31
|
+
/**
|
|
32
|
+
* A list of email addresses to use when contacting you for billing issues/communications
|
|
33
|
+
*/
|
|
34
|
+
BillingEmails: null,
|
|
35
|
+
/**
|
|
36
|
+
* A description of what your platform does
|
|
37
|
+
*/
|
|
38
|
+
PlatformDescription: null,
|
|
39
|
+
/**
|
|
40
|
+
* Client's business categorization info
|
|
41
|
+
*/
|
|
42
|
+
PlatformCategorization: null,
|
|
43
|
+
/**
|
|
44
|
+
* The URL for your website
|
|
45
|
+
*/
|
|
46
|
+
PlatformURL: null,
|
|
47
|
+
|
|
48
|
+
HeadquartersAddress: null,
|
|
49
|
+
|
|
50
|
+
HeadquartersPhoneNumber: null,
|
|
51
|
+
/**
|
|
52
|
+
* The tax (or VAT) number for your company
|
|
53
|
+
*/
|
|
54
|
+
TaxNumber: null,
|
|
55
|
+
/**
|
|
56
|
+
* The licensor of the platform’s company account, indicating the Mangopay entity the platform contracted with
|
|
57
|
+
*/
|
|
58
|
+
Licensor: null
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
module.exports = Client;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
var Money = require('./Money');
|
|
3
|
+
|
|
4
|
+
var ClientWallet = EntityBase.extend({
|
|
5
|
+
defaults : {
|
|
6
|
+
Balance : null,
|
|
7
|
+
Currency : null,
|
|
8
|
+
FundsType : null
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
getSubObjects: function() {
|
|
12
|
+
return {
|
|
13
|
+
'Balance': Money
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get array with read-only properties
|
|
19
|
+
* @return {Array} List of string properties
|
|
20
|
+
*/
|
|
21
|
+
getReadOnlyProperties: function() {
|
|
22
|
+
var properties = EntityBase.prototype.getReadOnlyProperties();
|
|
23
|
+
properties.push('Balance');
|
|
24
|
+
return properties;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
module.exports = ClientWallet;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
module.exports = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
AuthorId: null,
|
|
6
|
+
DebitedWalletId: null,
|
|
7
|
+
CreditedWalletId: null,
|
|
8
|
+
DebitedFunds: null,
|
|
9
|
+
CreditedFunds: null,
|
|
10
|
+
Fees: null,
|
|
11
|
+
ConversionRate: null,
|
|
12
|
+
Status: null,
|
|
13
|
+
Type: null,
|
|
14
|
+
Nature: null,
|
|
15
|
+
ResultCode: null,
|
|
16
|
+
ResultMessage: null,
|
|
17
|
+
ExecutionDate: null
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var Model = require('../Model');
|
|
2
|
+
var Money = require('./Money');
|
|
3
|
+
|
|
4
|
+
var DebitedBankAccount = Model.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
OwnerName: null,
|
|
7
|
+
AccountNumber: null,
|
|
8
|
+
IBAN: null,
|
|
9
|
+
BIC: null,
|
|
10
|
+
Type: null,
|
|
11
|
+
Country: null
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
module.exports = DebitedBankAccount;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var Model = require('./../Model')
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents validation status of a user declared as UBO.
|
|
5
|
+
*/
|
|
6
|
+
var DeclaredUbo = Model.extend({
|
|
7
|
+
defaults: {
|
|
8
|
+
/**
|
|
9
|
+
* ID of the declared user
|
|
10
|
+
*/
|
|
11
|
+
UserId: null,
|
|
12
|
+
/**
|
|
13
|
+
* Validation status of this declared UBO
|
|
14
|
+
* One of DeclaredUboStatus
|
|
15
|
+
*/
|
|
16
|
+
Status: null,
|
|
17
|
+
/**
|
|
18
|
+
* Reason why the UBO is not valid
|
|
19
|
+
* One of UboRefusedReasonType
|
|
20
|
+
*/
|
|
21
|
+
RefusedReasonType: null,
|
|
22
|
+
/**
|
|
23
|
+
* Message explaining why the UBO is not valid
|
|
24
|
+
*/
|
|
25
|
+
RefusedReasonMessage: null
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
module.exports = DeclaredUbo;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumeration of possible statuses of a declared UBO.
|
|
3
|
+
*/
|
|
4
|
+
module.exports = {
|
|
5
|
+
/**
|
|
6
|
+
* When declaration of a UBO was created
|
|
7
|
+
*/
|
|
8
|
+
Created: 'CREATED',
|
|
9
|
+
/**
|
|
10
|
+
* When declaration of a UBO was validated
|
|
11
|
+
*/
|
|
12
|
+
Validated: 'VALIDATED',
|
|
13
|
+
/**
|
|
14
|
+
* When declaration of a UBO was refused
|
|
15
|
+
*/
|
|
16
|
+
Refused: 'REFUSED'
|
|
17
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
module.exports = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
AuthorId: null,
|
|
6
|
+
DebitedFunds: null,
|
|
7
|
+
Status: null,
|
|
8
|
+
PaymentStatus: null,
|
|
9
|
+
PayinsLinked: null,
|
|
10
|
+
ResultCode: null,
|
|
11
|
+
ResultMessage: null,
|
|
12
|
+
CardId: null,
|
|
13
|
+
SecureModeReturnURL: null,
|
|
14
|
+
SecureModeRedirectURL: null,
|
|
15
|
+
SecureModeNeeded: null,
|
|
16
|
+
ExpirationDate: null,
|
|
17
|
+
PaymentType: null,
|
|
18
|
+
ExecutionType: null,
|
|
19
|
+
StatementDescriptor: null,
|
|
20
|
+
Culture: null,
|
|
21
|
+
IpAddress: null,
|
|
22
|
+
BrowserInfo: null,
|
|
23
|
+
Billing: null,
|
|
24
|
+
Shipping: null,
|
|
25
|
+
Requested3DSVersion: null,
|
|
26
|
+
Applied3DSVersion: null,
|
|
27
|
+
CardInfo: null
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var Model = require('../Model');
|
|
3
|
+
var Money = require('./Money');
|
|
4
|
+
var DisputeReason = require('./DisputeReason');
|
|
5
|
+
|
|
6
|
+
var Dispute = Model.extend({
|
|
7
|
+
defaults: {
|
|
8
|
+
InitialTransactionId: null,
|
|
9
|
+
InitialTransactionType: null,
|
|
10
|
+
DisputeType: null,
|
|
11
|
+
ContestDeadlineDate: null,
|
|
12
|
+
ClosedDate: null,
|
|
13
|
+
DisputeReason: null,
|
|
14
|
+
DisputedFunds: null,
|
|
15
|
+
ContestedFunds: null,
|
|
16
|
+
Status: null,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Free text used when reopening the dispute
|
|
20
|
+
*/
|
|
21
|
+
StatusMessage: null,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The outcome of the dispute – will be null until closed, and then one of WON, LOST or VOID
|
|
25
|
+
*/
|
|
26
|
+
ResultCode: null,
|
|
27
|
+
ResultMessage: null
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
getSubObjects: function() {
|
|
31
|
+
return {
|
|
32
|
+
'DisputeReason': DisputeReason,
|
|
33
|
+
'DisputedFunds': Money,
|
|
34
|
+
'ContestedFunds': Money
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
getReadOnlyProperties: function() {
|
|
39
|
+
var properties = Model.prototype.getReadOnlyProperties();
|
|
40
|
+
properties.push('InitialTransactionId', 'InitialTransactionType', 'DisputeType', 'ContestDeadlineDate',
|
|
41
|
+
'DisputeReason', 'DisputedFunds', 'Status', 'StatusMessage', 'ResultCode', 'ResultMessage');
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
module.exports = Dispute;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var Model = require('../Model');
|
|
2
|
+
|
|
3
|
+
var DocumentPageConsult = Model.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
/**
|
|
6
|
+
* URL where this document page can be viewed.
|
|
7
|
+
*/
|
|
8
|
+
Url: null,
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Time in millis when the page consult will expire.
|
|
12
|
+
*/
|
|
13
|
+
ExpirationDate: null
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
module.exports = DocumentPageConsult;
|