| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- package com.github.microservice.models.hxz;
- import com.fasterxml.jackson.annotation.JsonProperty;
- import com.github.microservice.models.type.OrderFromType;
- import com.github.microservice.models.type.PaymentType;
- import io.swagger.v3.oas.annotations.media.Schema;
- import lombok.AllArgsConstructor;
- import lombok.Data;
- import lombok.NoArgsConstructor;
- import java.io.Serializable;
- @Data
- @AllArgsConstructor
- @NoArgsConstructor
- public class ConsumTransactionsModel extends HxzSuperModel implements Serializable {
- @JsonProperty("Order")
- @Schema(description = "消费序号(年月日时分秒+2个字节序号(0~65535)),用于识别上传数据不重复")
- private String Order;
- @Schema(description = "10进制卡序列号(实体卡号或虚拟卡号)")
- @JsonProperty("CardNo")
- private String CardNo;
- @Schema(description = "卡模式(0:实体卡 1:电子卡)")
- @JsonProperty("CardMode")
- private Integer CardMode;
- @Schema(description = "交易模式(0:刷卡扣费 1:现金充值2:余额查询 3:钱包转账 4:现金退款)")
- @JsonProperty("Mode")
- private Integer Mode;
- @Schema(description = "扣费类型(0:手动 1:菜单 2:定值 3:取餐 4:计时 5:计次)")
- @JsonProperty("PayType")
- private Integer PayType;
- @Schema(description = "消费金额(Mode为2时,此字段传入值可能为0)")
- @JsonProperty("Amount")
- private String Amount;
- @Schema(description = "消费菜品列表")
- @JsonProperty("Menus")
- private Menus[] Menus;
- @Schema(description = "支付方式")
- private PaymentType paymentType = PaymentType.UserWallet;
- @Schema(description = "支付来源:刷卡 二维码")
- private OrderFromType orderFromType;
- @Data
- @AllArgsConstructor
- @NoArgsConstructor
- public static class Menus {
- @Schema(description = "菜品编号(与菜品查询接口菜品编号一致)")
- @JsonProperty("MenuID")
- private String MenuID;
- @Schema(description = "菜品数量(支持小数)")
- @JsonProperty("Count")
- private String Count;
- }
- }
|