package com.izouma.nineth.dto;

import com.izouma.nineth.enums.PayStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PayQuery {
    private boolean       exist;
    private String        msg;
    private PayStatus     status;
    private String        orderId;
    private BigDecimal    amount;
    private LocalDateTime createTime;
    private LocalDateTime payTime;
    private String        transactionId;
    private String        channel;

    public PayQuery(String channel) {
        this.channel = channel;
    }
}
