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,144 @@
|
|
|
1
|
+
import { Omit } from "../types";
|
|
2
|
+
import { transfer } from "./transfer";
|
|
3
|
+
import { enums } from "../enums";
|
|
4
|
+
import { money } from "./money";
|
|
5
|
+
import { base } from "../base";
|
|
6
|
+
import { recipient } from "./recipient";
|
|
7
|
+
|
|
8
|
+
export namespace payOut {
|
|
9
|
+
import MoneyData = money.MoneyData;
|
|
10
|
+
import FallbackReasonData = base.FallbackReasonData;
|
|
11
|
+
import PayoutPaymentRefData = base.PayoutPaymentRefData;
|
|
12
|
+
import VerificationOfPayee = recipient.VerificationOfPayee;
|
|
13
|
+
|
|
14
|
+
type PayoutModeRequestedType = "STANDARD" | "INSTANT_PAYMENT" | "INSTANT_PAYMENT_ONLY" | "RTGS_PAYMENT";
|
|
15
|
+
type PayoutModeAppliedType = "STANDARD" | "INSTANT_PAYMENT" | "RTGS_PAYMENT" | "PENDING_RESPONSE";
|
|
16
|
+
|
|
17
|
+
interface PayOutData extends Omit<transfer.TransferData, "Type"> {
|
|
18
|
+
/**
|
|
19
|
+
* The type of the transaction
|
|
20
|
+
*/
|
|
21
|
+
Type: "PAYOUT";
|
|
22
|
+
|
|
23
|
+
PaymentType: enums.IPayOutPaymentType["BankWire"];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* An ID of a Bank Account
|
|
27
|
+
*/
|
|
28
|
+
BankAccountId: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A custom reference you wish to appear on the user’s bank statement (your Client Name is already shown). This reference can contain max 12 characters
|
|
32
|
+
*/
|
|
33
|
+
BankWireRef: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Payment reference provided for the payout.
|
|
37
|
+
*/
|
|
38
|
+
PaymentRef: PayoutPaymentRefData;
|
|
39
|
+
|
|
40
|
+
ModeRequested: PayoutModeRequestedType;
|
|
41
|
+
|
|
42
|
+
ModeApplied: PayoutModeAppliedType;
|
|
43
|
+
|
|
44
|
+
RecipientVerificationOfPayee?: VerificationOfPayee;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface CreatePayOut {
|
|
48
|
+
/**
|
|
49
|
+
* A user's ID
|
|
50
|
+
*/
|
|
51
|
+
AuthorId: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Information about the funds that are being debited
|
|
55
|
+
*/
|
|
56
|
+
DebitedFunds: MoneyData;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Information about the fees that were taken by the client for this transaction (and were hence transferred to the Client's platform wallet)
|
|
60
|
+
*/
|
|
61
|
+
Fees: MoneyData;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* An ID of a Bank Account
|
|
65
|
+
*/
|
|
66
|
+
BankAccountId: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the wallet that was debited
|
|
70
|
+
*/
|
|
71
|
+
DebitedWalletId: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* A custom reference you wish to appear on the user’s bank statement (your Client Name is already shown). This reference can contain max 12 characters
|
|
75
|
+
*/
|
|
76
|
+
BankWireRef?: string;
|
|
77
|
+
|
|
78
|
+
Tag?: string;
|
|
79
|
+
|
|
80
|
+
PaymentType: enums.IPayOutPaymentType["BankWire"];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Payout mode requested. May take one of the following values:
|
|
84
|
+
* STANDARD (value by default if no parameter is sent): a standard bank wire is requested and the processing time of the funds is about 48 hours;
|
|
85
|
+
* INSTANT_PAYMENT: an instant payment bank wire is requested and the processing time is within 25 seconds (subject to prerequisites)
|
|
86
|
+
* INSTANT_PAYMENT_ONLY: an instant payment bank wire is requested and the processing time is within 25 seconds,
|
|
87
|
+
* but if any prerequisite is not met or another problem occurs, there is no fallback: the wallet is automatically refunded and the payout is not completed.
|
|
88
|
+
*/
|
|
89
|
+
PayoutModeRequested?: PayoutModeRequestedType;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface CheckPayOutEligibility {
|
|
93
|
+
/**
|
|
94
|
+
* A user's ID
|
|
95
|
+
*/
|
|
96
|
+
AuthorId: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Information about the funds that are being debited
|
|
100
|
+
*/
|
|
101
|
+
DebitedFunds: MoneyData;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Information about the fees that were taken by the client for this transaction (and were hence transferred to the Client's platform wallet)
|
|
105
|
+
*/
|
|
106
|
+
Fees?: MoneyData;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* An ID of a Bank Account
|
|
110
|
+
*/
|
|
111
|
+
BankAccountId: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the wallet that was debited
|
|
115
|
+
*/
|
|
116
|
+
DebitedWalletId: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A custom reference you wish to appear on the user’s bank statement (your Client Name is already shown). This reference can contain max 12 characters
|
|
120
|
+
*/
|
|
121
|
+
BankWireRef?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Payout mode requested. May take one of the following values:
|
|
125
|
+
* STANDARD (value by default if no parameter is sent): a standard bank wire is requested and the processing time of the funds is about 48 hours;
|
|
126
|
+
* INSTANT_PAYMENT: an instant payment bank wire is requested and the processing time is within 25 seconds (subject to prerequisites)
|
|
127
|
+
* INSTANT_PAYMENT_ONLY: an instant payment bank wire is requested and the processing time is within 25 seconds,
|
|
128
|
+
* but if any prerequisite is not met or another problem occurs, there is no fallback: the wallet is automatically refunded and the payout is not completed.
|
|
129
|
+
*/
|
|
130
|
+
PayoutModeRequested: PayoutModeRequestedType;
|
|
131
|
+
|
|
132
|
+
PaymentType: enums.IPayOutPaymentType["BankWire"];
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
interface CheckPayOutEligibilityData {
|
|
136
|
+
InstantPayout: InstantPayOutEligibilityData;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface InstantPayOutEligibilityData {
|
|
140
|
+
IsReachable: boolean;
|
|
141
|
+
|
|
142
|
+
UnreachableReason?: FallbackReasonData;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import {CountryISO, CurrencyISO} from "../types";
|
|
2
|
+
import { entityBase } from "./entityBase";
|
|
3
|
+
import { address } from "./address";
|
|
4
|
+
import { user } from "./user";
|
|
5
|
+
|
|
6
|
+
export namespace recipient {
|
|
7
|
+
interface RecipientData extends entityBase.EntityBaseData {
|
|
8
|
+
/**
|
|
9
|
+
* The status
|
|
10
|
+
*/
|
|
11
|
+
Status: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A unique external identifier for the recipient's bank account.
|
|
15
|
+
*/
|
|
16
|
+
DisplayName: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Defines the payout method (e.g., LocalBankTransfer, InternationalBankTransfer).
|
|
20
|
+
*/
|
|
21
|
+
PayoutMethodType: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies whether the recipient is an Individual or a Business.
|
|
25
|
+
*/
|
|
26
|
+
RecipientType: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 3-letter ISO 4217 destination currency code (e.g. EUR, USD, GBP, AUD, CAD,HKD, SGD, MXN).
|
|
30
|
+
*/
|
|
31
|
+
Currency: CurrencyISO;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Country ISO
|
|
35
|
+
*/
|
|
36
|
+
Country: CountryISO;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The scope of the recipient:
|
|
40
|
+
*
|
|
41
|
+
* <p>- PAYOUT – Usable for payouts and in pay-in use cases.
|
|
42
|
+
* A PAYOUT recipient can only be created by a user with the UserCategory OWNER and requires SCA.
|
|
43
|
+
* You need to use the returned PendingUserAction.RedirectUrl value, adding your encoded returnUrl as a
|
|
44
|
+
* query parameter, to redirect the user to the hosted SCA session so they can complete the necessary steps.</p>
|
|
45
|
+
*
|
|
46
|
+
* <p>- PAYIN - Usable for pay-in use cases only, such as direct debit and refunds using payouts.
|
|
47
|
+
* A PAYIN recipient can be created by a user with the UserCategory PAYER or OWNER, and does not require SCA.</p>
|
|
48
|
+
*/
|
|
49
|
+
RecipientScope: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The unique identifier of the user.
|
|
53
|
+
*/
|
|
54
|
+
UserId: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Individual recipient
|
|
58
|
+
*/
|
|
59
|
+
IndividualRecipient: IndividualRecipientData;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Business recipient
|
|
63
|
+
*/
|
|
64
|
+
BusinessRecipient: BusinessRecipientData;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The account details if PayoutMethodType is LocalBankTransfer, depending on the Currency.
|
|
68
|
+
*/
|
|
69
|
+
LocalBankTransfer: any;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The account details if PayoutMethodType is InternationalBankTransfer.
|
|
73
|
+
*/
|
|
74
|
+
InternationalBankTransfer: any;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Information about the action required from the user
|
|
78
|
+
*/
|
|
79
|
+
PendingUserAction: user.PendingUserActionData;
|
|
80
|
+
|
|
81
|
+
RecipientVerificationOfPayee?: VerificationOfPayee;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface CreateRecipientData {
|
|
85
|
+
/**
|
|
86
|
+
* A unique external identifier for the recipient's bank account.
|
|
87
|
+
*/
|
|
88
|
+
DisplayName: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Defines the payout method (e.g., LocalBankTransfer, InternationalBankTransfer).
|
|
92
|
+
*/
|
|
93
|
+
PayoutMethodType: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Specifies whether the recipient is an Individual or a Business.
|
|
97
|
+
*/
|
|
98
|
+
RecipientType: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 3-letter ISO 4217 destination currency code (e.g. EUR, USD, GBP, AUD, CAD,HKD, SGD, MXN).
|
|
102
|
+
*/
|
|
103
|
+
Currency: CurrencyISO;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Country ISO
|
|
107
|
+
*/
|
|
108
|
+
Country?: CountryISO;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The scope of the recipient:
|
|
112
|
+
*
|
|
113
|
+
* <p>- PAYOUT – Usable for payouts and in pay-in use cases.
|
|
114
|
+
* A PAYOUT recipient can only be created by a user with the UserCategory OWNER and requires SCA.
|
|
115
|
+
* You need to use the returned PendingUserAction.RedirectUrl value, adding your encoded returnUrl as a
|
|
116
|
+
* query parameter, to redirect the user to the hosted SCA session so they can complete the necessary steps.</p>
|
|
117
|
+
*
|
|
118
|
+
* <p>- PAYIN - Usable for pay-in use cases only, such as direct debit and refunds using payouts.
|
|
119
|
+
* A PAYIN recipient can be created by a user with the UserCategory PAYER or OWNER, and does not require SCA.</p>
|
|
120
|
+
*/
|
|
121
|
+
RecipientScope?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Custom data that you can add to this object. This value cannot be changed once the recipient is created.
|
|
125
|
+
*/
|
|
126
|
+
Tag?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Individual recipient. Needed if BusinessRecipient is undefined
|
|
130
|
+
*/
|
|
131
|
+
IndividualRecipient?: CreateIndividualRecipientData;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Business recipient. Needed if IndividualRecipient is undefined
|
|
135
|
+
*/
|
|
136
|
+
BusinessRecipient?: CreateBusinessRecipientData;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The account details if PayoutMethodType is LocalBankTransfer, depending on the Currency.
|
|
140
|
+
* Needed if InternationalBankTransfer is undefined
|
|
141
|
+
*/
|
|
142
|
+
LocalBankTransfer?: Record<string, any>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The account details if PayoutMethodType is InternationalBankTransfer.
|
|
146
|
+
* Needed if LocalBankTransfer is undefined
|
|
147
|
+
*/
|
|
148
|
+
InternationalBankTransfer?: Record<string, any>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* If provided, possible values: USER_PRESENT, USER_NOT_PRESENT
|
|
152
|
+
*/
|
|
153
|
+
ScaContext?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
interface IndividualRecipientData {
|
|
157
|
+
FirstName: string;
|
|
158
|
+
LastName: string;
|
|
159
|
+
Address: address.AddressData;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface CreateIndividualRecipientData {
|
|
163
|
+
FirstName: string;
|
|
164
|
+
LastName: string;
|
|
165
|
+
Address: address.CreateAddress;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
interface BusinessRecipientData {
|
|
169
|
+
BusinessName: string;
|
|
170
|
+
Address: address.AddressData;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
interface CreateBusinessRecipientData {
|
|
174
|
+
BusinessName: string;
|
|
175
|
+
Address: address.CreateAddress;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
interface RecipientSchemaData {
|
|
179
|
+
DisplayName: RecipientPropertySchema;
|
|
180
|
+
Currency: RecipientPropertySchema;
|
|
181
|
+
Country: RecipientPropertySchema;
|
|
182
|
+
RecipientType: RecipientPropertySchema;
|
|
183
|
+
PayoutMethodType: RecipientPropertySchema;
|
|
184
|
+
RecipientScope: RecipientPropertySchema;
|
|
185
|
+
Tag: RecipientPropertySchema;
|
|
186
|
+
LocalBankTransfer: Record<string, Record<string, RecipientPropertySchema>>;
|
|
187
|
+
InternationalBankTransfer: Record<string, RecipientPropertySchema>;
|
|
188
|
+
IndividualRecipient: IndividualRecipientPropertySchema;
|
|
189
|
+
BusinessRecipient: BusinessRecipientPropertySchema;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface RecipientPropertySchema {
|
|
193
|
+
Required: boolean;
|
|
194
|
+
MaxLength: number;
|
|
195
|
+
MinLength: number;
|
|
196
|
+
Pattern: string;
|
|
197
|
+
AllowedValues: string[];
|
|
198
|
+
Label: string;
|
|
199
|
+
EndUserDisplay: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface RecipientAddressPropertySchema {
|
|
203
|
+
AddressLine1: RecipientPropertySchema;
|
|
204
|
+
AddressLine2: RecipientPropertySchema;
|
|
205
|
+
City: RecipientPropertySchema;
|
|
206
|
+
Region: RecipientPropertySchema;
|
|
207
|
+
PostalCode: RecipientPropertySchema;
|
|
208
|
+
Country: RecipientPropertySchema;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface IndividualRecipientPropertySchema {
|
|
212
|
+
FirstName: RecipientPropertySchema;
|
|
213
|
+
LastName: RecipientPropertySchema;
|
|
214
|
+
Address: RecipientAddressPropertySchema;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
interface BusinessRecipientPropertySchema {
|
|
218
|
+
BusinessName: RecipientPropertySchema;
|
|
219
|
+
Address: RecipientAddressPropertySchema;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
interface PayoutMethodData extends entityBase.EntityBaseData {
|
|
223
|
+
AvailablePayoutMethods: string[]
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
interface VerificationOfPayee {
|
|
227
|
+
/**
|
|
228
|
+
* A unique identifier of the VOP check performed by Mangopay.
|
|
229
|
+
*/
|
|
230
|
+
RecipientVerificationId?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The outcome of the VOP check performed by Mangopay
|
|
234
|
+
*/
|
|
235
|
+
RecipientVerificationCheck: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The explanation of the check outcome
|
|
239
|
+
*/
|
|
240
|
+
RecipientVerificationMessage: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { transaction } from "./transaction";
|
|
2
|
+
import { money } from "./money";
|
|
3
|
+
|
|
4
|
+
export namespace refund {
|
|
5
|
+
import MoneyData = money.MoneyData;
|
|
6
|
+
|
|
7
|
+
type RefundReasonType =
|
|
8
|
+
| "INITIALIZED_BY_CLIENT"
|
|
9
|
+
| "BANKACCOUNT_INCORRECT"
|
|
10
|
+
| "OWNER_DO_NOT_MATCH_BANKACCOUNT"
|
|
11
|
+
| "BANKACCOUNT_HAS_BEEN_CLOSED"
|
|
12
|
+
| "WITHDRAWAL_IMPOSSIBLE_ON_SAVINGS_ACCOUNTS"
|
|
13
|
+
| "OTHER"
|
|
14
|
+
| "INITIALIZED_BY_MANGOPAY"
|
|
15
|
+
| "AG01_FORBIDDEN_TRANSACTION"
|
|
16
|
+
| "AC06_BLOCKED_BANKACCOUNT"
|
|
17
|
+
| "AG02_INVALID_BANK_OPERATION"
|
|
18
|
+
| "AM05_DUPLICATE_PAYMENT"
|
|
19
|
+
| "BE04_BENEFICIARY_ADDRESS_MISSING"
|
|
20
|
+
| "CNOR_INVALID_BIC"
|
|
21
|
+
| "ERIN_REMITTANCE_INFO_NOT_SUPPORTED"
|
|
22
|
+
| "MD07_BENEFICIARY_IS_DECEASED"
|
|
23
|
+
| "MS02_BENEFICIARY_ORDER"
|
|
24
|
+
| "MS03_NOT_SPECIFIED"
|
|
25
|
+
| "RC01_INVALIDE_BIC"
|
|
26
|
+
| "RR01_REGULATORY_REASON"
|
|
27
|
+
| "RR02_REGULATORY_REASON"
|
|
28
|
+
| "RR03_BENEFICIARY_NAME_OR_ADDRESS_MISSING"
|
|
29
|
+
| "RR04_REGULATORY_REASON"
|
|
30
|
+
| "ED05_SETTLEMENT_FAILED"
|
|
31
|
+
| "FF01_INVALID_FILE_FORMAT"
|
|
32
|
+
| "TM01_CUT_OFF_TIME"
|
|
33
|
+
| "DNOR_DEBTOR_BANK_NOT_REGISTERED"
|
|
34
|
+
| "FOCR_RECALLED"
|
|
35
|
+
| "CB";
|
|
36
|
+
|
|
37
|
+
interface RefundReason {
|
|
38
|
+
RefundReasonType: RefundReasonType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface RefundData extends transaction.TransactionData {
|
|
42
|
+
/**
|
|
43
|
+
* The nature of the transaction
|
|
44
|
+
*/
|
|
45
|
+
Nature: "REFUND";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The initial transaction ID
|
|
49
|
+
*/
|
|
50
|
+
InitialTransactionId: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The initial transaction type
|
|
54
|
+
*/
|
|
55
|
+
InitialTransactionType: transaction.TransactionType;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Contains info about the reason for refund
|
|
59
|
+
*/
|
|
60
|
+
RefundReason: RefundReason;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Custom description to appear on the user’s bank statement along with the platform name
|
|
64
|
+
*/
|
|
65
|
+
StatementDescriptor: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface CreatePayInRefund {
|
|
69
|
+
AuthorId: string;
|
|
70
|
+
|
|
71
|
+
Tag?: string;
|
|
72
|
+
|
|
73
|
+
DebitedFunds?: MoneyData;
|
|
74
|
+
|
|
75
|
+
Fees?: MoneyData;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Custom description to appear on the user’s bank statement along with the platform name
|
|
79
|
+
*/
|
|
80
|
+
StatementDescriptor?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface CreateTransferRefund {
|
|
84
|
+
AuthorId: string;
|
|
85
|
+
|
|
86
|
+
Tag?: string;
|
|
87
|
+
|
|
88
|
+
DebitedFunds?: MoneyData;
|
|
89
|
+
|
|
90
|
+
Fees?: MoneyData;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { CurrencyISO, PickPartial, Timestamp } from "../types";
|
|
2
|
+
import { transaction } from "./transaction";
|
|
3
|
+
import { entityBase } from "./entityBase";
|
|
4
|
+
|
|
5
|
+
export namespace report {
|
|
6
|
+
type Column =
|
|
7
|
+
| "Alias"
|
|
8
|
+
| "AuthorId"
|
|
9
|
+
| "BankAccountId"
|
|
10
|
+
| "BankWireRef"
|
|
11
|
+
| "CardId"
|
|
12
|
+
| "CardType"
|
|
13
|
+
| "Country"
|
|
14
|
+
| "CreationDate"
|
|
15
|
+
| "CreditedFundsAmount"
|
|
16
|
+
| "CreditedFundsCurrency"
|
|
17
|
+
| "CreditedUserId"
|
|
18
|
+
| "CreditedWalletId"
|
|
19
|
+
| "Culture"
|
|
20
|
+
| "DebitedFundsAmount"
|
|
21
|
+
| "DebitedFundsCurrency"
|
|
22
|
+
| "DebitedWalletId"
|
|
23
|
+
| "DeclaredDebitedFundsAmount"
|
|
24
|
+
| "DeclaredDebitedFundsCurrency"
|
|
25
|
+
| "DeclaredFeesAmount"
|
|
26
|
+
| "DeclaredFeesCurrency"
|
|
27
|
+
| "ExecutionDate"
|
|
28
|
+
| "ExecutionType"
|
|
29
|
+
| "ExpirationDate"
|
|
30
|
+
| "FeesAmount"
|
|
31
|
+
| "FeesCurrency"
|
|
32
|
+
| "Id"
|
|
33
|
+
| "Nature"
|
|
34
|
+
| "PaymentType"
|
|
35
|
+
| "PreauthorizationId"
|
|
36
|
+
| "ResultCode"
|
|
37
|
+
| "ResultMessage"
|
|
38
|
+
| "Status"
|
|
39
|
+
| "Tag"
|
|
40
|
+
| "Type"
|
|
41
|
+
| "WireReference"
|
|
42
|
+
| "Owners"
|
|
43
|
+
| "Description"
|
|
44
|
+
| "BalanceAmount"
|
|
45
|
+
| "BalanceCurrency"
|
|
46
|
+
| "Currency"
|
|
47
|
+
| "FundsType";
|
|
48
|
+
|
|
49
|
+
interface Filters {
|
|
50
|
+
/**
|
|
51
|
+
* To return only resources that have CreationDate BEFORE this date
|
|
52
|
+
*/
|
|
53
|
+
BeforeDate: Timestamp;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* To return only resources that have CreationDate AFTER this date
|
|
57
|
+
*/
|
|
58
|
+
AfterDate: Timestamp;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The type of the transaction
|
|
62
|
+
*/
|
|
63
|
+
Type: transaction.TransactionType[];
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The status of the transaction
|
|
67
|
+
*/
|
|
68
|
+
Status: transaction.TransactionStatus[];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The nature of the transaction
|
|
72
|
+
*/
|
|
73
|
+
Nature: transaction.TransactionNature[];
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The minimum amount of DebitedFunds
|
|
77
|
+
*/
|
|
78
|
+
MinDebitedFundsAmount: number;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The currency for the minimum amount of DebitedFunds
|
|
82
|
+
*/
|
|
83
|
+
MinDebitedFundsCurrency: CurrencyISO;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The maximum amount of DebitedFunds
|
|
87
|
+
*/
|
|
88
|
+
MaxDebitedFundsAmount: number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The currency for the maximum amount of DebitedFunds
|
|
92
|
+
*/
|
|
93
|
+
MaxDebitedFundsCurrency: CurrencyISO;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The minimum amount of Fees
|
|
97
|
+
*/
|
|
98
|
+
MinFeesAmount: number;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The currency for the minimum amount of Fees
|
|
102
|
+
*/
|
|
103
|
+
MinFeesCurrency: CurrencyISO;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The maximum amount of Fees
|
|
107
|
+
*/
|
|
108
|
+
MaxFeesAmount: number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The currency for the maximum amount of Fees
|
|
112
|
+
*/
|
|
113
|
+
MaxFeesCurrency: CurrencyISO;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A user's ID
|
|
117
|
+
*/
|
|
118
|
+
AuthorId: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The ID of a wallet
|
|
122
|
+
*/
|
|
123
|
+
WalletId: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The transaction result codes to be taken into account.
|
|
127
|
+
*/
|
|
128
|
+
ResultCode?: string[];
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The unique identifier of the user owning the wallet.
|
|
132
|
+
*/
|
|
133
|
+
OwnerId?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The currency of the wallets to take into account.
|
|
137
|
+
*/
|
|
138
|
+
Currency?: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The balance amount above which the wallets are taken into account.
|
|
142
|
+
*/
|
|
143
|
+
MinBalanceAmount?: number;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The currency of the MinBalanceAmount value.
|
|
147
|
+
*/
|
|
148
|
+
MinBalanceCurrency?: CurrencyISO;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The balance amount below which the wallets are taken into account.
|
|
152
|
+
*/
|
|
153
|
+
MaxBalanceAmount?: number;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The currency of the MaxBalanceAmount value.
|
|
157
|
+
*/
|
|
158
|
+
MaxBalanceCurrency?: CurrencyISO;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
interface ReportData extends entityBase.EntityBaseData {
|
|
162
|
+
/**
|
|
163
|
+
* The date when the report was executed
|
|
164
|
+
*/
|
|
165
|
+
ReportDate: Timestamp;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The URL to download the report
|
|
169
|
+
*/
|
|
170
|
+
DownloadURL: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* A URL that we will ping when the report is ready to download(works in a similar way to the hooks)
|
|
174
|
+
*/
|
|
175
|
+
CallbackURL: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The format of the report download
|
|
179
|
+
*/
|
|
180
|
+
DownloadFormat: "CSV";
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The type of report
|
|
184
|
+
*/
|
|
185
|
+
ReportType: "TRANSACTIONS" | "WALLETS";
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The column to sort against and direction separated by a `:`
|
|
189
|
+
*/
|
|
190
|
+
Sort: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Whether the report should be limited to the first 10 lines(and therefore quicker to execute)
|
|
194
|
+
*/
|
|
195
|
+
Preview: boolean;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* An object of various filters for the report
|
|
199
|
+
*/
|
|
200
|
+
Filters: Filters;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* A list of columns / infos to show in the report
|
|
204
|
+
*/
|
|
205
|
+
Columns: Column[];
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The result code
|
|
209
|
+
*/
|
|
210
|
+
ResultCode: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* A verbal explanation of the ResultCode
|
|
214
|
+
*/
|
|
215
|
+
ResultMessage: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The status of the report.
|
|
219
|
+
* Returned values: PENDING, READY_FOR_DOWNLOAD, FAILED, EXPIRED
|
|
220
|
+
*/
|
|
221
|
+
Status: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface CreateReport extends PickPartial<ReportData,
|
|
225
|
+
| "Tag"
|
|
226
|
+
| "CallbackURL"
|
|
227
|
+
| "DownloadFormat"
|
|
228
|
+
| "Sort"
|
|
229
|
+
| "Preview"
|
|
230
|
+
| "Filters"
|
|
231
|
+
| "Columns"
|
|
232
|
+
| "ReportType"> {
|
|
233
|
+
}
|
|
234
|
+
}
|