Subversion Repositories SmartDukaan

Rev

Rev 1946 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package in.shop2020.payment.handler;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import in.shop2020.payment.domain.PaymentGateway;
import in.shop2020.payment.persistence.PaymentGatewayMapper;

@Service
public class PaymentGatewayHandler {
        
        @Autowired
        private PaymentGatewayMapper paymentGatewayMapper;
        
        public PaymentGateway getPaymentGateway(long id){
                return paymentGatewayMapper.getPaymentGateway(id);
        }
        
        public List<PaymentGateway> getActivePaymentGateways()  {
                return paymentGatewayMapper.getActivePaymentGateways();
        }
}