Class: ChargeBee::UnbilledCharge

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/unbilled_charge.rb

Defined Under Namespace

Classes: Tier

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def amount
  @amount
end

#amount_in_decimalObject

Returns the value of attribute amount_in_decimal.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def amount_in_decimal
  @amount_in_decimal
end

#currency_codeObject

Returns the value of attribute currency_code.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def currency_code
  @currency_code
end

#customer_idObject

Returns the value of attribute customer_id.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def customer_id
  @customer_id
end

#date_fromObject

Returns the value of attribute date_from.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def date_from
  @date_from
end

#date_toObject

Returns the value of attribute date_to.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def date_to
  @date_to
end

#deletedObject

Returns the value of attribute deleted.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def deleted
  @deleted
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def description
  @description
end

#discount_amountObject

Returns the value of attribute discount_amount.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def discount_amount
  @discount_amount
end

#entity_idObject

Returns the value of attribute entity_id.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def entity_id
  @entity_id
end

#entity_typeObject

Returns the value of attribute entity_type.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def entity_type
  @entity_type
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def id
  @id
end

#is_voidedObject

Returns the value of attribute is_voided.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def is_voided
  @is_voided
end

#pricing_modelObject

Returns the value of attribute pricing_model.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def pricing_model
  @pricing_model
end

#quantityObject

Returns the value of attribute quantity.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def quantity
  @quantity
end

#quantity_in_decimalObject

Returns the value of attribute quantity_in_decimal.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def quantity_in_decimal
  @quantity_in_decimal
end

#subscription_idObject

Returns the value of attribute subscription_id.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def subscription_id
  @subscription_id
end

#tiersObject

Returns the value of attribute tiers.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def tiers
  @tiers
end

#unit_amountObject

Returns the value of attribute unit_amount.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def unit_amount
  @unit_amount
end

#unit_amount_in_decimalObject

Returns the value of attribute unit_amount_in_decimal.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def unit_amount_in_decimal
  @unit_amount_in_decimal
end

#voided_atObject

Returns the value of attribute voided_at.



8
9
10
# File 'lib/chargebee/models/unbilled_charge.rb', line 8

def voided_at
  @voided_at
end

Class Method Details

.create(params, env = nil, headers = {}) ⇒ Object



20
21
22
# File 'lib/chargebee/models/unbilled_charge.rb', line 20

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

.create_unbilled_charge(params, env = nil, headers = {}) ⇒ Object

OPERATIONS




16
17
18
# File 'lib/chargebee/models/unbilled_charge.rb', line 16

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

.delete(id, env = nil, headers = {}) ⇒ Object



28
29
30
# File 'lib/chargebee/models/unbilled_charge.rb', line 28

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

.invoice_now_estimate(params = {}, env = nil, headers = {}) ⇒ Object



36
37
38
# File 'lib/chargebee/models/unbilled_charge.rb', line 36

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

.invoice_unbilled_charges(params = {}, env = nil, headers = {}) ⇒ Object



24
25
26
# File 'lib/chargebee/models/unbilled_charge.rb', line 24

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

.list(params = {}, env = nil, headers = {}) ⇒ Object



32
33
34
# File 'lib/chargebee/models/unbilled_charge.rb', line 32

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