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.
-
#invoice_estimates ⇒ Object
Returns the value of attribute invoice_estimates.
-
#next_invoice_estimate ⇒ Object
Returns the value of attribute next_invoice_estimate.
-
#subscription_estimate ⇒ Object
Returns the value of attribute subscription_estimate.
-
#unbilled_charge_estimates ⇒ Object
Returns the value of attribute unbilled_charge_estimates.
Class Method Summary collapse
- .cancel_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
- .change_term_end(id, params = {}, env = nil, headers = {}) ⇒ Object
- .create_invoice(params = {}, env = nil, headers = {}) ⇒ Object
- .create_sub_for_customer_estimate(id, params, env = nil, headers = {}) ⇒ Object
-
.create_subscription(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .gift_subscription(params, env = nil, headers = {}) ⇒ Object
- .pause_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
- .renewal_estimate(id, params = {}, env = nil, headers = {}) ⇒ Object
- .resume_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
- .upcoming_invoices_estimate(id, 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 |
#invoice_estimates ⇒ Object
Returns the value of attribute invoice_estimates.
4 5 6 |
# File 'lib/chargebee/models/estimate.rb', line 4 def invoice_estimates @invoice_estimates 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 |
#unbilled_charge_estimates ⇒ Object
Returns the value of attribute unbilled_charge_estimates.
4 5 6 |
# File 'lib/chargebee/models/estimate.rb', line 4 def unbilled_charge_estimates @unbilled_charge_estimates end |
Class Method Details
.cancel_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
34 35 36 |
# File 'lib/chargebee/models/estimate.rb', line 34 def self.cancel_subscription(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_estimate"), params, env, headers) end |
.change_term_end(id, params = {}, env = nil, headers = {}) ⇒ Object
30 31 32 |
# File 'lib/chargebee/models/estimate.rb', line 30 def self.change_term_end(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"change_term_end_estimate"), params, env, headers) end |
.create_invoice(params = {}, env = nil, headers = {}) ⇒ Object
50 51 52 |
# File 'lib/chargebee/models/estimate.rb', line 50 def self.create_invoice(params={}, env=nil, headers={}) Request.send('post', uri_path("estimates","create_invoice"), params, env, headers) end |
.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 |
.gift_subscription(params, env = nil, headers = {}) ⇒ Object
46 47 48 |
# File 'lib/chargebee/models/estimate.rb', line 46 def self.gift_subscription(params, env=nil, headers={}) Request.send('post', uri_path("estimates","gift_subscription"), params, env, headers) end |
.pause_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
38 39 40 |
# File 'lib/chargebee/models/estimate.rb', line 38 def self.pause_subscription(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"pause_subscription_estimate"), params, env, headers) end |
.renewal_estimate(id, params = {}, env = nil, headers = {}) ⇒ Object
22 23 24 |
# File 'lib/chargebee/models/estimate.rb', line 22 def self.renewal_estimate(id, params={}, env=nil, headers={}) Request.send('get', uri_path("subscriptions",id.to_s,"renewal_estimate"), params, env, headers) end |
.resume_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
42 43 44 |
# File 'lib/chargebee/models/estimate.rb', line 42 def self.resume_subscription(id, params={}, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"resume_subscription_estimate"), params, env, headers) end |