View Javadoc
1   package com.foxinmy.weixin4j.pay.profitsharing;
2   
3   import com.alibaba.fastjson.JSON;
4   import com.alibaba.fastjson.annotation.JSONField;
5   import com.foxinmy.weixin4j.pay.payment.mch.MerchantResult;
6   
7   import javax.xml.bind.annotation.XmlElement;
8   import java.util.List;
9   
10  /**
11   * 单次分帐返回结果
12   *
13   * @author kit
14   * @date 2020年05月25日
15   * @since weixin4j-pay 1.1.0
16   */
17  public class ProfitSharingResult extends MerchantResult {
18      /**
19       * 微信支付订单号
20       */
21      @XmlElement(name = "transaction_id")
22      @JSONField(name = "transaction_id")
23      private String transactionId;
24      /**
25       * 商户订单号
26       */
27      @XmlElement(name = "out_trade_no")
28      @JSONField(name = "out_trade_no")
29      private String outOrderNo;
30      /**
31       * 微信分帐单号
32       */
33      @XmlElement(name = "order_id")
34      @JSONField(name = "order_id")
35      private String orderId;
36      /**
37       * 分账单状态(分帐查询)
38       * ACCEPTED—受理成功
39       * PROCESSING—处理中
40       * FINISHED—处理完成
41       * CLOSED—处理失败,已关单
42       */
43      private String status;
44      /**
45       * 关单原因(分帐查询),非必传,默认值:NO_AUTH----分账授权已解除
46       */
47      @XmlElement(name = "close_reason")
48      @JSONField(name = "close_reason")
49      private String closeReason;
50      /**
51       * 分账接收方列表(分帐查询)
52       */
53      @JSONField(serialize = false)
54      private String receivers;
55      /**
56       * 分账金额(分帐查询)
57       * 分账完结的分账金额,单位为分, 仅当查询分账完结的执行结果时,存在本字段
58       */
59      private Integer amount;
60      /**
61       * 分帐描述(分帐查询)
62       * 分账完结的原因描述,仅当查询分账完结的执行结果时,存在本字段
63       */
64      private String description;
65  
66      public String getTransactionId() {
67          return transactionId;
68      }
69  
70      public void setTransactionId(String transactionId) {
71          this.transactionId = transactionId;
72      }
73  
74      public String getOutOrderNo() {
75          return outOrderNo;
76      }
77  
78      public void setOutOrderNo(String outOrderNo) {
79          this.outOrderNo = outOrderNo;
80      }
81  
82      public String getOrderId() {
83          return orderId;
84      }
85  
86      public void setOrderId(String orderId) {
87          this.orderId = orderId;
88      }
89  
90      public String getStatus() {
91          return status;
92      }
93  
94      public void setStatus(String status) {
95          this.status = status;
96      }
97  
98      public String getCloseReason() {
99          return closeReason;
100     }
101 
102     public void setCloseReason(String closeReason) {
103         this.closeReason = closeReason;
104     }
105 
106     public String getReceivers() {
107         return receivers;
108     }
109 
110     public void setReceivers(String receivers) {
111         this.receivers = receivers;
112     }
113 
114     public Integer getAmount() {
115         return amount;
116     }
117 
118     public void setAmount(Integer amount) {
119         this.amount = amount;
120     }
121 
122     public String getDescription() {
123         return description;
124     }
125 
126     public void setDescription(String description) {
127         this.description = description;
128     }
129 
130     @JSONField(name = "receivers")
131     public List<ReceiverProfitResult> getProfitResult(){
132         return JSON.parseArray(this.receivers, ReceiverProfitResult.class);
133     }
134 }