package com.zhongshu.card.server.core.model.payment;

import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.server.core.domain.school.CardInfo;
import com.zhongshu.card.server.core.domain.devices.DeviceInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 消费数据
 *
 * @author TRX
 * @date 2024/6/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExpendParam {

    @Schema(description = "卡片信息")
    private CardInfo cardInfo;

    @Schema(description = "设备ID")
    private String deviceId;

    @Schema(description = "硬件设备")
    private DeviceInfo deviceInfo;

    @Schema(description = "消费金额")
    private BigDecimal amount = BigDecimal.ZERO;

    @Schema(description = "消费序号")
    private String order;

    @Schema(description = "物联网传来的参数")
    private Object iotParam;

    @Schema(description = "支付方式")
    PaymentType paymentType;
}
