Subversion Repositories SmartDukaan

Rev

Rev 23886 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.recharge;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.enumuration.ProviderBalanceFrom;
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.RechargeCommissionRequest;
import com.spice.profitmandi.common.model.RechargeCredential;
import com.spice.profitmandi.common.model.RechargeRequest;
import com.spice.profitmandi.common.model.RechargeResponse;

@Service
public interface RechargeService {
        public RechargeResponse doRecharge(RechargeCredential thinkWalnutDigitalRechargeTransactionMobileCredential,
                        RechargeCredential thinkWalnutDigitalRechargeTransactionDthCredential, int retailerId, RechargeRequest rechargeRequest)
                                        throws ProfitMandiBusinessException;
        public RechargeResponse checkStatus(
                        RechargeCredential thinkWalnutDigitalRechargeEnquiryCredential, int retailerId, String requestId)
                                        throws ProfitMandiBusinessException;
        public void createRechargeCommission(RechargeCommissionRequest rechargeCommissionRequest) throws ProfitMandiBusinessException;
        public void updateRechargeCommission(int operatorId, int providerId, String amountTypeString, float amount) throws ProfitMandiBusinessException;
        public void addCommissionToWallet();
        public float checkBalance(RechargeCredential rechargeCredential, int providerId, ProviderBalanceFrom providerBalanceFrom) throws ProfitMandiBusinessException;
        public void createRechargeProviderCreditWallet(int providerId, float amount, LocalDateTime providerWalletCreditTimestamp) throws ProfitMandiBusinessException;
        public List<Map<String, Object>> getRechargeProvidersBalance(RechargeCredential rechargeCredential) throws ProfitMandiBusinessException;
}