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

com.wechat.pay.java.service.weixinpayscanandride.model.CreateTransactionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.14
Show newest version
// Copyright 2021 Tencent Inc. All rights reserved.
//
// 公共出行平台代扣服务对外API
//
// 公共出行平台代扣服务对外API
//
// API version: 1.0.0

// Code generated by WechatPay APIv3 Generator based on [OpenAPI
// Generator](https://openapi-generator.tech); DO NOT EDIT.

package com.wechat.pay.java.service.weixinpayscanandride.model;

import static com.wechat.pay.java.core.util.StringUtil.toIndentedString;

import com.google.gson.annotations.SerializedName;

/** CreateTransactionRequest */
public class CreateTransactionRequest {
  /** 公众账号ID 说明:商户在微信申请公众号或移动应用成功后分配的账号ID,登录平台为mp.weixin.qq.com或open.weixin.qq.com */
  @SerializedName("appid")
  private String appid;
  /** 子公众账号ID 说明:子公众账号ID,服务商模式下选传,用于扣费信息的商户信息展示, */
  @SerializedName("sub_appid")
  private String subAppid;
  /** 子商户号 说明:微信支付分配的子商户号,服务商模式下必传 */
  @SerializedName("sub_mchid")
  private String subMchid;
  /** 服务描述 说明:商户自定义字段,用于交易账单中对扣费服务的描述。该字段长度限制为字节长度限制 */
  @SerializedName("description")
  private String description;
  /** 附加数据 说明:附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用,该字段长度限制为字节长度限制 */
  @SerializedName("attach")
  private String attach;
  /** 商户订单号 说明:商户系统内部订单号,只能是数字、大小写字母,且在同一个商户号下唯一。该字段长度限制为字节长度限制 */
  @SerializedName("out_trade_no")
  private String outTradeNo;
  /** 交易场景 说明:交易场景值,现在支持公交和地铁的场景值 */
  @SerializedName("trade_scene")
  private TradeScene tradeScene;
  /** 订单优惠标记 说明:代金券或立减优惠功能的参数,说明详见代金券或立减优惠 */
  @SerializedName("goods_tag")
  private String goodsTag;
  /** 代扣签约ID 说明:签约成功后,微信返回代扣签约ID 查用户是否能继续使用乘车卡时必传,此时,才会返回签约信息,如contract_state */
  @SerializedName("contract_id")
  private String contractId;
  /** 通知地址 说明:接受扣款结果异步回调通知的URL,注意回调URL只接受HTTPS */
  @SerializedName("notify_url")
  private String notifyUrl;
  /** 订单金额信息 说明:订单金额信息 */
  @SerializedName("amount")
  private OrderAmount amount;
  /** 公交场景信息 说明:请求受理扣费 tradescene为BUS时,传入该参数 */
  @SerializedName("bus_info")
  private BusSceneInfo busInfo;
  /** 地铁场景信息 说明:请求受理扣费 tradescene为METRO时,传入该参数 */
  @SerializedName("metro_info")
  private MetroSceneInfo metroInfo;

  public String getAppid() {
    return appid;
  }

  public void setAppid(String appid) {
    this.appid = appid;
  }

  public String getSubAppid() {
    return subAppid;
  }

  public void setSubAppid(String subAppid) {
    this.subAppid = subAppid;
  }

  public String getSubMchid() {
    return subMchid;
  }

  public void setSubMchid(String subMchid) {
    this.subMchid = subMchid;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getAttach() {
    return attach;
  }

  public void setAttach(String attach) {
    this.attach = attach;
  }

  public String getOutTradeNo() {
    return outTradeNo;
  }

  public void setOutTradeNo(String outTradeNo) {
    this.outTradeNo = outTradeNo;
  }

  public TradeScene getTradeScene() {
    return tradeScene;
  }

  public void setTradeScene(TradeScene tradeScene) {
    this.tradeScene = tradeScene;
  }

  public String getGoodsTag() {
    return goodsTag;
  }

  public void setGoodsTag(String goodsTag) {
    this.goodsTag = goodsTag;
  }

  public String getContractId() {
    return contractId;
  }

  public void setContractId(String contractId) {
    this.contractId = contractId;
  }

  public String getNotifyUrl() {
    return notifyUrl;
  }

  public void setNotifyUrl(String notifyUrl) {
    this.notifyUrl = notifyUrl;
  }

  public OrderAmount getAmount() {
    return amount;
  }

  public void setAmount(OrderAmount amount) {
    this.amount = amount;
  }

  public BusSceneInfo getBusInfo() {
    return busInfo;
  }

  public void setBusInfo(BusSceneInfo busInfo) {
    this.busInfo = busInfo;
  }

  public MetroSceneInfo getMetroInfo() {
    return metroInfo;
  }

  public void setMetroInfo(MetroSceneInfo metroInfo) {
    this.metroInfo = metroInfo;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateTransactionRequest {\n");
    sb.append("    appid: ").append(toIndentedString(appid)).append("\n");
    sb.append("    subAppid: ").append(toIndentedString(subAppid)).append("\n");
    sb.append("    subMchid: ").append(toIndentedString(subMchid)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    attach: ").append(toIndentedString(attach)).append("\n");
    sb.append("    outTradeNo: ").append(toIndentedString(outTradeNo)).append("\n");
    sb.append("    tradeScene: ").append(toIndentedString(tradeScene)).append("\n");
    sb.append("    goodsTag: ").append(toIndentedString(goodsTag)).append("\n");
    sb.append("    contractId: ").append(toIndentedString(contractId)).append("\n");
    sb.append("    notifyUrl: ").append(toIndentedString(notifyUrl)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    busInfo: ").append(toIndentedString(busInfo)).append("\n");
    sb.append("    metroInfo: ").append(toIndentedString(metroInfo)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy