Sha256: fcf5fdc0f04e3e0587fa3390a37b7d9f14ef0a17cbd7f77498972f02b3483352

Contents?: true

Size: 923 Bytes

Versions: 25

Compression:

Stored size: 923 Bytes

Contents

module Recurly
  # Recurly Documentation: https://dev.recurly.com/docs/list-plans
  class Plan < Resource
    # @return [Pager<AddOn>, []]
    has_many :add_ons

    define_attribute_methods %w(
      plan_code
      name
      description
      success_url
      cancel_url
      display_donation_amounts
      display_quantity
      display_phone_number
      bypass_hosted_confirmation
      unit_name
      payment_page_tos_link
      payment_page_css
      setup_fee_in_cents
      unit_amount_in_cents
      plan_interval_length
      plan_interval_unit
      trial_interval_length
      trial_interval_unit
      total_billing_cycles
      accounting_code
      setup_fee_accounting_code
      revenue_schedule_type
      setup_fee_revenue_schedule_type
      tax_exempt
      tax_code
      trial_requires_billing_info
      auto_renew
      created_at
      updated_at
    )
    alias to_param plan_code
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
recurly-2.18.9 lib/recurly/plan.rb
recurly-2.18.8 lib/recurly/plan.rb
recurly-2.18.7 lib/recurly/plan.rb
recurly-2.18.6 lib/recurly/plan.rb
recurly-2.18.5 lib/recurly/plan.rb
recurly-2.18.4 lib/recurly/plan.rb
recurly-2.18.3 lib/recurly/plan.rb
recurly-2.18.2 lib/recurly/plan.rb
recurly-2.18.1 lib/recurly/plan.rb
recurly-2.18.0 lib/recurly/plan.rb
recurly-2.17.11 lib/recurly/plan.rb
recurly-2.17.10 lib/recurly/plan.rb
recurly-2.17.9 lib/recurly/plan.rb
recurly-2.17.8 lib/recurly/plan.rb
recurly-2.17.7 lib/recurly/plan.rb
recurly-2.17.6 lib/recurly/plan.rb
recurly-2.17.5 lib/recurly/plan.rb
recurly-2.17.4 lib/recurly/plan.rb
recurly-2.17.3 lib/recurly/plan.rb
recurly-2.17.2 lib/recurly/plan.rb