Class: ChargeBee::UnbilledCharge
- Defined in:
- lib/chargebee/models/unbilled_charge.rb
Defined Under Namespace
Classes: Tier
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#amount_in_decimal ⇒ Object
Returns the value of attribute amount_in_decimal.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#date_from ⇒ Object
Returns the value of attribute date_from.
-
#date_to ⇒ Object
Returns the value of attribute date_to.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#description ⇒ Object
Returns the value of attribute description.
-
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
-
#entity_id ⇒ Object
Returns the value of attribute entity_id.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_voided ⇒ Object
Returns the value of attribute is_voided.
-
#pricing_model ⇒ Object
Returns the value of attribute pricing_model.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#quantity_in_decimal ⇒ Object
Returns the value of attribute quantity_in_decimal.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#tiers ⇒ Object
Returns the value of attribute tiers.
-
#unit_amount ⇒ Object
Returns the value of attribute unit_amount.
-
#unit_amount_in_decimal ⇒ Object
Returns the value of attribute unit_amount_in_decimal.
-
#voided_at ⇒ Object
Returns the value of attribute voided_at.
Class Method Summary collapse
- .create(params, env = nil, headers = {}) ⇒ Object
-
.create_unbilled_charge(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .invoice_now_estimate(params = {}, env = nil, headers = {}) ⇒ Object
- .invoice_unbilled_charges(params = {}, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
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
#amount ⇒ Object
Returns the value of attribute amount.
8 9 10 |
# File 'lib/chargebee/models/unbilled_charge.rb', line 8 def amount @amount end |
#amount_in_decimal ⇒ Object
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_code ⇒ Object
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_id ⇒ Object
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_from ⇒ Object
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_to ⇒ Object
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 |
#deleted ⇒ Object
Returns the value of attribute deleted.
8 9 10 |
# File 'lib/chargebee/models/unbilled_charge.rb', line 8 def deleted @deleted end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/chargebee/models/unbilled_charge.rb', line 8 def description @description end |
#discount_amount ⇒ Object
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_id ⇒ Object
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_type ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/chargebee/models/unbilled_charge.rb', line 8 def id @id end |
#is_voided ⇒ Object
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_model ⇒ Object
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 |
#quantity ⇒ Object
Returns the value of attribute quantity.
8 9 10 |
# File 'lib/chargebee/models/unbilled_charge.rb', line 8 def quantity @quantity end |
#quantity_in_decimal ⇒ Object
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_id ⇒ Object
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 |
#tiers ⇒ Object
Returns the value of attribute tiers.
8 9 10 |
# File 'lib/chargebee/models/unbilled_charge.rb', line 8 def tiers @tiers end |
#unit_amount ⇒ Object
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_decimal ⇒ Object
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_at ⇒ Object
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 |