public class UboDeclarationApiImpl extends ApiBase implements UboDeclarationApi
| Constructor and Description |
|---|
UboDeclarationApiImpl(MangoPayApi root)
Creates new UboDeclarationApiImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
UboDeclaration |
create(java.lang.String userId)
Creates a new UBO Declaration for an user.
|
Ubo |
createUbo(java.lang.String userId,
java.lang.String uboDeclarationId,
Ubo ubo) |
UboDeclaration |
get(java.lang.String uboDeclarationId) |
UboDeclaration |
get(java.lang.String userId,
java.lang.String uboDeclarationId)
Gets an UBO Declaration
|
java.util.List<UboDeclaration> |
getAll(java.lang.String userId,
Pagination pagination,
Sorting sort) |
Ubo |
getUbo(java.lang.String userId,
java.lang.String uboDeclarationId,
java.lang.String uboId) |
UboDeclaration |
submitForValidation(java.lang.String userId,
java.lang.String uboDeclarationId)
Updates an UBO Declaration with the status
VALIDATION_ASKED. |
Ubo |
updateUbo(java.lang.String userId,
java.lang.String uboDeclarationId,
Ubo ubo) |
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic UboDeclarationApiImpl(MangoPayApi root)
root - Root/parent instance that holds the OAuthToken and Configuration instance.public UboDeclaration create(java.lang.String userId) throws java.lang.Exception
UboDeclarationApicreate in interface UboDeclarationApiuserId - ID of the userjava.lang.Exceptionpublic java.util.List<UboDeclaration> getAll(java.lang.String userId, Pagination pagination, Sorting sort) throws java.lang.Exception
getAll in interface UboDeclarationApijava.lang.Exceptionpublic UboDeclaration get(java.lang.String userId, java.lang.String uboDeclarationId) throws java.lang.Exception
UboDeclarationApiget in interface UboDeclarationApiuserId - ID of the useruboDeclarationId - ID of the UboDeclarationjava.lang.Exceptionpublic Ubo createUbo(java.lang.String userId, java.lang.String uboDeclarationId, Ubo ubo) throws java.lang.Exception
createUbo in interface UboDeclarationApiuserId - ID of the useruboDeclarationId - ID of the UboDeclarationubo - Ubojava.lang.Exceptionpublic Ubo updateUbo(java.lang.String userId, java.lang.String uboDeclarationId, Ubo ubo) throws java.lang.Exception
updateUbo in interface UboDeclarationApiuserId - ID of the useruboDeclarationId - ID of the UboDeclarationubo - Ubojava.lang.Exceptionpublic Ubo getUbo(java.lang.String userId, java.lang.String uboDeclarationId, java.lang.String uboId) throws java.lang.Exception
getUbo in interface UboDeclarationApiuserId - ID of the useruboDeclarationId - ID of the UboDeclarationuboId - ID of the Ubojava.lang.Exceptionpublic UboDeclaration submitForValidation(java.lang.String userId, java.lang.String uboDeclarationId) throws java.lang.Exception
UboDeclarationApiVALIDATION_ASKED.submitForValidation in interface UboDeclarationApiuserId - ID of the userjava.lang.Exceptionpublic UboDeclaration get(java.lang.String uboDeclarationId) throws java.lang.Exception
get in interface UboDeclarationApijava.lang.Exception