优化javadoc

This commit is contained in:
Binary Wang 2017-07-03 15:48:17 +08:00
parent b12a7a8590
commit 04e115ce03

View File

@ -25,12 +25,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 设备号 * 字段名设备号
* device_info * 变量名device_info
* * 是否必填
* String(32) * 类型String(32)
* 013467007045764 * 示例值013467007045764
* 微信支付分配的终端设备号 * 描述微信支付分配的终端设备号
* </pre> * </pre>
*/ */
@XStreamAlias("device_info") @XStreamAlias("device_info")
@ -38,12 +38,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 用户标识 * 字段名用户标识
* openid * 变量名openid
* * 否必填
* String(128) * 类型String(128)
* wxd930ea5d5a258f4f * 示例值wxd930ea5d5a258f4f
* 用户在商户appid下的唯一标识 * 描述用户在商户appid下的唯一标识
* </pre> * </pre>
*/ */
@XStreamAlias("openid") @XStreamAlias("openid")
@ -51,25 +51,52 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 是否关注公众账号 * 字段名是否关注公众账号
* is_subscribe * 变量名is_subscribe
* * 是否必填
* String(1) * 类型String(1)
* Y * 示例值Y
* 用户是否关注公众账号Y-关注N-未关注仅在公众账号类型支付有效 * 描述用户是否关注公众账号Y-关注N-未关注仅在公众账号类型支付有效
* </pre> * </pre>
*/ */
@XStreamAlias("is_subscribe") @XStreamAlias("is_subscribe")
private String isSubscribe; private String isSubscribe;
/**
* <pre>
* 字段名用户子标识
* 变量名sub_openid
* 是否必填
* 类型String(128)
* 示例值wxd930ea5d5a258f4f
* 描述用户在子商户appid下的唯一标识
* </pre>
*/
@XStreamAlias("sub_openid")
private String subOpenid;
/** /**
* <pre> * <pre>
* 交易类型 * 字段名是否关注子公众账号
* trade_type * 变量名sub_is_subscribe
* * 是否必填
* String(16) * 类型String(1)
* JSAPI JSAPINATIVEAPP * 示例值Y
* 描述用户是否关注子公众账号Y-关注N-未关注仅在公众账号类型支付有效
* </pre>
*/
@XStreamAlias("sub_is_subscribe")
private String subIsSubscribe;
/**
* <pre>
* 字段名交易类型
* 变量名trade_type
* 是否必填
* 类型String(16)
* 示例值JSAPI
* JSA描述PINATIVEAPP
* </pre> * </pre>
*/ */
@XStreamAlias("trade_type") @XStreamAlias("trade_type")
@ -78,12 +105,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 付款银行 * 字段名付款银行
* bank_type * 变量名bank_type
* * 否必填
* String(16) * 类型String(16)
* CMC * 示例值CMC
* 银行类型采用字符串类型的银行标识银行类型见银行列表 * 描述银行类型采用字符串类型的银行标识银行类型见银行列表
* </pre> * </pre>
*/ */
@XStreamAlias("bank_type") @XStreamAlias("bank_type")
@ -91,91 +118,72 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 用户是否关注子公众账号 * 字段名订单金额
* String(1) * 变量名total_fee
* Y-关注N-未关注仅在公众账号类型支付有效 * 是否必填
* </pre> * 类型Int
*/ * 示例值100
@XStreamAlias("sub_is_subscribe") * 描述订单总金额单位为分
private String subIsSubscribe;
/**
* <pre>
* 用户在子商户appid下的唯一标识
* String(128)
* </pre>
*/
@XStreamAlias("sub_openid")
private String subOpenId;
/**
* <pre>
* 订单金额
* total_fee
*
* Int
* 100
* 订单总金额单位为分
* </pre> * </pre>
*/ */
@XStreamAlias("total_fee") @XStreamAlias("total_fee")
private Integer totalFee; private Integer totalFee;
/** /**
* <pre> * <pre>
* 应结订单金额 * 字段名应结订单金额
* settlement_total_fee * 变量名settlement_total_fee
* * 是否必填
* Int * 类型Int
* 100 * 示例值100
* 应结订单金额=订单金额-非充值代金券金额应结订单金额<=订单金额 * 描述应结订单金额=订单金额-非充值代金券金额应结订单金额<=订单金额
* </pre> * </pre>
*/ */
@XStreamAlias("settlement_total_fee") @XStreamAlias("settlement_total_fee")
private Integer settlementTotalFee; private Integer settlementTotalFee;
/** /**
* <pre> * <pre>
* 货币种类 * 字段名货币种类
* fee_type * 变量名fee_type
* * 是否必填
* String(8) * 类型String(8)
* CNY * 示例值CNY
* 货币类型符合ISO4217标准的三位字母代码默认人民币CNY其他值列表详见货币类型 * 描述货币类型符合ISO4217标准的三位字母代码默认人民币CNY其他值列表详见货币类型
* </pre> * </pre>
*/ */
@XStreamAlias("fee_type") @XStreamAlias("fee_type")
private String feeType; private String feeType;
/** /**
* <pre> * <pre>
* 现金支付金额 * 字段名现金支付金额
* cash_fee * 变量名cash_fee
* * 否必填
* Int * 类型Int
* 100 * 示例值100
* 现金支付金额订单现金支付金额详见支付金额 * 描述现金支付金额订单现金支付金额详见支付金额
* </pre> * </pre>
*/ */
@XStreamAlias("cash_fee") @XStreamAlias("cash_fee")
private Integer cashFee; private Integer cashFee;
/** /**
* <pre> * <pre>
* 现金支付货币类型 * 字段名现金支付货币类型
* cash_fee_type * 变量名cash_fee_type
* * 是否必填
* String(16) * 类型String(16)
* CNY * 示例值CNY
* 货币类型符合ISO4217标准的三位字母代码默认人民币CNY其他值列表详见货币类型 * 描述货币类型符合ISO4217标准的三位字母代码默认人民币CNY其他值列表详见货币类型
* </pre> * </pre>
*/ */
@XStreamAlias("cash_fee_type") @XStreamAlias("cash_fee_type")
private String cashFeeType; private String cashFeeType;
/** /**
* <pre> * <pre>
* 总代金券金额 * 字段名总代金券金额
* coupon_fee * 变量名coupon_fee
* * 是否必填
* Int * 类型Int
* 10 * 示例值10
* 代金券金额<=订单金额订单金额-代金券金额=现金支付金额详见支付金额 * 描述代金券金额<=订单金额订单金额-代金券金额=现金支付金额详见支付金额
* </pre> * </pre>
*/ */
@XStreamAlias("coupon_fee") @XStreamAlias("coupon_fee")
@ -183,12 +191,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 代金券使用数量 * 字段名代金券使用数量
* coupon_count * 变量名coupon_count
* * 是否必填
* Int * 类型Int
* 1 * 示例值1
* 代金券使用数量 * 描述代金券使用数量
* </pre> * </pre>
*/ */
@XStreamAlias("coupon_count") @XStreamAlias("coupon_count")
@ -198,12 +206,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 微信支付订单号 * 字段名微信支付订单号
* transaction_id * 变量名transaction_id
* * 否必填
* String(32) * 类型String(32)
* 1217752501201407033233368018 * 示例值1217752501201407033233368018
* 微信支付订单号 * 描述微信支付订单号
* </pre> * </pre>
*/ */
@XStreamAlias("transaction_id") @XStreamAlias("transaction_id")
@ -211,36 +219,36 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
/** /**
* <pre> * <pre>
* 商户订单号 * 字段名商户订单号
* out_trade_no * 变量名out_trade_no
* * 否必填
* String(32) * 类型String(32)
* 1212321211201407033568112322 * 示例值1212321211201407033568112322
* 商户系统的订单号与请求一致 * 描述商户系统的订单号与请求一致
* </pre> * </pre>
*/ */
@XStreamAlias("out_trade_no") @XStreamAlias("out_trade_no")
private String outTradeNo; private String outTradeNo;
/** /**
* <pre> * <pre>
* 商家数据包 * 字段名商家数据包
* attach * 变量名attach
* * 是否必填
* String(128) * 类型String(128)
* 123456 * 示例值123456
* 商家数据包原样返回 * 描述商家数据包原样返回
* </pre> * </pre>
*/ */
@XStreamAlias("attach") @XStreamAlias("attach")
private String attach; private String attach;
/** /**
* <pre> * <pre>
* 支付完成时间 * 字段名支付完成时间
* time_end * 变量名time_end
* * 否必填
* String(14) * 类型String(14)
* 20141030133525 * 示例值20141030133525
* 支付完成时间格式为yyyyMMddHHmmss如2009年12月25日9点10分10秒表示为20091225091010其他详见时间规则 * 描述支付完成时间格式为yyyyMMddHHmmss如2009年12月25日9点10分10秒表示为20091225091010其他详见时间规则
* </pre> * </pre>
*/ */
@XStreamAlias("time_end") @XStreamAlias("time_end")
@ -311,22 +319,6 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
this.bankType = bankType; this.bankType = bankType;
} }
public String getSubIsSubscribe() {
return subIsSubscribe;
}
public void setSubIsSubscribe(String subIsSubscribe) {
this.subIsSubscribe = subIsSubscribe;
}
public String getSubOpenId() {
return subOpenId;
}
public void setSubOpenId(String subOpenId) {
this.subOpenId = subOpenId;
}
public Integer getTotalFee() { public Integer getTotalFee() {
return totalFee; return totalFee;
} }
@ -407,6 +399,22 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa
this.timeEnd = timeEnd; this.timeEnd = timeEnd;
} }
public String getSubOpenid() {
return this.subOpenid;
}
public void setSubOpenid(String subOpenid) {
this.subOpenid = subOpenid;
}
public String getSubIsSubscribe() {
return this.subIsSubscribe;
}
public void setSubIsSubscribe(String subIsSubscribe) {
this.subIsSubscribe = subIsSubscribe;
}
@Override @Override
public Map<String, String> toMap() { public Map<String, String> toMap() {
Map<String, String> resultMap = BeanUtils.xmlBean2Map(this); Map<String, String> resultMap = BeanUtils.xmlBean2Map(this);