| Constructor and Description |
|---|
PayInApiImpl(MangoPayApi root,
com.google.gson.GsonBuilder gsonBuilder)
Instantiates new PayInApiImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
PayIn |
create(PayIn payIn)
Creates new PayIn object.
|
PayIn |
create(java.lang.String idempotencyKey,
PayIn payIn)
Creates new PayIn object.
|
CardPreAuthorizedDepositPayIn |
createCardPreAuthorizedDepositPayIn(CreateCardPreAuthorizedDepositPayIn payIn,
java.lang.String idempotencyKey) |
PayIn |
createPayPal(PayIn payIn)
Creates new PayPal Web PayIn object.
|
RecurringPayIn |
createRecurringPayInCIT(java.lang.String idempotencyKey,
RecurringPayInCIT cit) |
RecurringPayIn |
createRecurringPayInMIT(java.lang.String idempotencyKey,
RecurringPayInMIT mit) |
RecurringPayment |
createRecurringPayment(java.lang.String idempotencyKey,
CreateRecurringPayment createRecurringPayment) |
Refund |
createRefund(java.lang.String payInId,
Refund refund)
Creates refund for PayIn object.
|
Refund |
createRefund(java.lang.String idempotencyKey,
java.lang.String payInId,
Refund refund)
Creates refund for PayIn object.
|
PayIn |
get(java.lang.String payInId)
Gets PayIn entity by its identifier.
|
RecurringPaymentExtended |
getRecurringPayment(java.lang.String payInId) |
Refund |
getRefund(java.lang.String payInId)
Gets refund for PayIn object.
|
java.util.List<Refund> |
getRefunds(java.lang.String payInId)
Get first page of payIn refunds
|
java.util.List<Refund> |
getRefunds(java.lang.String payInId,
Pagination pagination,
Sorting sorting)
Get page of payIn refunds
|
RecurringPaymentExtended |
updateRecurringPayment(java.lang.String payInId,
RecurringPaymentUpdate payIn) |
createObject, createObject, createObject, getList, getList, getList, getList, getList, getList, getListNoClientId, getObject, getObjectNoClientId, getRequestType, getRequestUrl, getRoot, updateObject, updateObject, updateObject, updateObjectpublic PayInApiImpl(MangoPayApi root, com.google.gson.GsonBuilder gsonBuilder)
root - Root/parent instance that holds the OAuthToken and Configuration instance.public PayIn create(PayIn payIn) throws java.lang.Exception
PayInApipublic PayIn create(java.lang.String idempotencyKey, PayIn payIn) throws java.lang.Exception
PayInApipublic RecurringPayment createRecurringPayment(java.lang.String idempotencyKey, CreateRecurringPayment createRecurringPayment) throws java.lang.Exception
createRecurringPayment in interface PayInApijava.lang.Exceptionpublic RecurringPaymentExtended getRecurringPayment(java.lang.String payInId) throws java.lang.Exception
getRecurringPayment in interface PayInApijava.lang.Exceptionpublic RecurringPaymentExtended updateRecurringPayment(java.lang.String payInId, RecurringPaymentUpdate payIn) throws java.lang.Exception
updateRecurringPayment in interface PayInApijava.lang.Exceptionpublic RecurringPayIn createRecurringPayInCIT(java.lang.String idempotencyKey, RecurringPayInCIT cit) throws java.lang.Exception
createRecurringPayInCIT in interface PayInApijava.lang.Exceptionpublic RecurringPayIn createRecurringPayInMIT(java.lang.String idempotencyKey, RecurringPayInMIT mit) throws java.lang.Exception
createRecurringPayInMIT in interface PayInApijava.lang.Exceptionpublic PayIn get(java.lang.String payInId) throws java.lang.Exception
PayInApipublic Refund createRefund(java.lang.String payInId, Refund refund) throws java.lang.Exception
PayInApicreateRefund in interface PayInApipayInId - PayIn identifier.refund - Refund object to be created.java.lang.Exceptionpublic Refund createRefund(java.lang.String idempotencyKey, java.lang.String payInId, Refund refund) throws java.lang.Exception
PayInApicreateRefund in interface PayInApiidempotencyKey - Idempotency key for this request.payInId - PayIn identifier.refund - Refund object to be created.java.lang.Exceptionpublic Refund getRefund(java.lang.String payInId) throws java.lang.Exception
PayInApipublic java.util.List<Refund> getRefunds(java.lang.String payInId) throws java.lang.Exception
PayInApigetRefunds in interface PayInApipayInId - PayIn identifierjava.lang.Exceptionpublic java.util.List<Refund> getRefunds(java.lang.String payInId, Pagination pagination, Sorting sorting) throws java.lang.Exception
PayInApigetRefunds in interface PayInApipayInId - PayIn identifierpagination - Pagination objectsorting - Sorting objectjava.lang.Exceptionpublic CardPreAuthorizedDepositPayIn createCardPreAuthorizedDepositPayIn(CreateCardPreAuthorizedDepositPayIn payIn, java.lang.String idempotencyKey) throws java.lang.Exception
createCardPreAuthorizedDepositPayIn in interface PayInApijava.lang.Exceptionpublic PayIn createPayPal(PayIn payIn) throws java.lang.Exception
PayInApicreatePayPal in interface PayInApipayIn - The PayIn object to be created.java.lang.Exception