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

com.github.binarywang.wxpay.bean.coupon.WxPayCouponStockQueryRequest Maven / Gradle / Ivy

The newest version!
package com.github.binarywang.wxpay.bean.coupon;

import com.github.binarywang.wxpay.bean.request.BaseWxPayRequest;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.*;
import me.chanjar.weixin.common.annotation.Required;

import java.util.Map;

/**
 * 
 * 查询代金券批次请求对象类
 * Created by Binary Wang on 2017-7-15.
 * 
* * @author Binary Wang */ @Data @EqualsAndHashCode(callSuper = true) @Builder(builderMethodName = "newBuilder") @NoArgsConstructor @AllArgsConstructor @XStreamAlias("xml") public class WxPayCouponStockQueryRequest extends BaseWxPayRequest { /** *
   * 字段名:代金券批次id
   * 变量名:coupon_stock_id
   * 是否必填:是
   * 示例值:1757
   * 类型:String
   * 说明:代金券批次id
   * 
*/ @Required @XStreamAlias("coupon_stock_id") private String couponStockId; /** *
   * 字段名:操作员
   * 变量名:op_user_id
   * 是否必填:否
   * 示例值:10000098
   * 类型:String(32)
   * 说明:操作员帐号, 默认为商户号,可在商户平台配置操作员对应的api权限
   * 
*/ @XStreamAlias("op_user_id") private String opUserId; /** *
   * 字段名:设备号
   * 变量名:device_info
   * 是否必填:否
   * 示例值:
   * 类型:String(32)
   * 说明:微信支付分配的终端设备号
   * 
*/ @XStreamAlias("device_info") private String deviceInfo; /** *
   * 字段名:协议版本
   * 变量名:version
   * 是否必填:否
   * 示例值:1.0
   * 类型:String(32)
   * 说明:默认1.0
   * 
*/ @XStreamAlias("version") private String version; /** *
   * 字段名:协议类型
   * 变量名:type
   * 是否必填:否
   * 示例值:XML
   * 类型:String(32)
   * 说明:XML【目前仅支持默认XML】
   * 
*/ @XStreamAlias("type") private String type; @Override protected void checkConstraints() { //do nothing } @Override protected void storeMap(Map map) { map.put("coupon_stock_id", couponStockId); map.put("op_user_id", opUserId); map.put("device_info", deviceInfo); map.put("version", version); map.put("type", type); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy