Sha256: ef9920d49d295d25e9376c9a26a2c53138d1332d8a7e4009ba571ffe6a3ee05e

Contents?: true

Size: 786 Bytes

Versions: 6

Compression:

Stored size: 786 Bytes

Contents

module ChargeBee
  class InstallmentConfig < Model

    class Installment < Model
      attr_accessor :period, :amount_percentage
    end

  attr_accessor :id, :description, :number_of_installments, :period_unit, :period, :preferred_day,
  :created_at, :resource_version, :updated_at, :installments

  # OPERATIONS
  #-----------

  def self.create(params, env=nil, headers={})
    Request.send('post', uri_path("installment_configs"), params, env, headers)
  end

  def self.retrieve(id, env=nil, headers={})
    Request.send('get', uri_path("installment_configs",id.to_s), {}, env, headers)
  end

  def self.delete(id, env=nil, headers={})
    Request.send('post', uri_path("installment_configs",id.to_s,"delete"), {}, env, headers)
  end

  end # ~InstallmentConfig
end # ~ChargeBee

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chargebee-2.43.0 lib/chargebee/models/installment_config.rb
chargebee-2.42.0 lib/chargebee/models/installment_config.rb
chargebee-2.41.0 lib/chargebee/models/installment_config.rb
chargebee-2.40.0 lib/chargebee/models/installment_config.rb
chargebee-2.38.1 lib/chargebee/models/installment_config.rb
chargebee-2.38.0 lib/chargebee/models/installment_config.rb