com.wechat.pay.java.service.refund.model.Promotion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wechatpay-java Show documentation
Show all versions of wechatpay-java Show documentation
A Java SDK for WeChat Pay APIv3
// 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;
import java.util.List;
/** Promotion */
public class Promotion {
/** 券ID 说明:券或者立减优惠id */
@SerializedName("promotion_id")
private String promotionId;
/** 优惠券面额 说明:用户享受优惠的金额(优惠券面额=微信出资金额+商家出资金额+其他出资方金额 ),单位为分 */
@SerializedName("amount")
private Long amount;
/** 优惠退款金额 说明:优惠退款金额<=退款金额,退款金额-代金券或立减优惠退款金额为用户支付的现金,说明详见代金券或立减优惠,单位为分 */
@SerializedName("refund_amount")
private Long refundAmount;
/** 商品列表 说明:优惠商品发生退款时返回商品信息 */
@SerializedName("goods_detail")
private List goodsDetail;
/** 优惠范围 说明:枚举值: - GLOBAL- 全场代金券 - SINGLE- 单品优惠 */
@SerializedName("scope")
private Scope scope;
/** 优惠类型 说明:枚举值: - COUPON- 代金券,需要走结算资金的充值型代金券 - DISCOUNT- 优惠券,不走结算资金的免充值型优惠券 */
@SerializedName("type")
private Type type;
public String getPromotionId() {
return promotionId;
}
public void setPromotionId(String promotionId) {
this.promotionId = promotionId;
}
public Long getAmount() {
return amount;
}
public void setAmount(Long amount) {
this.amount = amount;
}
public Long getRefundAmount() {
return refundAmount;
}
public void setRefundAmount(Long refundAmount) {
this.refundAmount = refundAmount;
}
public List getGoodsDetail() {
return goodsDetail;
}
public void setGoodsDetail(List goodsDetail) {
this.goodsDetail = goodsDetail;
}
public Scope getScope() {
return scope;
}
public void setScope(Scope scope) {
this.scope = scope;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Promotion {\n");
sb.append(" promotionId: ").append(toIndentedString(promotionId)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" refundAmount: ").append(toIndentedString(refundAmount)).append("\n");
sb.append(" goodsDetail: ").append(toIndentedString(goodsDetail)).append("\n");
sb.append(" scope: ").append(toIndentedString(scope)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
}