class OpenApiSDK::Models::Components::LegacyRecurringProductPriceFree

Deprecated: The recurring interval should be set on the product itself.
A free recurring price for a product, i.e. a subscription.

def ==(other)

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @created_at == other.created_at
  return false unless @id == other.id
  return false unless @source == other.source
  return false unless @price_currency == other.price_currency
  return false unless @is_archived == other.is_archived
  return false unless @product_id == other.product_id
  return false unless @recurring_interval == other.recurring_interval
  return false unless @modified_at == other.modified_at
  return false unless @amount_type == other.amount_type
  return false unless @type == other.type
  return false unless @legacy == other.legacy
  true
end

def initialize(

def initialize(
  created_at:,
  id:,
  source:,
  price_currency:,
  is_archived:,
  product_id:,
  recurring_interval:,
  modified_at: nil,
  amount_type: "free",
  type: "recurring",
  legacy: true
)
  @created_at = created_at
  @id = id
  @source = source
  @price_currency = price_currency
  @is_archived = is_archived
  @product_id = product_id
  @recurring_interval = recurring_interval
  @modified_at = modified_at
  unless amount_type == "free"
    raise ArgumentError, "Invalid value for amount_type"
  end
  @amount_type = "free"
  unless type == "recurring"
    raise ArgumentError, "Invalid value for type"
  end
  @type = "recurring"
  unless legacy == true
    raise ArgumentError, "Invalid value for legacy"
  end
  @legacy = true
end