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,145 @@
|
|
|
1
|
+
import {CurrencyISO} from "../types";
|
|
2
|
+
import {entityBase} from "./entityBase";
|
|
3
|
+
|
|
4
|
+
export namespace reportV2 {
|
|
5
|
+
interface ReportFilterV2 {
|
|
6
|
+
/**
|
|
7
|
+
* The currency of the DebitedFunds, CreditedFunds, or Fees of the transactions (and therefore the wallets).
|
|
8
|
+
*/
|
|
9
|
+
Currency?: CurrencyISO;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The unique identifier of the user referenced as the AuthorId or CreditedUserId of the transaction.
|
|
13
|
+
*/
|
|
14
|
+
UserId?: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of the wallet referenced as the DebitedWalletId or CreditedWalletId of the transaction.
|
|
18
|
+
*/
|
|
19
|
+
WalletId?: string;
|
|
20
|
+
|
|
21
|
+
PaymentMethod?: string;
|
|
22
|
+
|
|
23
|
+
Status?: string;
|
|
24
|
+
|
|
25
|
+
Type?: string;
|
|
26
|
+
|
|
27
|
+
IntentId?: string;
|
|
28
|
+
|
|
29
|
+
ExternalProviderName?: string;
|
|
30
|
+
|
|
31
|
+
Scheduled?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface ReportDataV2 extends entityBase.EntityBaseData {
|
|
35
|
+
/**
|
|
36
|
+
* The date and time at which the report was generated.
|
|
37
|
+
*/
|
|
38
|
+
ReportDate: number;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The status of the report. Returned values: PENDING, READY_FOR_DOWNLOAD, FAILED, EXPIRED
|
|
42
|
+
*/
|
|
43
|
+
Status: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The code indicating the result of the operation.
|
|
47
|
+
* This information is mostly used to handle errors or for filtering purposes.
|
|
48
|
+
*/
|
|
49
|
+
ResultCode: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The explanation of the result code.
|
|
53
|
+
*/
|
|
54
|
+
ResultMessage: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The format in which the report is going to be downloaded.
|
|
58
|
+
*/
|
|
59
|
+
DownloadFormat: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The URL at which the report file can be downloaded when the Status is GENERATED.
|
|
63
|
+
*/
|
|
64
|
+
DownloadURL: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The type of the report: USER_WALLET_TRANSACTIONS, COLLECTED_FEES
|
|
68
|
+
*/
|
|
69
|
+
ReportType: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The sorting direction of the CreationDate column. By default, the generated report is sorted by ascending creation date.
|
|
73
|
+
*/
|
|
74
|
+
Sort: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The date and time after which the report’s transaction was created, based on the transaction’s CreationDate.
|
|
78
|
+
*/
|
|
79
|
+
AfterDate: number;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The date and time before which the report’s transaction was created, based on the transaction’s CreationDate.
|
|
83
|
+
*/
|
|
84
|
+
BeforeDate: number;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The filers to apply.
|
|
88
|
+
* The Currency and WalletId cannot be used together.
|
|
89
|
+
*/
|
|
90
|
+
Filters: ReportFilterV2;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The data columns to be included in the report.
|
|
94
|
+
*/
|
|
95
|
+
Columns: ReportColumn[];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface CreateReportV2 {
|
|
99
|
+
/**
|
|
100
|
+
* Custom data that you can add to this object.
|
|
101
|
+
*/
|
|
102
|
+
Tag?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The format in which the report is going to be downloaded.
|
|
106
|
+
*/
|
|
107
|
+
DownloadFormat: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The type of the report: USER_WALLET_TRANSACTIONS, COLLECTED_FEES
|
|
111
|
+
*/
|
|
112
|
+
ReportType: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The sorting direction of the CreationDate column. By default, the generated report is sorted by ascending creation date.
|
|
116
|
+
*/
|
|
117
|
+
Sort?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The date and time after which the report’s transaction was created, based on the transaction’s CreationDate.
|
|
121
|
+
*/
|
|
122
|
+
AfterDate: number;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The date and time before which the report’s transaction was created, based on the transaction’s CreationDate.
|
|
126
|
+
*/
|
|
127
|
+
BeforeDate: number;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The filers to apply.
|
|
131
|
+
* The Currency and WalletId cannot be used together.
|
|
132
|
+
*/
|
|
133
|
+
Filters?: ReportFilterV2;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The data columns to be included in the report.
|
|
137
|
+
*/
|
|
138
|
+
Columns?: string[];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface ReportColumn {
|
|
142
|
+
Name: string;
|
|
143
|
+
IsDefault: boolean;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { transaction } from "./transaction";
|
|
2
|
+
import { refund } from "./refund";
|
|
3
|
+
|
|
4
|
+
export namespace repudiation {
|
|
5
|
+
interface RepudiationData extends transaction.TransactionData {
|
|
6
|
+
/**
|
|
7
|
+
* The nature of the transaction
|
|
8
|
+
*/
|
|
9
|
+
Nature: "REPUDIATION";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The initial transaction ID
|
|
13
|
+
*/
|
|
14
|
+
InitialTransactionId: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The initial transaction type
|
|
18
|
+
*/
|
|
19
|
+
InitialTransactionType: transaction.TransactionType;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Contains info about the reason for refund
|
|
23
|
+
*/
|
|
24
|
+
RefundReason: refund.RefundReason;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {entityBase} from "./entityBase";
|
|
2
|
+
import {Timestamp} from "../types";
|
|
3
|
+
|
|
4
|
+
export namespace settlement {
|
|
5
|
+
interface SettlementData extends entityBase.EntityBaseData {
|
|
6
|
+
/**
|
|
7
|
+
* The unique identifier of the settlement object
|
|
8
|
+
*/
|
|
9
|
+
SettlementId: string;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The status of the settlement
|
|
13
|
+
*/
|
|
14
|
+
Status: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The date at which the settlement was created by the external provider
|
|
18
|
+
*/
|
|
19
|
+
SettlementDate: Timestamp;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The name of the external provider
|
|
23
|
+
*/
|
|
24
|
+
ExternalProviderName: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The total amount declared through intent API calls with the following calculation:
|
|
28
|
+
* (Sum of captured intents) - (Sum of refunds amounts) + (Sum of refund reversed amounts) - (Sum of DISPUTED disputes) + (Sum of WON disputes)
|
|
29
|
+
*/
|
|
30
|
+
DeclaredIntentAmount: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The total fees charged by the external provider
|
|
34
|
+
*/
|
|
35
|
+
ExternalProcessorFeesAmount: number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The total amount due to the platform (to be held in escrow wallet).
|
|
39
|
+
* This amount correspond to the TotalSettlementAmount from the settlement file.
|
|
40
|
+
*
|
|
41
|
+
* A negative amount will result in this parameter being set to zero, indicating no incoming funds to the escrow wallet.
|
|
42
|
+
*/
|
|
43
|
+
ActualSettlementAmount: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The difference between ActualSettlementAmount and the amount received on the escrow wallet
|
|
47
|
+
*/
|
|
48
|
+
FundsMissingAmount: number;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { transaction } from "./transaction";
|
|
2
|
+
import { refund } from "./refund";
|
|
3
|
+
import { PickPartialRequired } from "../types";
|
|
4
|
+
|
|
5
|
+
export namespace settlementTransfer {
|
|
6
|
+
interface SettlementTransferData extends transaction.TransactionData {
|
|
7
|
+
/**
|
|
8
|
+
* The nature of the transaction
|
|
9
|
+
*/
|
|
10
|
+
Nature: "SETTLEMENT";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the associated repudiation transaction
|
|
14
|
+
*/
|
|
15
|
+
RepudiationId: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The initial transaction ID
|
|
19
|
+
*/
|
|
20
|
+
InitialTransactionId: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The initial transaction type
|
|
24
|
+
*/
|
|
25
|
+
InitialTransactionType: transaction.TransactionType;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Contains info about the reason for refund
|
|
29
|
+
*/
|
|
30
|
+
RefundReason: refund.RefundReason;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface CreateSettlementTransfer extends PickPartialRequired<SettlementTransferData,
|
|
34
|
+
"Tag",
|
|
35
|
+
"AuthorId" | "DebitedFunds" | "Fees"> {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { address } from "./address";
|
|
2
|
+
|
|
3
|
+
export namespace shipping {
|
|
4
|
+
interface ShippingData {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the user
|
|
7
|
+
*/
|
|
8
|
+
FirstName: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The last name of the user
|
|
12
|
+
*/
|
|
13
|
+
LastName: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The address
|
|
17
|
+
*/
|
|
18
|
+
Address: address.AddressData;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface CreateShipping {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the user
|
|
24
|
+
*/
|
|
25
|
+
FirstName: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The last name of the user
|
|
29
|
+
*/
|
|
30
|
+
LastName: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The address
|
|
34
|
+
*/
|
|
35
|
+
Address: address.CreateAddress;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { address } from "./address";
|
|
2
|
+
|
|
3
|
+
export namespace shippingAddress {
|
|
4
|
+
interface ShippingAddressData {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the shipping recipient
|
|
7
|
+
*/
|
|
8
|
+
RecipientName: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The shipping address
|
|
12
|
+
*/
|
|
13
|
+
Address: address.AddressType;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Timestamp } from "../types";
|
|
2
|
+
import { entityBase } from "./entityBase";
|
|
3
|
+
import { money } from "./money";
|
|
4
|
+
|
|
5
|
+
export namespace transaction {
|
|
6
|
+
import MoneyData = money.MoneyData;
|
|
7
|
+
|
|
8
|
+
type TransactionNature = "REGULAR" | "REPUDIATION" | "REFUND" | "SETTLEMENT";
|
|
9
|
+
|
|
10
|
+
type TransactionType = "PAYIN" | "TRANSFER" | "PAYOUT" | "CARD_VALIDATION" | "CONVERSION";
|
|
11
|
+
|
|
12
|
+
type TransactionStatus = "CREATED" | "SUCCEEDED" | "FAILED";
|
|
13
|
+
|
|
14
|
+
interface TransactionData extends entityBase.EntityBaseData {
|
|
15
|
+
/**
|
|
16
|
+
* Information about the funds that are being debited
|
|
17
|
+
*/
|
|
18
|
+
DebitedFunds: MoneyData;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Details about the funds that are being credited (DebitedFunds – Fees = CreditedFunds)
|
|
22
|
+
*/
|
|
23
|
+
CreditedFunds: MoneyData;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Information about the fees that were taken by the client for this transaction (and were hence transferred to the Client's platform wallet)
|
|
27
|
+
*/
|
|
28
|
+
Fees: MoneyData;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the wallet that was debited
|
|
32
|
+
*/
|
|
33
|
+
DebitedWalletId: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the wallet where money will be credited
|
|
37
|
+
*/
|
|
38
|
+
CreditedWalletId: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A user's ID
|
|
42
|
+
*/
|
|
43
|
+
AuthorId: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The user ID who is credited (defaults to the owner of the wallet)
|
|
47
|
+
*/
|
|
48
|
+
CreditedUserId: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The nature of the transaction
|
|
52
|
+
*/
|
|
53
|
+
Nature: TransactionNature;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The status of the transaction
|
|
57
|
+
*/
|
|
58
|
+
Status: TransactionStatus;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* When the transaction happened
|
|
62
|
+
*/
|
|
63
|
+
ExecutionDate: Timestamp;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The result code
|
|
67
|
+
*/
|
|
68
|
+
ResultCode: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* A verbal explanation of the ResultCode
|
|
72
|
+
*/
|
|
73
|
+
ResultMessage: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The type of the transaction
|
|
77
|
+
*/
|
|
78
|
+
Type: TransactionType;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The identifier of a deposit.
|
|
82
|
+
*/
|
|
83
|
+
DepositId?: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { transaction } from "./transaction";
|
|
2
|
+
import { Timestamp } from "../types";
|
|
3
|
+
import { entityBase } from "./entityBase";
|
|
4
|
+
import { money } from "./money";
|
|
5
|
+
import { user } from "./user";
|
|
6
|
+
|
|
7
|
+
export namespace transfer {
|
|
8
|
+
import MoneyData = money.MoneyData;
|
|
9
|
+
|
|
10
|
+
interface TransferData extends entityBase.EntityBaseData {
|
|
11
|
+
/**
|
|
12
|
+
* Information about the funds that are being debited
|
|
13
|
+
*/
|
|
14
|
+
DebitedFunds: MoneyData;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Details about the funds that are being credited (DebitedFunds – Fees = CreditedFunds)
|
|
18
|
+
*/
|
|
19
|
+
CreditedFunds: MoneyData;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Information about the fees that were taken by the client for this transaction (and were hence transferred to the Client's platform wallet)
|
|
23
|
+
*/
|
|
24
|
+
Fees: MoneyData;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the wallet that was debited
|
|
28
|
+
*/
|
|
29
|
+
DebitedWalletId: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the wallet where money will be credited
|
|
33
|
+
*/
|
|
34
|
+
CreditedWalletId: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A user's ID
|
|
38
|
+
*/
|
|
39
|
+
AuthorId: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The user ID who is credited (defaults to the owner of the wallet)
|
|
43
|
+
*/
|
|
44
|
+
CreditedUserId: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The nature of the transaction
|
|
48
|
+
*/
|
|
49
|
+
Nature: transaction.TransactionNature;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The status of the transaction
|
|
53
|
+
*/
|
|
54
|
+
Status: transaction.TransactionStatus;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* When the transaction happened
|
|
58
|
+
*/
|
|
59
|
+
ExecutionDate: Timestamp;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The result code
|
|
63
|
+
*/
|
|
64
|
+
ResultCode: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* A verbal explanation of the ResultCode
|
|
68
|
+
*/
|
|
69
|
+
ResultMessage: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The type of the transaction
|
|
73
|
+
*/
|
|
74
|
+
Type: "TRANSFER";
|
|
75
|
+
|
|
76
|
+
ScaContext: string;
|
|
77
|
+
|
|
78
|
+
PendingUserAction: user.PendingUserActionData;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface CreateTransfer {
|
|
82
|
+
/**
|
|
83
|
+
* Custom data that you can add to this item
|
|
84
|
+
*/
|
|
85
|
+
Tag?: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A user's ID
|
|
89
|
+
*/
|
|
90
|
+
AuthorId: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The user ID who is credited (defaults to the owner of the wallet)
|
|
94
|
+
*/
|
|
95
|
+
CreditedUserId?: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Information about the funds that are being debited
|
|
99
|
+
*/
|
|
100
|
+
DebitedFunds: MoneyData;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Information about the fees that were taken by the client for this transaction (and were hence transferred to the Client's platform wallet)
|
|
104
|
+
*/
|
|
105
|
+
Fees: MoneyData;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The ID of the wallet that was debited
|
|
109
|
+
*/
|
|
110
|
+
DebitedWalletId: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The ID of the wallet where money will be credited
|
|
114
|
+
*/
|
|
115
|
+
CreditedWalletId: string;
|
|
116
|
+
|
|
117
|
+
ScaContext?: string;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Timestamp, ValueOf } from "../types";
|
|
2
|
+
import { birthplace } from "./birthplace";
|
|
3
|
+
import { address } from "./address";
|
|
4
|
+
import { entityBase } from "./entityBase";
|
|
5
|
+
import { enums } from "../enums";
|
|
6
|
+
|
|
7
|
+
export namespace uboDeclaration {
|
|
8
|
+
interface UboDeclarationData extends entityBase.EntityBaseData {
|
|
9
|
+
/**
|
|
10
|
+
* ID of the user
|
|
11
|
+
*/
|
|
12
|
+
UserId: string;
|
|
13
|
+
/**
|
|
14
|
+
* cannot be modified by clients
|
|
15
|
+
*/
|
|
16
|
+
ProcessedDate: Timestamp;
|
|
17
|
+
/**
|
|
18
|
+
* Declaration status (one of UboDeclarationStatus)
|
|
19
|
+
*/
|
|
20
|
+
Status: ValueOf<enums.IUboDeclarationStatus>;
|
|
21
|
+
/**
|
|
22
|
+
* Array of reasons why the declaration was refused
|
|
23
|
+
* Values as declared in UboDeclarationRefusedReasonType.
|
|
24
|
+
*/
|
|
25
|
+
Reason: ValueOf<enums.IUboDeclarationRefusedReasonType>;
|
|
26
|
+
/**
|
|
27
|
+
* Explanation of why the declaration was refused.
|
|
28
|
+
*/
|
|
29
|
+
Message: string;
|
|
30
|
+
/**
|
|
31
|
+
* Table of ubos (declared in Ubo)
|
|
32
|
+
*/
|
|
33
|
+
Ubos: [];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface UboData extends entityBase.EntityBaseData {
|
|
37
|
+
FirstName: string;
|
|
38
|
+
|
|
39
|
+
LastName: string;
|
|
40
|
+
|
|
41
|
+
Address: address.AddressType;
|
|
42
|
+
|
|
43
|
+
Nationality: string;
|
|
44
|
+
|
|
45
|
+
Birthday: Timestamp;
|
|
46
|
+
|
|
47
|
+
Birthplace: birthplace.Birthplace;
|
|
48
|
+
|
|
49
|
+
isActive: boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface CreateUbo {
|
|
53
|
+
FirstName: string;
|
|
54
|
+
|
|
55
|
+
LastName: string;
|
|
56
|
+
|
|
57
|
+
Address: address.AddressType;
|
|
58
|
+
|
|
59
|
+
Nationality: string;
|
|
60
|
+
|
|
61
|
+
Birthday: Timestamp;
|
|
62
|
+
|
|
63
|
+
Birthplace: birthplace.Birthplace;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface UpdateUbo {
|
|
67
|
+
Id: string;
|
|
68
|
+
|
|
69
|
+
FirstName?: string;
|
|
70
|
+
|
|
71
|
+
LastName?: string;
|
|
72
|
+
|
|
73
|
+
Address?: address.AddressType;
|
|
74
|
+
|
|
75
|
+
Nationality?: string;
|
|
76
|
+
|
|
77
|
+
Birthday?: Timestamp;
|
|
78
|
+
|
|
79
|
+
Birthplace?: birthplace.Birthplace;
|
|
80
|
+
|
|
81
|
+
isActive?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface CreateUboDeclaration {
|
|
85
|
+
Ubos?: string[];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface UpdateUboDeclaration {
|
|
89
|
+
Id: string;
|
|
90
|
+
|
|
91
|
+
Tag?: string;
|
|
92
|
+
|
|
93
|
+
Status?: "VALIDATION_ASKED";
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* An array of UserIDs declared as Ultimate Beneficial Owners of a BUSINESS Legal User.
|
|
97
|
+
*/
|
|
98
|
+
Ubos?: string[];
|
|
99
|
+
}
|
|
100
|
+
}
|