lib/recurly/resources/subscription_add_on.rb in recurly-4.24.0 vs lib/recurly/resources/subscription_add_on.rb in recurly-4.25.0
- old
+ new
@@ -45,11 +45,11 @@
# @!attribute subscription_id
# @return [String] Subscription ID
define_attribute :subscription_id, 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[SubscriptionAddOnTier]] If tiers are provided in the request, all existing tiers on the Subscription Add-on will be removed and replaced by the tiers in the request. If add_on.tier_type is tiered or volume and add_on.usage_type is percentage use percentage_tiers instead. There must be one tier without an `ending_quantity` value which represents the final tier.
define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
@@ -63,9 +63,13 @@
define_attribute :unit_amount_decimal, String
# @!attribute updated_at
# @return [DateTime] 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. Required if add_on_type is usage and usage_type is percentage.
define_attribute :usage_percentage, Float