package com.czg.order.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 挂账账单付款记录
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 1.0 2025-03-04
 */
@Data
public class CreditPaymentRecordDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 挂账人编码
     */
    private String creditBuyerId;
    /**
     * 还款金额
     */
    private BigDecimal repaymentAmount;
    /**
     * 支付方式
     */
    private String paymentMethod;
    /**
     * 备注
     */
    private String remark;
    /**
     * 还款时间
     */
    private LocalDateTime paymentTime;
    /**
     * 操作时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}