Class: Recurly::Resources::AddOnMini
- Inherits:
-
Recurly::Resource
- Object
- Recurly::Resource
- Recurly::Resources::AddOnMini
- Defined in:
- lib/recurly/resources/add_on_mini.rb
Instance Attribute Summary collapse
-
#accounting_code ⇒ String
Accounting code for invoice line items for this add-on.
-
#add_on_type ⇒ String
Whether the add-on type is fixed, or usage-based.
-
#code ⇒ String
The unique identifier for the add-on within its plan.
-
#external_sku ⇒ String
Optional, stock keeping unit to link the item to other inventory systems.
-
#id ⇒ String
Add-on ID.
-
#item_id ⇒ String
Item ID.
-
#measured_unit_id ⇒ String
System-generated unique identifier for an measured unit associated with the add-on.
-
#name ⇒ String
Describes your add-on and will appear in subscribers' invoices.
-
#object ⇒ String
Object type.
-
#usage_percentage ⇒ Float
The percentage taken of the monetary amount of usage tracked.
-
#usage_type ⇒ String
Type of usage, returns usage type if `add_on_type` is `usage`.
Attributes inherited from Recurly::Resource
Method Summary
Methods inherited from Recurly::Resource
#==, #get_response, #inspect, #requires_client?, #to_json, #to_s
Methods included from Schema::SchemaFactory
Methods included from Schema::ResourceCaster
Methods included from Schema::SchemaValidator
#get_did_you_mean, #validate!, #validate_attribute!
Instance Attribute Details
#accounting_code ⇒ String
Returns Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code.
11 |
# File 'lib/recurly/resources/add_on_mini.rb', line 11 define_attribute :accounting_code, String |
#add_on_type ⇒ String
Returns Whether the add-on type is fixed, or usage-based.
15 |
# File 'lib/recurly/resources/add_on_mini.rb', line 15 define_attribute :add_on_type, String |
#code ⇒ String
Returns The unique identifier for the add-on within its plan.
19 |
# File 'lib/recurly/resources/add_on_mini.rb', line 19 define_attribute :code, String |
#external_sku ⇒ String
Returns Optional, stock keeping unit to link the item to other inventory systems.
23 |
# File 'lib/recurly/resources/add_on_mini.rb', line 23 define_attribute :external_sku, String |
#id ⇒ String
Returns Add-on ID.
27 |
# File 'lib/recurly/resources/add_on_mini.rb', line 27 define_attribute :id, String |
#item_id ⇒ String
Returns Item ID.
31 |
# File 'lib/recurly/resources/add_on_mini.rb', line 31 define_attribute :item_id, String |
#measured_unit_id ⇒ String
Returns System-generated unique identifier for an measured unit associated with the add-on.
35 |
# File 'lib/recurly/resources/add_on_mini.rb', line 35 define_attribute :measured_unit_id, String |
#name ⇒ String
Returns Describes your add-on and will appear in subscribers' invoices.
39 |
# File 'lib/recurly/resources/add_on_mini.rb', line 39 define_attribute :name, String |
#object ⇒ String
Returns Object type.
43 |
# File 'lib/recurly/resources/add_on_mini.rb', line 43 define_attribute :object, String |
#usage_percentage ⇒ Float
Returns The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0.
47 |
# File 'lib/recurly/resources/add_on_mini.rb', line 47 define_attribute :usage_percentage, Float |
#usage_type ⇒ String
Returns Type of usage, returns usage type if `add_on_type` is `usage`.
51 |
# File 'lib/recurly/resources/add_on_mini.rb', line 51 define_attribute :usage_type, String |