| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrSell.wechatpay.dto; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import jakarta.validation.constraints.NotBlank; | 
|---|
|  |  |  | import jakarta.validation.constraints.NotNull; | 
|---|
|  |  |  | import jakarta.validation.constraints.Positive; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-03-07 21:43 | 
|---|
|  |  |  | * @LastEditTime 2024-03-07 21:43 | 
|---|
|  |  |  | * @Description 待退款对象,用户选择一个虚拟卡退款时,系统遍历出一个退款对象列表,由多个订单共同完成退款 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @Schema(name = "待退款对象") | 
|---|
|  |  |  | public class ToRefund { | 
|---|
|  |  |  | public static final long serialVersionUID = 202403072144001L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 订单号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "订单号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @NotBlank(message = "订单号不能为空") | 
|---|
|  |  |  | private String orderNumber; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 退款金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "退款金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @NotNull(message = "退款金额不能为空") | 
|---|
|  |  |  | @Positive(message = "退款金额必须为大于0的整数") | 
|---|
|  |  |  | private Integer refundAmount; | 
|---|
|  |  |  | } | 
|---|