Commit 919b8af0 authored by shiyu's avatar shiyu

支付参数类

parent 1de859dd
package com.wwdz.ch.core.entity.wxPay;
import com.xxdxxs.entity.Entity;
import lombok.Data;
@Data
public class JSApiPayAmount implements Entity {
/**
* 订单总金额,单位为分。
*/
private Integer total;
/**
* CNY:人民币,境内商户号仅支持人民币。
*/
private String currency = "CNY";
public JSApiPayAmount(Integer total) {
this.total = total;
}
public static JSApiPayAmount of(Integer total) {
return new JSApiPayAmount(total);
}
}
package com.wwdz.ch.core.entity.wxPay;
import com.xxdxxs.entity.Entity;
import lombok.Data;
import java.util.Map;
/**
* 微信小程序支付
* 请求参数
*/
@Data
public class JSApiPayRequestDto implements Entity {
/**
* 应用ID
*/
private String appid;
/**
* 直连商户号
*/
private String mchid;
/**
* 商品描述
*/
private String description;
/**
* 商户订单号
*/
private String out_trade_no;
/**
* 交易结束时间
* 订单失效时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,
* 表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。
* 例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。
* 示例值:2018-06-08T10:34:56+08:00
*/
private String time_expire;
/**
* 附加数据
*/
private String attach;
/**
* 通知地址
*/
private String notify_url;
/**
* 订单优惠标记
*/
private String goods_tag;
/**
* 电子发票入口开放标识
*/
private Boolean support_fapiao;
/**
* 订单金额
*/
private Map<String, Object> amount;
/**
* 支付者信息
*/
private Map<String, Object> payer;
}
package com.wwdz.ch.core.entity.wxPay;
import com.xxdxxs.entity.Entity;
import lombok.Data;
@Data
public class JSApiPayer implements Entity {
/**
* 用户标识
*/
private String openid;
public JSApiPayer() {
}
public JSApiPayer(String openid) {
this.openid = openid;
}
public static JSApiPayer of(String openid) {
return new JSApiPayer(openid);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment