|
|
package com.yohoufo.order.charge;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohobuy.ufo.model.order.constants.RegionEnum;
|
|
|
import com.yohobuy.ufo.model.promotion.UserCouponsBo;
|
|
|
import com.yohobuy.ufo.model.promotion.constant.CouponProductLimitTypeEnum;
|
|
|
import com.yohobuy.ufo.model.promotion.constant.CouponUseLimitTypeEnum;
|
...
|
...
|
@@ -161,4 +162,20 @@ public class CouponRuleMatcher { |
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private static class SkupRegionRuleMatcher implements IRuleMatcher {
|
|
|
@Override
|
|
|
public String ruleName() {
|
|
|
return "SkupRegion";
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public boolean match(ChargeGoods chargeGoods, UserCouponsBo couponsBo) {
|
|
|
// 香港地区不支持优惠券使用
|
|
|
if (chargeGoods.getRegion() == RegionEnum.HONGKONG){
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|