lib/recurly/requests/add_on_create.rb in recurly-3.6.0 vs lib/recurly/requests/add_on_create.rb in recurly-3.7.0

- old
+ new

@@ -53,14 +53,14 @@ # @!attribute tax_code # @return [String] Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part of the request then `tax_code` must be absent. define_attribute :tax_code, String # @!attribute tier_type - # @return [String] The type of tiering used by the Add-on. + # @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). define_attribute :tier_type, String # @!attribute tiers - # @return [Array[Tier]] At least one tier is required if `tier_type` is not 'flat'. + # @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies`. There must be one tier with an `ending_quantity` of 999999999 which is the default if not provided. define_attribute :tiers, Array, { :item_type => :Tier } end end end