lib/recurly/requests/add_on_update.rb in recurly-3.28.0 vs lib/recurly/requests/add_on_update.rb in recurly-4.0.0
- old
+ new
@@ -21,11 +21,11 @@
# @!attribute code
# @return [String] The unique identifier for the add-on within its plan. If an `Item` is associated to the `AddOn` then `code` must be absent.
define_attribute :code, String
# @!attribute currencies
- # @return [Array[AddOnPricing]] If the add-on's `tier_type` is `tiered`, `volume` or `stairstep`, then `currencies` must be absent. Must also be absent if `add_on_type` is `usage` and `usage_type` is `percentage`.
+ # @return [Array[AddOnPricing]] If the add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then currencies must be absent. Must also be absent if `add_on_type` is `usage` and `usage_type` is `percentage`.
define_attribute :currencies, Array, { :item_type => :AddOnPricing }
# @!attribute default_quantity
# @return [Integer] Default quantity for the hosted pages.
define_attribute :default_quantity, Integer
@@ -53,10 +53,10 @@
# @!attribute optional
# @return [Boolean] Whether the add-on is optional for the customer to include in their purchase on the hosted payment page. If false, the add-on will be included when a subscription is created through the Recurly UI. However, the add-on will not be included when a subscription is created through the API.
define_attribute :optional, :Boolean
# @!attribute revenue_schedule_type
- # @return [String] When this add-on is invoiced, the line item will use this revenue schedule. If an `Item` is associated to the `AddOn` then `revenue_schedule_type` must be absent in the request as the value will be set from the item.
+ # @return [String] When this add-on is invoiced, the line item will use this revenue schedule. If `item_code`/`item_id` is part of the request then `revenue_schedule_type` must be absent in the request as the value will be set from the item.
define_attribute :revenue_schedule_type, String
# @!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 an `Item` is associated to the `AddOn` then `tax code` must be absent.
define_attribute :tax_code, String