Sha256: 5be69a6c77b6437c87085c0535591fc564aa7746320e1377f97f2df4df228194

Contents?: true

Size: 975 Bytes

Versions: 21

Compression:

Stored size: 975 Bytes

Contents

module ChargeBee
  class UnbilledCharge < Model

  attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity,
  :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id, :is_voided,
  :voided_at, :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

21 entries across 21 versions & 1 rubygems

Version Path
chargebee-2.5.7 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.6 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.5 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.4 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.3 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.2 lib/chargebee/models/unbilled_charge.rb
chargebee-2.5.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.9 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.8 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.7 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.6 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.5 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.4 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.3 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.2 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.1 lib/chargebee/models/unbilled_charge.rb
chargebee-2.4.0 lib/chargebee/models/unbilled_charge.rb
chargebee-2.3.9 lib/chargebee/models/unbilled_charge.rb
chargebee-2.3.8 lib/chargebee/models/unbilled_charge.rb
chargebee-2.3.7 lib/chargebee/models/unbilled_charge.rb