Sha256: 86d985d8183f5e67e6d1b6ba6b74a56966cd9dad0f0808ecb40366667581a074

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

# encoding: utf-8

module Zuora
  module Models
    class RatePlanCharge
      include ActiveModel::Model

      ATTRIBUTES = :product_rate_plan_charge_id,
                   :number,
                   :description,
                   :price,
                   :tiers,
                   :included_units,
                   :overage_price,
                   :list_price_base,
                   :quantity,
                   :discounted_amount,
                   :discount_percentage,
                   :apply_discount_to,
                   :discount_level,
                   :trigger_event,
                   :trigger_date,
                   :end_date_condition,
                   :up_to_periods_type,
                   :up_to_periods,
                   :specific_end_date,
                   :billing_period,
                   :specific_billing_period,
                   :billing_period_alignment,
                   :billing_timing,
                   :rating_group,
                   :bill_cycle_type,
                   :bill_cycle_day,
                   :number_of_periods,
                   :overage_unused_units_credit_option,
                   :unused_units_credit_rates,
                   :price_change_option,
                   :price_increase_percentage,
                   :weekly_bill_cycle_day

      attr_accessor(*ATTRIBUTES)

      def attributes
        ATTRIBUTES
      end

      validates :product_rate_plan_charge_id,
                presence: true

      validates :number,
                length: { maximum: 50 }

      validates :description,
                length: { maximum: 500 }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zuora-ruby-0.1.0 lib/zuora/models/rate_plan_charge.rb