lib/recurly/requests/plan_create.rb in recurly-3.0.0.beta.3 vs lib/recurly/requests/plan_create.rb in recurly-3.0.0.beta.4

- old
+ new

@@ -1,44 +1,48 @@ +# 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 PlanCreate < Request # @!attribute accounting_code # @return [String] Accounting code for invoice line items for the plan. If no value is provided, it defaults to plan's code. define_attribute :accounting_code, String # @!attribute add_ons # @return [Array[AddOnCreate]] Add Ons - define_attribute :add_ons, Array, {:item_type => :AddOnCreate} + define_attribute :add_ons, Array, { :item_type => :AddOnCreate } # @!attribute auto_renew # @return [Boolean] Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself. define_attribute :auto_renew, :Boolean # @!attribute code # @return [String] Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports. define_attribute :code, String # @!attribute currencies - # @return [Array[Hash]] Pricing - define_attribute :currencies, Array, {:item_type => Hash} + # @return [Array[PlanPricing]] Pricing + define_attribute :currencies, Array, { :item_type => :PlanPricing } # @!attribute description # @return [String] Optional description, not displayed. define_attribute :description, String # @!attribute hosted_pages - # @return [Hash] Hosted pages settings - define_attribute :hosted_pages, Hash + # @return [PlanHostedPages] Hosted pages settings + define_attribute :hosted_pages, :PlanHostedPages # @!attribute interval_length # @return [Integer] Length of the plan's billing interval in `interval_unit`. define_attribute :interval_length, Integer # @!attribute interval_unit # @return [String] Unit for the plan's billing interval. - define_attribute :interval_unit, String, {:enum => ["days", "months"]} + define_attribute :interval_unit, String, { :enum => ["days", "months"] } # @!attribute name # @return [String] This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice. define_attribute :name, String @@ -62,9 +66,9 @@ # @return [Integer] Length of plan's trial period in `trial_units`. `0` means `no trial`. define_attribute :trial_length, Integer # @!attribute trial_unit # @return [String] Units for the plan's trial period. - define_attribute :trial_unit, String, {:enum => ["days", "months"]} + define_attribute :trial_unit, String, { :enum => ["days", "months"] } end end end