|
@@ -1,7 +1,10 @@
|
|
|
package com.zhongshu.card.client.model.payment;
|
|
package com.zhongshu.card.client.model.payment;
|
|
|
|
|
|
|
|
import cn.hutool.json.JSONObject;
|
|
import cn.hutool.json.JSONObject;
|
|
|
|
|
+import com.github.microservice.models.type.PaymentDeviceType;
|
|
|
import com.zhongshu.card.client.model.base.SuperModel;
|
|
import com.zhongshu.card.client.model.base.SuperModel;
|
|
|
|
|
+import com.zhongshu.card.client.model.school.CardInfoModel;
|
|
|
|
|
+import com.zhongshu.card.client.utils.type.RefundState;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
@@ -17,9 +20,22 @@ import java.math.BigDecimal;
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
public class ExpenseFlowModel extends SuperModel {
|
|
public class ExpenseFlowModel extends SuperModel {
|
|
|
|
|
+ //-----------------------------订单信息 start---------------------
|
|
|
@Schema(description = "用户userId")
|
|
@Schema(description = "用户userId")
|
|
|
private String userId;
|
|
private String userId;
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "用户名称")
|
|
|
|
|
+ private String userName;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "消费机设备ID")
|
|
|
|
|
+ private String deviceId;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "卡片的编号,也是终端刷卡的 卡号")
|
|
|
|
|
+ private String cardNo;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "卡片信息")
|
|
|
|
|
+ private CardInfoModel cardInfo;
|
|
|
|
|
+
|
|
|
@Schema(description = "消费类型,如:餐饮消费")
|
|
@Schema(description = "消费类型,如:餐饮消费")
|
|
|
private String payType;
|
|
private String payType;
|
|
|
|
|
|
|
@@ -35,7 +51,7 @@ public class ExpenseFlowModel extends SuperModel {
|
|
|
@Schema(description = "支付订单号")
|
|
@Schema(description = "支付订单号")
|
|
|
private String paymentNo;
|
|
private String paymentNo;
|
|
|
|
|
|
|
|
- @Schema(description = "消费时间")
|
|
|
|
|
|
|
+ @Schema(description = "消费创建时间")
|
|
|
private String paymentTime;
|
|
private String paymentTime;
|
|
|
|
|
|
|
|
@Schema(description = "支付方式")
|
|
@Schema(description = "支付方式")
|
|
@@ -45,8 +61,41 @@ public class ExpenseFlowModel extends SuperModel {
|
|
|
private BigDecimal payAmount;
|
|
private BigDecimal payAmount;
|
|
|
|
|
|
|
|
@Schema(description = "关联信息")
|
|
@Schema(description = "关联信息")
|
|
|
- private JSONObject goodsInfo;
|
|
|
|
|
|
|
+ private Object param;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "订单是否创建成功")
|
|
|
|
|
+ private Boolean isCreateSuccess = Boolean.TRUE;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "编辑支付设备和方式")
|
|
|
|
|
+ PaymentDeviceType paymentDeviceType;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "消费地点")
|
|
|
|
|
+ private String placeName;
|
|
|
|
|
+
|
|
|
|
|
+ //------------------支付结果 start-------------------------
|
|
|
|
|
|
|
|
@Schema(description = "支付订单状态")
|
|
@Schema(description = "支付订单状态")
|
|
|
private String paymentStatus;
|
|
private String paymentStatus;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "支付是否成功")
|
|
|
|
|
+ private Boolean isPaySuccess;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "支付结果备注")
|
|
|
|
|
+ private String payRemark;
|
|
|
|
|
+
|
|
|
|
|
+ //-----------------------退款 start--------------------------
|
|
|
|
|
+ @Schema(description = "是否退款")
|
|
|
|
|
+ private Boolean isRefund;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "退款状态")
|
|
|
|
|
+ private RefundState refundState;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "申请退款时间")
|
|
|
|
|
+ private Long refundTime;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "申请退款备注")
|
|
|
|
|
+ private String refundRemark;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "退款处理备注")
|
|
|
|
|
+ private String refuseRemark;
|
|
|
}
|
|
}
|