package com.bonus.core.marketing.coupon.api;

import com.bonus.core.marketing.coupon.model.MktCouponMacPayModel;
import com.bonus.core.marketing.coupon.model.MktCouponPayModel;
import com.bonus.core.marketing.coupon.service.MktCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class MktCouponApi {
   @Autowired
   @Lazy
   private MktCouponService mktCouponService;
//
//   public MktCouponPayModel getCouponAmountForAppPay(Long couponNum) {
//      return this.mktCouponService.getCouponAmountForAppPay(couponNum);
//   }

   public MktCouponPayModel getCouponAmountForMacPay(MktCouponMacPayModel macPayModel) {
      return this.mktCouponService.getCouponAmountForMacPay(macPayModel);
   }
//
//   public void updateCouponAfterPay(Long couponNum, BigDecimal actualDeduction) {
//      this.mktCouponService.updateCouponAfterPay(couponNum, actualDeduction);
//   }
//
//   public void cancelCouponPay(Long couponNum) {
//      this.mktCouponService.cancelCouponPay(couponNum);
//   }
//
//   public Boolean selectCouponPayState(Long couponNum) {
//      return this.mktCouponService.selectCouponPayState(couponNum);
//   }
}
