Class: ChargeBee::Estimate
- Defined in:
- lib/chargebee/models/estimate.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#credit_note_estimates ⇒ Object
Returns the value of attribute credit_note_estimates.
-
#invoice_estimate ⇒ Object
Returns the value of attribute invoice_estimate.
-
#next_invoice_estimate ⇒ Object
Returns the value of attribute next_invoice_estimate.
-
#subscription_estimate ⇒ Object
Returns the value of attribute subscription_estimate.
Class Method Summary collapse
- .create_sub_for_customer_estimate(id, params, env = nil, headers = {}) ⇒ Object
-
.create_subscription(params, env = nil, headers = {}) ⇒ Object
OPERATIONS -----------.
- .renewal_estimate(id, params = {}, env = nil, headers = {}) ⇒ Object
- .update_subscription(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
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/chargebee/models/estimate.rb', line 4 def created_at @created_at end |
#credit_note_estimates ⇒ Object
Returns the value of attribute credit_note_estimates.
4 5 6 |
# File 'lib/chargebee/models/estimate.rb', line 4 def credit_note_estimates @credit_note_estimates end |
#invoice_estimate ⇒ Object
Returns the value of attribute invoice_estimate.
4 5 6 |
# File 'lib/chargebee/models/estimate.rb', line 4 def invoice_estimate @invoice_estimate end |
#next_invoice_estimate ⇒ Object
Returns the value of attribute next_invoice_estimate.
4 5 6 |
# File 'lib/chargebee/models/estimate.rb', line 4 def next_invoice_estimate @next_invoice_estimate end |
#subscription_estimate ⇒ Object
Returns the value of attribute subscription_estimate.
4 5 6 |
# File 'lib/chargebee/models/estimate.rb', line 4 def subscription_estimate @subscription_estimate end |
Class Method Details
.create_sub_for_customer_estimate(id, params, env = nil, headers = {}) ⇒ Object
14 15 16 |
# File 'lib/chargebee/models/estimate.rb', line 14 def self.create_sub_for_customer_estimate(id, params, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"create_subscription_estimate"), params, env, headers) end |
.create_subscription(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
10 11 12 |
# File 'lib/chargebee/models/estimate.rb', line 10 def self.create_subscription(params, env=nil, headers={}) Request.send('post', uri_path("estimates","create_subscription"), params, env, headers) end |