package com.gxwebsoft.common.system.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订阅订单价格试算结果
 */
@Data
@Schema(description = "订阅订单价格试算结果")
public class SubscriptionPriceResult {

  @Schema(description = "套餐ID")
  private Integer packageId;

  @Schema(description = "是否续费，1=续费 0=新购")
  private Integer isRenewal;

  @Schema(description = "是否升级，1=升级 0=非升级")
  private Integer isUpgrade;

  @Schema(description = "支付方式")
  private Integer payType;

  @Schema(description = "原价")
  private BigDecimal originalPrice;

  @Schema(description = "优惠金额")
  private BigDecimal discountAmount;

  @Schema(description = "应付金额")
  private BigDecimal payPrice;

  @Schema(description = "总价(同原价，用于兼容前端字段)")
  private BigDecimal totalPrice;

  @Schema(description = "价格说明")
  private String remark;
}
