Class: ChargeBee::Subscription::Discount

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/subscription.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def amount
  @amount
end

#applied_countObject

Returns the value of attribute applied_count.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def applied_count
  @applied_count
end

#apply_onObject

Returns the value of attribute apply_on.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def apply_on
  @apply_on
end

#apply_tillObject

Returns the value of attribute apply_till.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def apply_till
  @apply_till
end

#coupon_idObject

Returns the value of attribute coupon_id.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def coupon_id
  @coupon_id
end

#created_atObject

Returns the value of attribute created_at.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def created_at
  @created_at
end

#currency_codeObject

Returns the value of attribute currency_code.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def currency_code
  @currency_code
end

#duration_typeObject

Returns the value of attribute duration_type.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def duration_type
  @duration_type
end

#idObject

Returns the value of attribute id.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def id
  @id
end

#included_in_mrrObject

Returns the value of attribute included_in_mrr.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def included_in_mrr
  @included_in_mrr
end

#indexObject

Returns the value of attribute index.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def index
  @index
end

#invoice_nameObject

Returns the value of attribute invoice_name.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def invoice_name
  @invoice_name
end

#item_price_idObject

Returns the value of attribute item_price_id.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def item_price_id
  @item_price_id
end

#percentageObject

Returns the value of attribute percentage.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def percentage
  @percentage
end

#periodObject

Returns the value of attribute period.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def period
  @period
end

#period_unitObject

Returns the value of attribute period_unit.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def period_unit
  @period_unit
end

#typeObject

Returns the value of attribute type.



49
50
51
# File 'lib/chargebee/models/subscription.rb', line 49

def type
  @type
end