lib/recurly/resources/add_on.rb in recurly-4.24.0 vs lib/recurly/resources/add_on.rb in recurly-4.25.0
- old
+ new
@@ -93,19 +93,23 @@
# @!attribute tax_code
# @return [String] Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
define_attribute :tax_code, String
# @!attribute tier_type
- # @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
+ # @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
define_attribute :tier_type, String
# @!attribute tiers
# @return [Array[Tier]] Tiers
define_attribute :tiers, Array, { :item_type => :Tier }
# @!attribute updated_at
# @return [DateTime] Last updated at
define_attribute :updated_at, DateTime
+
+ # @!attribute usage_calculation_type
+ # @return [String] The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.
+ define_attribute :usage_calculation_type, 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