class OpenApiSDK::Models::Components::CheckoutDiscountPercentageRepeatDuration
for a certain number of months.
Schema for a percentage discount that is applied on every invoice
def ==(other)
def ==(other) return false unless other.is_a?(self.class) return false unless @duration == other.duration return false unless @duration_in_months == other.duration_in_months return false unless @type == other.type return false unless @basis_points == other.basis_points return false unless @id == other.id return false unless @name == other.name return false unless @code == other.code true end
def initialize(duration:, duration_in_months:, type:, basis_points:, id:, name:, code: nil)
def initialize(duration:, duration_in_months:, type:, basis_points:, id:, name:, code: nil) @duration = duration @duration_in_months = duration_in_months @type = type @basis_points = basis_points @id = id @name = name @code = code end