lib/recurly/resources/subscription_add_on.rb in recurly-4.14.0 vs lib/recurly/resources/subscription_add_on.rb in recurly-4.15.0

- old
+ new

@@ -29,11 +29,11 @@ # @!attribute object # @return [String] Object type define_attribute :object, String # @!attribute percentage_tiers - # @return [Array[SubscriptionAddOnPercentageTier]] If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. + # @return [Array[SubscriptionAddOnPercentageTier]] If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier } # @!attribute quantity # @return [Integer] Add-on quantity define_attribute :quantity, Integer @@ -49,10 +49,10 @@ # @!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. 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. + # @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. define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier } # @!attribute unit_amount # @return [Float] Supports up to 2 decimal places. define_attribute :unit_amount, Float