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   
9   /**
10   * 分帐方添加及删除的API请求
11   *
12   * @author kit (kit.li@qq.com)
13   * @date 2020年05月20日
14   * @since weixin4j-pay 1.1.0
15   */
16  public class ReceiverRequest extends MerchantResult {
17  
18      @XmlElement(name = "sign_type")
19      @JSONField(name = "sign_type")
20      private final String signType = "HMAC-SHA256";
21  
22      public ReceiverRequest(Receiver receiver){
23          super();
24          this.receiver = JSON.toJSONString(receiver);
25      }
26  
27      private String receiver;
28  
29      public String getReceiver() {
30          return this.receiver;
31      }
32  
33      public void setReceiver(String receiver) {
34          this.receiver = receiver;
35      }
36  
37      @Override
38      public String getSignType() {
39          return signType;
40      }
41  }