package com.zhongshu.card.client.model.payment;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductModel {

    /**
     * \n" +
     * "0-银联卡（1）\n" +
     * "1-全民付（86）\n" +
     * "2-POS通（68）\n" +
     * "4-营销联盟（40）\n" +
     * "8-公共支付-通用（9）\n" +
     * "16-代付业务（74）\n" +
     * "21-统一会员卡（37）\n" +
     * "in1-APP支付（in1）\n" +
     * "in2-H5支付（in2）\n" +
     * "in3-公众号支付（in3）\n" +
     * "in4-小程序支付（in4）\n" +
     * "\n
     */
    @NotEmpty
    @Pattern(regexp = "^(0|1|2|4|8|16|21|in1|in2|in3|in4)$", message = "性别类型错误")
    @Schema(description = "开通业务id,常用")
    private String product_id;

    @NotEmpty
    @Pattern(regexp = "^[01]$", message = "性别类型错误")
    @Schema(description = "是否开通收支双线 , 1-是 0-否（不传默认为否）【该字段为平台方为用户全额补贴手续费标记，上送该标记表示平台方全额补贴用户交易过程手续费】")
    private String receipt2Line;

}
