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, #respond_to_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_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



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

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

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



90
91
92
93
94
95
# File 'lib/chargebee/models/estimate.rb', line 90

def self.cancel_subscription(id, params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_estimate"), params, env, headers,nil, false, jsonKeys, options)
end

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



97
98
99
100
101
102
# File 'lib/chargebee/models/estimate.rb', line 97

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

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



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

def self.change_term_end(id, params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('post', uri_path("subscriptions",id.to_s,"change_term_end_estimate"), params, env, headers,nil, false, jsonKeys, options)
end

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



134
135
136
137
138
139
# File 'lib/chargebee/models/estimate.rb', line 134

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

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



141
142
143
144
145
146
# File 'lib/chargebee/models/estimate.rb', line 141

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

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



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

def self.create_sub_for_customer_estimate(id, params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("customers",id.to_s,"create_subscription_estimate"), params, env, headers,nil, false, jsonKeys, options)
end

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



19
20
21
22
23
24
25
# File 'lib/chargebee/models/estimate.rb', line 19

def self.create_sub_item_estimate(params, env=nil, headers={})
  jsonKeys = { 
      :exemption_details => 1,
  }
  options = {}
  Request.send('post', uri_path("estimates","create_subscription_for_items"), params, env, headers,nil, false, jsonKeys, options)
end

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



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

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

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

OPERATIONS




11
12
13
14
15
16
17
# File 'lib/chargebee/models/estimate.rb', line 11

def self.create_subscription(params, env=nil, headers={})
  jsonKeys = { 
      :exemption_details => 1,
  }
  options = {}
  Request.send('post', uri_path("estimates","create_subscription"), params, env, headers,nil, false, jsonKeys, options)
end

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



118
119
120
121
122
123
124
# File 'lib/chargebee/models/estimate.rb', line 118

def self.gift_subscription(params, env=nil, headers={})
  jsonKeys = { 
      :additional_information => 1,
  }
  options = {}
  Request.send('post', uri_path("estimates","gift_subscription"), params, env, headers,nil, false, jsonKeys, options)
end

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



126
127
128
129
130
131
132
# File 'lib/chargebee/models/estimate.rb', line 126

def self.gift_subscription_for_items(params, env=nil, headers={})
  jsonKeys = { 
      :additional_information => 1,
  }
  options = {}
  Request.send('post', uri_path("estimates","gift_subscription_for_items"), params, env, headers,nil, false, jsonKeys, options)
end

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



104
105
106
107
108
109
# File 'lib/chargebee/models/estimate.rb', line 104

def self.pause_subscription(id, params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('post', uri_path("subscriptions",id.to_s,"pause_subscription_estimate"), params, env, headers,nil, false, jsonKeys, options)
end

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



148
149
150
151
152
153
154
155
# File 'lib/chargebee/models/estimate.rb', line 148

def self.payment_schedules(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("estimates","payment_schedules"), params, env, headers,nil, false, jsonKeys, options)
end

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



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

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

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



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

def self.renewal_estimate(id, params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("subscriptions",id.to_s,"renewal_estimate"), params, env, headers,nil, false, jsonKeys, options)
end

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



111
112
113
114
115
116
# File 'lib/chargebee/models/estimate.rb', line 111

def self.resume_subscription(id, params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('post', uri_path("subscriptions",id.to_s,"resume_subscription_estimate"), params, env, headers,nil, false, jsonKeys, options)
end

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



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

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

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



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

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

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



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

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