package com.zhongshu.card.server.core.domain.paySetting;

import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.client.type.DataState;
import com.zhongshu.card.server.core.domain.base.SuperMain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author TRX
 * @date 2024/11/12
 */
@Data
@Builder
@Document
@AllArgsConstructor
@NoArgsConstructor
public class PayOrderSetting extends SuperMain {

    @Schema(description = "支付渠道")
    private PaymentType paymentType;

    @Schema(description = "所属用户userId")
    @Indexed
    private String userId;

    @Schema(description = "是否启用")
    private DataState state = DataState.Enable;
}
