| Constructor and Description |
|---|
UserApiImpl(MangoPayApi root,
com.google.gson.GsonBuilder gsonBuilder)
Instantiates new UserApiImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
User |
create(java.lang.String idempotencyKey,
User user)
Creates new user.
|
User |
create(User user)
Creates new user.
|
BankAccount |
createBankAccount(java.lang.String userId,
BankAccount bankAccount)
Creates bank account for user.
|
BankAccount |
createBankAccount(java.lang.String idempotencyKey,
java.lang.String userId,
BankAccount bankAccount)
Creates bank account for user.
|
KycDocument |
createKycDocument(java.lang.String userId,
KycDocumentType type,
java.lang.String tag)
Creates KycDocument.
|
KycDocument |
createKycDocument(java.lang.String idempotencyKey,
java.lang.String userId,
KycDocumentType type,
java.lang.String tag)
Creates KycDocument.
|
void |
createKycPage(java.lang.String userId,
java.lang.String kycDocumentId,
byte[] binaryData)
Creates KycPage from byte array.
|
void |
createKycPage(java.lang.String userId,
java.lang.String kycDocumentId,
java.lang.String filePath)
Creates KycPage from file.
|
void |
createKycPage(java.lang.String idempotencyKey,
java.lang.String userId,
java.lang.String kycDocumentId,
byte[] binaryData)
Creates KycPage from byte array.
|
void |
createKycPage(java.lang.String idempotencyKey,
java.lang.String userId,
java.lang.String kycDocumentId,
java.lang.String filePath)
Creates KycPage from file.
|
User |
get(java.lang.String userId)
Gets user.
|
java.util.List<BankAccount> |
getActiveBankAccounts(java.lang.String userId,
boolean active)
Gets first page of all bank accounts of user.
|
java.util.List<BankAccount> |
getActiveBankAccounts(java.lang.String userId,
boolean active,
Pagination pagination,
Sorting sorting)
Gets all bank accounts of user.
|
java.util.List<User> |
getAll()
Gets first page of users.
|
java.util.List<User> |
getAll(Pagination pagination,
Sorting sorting)
Gets page of users.
|
BankAccount |
getBankAccount(java.lang.String userId,
java.lang.String bankAccountId)
Gets bank account of user.
|
java.util.List<BankAccount> |
getBankAccounts(java.lang.String userId)
Gets first page of all bank accounts of user.
|
java.util.List<BankAccount> |
getBankAccounts(java.lang.String userId,
Pagination pagination,
Sorting sorting)
Gets all bank accounts of user.
|
java.util.List<Transaction> |
getBankAccountTransactions(java.lang.String bankAccountId)
Get first page of transactions for a bank account
|
java.util.List<Transaction> |
getBankAccountTransactions(java.lang.String bankAccountId,
Pagination pagination,
Sorting sorting)
Get page of transactions fr a bank account
|
UserBlockStatus |
getBlockStatus(java.lang.String userId)
Gets user block status.
|
java.util.List<Card> |
getCards(java.lang.String userId,
Pagination pagination,
Sorting sorting)
Gets all cards for user.
|
EMoney |
getEMoney(java.lang.String userId,
java.lang.String year)
Shows the e-money cash-in/cash-out amounts for a particular user.
|
EMoney |
getEMoney(java.lang.String userId,
java.lang.String year,
CurrencyIso currencyIso)
Shows the e-money cash-in/cash-out amounts for a particular user.
|
EMoney |
getEMoney(java.lang.String userId,
java.lang.String year,
java.lang.String month)
Shows the e-money cash-in/cash-out amounts for a particular user.
|
EMoney |
getEMoney(java.lang.String userId,
java.lang.String year,
java.lang.String month,
CurrencyIso currencyIso)
Shows the e-money cash-in/cash-out amounts for a particular user.
|
KycDocument |
getKycDocument(java.lang.String userId,
java.lang.String kycDocumentId)
Gets KycDocument.
|
java.util.List<KycDocument> |
getKycDocuments(java.lang.String userId,
Pagination pagination,
Sorting sorting)
Gets all KYC documents for single user.
|
UserLegal |
getLegal(java.lang.String userId)
Gets legal user by its identifier.
|
UserNatural |
getNatural(java.lang.String userId)
Gets natural user by its identifier,
|
java.util.List<CardPreAuthorization> |
getPreAuthorizations(java.lang.String userId)
Get pre authorizations for user
|
java.util.List<CardPreAuthorization> |
getPreAuthorizations(java.lang.String userId,
Pagination pagination,
FilterPreAuthorizations filter,
Sorting sorting)
Get pre authorizations for user with pagination and sorting
|
java.util.List<CardPreAuthorization> |
getPreAuthorizations(java.lang.String userId,
Pagination pagination,
Sorting sorting)
Get pre authorizations for user with pagination and sorting
|
UserBlockStatus |
getRegulatory(java.lang.String userId)
Gets user regulatory.
|
java.util.List<Transaction> |
getTransactions(java.lang.String userId,
Pagination pagination,
FilterTransactions filter,
Sorting sorting)
Gets transactions for user.
|
java.util.List<Wallet> |
getWallets(java.lang.String userId)
Gets first page of all wallets of user.
|
java.util.List<Wallet> |
getWallets(java.lang.String userId,
Pagination pagination,
Sorting sorting)
Gets all wallets of user.
|
User |
update(User user)
Updates the user.
|
BankAccount |
updateBankAccount(java.lang.String userId,
BankAccount bankAccount,
java.lang.String bankAccountId)
Updates bank account.
|
KycDocument |
updateKycDocument(java.lang.String userId,
KycDocument kycDocument)
Updates KycDocument.
|
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic UserApiImpl(MangoPayApi root, com.google.gson.GsonBuilder gsonBuilder)
root - Root/parent instance that holds the OAuthToken and Configuration instance.public User get(java.lang.String userId) throws java.lang.Exception
UserApipublic User create(User user) throws java.lang.Exception
UserApipublic User create(java.lang.String idempotencyKey, User user) throws java.lang.Exception
UserApipublic java.util.List<User> getAll(Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApipublic java.util.List<User> getAll() throws java.lang.Exception
UserApipublic UserNatural getNatural(java.lang.String userId) throws java.lang.Exception
UserApigetNatural in interface UserApiuserId - UserNatural identifier.java.lang.Exceptionpublic UserLegal getLegal(java.lang.String userId) throws java.lang.Exception
UserApipublic User update(User user) throws java.lang.Exception
UserApipublic BankAccount createBankAccount(java.lang.String userId, BankAccount bankAccount) throws java.lang.Exception
UserApicreateBankAccount in interface UserApiuserId - User identifier to create bank account for.bankAccount - Bank account object.java.lang.Exceptionpublic BankAccount createBankAccount(java.lang.String idempotencyKey, java.lang.String userId, BankAccount bankAccount) throws java.lang.Exception
UserApicreateBankAccount in interface UserApiidempotencyKey - idempotency key for this request.userId - User identifier to create bank account for.bankAccount - Bank account object.java.lang.Exceptionpublic BankAccount updateBankAccount(java.lang.String userId, BankAccount bankAccount, java.lang.String bankAccountId) throws java.lang.Exception
UserApiupdateBankAccount in interface UserApiuserId - User identifier.bankAccount - Bank account object.bankAccountId - Bank account identifier.java.lang.Exceptionpublic java.util.List<BankAccount> getBankAccounts(java.lang.String userId, Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApigetBankAccounts in interface UserApiuserId - User identifier to get bank accounts of.pagination - Pagination object.sorting - Sorting object.java.lang.Exceptionpublic java.util.List<BankAccount> getBankAccounts(java.lang.String userId) throws java.lang.Exception
UserApigetBankAccounts in interface UserApiuserId - User identifier to get bank accounts of.java.lang.Exceptionpublic java.util.List<BankAccount> getActiveBankAccounts(java.lang.String userId, boolean active, Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApigetActiveBankAccounts in interface UserApiuserId - User identifier to get bank accounts of.active - Identifier if the returned list should contain only active accounts.pagination - Pagination object.sorting - Sorting object.java.lang.Exceptionpublic java.util.List<BankAccount> getActiveBankAccounts(java.lang.String userId, boolean active) throws java.lang.Exception
UserApigetActiveBankAccounts in interface UserApiuserId - User identifier to get bank accounts of.active - Identifier if the returned list should contain only active accounts.java.lang.Exceptionpublic BankAccount getBankAccount(java.lang.String userId, java.lang.String bankAccountId) throws java.lang.Exception
UserApigetBankAccount in interface UserApiuserId - User identifier.bankAccountId - Bank account identifier.java.lang.Exceptionpublic java.util.List<Transaction> getBankAccountTransactions(java.lang.String bankAccountId) throws java.lang.Exception
UserApigetBankAccountTransactions in interface UserApibankAccountId - Bank account identifierjava.lang.Exceptionpublic java.util.List<Transaction> getBankAccountTransactions(java.lang.String bankAccountId, Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApigetBankAccountTransactions in interface UserApibankAccountId - Bank account identifierpagination - Pagination objectsorting - Sorting objectjava.lang.Exceptionpublic java.util.List<Wallet> getWallets(java.lang.String userId, Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApigetWallets in interface UserApiuserId - User identifier to get bank accounts of.pagination - Pagination object.sorting - Sorting object.java.lang.Exceptionpublic java.util.List<Wallet> getWallets(java.lang.String userId) throws java.lang.Exception
UserApigetWallets in interface UserApiuserId - User identifier to get bank accounts of.java.lang.Exceptionpublic java.util.List<Transaction> getTransactions(java.lang.String userId, Pagination pagination, FilterTransactions filter, Sorting sorting) throws java.lang.Exception
UserApigetTransactions in interface UserApiuserId - User identifier.pagination - Pagination object.filter - Filter object.sorting - Sorting object.java.lang.Exceptionpublic java.util.List<Card> getCards(java.lang.String userId, Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApipublic void createKycPage(java.lang.String userId,
java.lang.String kycDocumentId,
byte[] binaryData)
throws java.lang.Exception
UserApicreateKycPage in interface UserApiuserId - User identifier.kycDocumentId - Kyc document identifier.binaryData - The byte array the KycPage will be created from.java.lang.Exceptionpublic void createKycPage(java.lang.String idempotencyKey,
java.lang.String userId,
java.lang.String kycDocumentId,
byte[] binaryData)
throws java.lang.Exception
UserApicreateKycPage in interface UserApiidempotencyKey - idempotency key for this request.userId - User identifier.kycDocumentId - Kyc document identifier.binaryData - The byte array the KycPage will be created from.java.lang.Exceptionpublic void createKycPage(java.lang.String userId,
java.lang.String kycDocumentId,
java.lang.String filePath)
throws java.lang.Exception
UserApicreateKycPage in interface UserApiuserId - User identifier.kycDocumentId - Kyc document identifier.filePath - Path to the file the KycPage will be created from.java.lang.Exceptionpublic void createKycPage(java.lang.String idempotencyKey,
java.lang.String userId,
java.lang.String kycDocumentId,
java.lang.String filePath)
throws java.lang.Exception
UserApicreateKycPage in interface UserApiidempotencyKey - idempotency key for this request.userId - User identifier.kycDocumentId - Kyc document identifier.filePath - Path to the file the KycPage will be created from.java.lang.Exceptionpublic KycDocument createKycDocument(java.lang.String userId, KycDocumentType type, java.lang.String tag) throws java.lang.Exception
UserApicreateKycDocument in interface UserApiuserId - User identifier.type - Type of KycDocument.tag - Custom data that you can add to this itemjava.lang.Exceptionpublic KycDocument createKycDocument(java.lang.String idempotencyKey, java.lang.String userId, KycDocumentType type, java.lang.String tag) throws java.lang.Exception
UserApicreateKycDocument in interface UserApiidempotencyKey - idempotency key for this request.userId - User identifier.type - Type of KycDocument.tag - Custom data that you can add to this itemjava.lang.Exceptionpublic KycDocument getKycDocument(java.lang.String userId, java.lang.String kycDocumentId) throws java.lang.Exception
UserApigetKycDocument in interface UserApiuserId - User identifier.kycDocumentId - KycDocument identifier.java.lang.Exceptionpublic KycDocument updateKycDocument(java.lang.String userId, KycDocument kycDocument) throws java.lang.Exception
UserApiupdateKycDocument in interface UserApiuserId - User identifier.kycDocument - KycDocument entity instance to be updated.java.lang.Exceptionpublic java.util.List<KycDocument> getKycDocuments(java.lang.String userId, Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApigetKycDocuments in interface UserApiuserId - User identifier.pagination - Pagination.sorting - Sorting object.java.lang.Exceptionpublic EMoney getEMoney(java.lang.String userId, java.lang.String year) throws java.lang.Exception
UserApiEUR due to lack of a specified currency.public EMoney getEMoney(java.lang.String userId, java.lang.String year, java.lang.String month) throws java.lang.Exception
UserApiEUR due to lack of a specified currency.getEMoney in interface UserApiuserId - Id of the user whose e-money data to get.year - The year for which we want to get the e-money data.month - The month for which we want to get the e-money data.java.lang.Exceptionpublic EMoney getEMoney(java.lang.String userId, java.lang.String year, CurrencyIso currencyIso) throws java.lang.Exception
UserApigetEMoney in interface UserApiuserId - Id of the user whose e-money data to get.year - The year for which we want to get the e-money data.currencyIso - Currency in which to format money amounts. If null, will be considered
as EUR.java.lang.Exceptionpublic EMoney getEMoney(java.lang.String userId, java.lang.String year, java.lang.String month, CurrencyIso currencyIso) throws java.lang.Exception
UserApigetEMoney in interface UserApiuserId - Id of the user whose e-money data to get.year - The year for which we want to get the e-money data.month - The month for which we want to get the e-money data.currencyIso - Currency in which to format money amounts. If null, will be considered
as EUR.java.lang.Exceptionpublic java.util.List<CardPreAuthorization> getPreAuthorizations(java.lang.String userId) throws java.lang.Exception
UserApigetPreAuthorizations in interface UserApiuserId - User identifierjava.lang.Exceptionpublic java.util.List<CardPreAuthorization> getPreAuthorizations(java.lang.String userId, Pagination pagination, Sorting sorting) throws java.lang.Exception
UserApigetPreAuthorizations in interface UserApiuserId - User identifierpagination - Paginationsorting - Sorting objectjava.lang.Exceptionpublic java.util.List<CardPreAuthorization> getPreAuthorizations(java.lang.String userId, Pagination pagination, FilterPreAuthorizations filter, Sorting sorting) throws java.lang.Exception
UserApigetPreAuthorizations in interface UserApiuserId - User identifierpagination - Paginationfilter - PreAuthorization filterssorting - Sorting objectjava.lang.Exceptionpublic UserBlockStatus getBlockStatus(java.lang.String userId) throws java.lang.Exception
UserApigetBlockStatus in interface UserApiuserId - User identifier.java.lang.Exceptionpublic UserBlockStatus getRegulatory(java.lang.String userId) throws java.lang.Exception
UserApigetRegulatory in interface UserApiuserId - User identifier.java.lang.Exception