package com.red.circle.order.inner.model.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 开通支付国家.
 * </p>
 *
 * @author pengliang
 * @since 2021-11-29
 */
@Data
@Accessors(chain = true)
public class PayCountryDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 国家id
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long countryId;

  /**
   * 国家货币
   */
  private String currency;

  /**
   * 权重.
   */
  private Integer sort;

  /**
   * 美元换算概率
   */
  private BigDecimal usdExchangeRate;

  /**
   * 0.下架 1.上架
   */
  private Boolean shelf;

  /**
   * 国家信息.
   */
  private CountryCodeDTO country;
}
