All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.anyline.wechat.entity.WechatPrePayOrder Maven / Gradle / Ivy

There is a newer version: 8.7.2-20240916
Show newest version
/*
 * Copyright 2006-2023 www.anyline.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */




package org.anyline.wechat.entity;


import org.anyline.wechat.pay.util.WechatPayConfig;

public class WechatPrePayOrder {
	protected String appid				; // 公众号ID(conf)	是	String(32)	wxd678efh567hg6787	微信支付分配的公众账号ID(企业号corpid即为此appId) 
	protected String mch_id				; // 商户号(conf)	是	String(32)	1230000109	微信支付分配的商户号
	protected String nonce_str			; // 随机字符串(auto)	是	String(32)	5K8264ILTKCH16CQ2502SI8ZNMTM67VS	随机字符串,长度要求在32位以内.推荐随机数生成算法 
	protected String sign				; // 签名(auto)		是	String(32)	C380BEC2BFD727A4B6845133519F3AD6	通过签名算法计算得出的签名值,详见签名生成算法 
	protected String body				; // 商品描述		是	String(128)	腾讯充值中心-QQ会员充值	商品简单描述,该字段请按照规范传递,具体请见参数规定
	protected String out_trade_no		; // 商户订单号(evl)	是	String(32)	notify时原样回传 用来对应TRADE_CALL(常用格式 CALL_ID + _ + ORDER_ID) 20150806125346	商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|* 且在同一个商户号下唯一.详见商户订单号
	protected int total_fee				; // 标价金额		是	Int			88	订单总金额,单位为分,详见支付金额
	protected String spbill_create_ip	; // 终端IP			是	String(16)	123.12.12.123	APP和网页支付提交用户端ip,Native支付填调用微信支付API的机器IP. 
	protected String notify_url			; // 通知地址		是	String(256)	http://www.weixin.qq.com/wxpay/pay.php	异步接收微信支付结果通知的回调地址,通知url必须为外网可访问的url,不能携带参数.
	protected String trade_type			; // 交易类型		是	String(16)	JSAPI	 JSAPI 公众号支付 NATIVE 扫码支付 APP APP支付
	protected String sign_type			; // 签名类型		否	String(32)	MD5	签名类型,默认为MD5,支持HMAC-SHA256和MD5.
	protected String device_info		; // 设备号			否	String(32)	013467007045764	自定义参数,可以为终端设备号(门店号或收银设备ID),PC网页或公众号内支付可以传"WEB" 
	protected String detail				; // 商品详情		否	String(6000)商品详细描述,对于使用单品优惠的商户,改字段必须按照规范上传,详见“单品优惠参数说明”
	protected String attach				; // 附加数据		否	String(127)	深圳分店	附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用.
	protected String fee_type			; // 标价币种		否	String(16)	CNY	符合ISO 4217标准的三位字母代码,默认人民币:CNY,详细列表请参见货币类型
	protected String time_start			; // 交易起始时间		否	String(14)	20091225091010	订单生成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010.其他详见时间规则 
	protected String time_expire		; // 交易结束时间		否	String(14)	20091227091010	订单失效时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010.订单失效时间是针对订单号而言的,由于在请求支付的时候有一个必传参数prepay_id只有两小时的有效期,所以在重入时间超过2小时的时候需要重新请求下单接口获取新的prepay_id.其他详见时间规则建议:最短失效时间间隔大于1分钟 
	protected String goods_tag			; // 订单优惠标记		否	String(32)	WXG	订单优惠标记,使用代金券或立减优惠功能时需要的参数,说明详见代金券或立减优惠 
	protected String product_id			; // 商品ID			否	String(32)	12235413214070356458058	trade_type=NATIVE时(即扫码支付),此参数必传.此参数为二维码中包含的商品ID,商户自行定义. 
	protected String limit_pay			; // 指定支付方式		否	String(32)	no_credit	上传此参数no_credit--可限制用户不能使用信用卡支付 
	protected String openid				; // 用户标识		否	String(128)	oUpF8uMuAJO_M2pxb1Q9zNjWeS6o	trade_type=JSAPI时(即公众号支付),此参数必传,此参数为微信用户在商户对应appid下的唯一标识.openid如何获取,可参考【获取openid】.企业号请使用【企业号OAuth2.0接口】获取企业号内成员userid,再调用【企业号userid转openid接口】进行转换
	protected String scene_info			; // 场景信息		否	String(256)	{"store_info" : {"id": "SZTX001","name": "腾大餐厅","area_code": "440305","address": "科技园中一路腾讯大厦" }}该字段用于上报场景信息,目前支持上报实际门店信息.该字段为JSON对象数据,对象格式为{"store_info":{"id": "门店ID","name": "名称","area_code": "编码","address": "地址" }} ,字段详细说明请点击行前的+展开
	protected String profit_sharing		; // 是否支持分帐		否 String(1) 	Y-是,需要分账 N-否,不分账 字母要求大写,不传默认不分账
	public String getAppid() {
		return appid; 
	} 
	public void setAppid(String appid) {
		this.appid = appid; 
	} 
	public String getMch_id() {
		return mch_id; 
	} 
	public void setMch_id(String mch_id) {
		this.mch_id = mch_id; 
	} 
	public String getNotify_url() {
		return notify_url; 
	} 
	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url; 
	} 
	public String getNonce_str() {
		return nonce_str; 
	} 
	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str; 
	} 
	public String getSign() {
		return sign; 
	} 
	public void setSign(String sign) {
		this.sign = sign; 
	} 
	public String getBody() {
		return body; 
	} 
	public void setBody(String body) {
		this.body = body; 
	} 
	public String getOut_trade_no() {
		return out_trade_no; 
	} 
	public void setOut_trade_no(String out_trade_no) {
		this.out_trade_no = out_trade_no; 
	} 
	 
	public int getTotal_fee() {
		return total_fee; 
	} 
	public void setTotal_fee(int total_fee) {
		this.total_fee = total_fee; 
	} 
	public String getSpbill_create_ip() {
		return spbill_create_ip; 
	} 
	public void setSpbill_create_ip(String spbill_create_ip) {
		this.spbill_create_ip = spbill_create_ip; 
	} 
	public String getTrade_type() {
		return trade_type; 
	} 
	public void setTrade_type(WechatPayConfig.TRADE_TYPE trade_type) {
		this.trade_type = trade_type.getCode(); 
	} 
	public String getDevice_info() {
		return device_info; 
	} 
	public void setDevice_info(String device_info) {
		this.device_info = device_info; 
	} 
	public String getSign_type() {
		return sign_type; 
	} 
	public void setSign_type(String sign_type) {
		this.sign_type = sign_type; 
	} 
	public String getDetail() {
		return detail; 
	} 
	public void setDetail(String detail) {
		this.detail = detail; 
	} 
	public String getAttach() {
		return attach; 
	} 
	public void setAttach(String attach) {
		this.attach = attach; 
	} 
	public String getFee_type() {
		return fee_type; 
	} 
	public void setFee_type(String fee_type) {
		this.fee_type = fee_type; 
	} 
	public String getTime_start() {
		return time_start; 
	} 
	public void setTime_start(String time_start) {
		this.time_start = time_start; 
	} 
	public String getTime_expire() {
		return time_expire; 
	} 
	public void setTime_expire(String time_expire) {
		this.time_expire = time_expire; 
	} 
	public String getGoods_tag() {
		return goods_tag; 
	} 
	public void setGoods_tag(String goods_tag) {
		this.goods_tag = goods_tag; 
	} 
	public String getLimit_pay() {
		return limit_pay; 
	} 
	public void setLimit_pay(String limit_pay) {
		this.limit_pay = limit_pay; 
	} 
	public String getScene_info() {
		return scene_info; 
	} 
	public void setScene_info(String scene_info) {
		this.scene_info = scene_info; 
	} 
	public String getProduct_id() {
		return product_id; 
	} 
	public void setProduct_id(String product_id) {
		this.product_id = product_id; 
	} 
	public String getOpenid() {
		return openid; 
	} 
	public void setOpenid(String openid) {
		this.openid = openid; 
	} 
	public void setTrade_type(String trade_type) {
		this.trade_type = trade_type; 
	}

	public String getProfit_sharing() {
		return profit_sharing;
	}

	public void setProfit_sharing(String profit_sharing) {
		this.profit_sharing = profit_sharing;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy