View Javadoc
1   package com.foxinmy.weixin4j.model.card;
2   
3   import com.alibaba.fastjson.annotation.JSONField;
4   
5   /**
6    * 会员卡积分规则
7    *
8    * @auther: Feng Yapeng
9    * @since: 2016/12/15 11:43
10   */
11  public class MemCardBonusRule {
12  
13      /**
14       * 消费金额。以分为单位。
15       */
16      @JSONField(name = "cost_money_unit")
17      private int costMoneyUnit;
18      /**
19       * 对应增加的积分
20       */
21      @JSONField(name = "increase_bonus")
22      private int increaseBonus;
23      /**
24       * 用户单次可获取的积分上限。
25       */
26      @JSONField(name = "max_increase_bonus ")
27      private int maxIncreaseBonus;
28      /**
29       * 初始设置积分【可以理解为开卡积分】
30       */
31      @JSONField(name = "init_increase_bonus")
32      private int initIncreaseBonus;
33      /**
34       *每使用N 积分
35       */
36      @JSONField(name = "cost_bonus_unit")
37      private int costBonusUnit;
38      /**
39       * 抵扣多少分
40       */
41      @JSONField(name = "reduce_money")
42      private int reduceMoney;
43      /**
44       * 抵扣条件,满xx分(这里以分为单位)可用
45       */
46      @JSONField(name = "least_money_to_use_bonus")
47      private int leastMoneyToUseBonus;
48      /**
49       *
50       */
51      @JSONField(name = "max_reduce_bonus")
52      private int  maxReduceBonus;
53  
54  
55      public int getCostMoneyUnit() {
56          return costMoneyUnit;
57      }
58  
59      public void setCostMoneyUnit(int costMoneyUnit) {
60          this.costMoneyUnit = costMoneyUnit;
61      }
62  
63      public int getIncreaseBonus() {
64          return increaseBonus;
65      }
66  
67      public void setIncreaseBonus(int increaseBonus) {
68          this.increaseBonus = increaseBonus;
69      }
70  
71      public int getMaxIncreaseBonus() {
72          return maxIncreaseBonus;
73      }
74  
75      public void setMaxIncreaseBonus(int maxIncreaseBonus) {
76          this.maxIncreaseBonus = maxIncreaseBonus;
77      }
78  
79      public int getInitIncreaseBonus() {
80          return initIncreaseBonus;
81      }
82  
83      public void setInitIncreaseBonus(int initIncreaseBonus) {
84          this.initIncreaseBonus = initIncreaseBonus;
85      }
86  
87      public int getCostBonusUnit() {
88          return costBonusUnit;
89      }
90  
91      public void setCostBonusUnit(int costBonusUnit) {
92          this.costBonusUnit = costBonusUnit;
93      }
94  
95      public int getReduceMoney() {
96          return reduceMoney;
97      }
98  
99      public void setReduceMoney(int reduceMoney) {
100         this.reduceMoney = reduceMoney;
101     }
102 
103     public int getLeastMoneyToUseBonus() {
104         return leastMoneyToUseBonus;
105     }
106 
107     public void setLeastMoneyToUseBonus(int leastMoneyToUseBonus) {
108         this.leastMoneyToUseBonus = leastMoneyToUseBonus;
109     }
110 
111     public int getMaxReduceBonus() {
112         return maxReduceBonus;
113     }
114 
115     public void setMaxReduceBonus(int maxReduceBonus) {
116         this.maxReduceBonus = maxReduceBonus;
117     }
118 }