# This file is automatically created by Recurly's OpenAPI generation process # and thus any edits you make by hand will be lost. If you wish to make a # change to this file, please create a Github issue explaining the changes you # need and we will usher them to the appropriate places. module Recurly module Resources class AddOnMini < Resource # @!attribute accounting_code # @return [String] Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code. define_attribute :accounting_code, String # @!attribute add_on_type # @return [String] Whether the add-on type is fixed, or usage-based. define_attribute :add_on_type, String # @!attribute code # @return [String] The unique identifier for the add-on within its plan. define_attribute :code, String # @!attribute external_sku # @return [String] Optional, stock keeping unit to link the item to other inventory systems. define_attribute :external_sku, String # @!attribute id # @return [String] Add-on ID define_attribute :id, String # @!attribute item_id # @return [String] Item ID define_attribute :item_id, String # @!attribute measured_unit_id # @return [String] System-generated unique identifier for an measured unit associated with the add-on. define_attribute :measured_unit_id, String # @!attribute name # @return [String] Describes your add-on and will appear in subscribers' invoices. define_attribute :name, String # @!attribute object # @return [String] Object type define_attribute :object, String # @!attribute usage_percentage # @return [Float] 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. define_attribute :usage_percentage, Float # @!attribute usage_type # @return [String] Type of usage, returns usage type if `add_on_type` is `usage`. define_attribute :usage_type, String end end end