lib/recurly/requests/add_on_update.rb in recurly-3.0.0.beta.3 vs lib/recurly/requests/add_on_update.rb in recurly-3.0.0.beta.4
- old
+ new
@@ -1,5 +1,9 @@
+# This file is automatically created by Recurly's OpenAPI generation process
+# and thus any edits you make by hand will be lost. If you wish to make a
+# change to this file, please create a Github issue explaining the changes you
+# need and we will usher them to the appropriate places.
module Recurly
module Requests
class AddOnUpdate < Request
# @!attribute accounting_code
@@ -9,12 +13,12 @@
# @!attribute code
# @return [String] The unique identifier for the add-on within its plan.
define_attribute :code, String
# @!attribute currencies
- # @return [Array[Hash]] Add-on pricing
- define_attribute :currencies, Array, {:item_type => Hash}
+ # @return [Array[AddOnPricing]] Add-on pricing
+ define_attribute :currencies, Array, { :item_type => :AddOnPricing }
# @!attribute default_quantity
# @return [Integer] Default quantity for the hosted pages.
define_attribute :default_quantity, Integer
@@ -22,10 +26,10 @@
# @return [Boolean] Determines if the quantity field is displayed on the hosted pages for the add-on.
define_attribute :display_quantity, :Boolean
# @!attribute [r] id
# @return [String] Add-on ID
- define_attribute :id, String, {:read_only => true}
+ define_attribute :id, String, { :read_only => true }
# @!attribute name
# @return [String] Describes your add-on and will appear in subscribers' invoices.
define_attribute :name, String