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

com.wechat.pay.java.service.refund.model.GoodsDetail Maven / Gradle / Ivy

There is a newer version: 0.2.15
Show newest version
// Copyright 2021 Tencent Inc. All rights reserved.
//
// 境内普通商户退款API
//
// 境内普通商户退款功能涉及的API文档
//
// API version: 1.2.0

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

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

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

import com.google.gson.annotations.SerializedName;

/** GoodsDetail */
public class GoodsDetail {
  /** 商户侧商品编码 说明:由半角的大小写字母、数字、中划线、下划线中的一种或几种组成 */
  @SerializedName("merchant_goods_id")
  private String merchantGoodsId;

  /** 微信侧商品编码 说明:微信支付定义的统一商品编号(没有可不传) */
  @SerializedName("wechatpay_goods_id")
  private String wechatpayGoodsId;

  /** 商品名称 说明:商品的实际名称 */
  @SerializedName("goods_name")
  private String goodsName;

  /** 商品单价 说明:商品单价金额,单位为分 */
  @SerializedName("unit_price")
  private Long unitPrice;

  /** 商品退款金额 说明:商品退款金额,单位为分 */
  @SerializedName("refund_amount")
  private Long refundAmount;

  /** 商品退货数量 说明:对应商品的退货数量 */
  @SerializedName("refund_quantity")
  private Integer refundQuantity;

  public String getMerchantGoodsId() {
    return merchantGoodsId;
  }

  public void setMerchantGoodsId(String merchantGoodsId) {
    this.merchantGoodsId = merchantGoodsId;
  }

  public String getWechatpayGoodsId() {
    return wechatpayGoodsId;
  }

  public void setWechatpayGoodsId(String wechatpayGoodsId) {
    this.wechatpayGoodsId = wechatpayGoodsId;
  }

  public String getGoodsName() {
    return goodsName;
  }

  public void setGoodsName(String goodsName) {
    this.goodsName = goodsName;
  }

  public Long getUnitPrice() {
    return unitPrice;
  }

  public void setUnitPrice(Long unitPrice) {
    this.unitPrice = unitPrice;
  }

  public Long getRefundAmount() {
    return refundAmount;
  }

  public void setRefundAmount(Long refundAmount) {
    this.refundAmount = refundAmount;
  }

  public Integer getRefundQuantity() {
    return refundQuantity;
  }

  public void setRefundQuantity(Integer refundQuantity) {
    this.refundQuantity = refundQuantity;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GoodsDetail {\n");
    sb.append("    merchantGoodsId: ").append(toIndentedString(merchantGoodsId)).append("\n");
    sb.append("    wechatpayGoodsId: ").append(toIndentedString(wechatpayGoodsId)).append("\n");
    sb.append("    goodsName: ").append(toIndentedString(goodsName)).append("\n");
    sb.append("    unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
    sb.append("    refundAmount: ").append(toIndentedString(refundAmount)).append("\n");
    sb.append("    refundQuantity: ").append(toIndentedString(refundQuantity)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy