View Javadoc
1   package com.foxinmy.weixin4j.pay.profitsharing;
2   
3   import com.alibaba.fastjson.annotation.JSONField;
4   import com.foxinmy.weixin4j.pay.type.profitsharing.ReceiverType;
5   
6   import javax.xml.bind.annotation.XmlElement;
7   
8   /**
9    * 分帐方添加删除API调用结果
10   *
11   * @author kit (kit.li@qq.com)
12   * @date 2020年05月25日
13   * @since weixin4j-pay 1.1.0
14   */
15  public class ReceiverProfitResult extends ReceiverProfit {
16      /**
17       * 分帐结果:
18       * PENDING:待分账
19       * SUCCESS:分账成功
20       * ADJUST:分账失败待调账
21       * RETURNED:已转回分账方
22       * CLOSED: 已关闭
23       */
24      private String result;
25      /**
26       * 分账完成时间
27       */
28      @XmlElement(name = "finish_time")
29      @JSONField(name = "finish_time")
30      private String finishTime;
31      @XmlElement(name = "fail_reason")
32      @JSONField(name = "fail_reason")
33      private String failReason;
34  
35      public ReceiverProfitResult(ReceiverType type, String account, int amount, String description, String result){
36          super(type, account, amount, description);
37          this.result = result;
38      }
39  
40      public String getResult() {
41          return result;
42      }
43  
44      public void setResult(String result) {
45          this.result = result;
46      }
47  
48      public String getFinishTime() {
49          return finishTime;
50      }
51  
52      public void setFinishTime(String finishTime) {
53          this.finishTime = finishTime;
54      }
55  
56      public String getFailReason() {
57          return failReason;
58      }
59  
60      public void setFailReason(String failReason) {
61          this.failReason = failReason;
62      }
63  }