@@ -23,18 +23,12 @@ public class WxMpKfAccountRequest implements Serializable {
2323 */
2424 @ SerializedName ("nickname" )
2525 private String nickName ;
26-
27- /**
28- * password 客服账号登录密码,格式为密码明文的32位加密MD5值
29- */
30- @ SerializedName ("password" )
31- private String password ;
32-
26+
3327 /**
34- * rawPassword 客服账号登录密码,明文密码,仅用于辅助操作
28+ * invite_wx 接收绑定邀请的客服微信号
3529 */
36- @ SerializedName ("rawPassword " )
37- private String rawPassword ;
30+ @ SerializedName ("invite_wx " )
31+ private String inviteWx ;
3832
3933 @ Override
4034 public String toString () {
@@ -61,31 +55,22 @@ public void setNickName(String nickName) {
6155 this .nickName = nickName ;
6256 }
6357
64- public String getPassword () {
65- return this .password ;
66- }
67-
68- public void setPassword (String password ) {
69- this .password = password ;
70- }
71-
72- public String getRawPassword () {
73- return this .rawPassword ;
58+ public static Builder builder () {
59+ return new Builder ();
7460 }
7561
76- public void setRawPassword ( String rawPassword ) {
77- this .rawPassword = rawPassword ;
62+ public String getInviteWx ( ) {
63+ return this .inviteWx ;
7864 }
7965
80- public static Builder builder ( ) {
81- return new Builder () ;
66+ public void setInviteWx ( String inviteWx ) {
67+ this . inviteWx = inviteWx ;
8268 }
8369
8470 public static class Builder {
8571 private String kfAccount ;
8672 private String nickName ;
87- private String password ;
88- private String rawPassword ;
73+ private String inviteWx ;
8974
9075 @ SuppressWarnings ("hiding" )
9176 public Builder kfAccount (String kfAccount ) {
@@ -100,32 +85,23 @@ public Builder nickName(String nickName) {
10085 }
10186
10287 @ SuppressWarnings ("hiding" )
103- public Builder password (String password ) {
104- this .password = password ;
105- return this ;
106- }
107-
108- @ SuppressWarnings ("hiding" )
109- public Builder rawPassword (String rawPassword ) {
110- this .rawPassword = rawPassword ;
111- this .password (Md5Crypt .md5Crypt (rawPassword .getBytes ()));
112- return this ;
88+ public Builder inviteWx (String inviteWx ) {
89+ this .inviteWx = inviteWx ;
90+ return this ;
11391 }
11492
11593 public Builder from (WxMpKfAccountRequest origin ) {
11694 this .kfAccount (origin .kfAccount );
11795 this .nickName (origin .nickName );
118- this .password (origin .password );
119- this .rawPassword (origin .rawPassword );
96+ this .inviteWx (origin .inviteWx );
12097 return this ;
12198 }
12299
123100 public WxMpKfAccountRequest build () {
124101 WxMpKfAccountRequest m = new WxMpKfAccountRequest ();
125102 m .kfAccount = this .kfAccount ;
126103 m .nickName = this .nickName ;
127- m .password = this .password ;
128- m .rawPassword = this .rawPassword ;
104+ m .inviteWx = this .inviteWx ;
129105 return m ;
130106 }
131107 }
0 commit comments