public class MandateApiImpl extends ApiBase implements MandateApi
| Constructor and Description |
|---|
MandateApiImpl(MangoPayApi root)
Instantiates new MandateApiImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
Mandate |
cancel(java.lang.String mandateId)
Cancels mandate.
|
Mandate |
create(Mandate mandate)
Creates new mandate.
|
Mandate |
create(java.lang.String idempotencyKey,
Mandate mandate)
Creates new mandate.
|
Mandate |
get(java.lang.String mandateId)
Gets mandate.
|
java.util.List<Mandate> |
getAll(FilterMandates filters,
Pagination pagination,
Sorting sorting)
Gets all mandates.
|
java.util.List<Mandate> |
getForBankAccount(java.lang.String userId,
java.lang.String bankAccountId,
FilterMandates filters,
Pagination pagination,
Sorting sorting)
Gets mandates for bank account.
|
java.util.List<Mandate> |
getForUser(java.lang.String userId,
FilterMandates filters,
Pagination pagination,
Sorting sorting)
Gets mandates for user.
|
java.util.List<Transfer> |
getTransfers(java.lang.String mandateId)
Get first page of mandate's transfers
|
java.util.List<Transfer> |
getTransfers(java.lang.String mandateId,
Pagination pagination,
Sorting sorting)
Get page of mandate's transfers
|
java.util.List<Transfer> |
getTransfers(java.lang.String mandateId,
Pagination pagination,
Sorting sorting,
FilterMandates filters)
Get page of mandate's transfers
|
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic MandateApiImpl(MangoPayApi root)
root - Root/parent instance that holds the OAuthToken and Configuration instance.public Mandate create(Mandate mandate) throws java.lang.Exception
MandateApicreate in interface MandateApimandate - Mandate instance to be created.java.lang.Exceptionpublic Mandate create(java.lang.String idempotencyKey, Mandate mandate) throws java.lang.Exception
MandateApicreate in interface MandateApiidempotencyKey - idempotency key for this request.mandate - Mandate instance to be created.java.lang.Exceptionpublic Mandate get(java.lang.String mandateId) throws java.lang.Exception
MandateApiget in interface MandateApimandateId - Mandate identifier.java.lang.Exceptionpublic java.util.List<Mandate> getAll(FilterMandates filters, Pagination pagination, Sorting sorting) throws java.lang.Exception
MandateApigetAll in interface MandateApifilters - Filters.pagination - Pagination.sorting - Sorting.java.lang.Exceptionpublic java.util.List<Mandate> getForUser(java.lang.String userId, FilterMandates filters, Pagination pagination, Sorting sorting) throws java.lang.Exception
MandateApigetForUser in interface MandateApiuserId - User identifier.filters - Filters.pagination - Pagination.sorting - Sorting.java.lang.Exceptionpublic java.util.List<Mandate> getForBankAccount(java.lang.String userId, java.lang.String bankAccountId, FilterMandates filters, Pagination pagination, Sorting sorting) throws java.lang.Exception
MandateApigetForBankAccount in interface MandateApiuserId - User identifier.bankAccountId - Bank account identifier.filters - Filters.pagination - Pagination.sorting - Sorting.java.lang.Exceptionpublic Mandate cancel(java.lang.String mandateId) throws java.lang.Exception
MandateApicancel in interface MandateApimandateId - Mandate identifier.java.lang.Exceptionpublic java.util.List<Transfer> getTransfers(java.lang.String mandateId) throws java.lang.Exception
MandateApigetTransfers in interface MandateApimandateId - Mandate indentifierjava.lang.Exceptionpublic java.util.List<Transfer> getTransfers(java.lang.String mandateId, Pagination pagination, Sorting sorting) throws java.lang.Exception
MandateApigetTransfers in interface MandateApimandateId - Mandate identifierpagination - Pagination objectsorting - Sorting objectjava.lang.Exceptionpublic java.util.List<Transfer> getTransfers(java.lang.String mandateId, Pagination pagination, Sorting sorting, FilterMandates filters) throws java.lang.Exception
MandateApigetTransfers in interface MandateApimandateId - Mandate identifierpagination - Pagination objectsorting - Sorting objectfilters - Status and/or ResultCode filtersjava.lang.Exception