org.anyline.wechat.entity.WechatRedpack Maven / Gradle / Ivy
/*
* 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;
/**
*
每个红包的平均金额必须在1.00元到200.00元之间
total_num必须介于(包括)3到20之间
*
*/
public class WechatRedpack {
protected String nonce_str ; // 随机字符串 是(auto) 5K8264ILTKCH16CQ2502SI8ZNMTM67VS String(32) 随机字符串,不长于32位
protected String sign ; // 签名 是(auto) C380BEC2BFD727A4B6845133519F3AD6 String(32) 详见签名生成算法
protected String mch_billno ; // 商户订单号 是(auto) 10000098201411111234567890 String(28) 商户订单号(每个订单号必须唯一.取值范围:0~9,a~z,A~Z)接口根据商户订单号支持重入,如出现超时可再调用.
protected String mch_id ; // 商户号 是(config) 10000098 String(32) 微信支付分配的商户号
protected String wxappid ; // 公众账号appid 是(config) wx8888888888888888 String(32) 微信分配的公众账号ID(企业号corpid即为此appId).在微信开放平台(open.weixin.qq.com)申请的移动应用appid无法使用该接口.
protected String send_name ; // 商户名称 是 两只蚂蚁 String(32) 红包发送者名称
protected String re_openid ; // 用户openid 是 oxTWIuGaIt6gTKsQRLau2M0yL16E String(32) 接受红包的用户openid openid为用户在wxappid下的唯一标识(获取openid参见微信公众平台开发者文档:网页授权获取用户基本信息)
protected int total_amount ; // 付款金额 是 1000 int 付款金额,单位分
protected int total_num = 1 ; // 红包发放总人数 是 1 int 红包发放总人数 total_num=1
protected String wishing ; // 红包祝福语 是 感谢您参加猜灯谜活动,祝您元宵节快乐! String(128) 红包祝福语
protected String client_ip ; // Ip地址 否 192.168.0.1 String(15) 调用接口的机器Ip地址
protected String act_name ; // 活动名称 是 猜灯谜抢红包活动 String(32) 活动名称
protected String remark ; // 备注 否 猜越多得越多,快来抢! String(256) 备注信息
protected String scene_id ; // 场景id 否 PRODUCT_8 String(32) 发放红包使用场景,红包金额大于200或者小于1元时必传 PRODUCT_1:商品促销 PRODUCT_2:抽奖 PRODUCT_3:虚拟物品兑奖 PRODUCT_4:企业内部福利PRODUCT_5:渠道分润 PRODUCT_6:保险回馈 PRODUCT_7:彩票派奖 PRODUCT_8:税务刮奖
protected String risk_info ; // 活动信息 否 posttime%3d123123412%26clientversion%3d234134%26mobile%3d122344545%26deviceid%3dIOS String(128) posttime:用户操作的时间戳 mobile:业务系统账号的手机号,国家代码-手机号.不需要+号 deviceid :mac 地址或者设备唯一标识 clientversion :用户操作的客户端版本 把值为非空的信息用key=value进行拼接,再进行urlencode urlencode(posttime=xx& mobile =xx&deviceid=xx)
protected String consume_mch_id ; // 资金授权商户号 否 1222000096 String(32) 资金授权商户号 服务商替特约商户发放时使用
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 getMch_billno() {
return mch_billno;
}
public void setMch_billno(String mch_billno) {
this.mch_billno = mch_billno;
}
public String getMch_id() {
return mch_id;
}
public void setMch_id(String mch_id) {
this.mch_id = mch_id;
}
public String getWxappid() {
return wxappid;
}
public void setWxappid(String wxappid) {
this.wxappid = wxappid;
}
public String getSend_name() {
return send_name;
}
public void setSend_name(String send_name) {
this.send_name = send_name;
}
public String getRe_openid() {
return re_openid;
}
public void setRe_openid(String re_openid) {
this.re_openid = re_openid;
}
public String getWishing() {
return wishing;
}
public int getTotal_amount() {
return total_amount;
}
public void setTotal_amount(int total_amount) {
this.total_amount = total_amount;
}
public int getTotal_num() {
return total_num;
}
public void setTotal_num(int total_num) {
this.total_num = total_num;
}
public void setWishing(String wishing) {
this.wishing = wishing;
}
public String getClient_ip() {
return client_ip;
}
public void setClient_ip(String client_ip) {
this.client_ip = client_ip;
}
public String getAct_name() {
return act_name;
}
public void setAct_name(String act_name) {
this.act_name = act_name;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getScene_id() {
return scene_id;
}
public void setScene_id(String scene_id) {
this.scene_id = scene_id;
}
public String getRisk_info() {
return risk_info;
}
public void setRisk_info(String risk_info) {
this.risk_info = risk_info;
}
public String getConsume_mch_id() {
return consume_mch_id;
}
public void setConsume_mch_id(String consume_mch_id) {
this.consume_mch_id = consume_mch_id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy