myfreecomm/billimatic-client-ruby

View on GitHub
lib/billimatic/entities/plan.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Billimatic
  module Entities
    class Plan < Base
      attribute :id, Integer
      attribute :name, String
      attribute :description, String
      attribute :price, Decimal
      attribute :billing_period, Integer
      attribute :translated_billing_period, String
      attribute :charging_method, String
      attribute :translated_charging_method, String
      attribute :has_trial, Boolean
      attribute :trial_period, Integer
      attribute :redirect_url, String
      attribute :features, Array[PlanFeature]
      attribute :readjustment_will_be_created, Boolean
      attribute :readjustment_month_quantity, Integer
      attribute :price_index, String
      attribute :readjustment_days_until_update, Integer
      attribute :billet_notification_ruler_id, Integer
      attribute :payment_gateway_notification_ruler_id, Integer
      attribute :emites_service_values_id, Integer
      attribute :emites_service_value_name, String
      attribute :cobrato_billet_charge_config_id, Integer
      attribute :cobrato_billet_charge_config_name, String
      attribute :cobrato_billet_charge_template_id, Integer
      attribute :cobrato_billet_charge_template_name, String
      attribute :cobrato_payment_gateway_charge_config_id, Integer
      attribute :cobrato_payment_gateway_charge_config_name, String
      attribute :finance_category, String
      attribute :finance_revenue_center, String
      attribute :myfinance_billet_sale_account_id, Integer
      attribute :myfinance_billet_sale_account_name, String
      attribute :myfinance_payment_gateway_sale_account_id, Integer
      attribute :myfinance_payment_gateway_sale_account_name, String
      attribute :created_at, DateTime
      attribute :products, Array[Product]
      attribute :allow_installments, Boolean
      attribute :installments_limit, Integer
    end
  end
end