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,28 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetailsCard = require('./PayInPaymentDetailsCard');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsCardWeb = PayInPaymentDetailsCard.extend({
|
|
5
|
+
defaults: _.extend({}, PayInPaymentDetailsCard.prototype.defaults, {
|
|
6
|
+
/**
|
|
7
|
+
* CardType { CB_VISA_MASTERCARD, AMEX }
|
|
8
|
+
*/
|
|
9
|
+
CardType: null,
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Shipping
|
|
13
|
+
*/
|
|
14
|
+
Shipping: null,
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The BIC identifier of the end-user’s bank
|
|
18
|
+
*/
|
|
19
|
+
Bic: null,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Name of the end-user’s bank
|
|
23
|
+
*/
|
|
24
|
+
BankName: null,
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
module.exports = PayInPaymentDetailsCardWeb;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
2
|
+
|
|
3
|
+
var PayInPaymentDetailsDirectDebit = PayInPaymentDetails.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
/**
|
|
6
|
+
* Mandate identifier.
|
|
7
|
+
*/
|
|
8
|
+
MandateId: null,
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* An optional value to be specified on the user's bank statement
|
|
12
|
+
*/
|
|
13
|
+
StatementDescriptor: null,
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Date of charging
|
|
17
|
+
*/
|
|
18
|
+
ChargeDate: null
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
module.exports = PayInPaymentDetailsDirectDebit;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsDirectDebit = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
/**
|
|
7
|
+
* Direct debit type {SOFORT, ELV, GIROPAY}
|
|
8
|
+
*/
|
|
9
|
+
DirectDebitType: null
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
module.exports = PayInPaymentDetailsDirectDebit;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsGiropay = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Custom description to show on the user's bank statement.
|
|
9
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
10
|
+
*/
|
|
11
|
+
StatementDescriptor: null
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
module.exports = PayInPaymentDetailsGiropay;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsGooglePay = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
/**
|
|
7
|
+
* Payment information returned by Google Pay payment
|
|
8
|
+
*/
|
|
9
|
+
PaymentData: null,
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Custom description to show on the user's bank statement.
|
|
13
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
14
|
+
*/
|
|
15
|
+
StatementDescriptor: null,
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Billing details
|
|
19
|
+
*/
|
|
20
|
+
Billing: null,
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/// V2 ///
|
|
24
|
+
|
|
25
|
+
ReturnURL: null,
|
|
26
|
+
|
|
27
|
+
Shipping: null,
|
|
28
|
+
|
|
29
|
+
BrowserInfo: null,
|
|
30
|
+
|
|
31
|
+
IpAddress: null
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
module.exports = PayInPaymentDetailsGooglePay;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsIdeal = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The BIC identifier of the end-user’s bank
|
|
9
|
+
*/
|
|
10
|
+
Bic: null,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Name of the end-user’s bank
|
|
14
|
+
*/
|
|
15
|
+
BankName: null,
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Custom description to show on the user's bank statement.
|
|
19
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
20
|
+
*/
|
|
21
|
+
StatementDescriptor: null
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
module.exports = PayInPaymentDetailsIdeal;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsKlarna = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
LineItems: null,
|
|
7
|
+
|
|
8
|
+
Shipping: null,
|
|
9
|
+
|
|
10
|
+
Billing: null,
|
|
11
|
+
|
|
12
|
+
PaymentMethod: null,
|
|
13
|
+
|
|
14
|
+
Country: null,
|
|
15
|
+
|
|
16
|
+
AdditionalData: null,
|
|
17
|
+
|
|
18
|
+
Email: null,
|
|
19
|
+
|
|
20
|
+
Reference: null,
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Custom description to show on the user's bank statement.
|
|
24
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
25
|
+
*/
|
|
26
|
+
StatementDescriptor: null,
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The mobile phone number of the user initiating the pay-in
|
|
30
|
+
* Country code followed by hash symbol (#) followed by the rest of the number. Only digits and hash allowed
|
|
31
|
+
*/
|
|
32
|
+
Phone: null
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
module.exports = PayInPaymentDetailsKlarna;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsMbway = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
/**
|
|
7
|
+
* Custom description to show on the user's bank statement.
|
|
8
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
9
|
+
*/
|
|
10
|
+
StatementDescriptor: null,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The mobile phone number of the user initiating the pay-in
|
|
14
|
+
* Country code followed by hash symbol (#) followed by the rest of the number. Only digits and hash allowed
|
|
15
|
+
*/
|
|
16
|
+
Phone: null
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
module.exports = PayInPaymentDetailsMbway;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsMultibanco = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
/**
|
|
7
|
+
* Custom description to show on the user's bank statement.
|
|
8
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
9
|
+
*/
|
|
10
|
+
StatementDescriptor: null
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
module.exports = PayInPaymentDetailsMultibanco;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsPayByBank = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Custom description to appear on the user’s bank statement along with the platform name
|
|
9
|
+
*/
|
|
10
|
+
StatementDescriptor: null,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The end-user residency country
|
|
14
|
+
*/
|
|
15
|
+
Country: null,
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The BIC identifier of the end-user’s bank
|
|
19
|
+
*/
|
|
20
|
+
BIC: null,
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The IBAN identifier of the end-user’s bank
|
|
24
|
+
*/
|
|
25
|
+
IBAN: null,
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* This is the platform environment in which the application is running.Accepted values are:
|
|
29
|
+
*
|
|
30
|
+
* - WEB: For web browser usage(default setting)
|
|
31
|
+
*
|
|
32
|
+
* - APP: For mobile application usage
|
|
33
|
+
*
|
|
34
|
+
* If PaymentFlow is set to APP,the user is redirected to the platform's app after payment
|
|
35
|
+
*/
|
|
36
|
+
PaymentFlow: null,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Name of the end-user’s bank
|
|
40
|
+
*/
|
|
41
|
+
BankName: null,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The language in which the Pay by Bank payment page isto be displayed - Alpha-2 format (default US)
|
|
45
|
+
*/
|
|
46
|
+
Culture: null,
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* This is the payment scheme the end user selects for processing the transaction,which varies by market
|
|
50
|
+
* (see details below). Default values are always instant schemes.
|
|
51
|
+
*
|
|
52
|
+
* Please note that some banks may charge additional fees for instant payment schemes
|
|
53
|
+
*
|
|
54
|
+
* Please note that the scheme is mandatory for the Danish market (”Country” : “DK”)
|
|
55
|
+
*/
|
|
56
|
+
Scheme: null,
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* This is a temporary status indicating that the payment initiation was successful,
|
|
60
|
+
* but the funds have not yet been received in Mangopay's bank account
|
|
61
|
+
*
|
|
62
|
+
* This parameter is only relevant once the transaction has been processed by the end user.
|
|
63
|
+
* It is not returned when the payment is initiated or successfully completed
|
|
64
|
+
*
|
|
65
|
+
* Possible value: PENDING_SUCCEEDED
|
|
66
|
+
*/
|
|
67
|
+
ProcessingStatus: null
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
module.exports = PayInPaymentDetailsPayByBank;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
2
|
+
|
|
3
|
+
var PayInPaymentDetailsPayPal = PayInPaymentDetails.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
/**
|
|
6
|
+
* Address used instead of the user's PayPal account address.
|
|
7
|
+
*/
|
|
8
|
+
ShippingAddress: null,
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Email address of the buyer's account.
|
|
12
|
+
*/
|
|
13
|
+
PaypalBuyerAccountEmail: null,
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/// V2 ///
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The URL where users are automatically redirected after the payment is validated
|
|
20
|
+
*/
|
|
21
|
+
ReturnURL: null,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The URL to which the user is redirected to complete the payment
|
|
25
|
+
*/
|
|
26
|
+
RedirectUrl: null,
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Custom description of the payment shown to the consumer when making payments and on the bank statement
|
|
30
|
+
*/
|
|
31
|
+
StatementDescriptor: null,
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* User’s shipping address When not provided, the default address is the one register one the buyer PayPal account
|
|
35
|
+
*/
|
|
36
|
+
Shipping: null,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Information about the items bought by the customer
|
|
40
|
+
*/
|
|
41
|
+
LineItems: null,
|
|
42
|
+
|
|
43
|
+
ShippingPreference: null,
|
|
44
|
+
|
|
45
|
+
PaypalPayerID: null,
|
|
46
|
+
|
|
47
|
+
BuyerCountry: null,
|
|
48
|
+
|
|
49
|
+
BuyerFirstname: null,
|
|
50
|
+
|
|
51
|
+
BuyerLastname: null,
|
|
52
|
+
|
|
53
|
+
BuyerPhone: null,
|
|
54
|
+
|
|
55
|
+
PaypalOrderID: null,
|
|
56
|
+
|
|
57
|
+
CancelURL: null,
|
|
58
|
+
|
|
59
|
+
Trackings: null
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
module.exports = PayInPaymentDetailsPayPal;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
2
|
+
var Money = require('./Money');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsPayconiq = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
Country: null,
|
|
7
|
+
AuthorId: null,
|
|
8
|
+
DebitedFunds: null,
|
|
9
|
+
Fees: null,
|
|
10
|
+
DeepLinkURL: null,
|
|
11
|
+
StatementDescriptor: null,
|
|
12
|
+
QRCodeURL: null
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
getSubObjects: function() {
|
|
16
|
+
return {
|
|
17
|
+
'DebitedFunds': Money,
|
|
18
|
+
'Fees': Money
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
module.exports = PayInPaymentDetailsPayconiq;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsPreAuthorized = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
PreauthorizationId: null
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
module.exports = PayInPaymentDetailsPreAuthorized;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsSatispay = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
/**
|
|
7
|
+
* Custom description to show on the user's bank statement.
|
|
8
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
9
|
+
*/
|
|
10
|
+
StatementDescriptor: null,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The end-user country of residence
|
|
14
|
+
*/
|
|
15
|
+
Country: null
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
module.exports = PayInPaymentDetailsSatispay;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsSwish = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Custom description to show on the user's bank statement.
|
|
9
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
10
|
+
*/
|
|
11
|
+
StatementDescriptor: null,
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The mobile URL to which to redirect the user to complete the payment in an app-to-app flow.
|
|
15
|
+
*/
|
|
16
|
+
DeepLinkURL: null,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The PNG file of the Swish QR code as a Base64-encoded string.
|
|
20
|
+
*/
|
|
21
|
+
QRCodeURL: null,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* <p>Allowed values: WEB, APP</p>
|
|
25
|
+
* <p>Default value: WEB</p>
|
|
26
|
+
* <p>The platform environment of the post-payment flow. The PaymentFlow value combines with the ReturnURL to manage the redirection behavior after payment:</p>
|
|
27
|
+
* <p>Set the value to APP to send the user to your platform’s mobile app</p>
|
|
28
|
+
* <p>Set the value to WEB to send the user to a web browser</p>
|
|
29
|
+
* <p>In both cases you need to provide the relevant ReturnURL, whether to your app or website.</p>
|
|
30
|
+
*/
|
|
31
|
+
PaymentFlow: null
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
module.exports = PayInPaymentDetailsSwish;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayInPaymentDetails = require('./PayInPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayInPaymentDetailsTwint = PayInPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Custom description to show on the user's bank statement.
|
|
9
|
+
* It can be up to 10 char alpha-numeric and space.
|
|
10
|
+
*/
|
|
11
|
+
StatementDescriptor: null
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
module.exports = PayInPaymentDetailsTwint;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
BankWire: 'BANK_WIRE',
|
|
3
|
+
Card: 'CARD',
|
|
4
|
+
DirectDebit: 'DIRECT_DEBIT',
|
|
5
|
+
Preauthorized: 'PREAUTHORIZED',
|
|
6
|
+
PayPal: 'PAYPAL',
|
|
7
|
+
ApplePay: 'APPLEPAY',
|
|
8
|
+
GooglePay: 'GOOGLE_PAY',
|
|
9
|
+
Payconiq: 'PAYCONIQ',
|
|
10
|
+
Mbway: 'MBWAY',
|
|
11
|
+
Bancontact: 'BCMC',
|
|
12
|
+
Bizum: 'BIZUM',
|
|
13
|
+
Multibanco: 'MULTIBANCO',
|
|
14
|
+
Satispay: 'SATISPAY',
|
|
15
|
+
Blik: 'BLIK',
|
|
16
|
+
Klarna: 'KLARNA',
|
|
17
|
+
Ideal: 'IDEAL',
|
|
18
|
+
Giropay: 'GIROPAY',
|
|
19
|
+
Swish: 'SWISH',
|
|
20
|
+
Twint: 'TWINT'
|
|
21
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
var Money = require('./Money');
|
|
3
|
+
var Billing = require('./Billing');
|
|
4
|
+
var Shipping = require('./Shipping');
|
|
5
|
+
var CurrentState = require('./RecurringPayInCurrentState')
|
|
6
|
+
|
|
7
|
+
var PayInRecurringRegistration = EntityBase.extend({
|
|
8
|
+
defaults: {
|
|
9
|
+
/**
|
|
10
|
+
* Array with owners identities
|
|
11
|
+
*/
|
|
12
|
+
AuthorId: null,
|
|
13
|
+
CardId: null,
|
|
14
|
+
CreditedWalletId: null,
|
|
15
|
+
CreditedUserId: null,
|
|
16
|
+
FirstTransactionDebitedFunds: null,
|
|
17
|
+
FirstTransactionFees: null,
|
|
18
|
+
Billing: null,
|
|
19
|
+
Shipping: null,
|
|
20
|
+
CreditedUserId: null,
|
|
21
|
+
EndDate: null,
|
|
22
|
+
Frequency: null,
|
|
23
|
+
FixedNextAmount: null,
|
|
24
|
+
FractionedPayment: null,
|
|
25
|
+
Migration: null,
|
|
26
|
+
NextTransactionDebitedFunds: null,
|
|
27
|
+
NextTransactionFees: null,
|
|
28
|
+
Status: null,
|
|
29
|
+
TotalAmount: null,
|
|
30
|
+
CycleNumber: null,
|
|
31
|
+
FreeCycles: null,
|
|
32
|
+
CurrentState: null,
|
|
33
|
+
PaymentType: null
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get mapping of model properties and corresponding object types
|
|
38
|
+
* @returns {Object}
|
|
39
|
+
*/
|
|
40
|
+
getSubObjects: function() {
|
|
41
|
+
return {
|
|
42
|
+
'FirstTransactionDebitedFunds': Money,
|
|
43
|
+
'FirstTransactionFees': Money,
|
|
44
|
+
'Fees': Money,
|
|
45
|
+
'Billing': Billing,
|
|
46
|
+
'Shipping': Shipping,
|
|
47
|
+
'NextTransactionDebitedFunds': Money,
|
|
48
|
+
'NextTransactionFees': Money,
|
|
49
|
+
'CurrentState': CurrentState
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get array with read-only properties
|
|
55
|
+
* @return {Array} List of string properties
|
|
56
|
+
*/
|
|
57
|
+
getReadOnlyProperties: function() {
|
|
58
|
+
var properties = EntityBase.prototype.getReadOnlyProperties();
|
|
59
|
+
properties.push('Status', 'TotalAmount', 'CycleNumber', 'CurrentState');
|
|
60
|
+
return properties;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
module.exports = PayInRecurringRegistration;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var Transaction = require('./Transaction');
|
|
3
|
+
|
|
4
|
+
var PayOut = Transaction.extend({
|
|
5
|
+
defaults: _.extend({}, Transaction.prototype.defaults, {
|
|
6
|
+
DebitedWalletId: null,
|
|
7
|
+
/**
|
|
8
|
+
* PaymentType (BANK_WIRE, MERCHANT_EXPENSE, AMAZON_GIFTCARD)
|
|
9
|
+
*/
|
|
10
|
+
PaymentType: null,
|
|
11
|
+
/**
|
|
12
|
+
* One of PayOutPaymentDetails implementations, depending on PaymentType
|
|
13
|
+
*/
|
|
14
|
+
MeanOfPaymentDetails: null
|
|
15
|
+
}),
|
|
16
|
+
|
|
17
|
+
getReadOnlyProperties: function() {
|
|
18
|
+
var properties = Transaction.prototype.getReadOnlyProperties();
|
|
19
|
+
properties.push('PaymentType');
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
module.exports = PayOut;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var _ = require('underscore');
|
|
2
|
+
var PayOutPaymentDetails = require('./PayOutPaymentDetails');
|
|
3
|
+
|
|
4
|
+
var PayOutPaymentDetailsBankWire = PayOutPaymentDetails.extend({
|
|
5
|
+
defaults: {
|
|
6
|
+
BankAccountId: null,
|
|
7
|
+
/**
|
|
8
|
+
* A custom reference you wish to appear on the user’s bank statement
|
|
9
|
+
*/
|
|
10
|
+
BankWireRef: null,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Payment reference provided for the payout.
|
|
14
|
+
*/
|
|
15
|
+
PayoutPaymentRef: null,
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The new parameter "PayoutModeRequested" can take the following values: "STANDARD", "INSTANT_PAYMENT", "INSTANT_PAYMENT_ONLY"
|
|
19
|
+
*/
|
|
20
|
+
PayoutModeRequested: null,
|
|
21
|
+
|
|
22
|
+
ModeRequested: null,
|
|
23
|
+
|
|
24
|
+
ModeApplied: null,
|
|
25
|
+
|
|
26
|
+
Status: null,
|
|
27
|
+
|
|
28
|
+
FallbackReason: null
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
module.exports = PayOutPaymentDetailsBankWire;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var EntityBase = require('./EntityBase');
|
|
2
|
+
|
|
3
|
+
var PaymentData = EntityBase.extend({
|
|
4
|
+
defaults: {
|
|
5
|
+
/**
|
|
6
|
+
* ID of the Apple payment transaction
|
|
7
|
+
*/
|
|
8
|
+
TransactionId: null,
|
|
9
|
+
/**
|
|
10
|
+
* Network card used for transaction
|
|
11
|
+
*/
|
|
12
|
+
Network: null,
|
|
13
|
+
/**
|
|
14
|
+
* Data block containing payment information
|
|
15
|
+
*/
|
|
16
|
+
TokenData: null,
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
module.exports = PaymentData;
|