lib/recurly/resources/subscription.rb in recurly-3.0.0.beta.3 vs lib/recurly/resources/subscription.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 Resources class Subscription < Resource # @!attribute account @@ -10,11 +14,11 @@ # @return [DateTime] Activated at define_attribute :activated_at, DateTime # @!attribute add_ons # @return [Array[SubscriptionAddOn]] Add-ons - define_attribute :add_ons, Array, {:item_type => :SubscriptionAddOn} + define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOn } # @!attribute add_ons_total # @return [Float] Total price of add-ons define_attribute :add_ons_total, Float @@ -30,15 +34,15 @@ # @return [DateTime] Canceled at define_attribute :canceled_at, DateTime # @!attribute collection_method # @return [String] Collection method - define_attribute :collection_method, String, {:enum => ["automatic", "manual"]} + define_attribute :collection_method, String, { :enum => ["automatic", "manual"] } # @!attribute coupon_redemptions # @return [Array[CouponRedemptionMini]] Coupon redemptions - define_attribute :coupon_redemptions, Array, {:item_type => :CouponRedemptionMini} + define_attribute :coupon_redemptions, Array, { :item_type => :CouponRedemptionMini } # @!attribute created_at # @return [DateTime] Created at define_attribute :created_at, DateTime @@ -62,11 +66,11 @@ # @return [DateTime] The start date of the term when the first billing period starts. The subscription term is the length of time that a customer will be committed to a subscription. A term can span multiple billing periods. define_attribute :current_term_started_at, DateTime # @!attribute custom_fields # @return [Array[CustomField]] - define_attribute :custom_fields, Array, {:item_type => :CustomField} + define_attribute :custom_fields, Array, { :item_type => :CustomField } # @!attribute customer_notes # @return [String] Customer notes define_attribute :customer_notes, String @@ -126,10 +130,10 @@ # @return [ShippingAddress] define_attribute :shipping_address, :ShippingAddress # @!attribute state # @return [String] State - define_attribute :state, String, {:enum => ["active", "canceled", "expired", "failed", "future", "paused"]} + define_attribute :state, String, { :enum => ["active", "canceled", "expired", "failed", "future", "paused"] } # @!attribute subtotal # @return [Float] Estimated total, before tax. define_attribute :subtotal, Float