From d2ff40f56296b1b8644d34f38eadead4b93bd12a Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 24 Nov 2024 11:38:15 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20#3414=20=E3=80=90=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E5=8F=B7=E3=80=91=E5=B0=8F=E5=BA=97API=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=B1=BB=E6=96=B0=E5=A2=9E=E5=87=A0=E4=B8=AA=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channel/bean/order/OrderPriceInfo.java | 72 +++++++++++++++---- 1 file changed, 58 insertions(+), 14 deletions(-) diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java index 64e6690a6..b1688cde5 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java @@ -1,10 +1,11 @@ package me.chanjar.weixin.channel.bean.order; import com.fasterxml.jackson.annotation.JsonProperty; -import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; +import java.io.Serializable; + /** * 商店订单价格信息 * @@ -13,54 +14,97 @@ import lombok.NoArgsConstructor; @Data @NoArgsConstructor public class OrderPriceInfo implements Serializable { - private static final long serialVersionUID = 5216506688949493432L; - /** 商品总价,单位为分 */ + + /** + * 商品总价,单位为分 + */ @JsonProperty("product_price") private Integer productPrice; - /** 订单金额,单位为分 */ + /** + * 订单金额,单位为分 + */ @JsonProperty("order_price") private Integer orderPrice; - /** 运费,单位为分 */ + /** + * 运费,单位为分 + */ @JsonProperty("freight") private Integer freight; - /** 优惠金额,单位为分 */ + /** + * 优惠金额,单位为分 + */ @JsonProperty("discounted_price") private Integer discountedPrice; - /** 是否有优惠 */ + /** + * 是否有优惠 + */ @JsonProperty("is_discounted") private Boolean isDiscounted; - /** 订单原始价格,单位为分 */ + /** + * 订单原始价格,单位为分 + */ @JsonProperty("original_order_price") private Integer originalOrderPrice; - /** 商品预估价格,单位为分 */ + /** + * 商品预估价格,单位为分 + */ @JsonProperty("estimate_product_price") private Integer estimateProductPrice; - /** 改价后降低金额,单位为分 */ + /** + * 改价后降低金额,单位为分 + */ @JsonProperty("change_down_price") private Integer changeDownPrice; - /** 改价后运费,单位为分 */ + /** + * 改价后运费,单位为分 + */ @JsonProperty("change_freight") private Integer changeFreight; - /** 是否修改运费 */ + /** + * 是否修改运费 + */ @JsonProperty("is_change_freight") private Boolean changeFreighted; - /** 是否使用了会员积分抵扣 */ + /** + * 是否使用了会员积分抵扣 + */ @JsonProperty("use_deduction") private Boolean useDeduction; - /** 会员积分抵扣金额,单位为分 */ + /** + * 会员积分抵扣金额,单位为分 + */ @JsonProperty("deduction_price") private Integer deductionPrice; + /** + * 商家实收金额,单位为分 + * merchant_receieve_price=original_order_price-discounted_price-deduction_price-change_down_price + */ + @JsonProperty("merchant_receieve_price") + private Integer merchant_receive_price; + + /** + * 商家优惠金额,单位为分,含义同discounted_price,必填 + */ + @JsonProperty("merchant_discounted_price") + private Integer merchant_discounted_price; + + /** + * 达人优惠金额,单位为分 + */ + @JsonProperty("finder_discounted_price") + private Integer finder_discounted_price; + }