Package org.cyclos.services.banking
Interface ChargebackService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
ChargebackServiceLocal
- All Known Implementing Classes:
ChargebackServiceImpl,ChargebackServiceSecurity
public interface ChargebackService extends Service
A service to chargeback transfers and get data about chargebacks
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Longchargeback(@NotNull TransferActionDTO params)Performs the chargeback for the given transfer, returning the chargeback id.ChargebackDatagetData(@NotNull Long id)Returns details about a chargeback
-
-
-
Method Detail
-
chargeback
Long chargeback(@NotNull @NotNull TransferActionDTO params) throws FrameworkException, TransferException
Performs the chargeback for the given transfer, returning the chargeback id. The chargeback transfer is from / to the same original transfer, but the amount is negative- Throws:
IllegalActionException- When the given transfer has already been charged backInsufficientBalanceException- When the source account, or source account for any generated fee is limited and had insufficient balance for such a paymentMaxAmountPerDayExceededException- When the maximum amount for payments of this transfer type has been exceeded, according to the transfer type configurationUpperCreditLimitReachedException- When the destination account, or destination account for any generated fee is limited and would have more balance than the allowed maximumFrameworkExceptionTransferException
-
getData
ChargebackData getData(@NotNull @NotNull Long id) throws FrameworkException
Returns details about a chargeback- Throws:
FrameworkException
-
-