Sha256: a02987911bde56c3f7f13ec31da4948c623cf33ed02f02ea51b186decb14a434

Contents?: true

Size: 1.38 KB

Versions: 19

Compression:

Stored size: 1.38 KB

Contents

module ChargeBee
  class UnbilledCharge < Model

    class Tier < Model
      attr_accessor :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal
    end

  attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
  :quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id,
  :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :tiers,
  :deleted

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

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

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

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

  def self.list(params={}, env=nil, headers={})
    Request.send_list_request('get', uri_path("unbilled_charges"), params, env, headers)
  end

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

  end # ~UnbilledCharge
end # ~ChargeBee

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
chargebee-2.14.1 lib/chargebee/models/unbilled_charge.rb
chargebee-2.14.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.13.1 lib/chargebee/models/unbilled_charge.rb
chargebee-2.13.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.12.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.11.2 lib/chargebee/models/unbilled_charge.rb
chargebee-2.11.1 lib/chargebee/models/unbilled_charge.rb
chargebee-2.11.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.10.1 lib/chargebee/models/unbilled_charge.rb
chargebee-2.10.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.9.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.8 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.7 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.6 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.5 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.4 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.3 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.2 lib/chargebee/models/unbilled_charge.rb
chargebee-2.8.1 lib/chargebee/models/unbilled_charge.rb