Class: ChargeBee::Estimate

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #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_atObject

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_estimatesObject

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_estimateObject

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_estimatesObject

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_estimateObject

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

#payment_schedule_estimatesObject

Returns the value of attribute payment_schedule_estimates.



4
5
6
# File 'lib/chargebee/models/estimate.rb', line 4

def payment_schedule_estimates
  @payment_schedule_estimates
end

#subscription_estimateObject

Returns the value of attribute subscription_estimate.



4
5
6
# File 'lib/chargebee/models/estimate.rb', line 4

def subscription_estimate
  @subscription_estimate
end

#subscription_estimatesObject

Returns the value of attribute subscription_estimates.



4
5
6
# File 'lib/chargebee/models/estimate.rb', line 4

def subscription_estimates
  @subscription_estimates
end

#unbilled_charge_estimatesObject

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

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



39
40
41
# File 'lib/chargebee/models/estimate.rb', line 39

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

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



55
56
57
# File 'lib/chargebee/models/estimate.rb', line 55

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

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



59
60
61
# File 'lib/chargebee/models/estimate.rb', line 59

def self.cancel_subscription_for_items(id, params={}, env=nil, headers={})
  Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_for_items_estimate"), params, env, headers)
end

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



51
52
53
# File 'lib/chargebee/models/estimate.rb', line 51

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



79
80
81
# File 'lib/chargebee/models/estimate.rb', line 79

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

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



83
84
85
# File 'lib/chargebee/models/estimate.rb', line 83

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

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



19
20
21
# File 'lib/chargebee/models/estimate.rb', line 19

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_sub_item_estimate(params, env = nil, headers = {}) ⇒ Object



15
16
17
# File 'lib/chargebee/models/estimate.rb', line 15

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

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



23
24
25
# File 'lib/chargebee/models/estimate.rb', line 23

def self.create_sub_item_for_customer_estimate(id, params, env=nil, headers={})
  Request.send('post', uri_path("customers",id.to_s,"create_subscription_for_items_estimate"), params, env, headers)
end

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

OPERATIONS




11
12
13
# File 'lib/chargebee/models/estimate.rb', line 11

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



71
72
73
# File 'lib/chargebee/models/estimate.rb', line 71

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

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



75
76
77
# File 'lib/chargebee/models/estimate.rb', line 75

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

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



63
64
65
# File 'lib/chargebee/models/estimate.rb', line 63

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

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



87
88
89
# File 'lib/chargebee/models/estimate.rb', line 87

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

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



43
44
45
# File 'lib/chargebee/models/estimate.rb', line 43

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

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



35
36
37
# File 'lib/chargebee/models/estimate.rb', line 35

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



67
68
69
# File 'lib/chargebee/models/estimate.rb', line 67

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

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



47
48
49
# File 'lib/chargebee/models/estimate.rb', line 47

def self.upcoming_invoices_estimate(id, env=nil, headers={})
  Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), {}, env, headers)
end

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



27
28
29
# File 'lib/chargebee/models/estimate.rb', line 27

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

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



31
32
33
# File 'lib/chargebee/models/estimate.rb', line 31

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