Sha256: ce211d4826c633ca8135b8714fb2aa00f70533cbdc2dddd16c0a54283386e760

Contents?: true

Size: 1.08 KB

Versions: 20

Compression:

Stored size: 1.08 KB

Contents

module ChargeBee
  class UnbilledCharge < Model

    class Tier < Model
      attr_accessor :starting_unit, :ending_unit, :quantity_used, :unit_amount
    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, :tiers, :deleted

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

  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

20 entries across 20 versions & 1 rubygems

Version Path
chargebee-2.7.9 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.8 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.7 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.6 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.5 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.4 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.3 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.2 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.1 lib/chargebee/models/unbilled_charge.rb
chargebee-2.7.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.9 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.8 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.7 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.6 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.5 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.2 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.1 lib/chargebee/models/unbilled_charge.rb
chargebee-2.6.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.9 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.8 lib/chargebee/models/unbilled_charge.rb