package com.ruoyi.payment.api.model; import lombok.*; import java.util.List; /** * @author xiaochen * @ClassName WxPaymentRefundModel * @Description */ @Builder @AllArgsConstructor @NoArgsConstructor @Getter @Setter @ToString public class WxPaymentRefundModel { /** * 子商户,二级商户号 */ private String sub_mchid; /** * 电商平台APPID */ private String sp_appid; private String transaction_id; private String out_trade_no; /** * 商户退款单号 */ private String out_refund_no; /** * 退款原因 */ private String reason; private String notify_url; /** * 资金账户,否 */ private String funds_account; /** * 退款金额信息 */ private RefundAmount amount; /** * 退款商品 */ private List goods_detail; @Builder @AllArgsConstructor @NoArgsConstructor @Getter @Setter @ToString public static class RefundAmount { /** * 原订单金额 */ private int total; @Builder.Default private String currency = "CNY"; /** * 退款金额 */ private int refund; } @Builder @AllArgsConstructor @NoArgsConstructor @Getter @Setter @ToString public static class RefundGoodsDetail { private String merchant_goods_id; private String wechatpay_goods_id; private String goods_name; private int unit_price; private int refund_amount; private int refund_quantity; } }