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 import com.foxinmy.weixin4j.pay.type.profitsharing.RelationType;
6
7
8
9
10
11
12
13
14
15 public class Receiver {
16
17 public Receiver(){}
18
19 public Receiver(ReceiverType type, String account, RelationType relationType) {
20 this.type = type;
21 this.account = account;
22 this.relationType = relationType;
23 }
24
25 public Receiver(ReceiverType type, String account, String name, RelationType relationType, String customRelation) {
26 this.type = type;
27 this.account = account;
28 this.name = name;
29 this.relationType = relationType;
30 this.customRelation = customRelation;
31 }
32
33
34
35
36 private ReceiverType type;
37
38
39
40
41
42
43
44 private String account;
45
46
47
48
49
50
51
52 private String name;
53
54
55
56 @JSONField(name = "relation_type")
57 private RelationType relationType;
58
59
60
61
62
63 @JSONField(name = "custom_relation")
64 private String customRelation;
65
66 public ReceiverType getType() {
67 return type;
68 }
69
70 public void setType(ReceiverType type) {
71 this.type = type;
72 }
73
74 public String getAccount() {
75 return account;
76 }
77
78 public void setAccount(String account) {
79 this.account = account;
80 }
81
82 public String getName() {
83 return name;
84 }
85
86 public void setName(String name) {
87 this.name = name;
88 }
89
90 public RelationType getRelationType() {
91 return relationType;
92 }
93
94 public void setRelationType(RelationType relationType) {
95 this.relationType = relationType;
96 }
97
98 public String getCustomRelation() {
99 return customRelation;
100 }
101
102 public void setCustomRelation(String customRelation) {
103 this.customRelation = customRelation;
104 }
105 }