Class: ChargeBee::Estimate
- Defined in:
- lib/chargebee/models/estimate.rb
Defined Under Namespace
Classes: Discount, LineItem, Tax
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#collect_now ⇒ Object
Returns the value of attribute collect_now.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#discounts ⇒ Object
Returns the value of attribute discounts.
-
#line_items ⇒ Object
Returns the value of attribute line_items.
-
#recurring ⇒ Object
Returns the value of attribute recurring.
-
#sub_total ⇒ Object
Returns the value of attribute sub_total.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#subscription_status ⇒ Object
Returns the value of attribute subscription_status.
-
#taxes ⇒ Object
Returns the value of attribute taxes.
-
#term_ends_at ⇒ Object
Returns the value of attribute term_ends_at.
Class Method Summary collapse
-
.create_subscription(params, env = nil) ⇒ Object
OPERATIONS ———–.
- .renewal_estimate(id, params = {}, env = nil) ⇒ Object
- .update_subscription(params, env = nil) ⇒ Object
Methods inherited from Model
construct, #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.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def amount @amount end |
#collect_now ⇒ Object
Returns the value of attribute collect_now.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def collect_now @collect_now end |
#created_at ⇒ Object
Returns the value of attribute created_at.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def created_at @created_at end |
#discounts ⇒ Object
Returns the value of attribute discounts.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def discounts @discounts end |
#line_items ⇒ Object
Returns the value of attribute line_items.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def line_items @line_items end |
#recurring ⇒ Object
Returns the value of attribute recurring.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def recurring @recurring end |
#sub_total ⇒ Object
Returns the value of attribute sub_total.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def sub_total @sub_total end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def subscription_id @subscription_id end |
#subscription_status ⇒ Object
Returns the value of attribute subscription_status.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def subscription_status @subscription_status end |
#taxes ⇒ Object
Returns the value of attribute taxes.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def taxes @taxes end |
#term_ends_at ⇒ Object
Returns the value of attribute term_ends_at.
16 17 18 |
# File 'lib/chargebee/models/estimate.rb', line 16 def term_ends_at @term_ends_at end |
Class Method Details
.create_subscription(params, env = nil) ⇒ Object
OPERATIONS
22 23 24 |
# File 'lib/chargebee/models/estimate.rb', line 22 def self.create_subscription(params, env=nil) Request.send('post', uri_path("estimates","create_subscription"), params, env) end |