lib/recurly/resources/add_on_mini.rb in recurly-3.9.0 vs lib/recurly/resources/add_on_mini.rb in recurly-3.10.0
- old
+ new
@@ -8,10 +8,14 @@
# @!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
@@ -24,15 +28,27 @@
# @!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