Class: ChargeBee::Estimate
- Inherits:
-
Model
- Object
- Model
- ChargeBee::Estimate
show all
- Defined in:
- lib/chargebee/models/estimate.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
-
.advance_invoice_estimate(id, params = {}, env = nil, headers = {}) ⇒ Object
-
.cancel_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
-
.cancel_subscription_for_items(id, params = {}, env = nil, headers = {}) ⇒ Object
-
.change_term_end(id, params, env = nil, headers = {}) ⇒ Object
-
.create_invoice(params = {}, env = nil, headers = {}) ⇒ Object
-
.create_invoice_for_items(params, env = nil, headers = {}) ⇒ Object
-
.create_sub_for_customer_estimate(id, params, env = nil, headers = {}) ⇒ Object
-
.create_sub_item_estimate(params, env = nil, headers = {}) ⇒ Object
-
.create_sub_item_for_customer_estimate(id, params, env = nil, headers = {}) ⇒ Object
-
.create_subscription(params, env = nil, headers = {}) ⇒ Object
-
.gift_subscription(params, env = nil, headers = {}) ⇒ Object
-
.gift_subscription_for_items(params, env = nil, headers = {}) ⇒ Object
-
.pause_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
-
.payment_schedules(params, env = nil, headers = {}) ⇒ Object
-
.regenerate_invoice_estimate(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
-
.update_subscription_for_items(params, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #to_s, uri_path
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
|
#payment_schedule_estimates ⇒ Object
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_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
|
#subscription_estimates ⇒ Object
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_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
.advance_invoice_estimate(id, params = {}, env = nil, headers = {}) ⇒ Object
55
56
57
58
59
|
# File 'lib/chargebee/models/estimate.rb', line 55
def self.advance_invoice_estimate(id, params={}, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("subscriptions",id.to_s,"advance_invoice_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.cancel_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
79
80
81
82
83
|
# File 'lib/chargebee/models/estimate.rb', line 79
def self.cancel_subscription(id, params={}, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.cancel_subscription_for_items(id, params = {}, env = nil, headers = {}) ⇒ Object
85
86
87
88
89
|
# File 'lib/chargebee/models/estimate.rb', line 85
def self.cancel_subscription_for_items(id, params={}, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_for_items_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.change_term_end(id, params, env = nil, headers = {}) ⇒ Object
73
74
75
76
77
|
# File 'lib/chargebee/models/estimate.rb', line 73
def self.change_term_end(id, params, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("subscriptions",id.to_s,"change_term_end_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.create_invoice(params = {}, env = nil, headers = {}) ⇒ Object
117
118
119
120
121
|
# File 'lib/chargebee/models/estimate.rb', line 117
def self.create_invoice(params={}, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("estimates","create_invoice"), params, env, ,nil, false, jsonKeys)
end
|
.create_invoice_for_items(params, env = nil, headers = {}) ⇒ Object
123
124
125
126
127
|
# File 'lib/chargebee/models/estimate.rb', line 123
def self.create_invoice_for_items(params, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("estimates","create_invoice_for_items"), params, env, ,nil, false, jsonKeys)
end
|
.create_sub_for_customer_estimate(id, params, env = nil, headers = {}) ⇒ Object
25
26
27
28
29
|
# File 'lib/chargebee/models/estimate.rb', line 25
def self.create_sub_for_customer_estimate(id, params, env=nil, ={})
jsonKeys = {
}
Request.send('get', uri_path("customers",id.to_s,"create_subscription_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.create_sub_item_estimate(params, env = nil, headers = {}) ⇒ Object
18
19
20
21
22
23
|
# File 'lib/chargebee/models/estimate.rb', line 18
def self.create_sub_item_estimate(params, env=nil, ={})
jsonKeys = {
:exemption_details => 1,
}
Request.send('post', uri_path("estimates","create_subscription_for_items"), params, env, ,nil, false, jsonKeys)
end
|
.create_sub_item_for_customer_estimate(id, params, env = nil, headers = {}) ⇒ Object
31
32
33
34
35
|
# File 'lib/chargebee/models/estimate.rb', line 31
def self.create_sub_item_for_customer_estimate(id, params, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("customers",id.to_s,"create_subscription_for_items_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.create_subscription(params, env = nil, headers = {}) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/chargebee/models/estimate.rb', line 11
def self.create_subscription(params, env=nil, ={})
jsonKeys = {
:exemption_details => 1,
}
Request.send('post', uri_path("estimates","create_subscription"), params, env, ,nil, false, jsonKeys)
end
|
.gift_subscription(params, env = nil, headers = {}) ⇒ Object
103
104
105
106
107
108
|
# File 'lib/chargebee/models/estimate.rb', line 103
def self.gift_subscription(params, env=nil, ={})
jsonKeys = {
:additional_information => 1,
}
Request.send('post', uri_path("estimates","gift_subscription"), params, env, ,nil, false, jsonKeys)
end
|
.gift_subscription_for_items(params, env = nil, headers = {}) ⇒ Object
110
111
112
113
114
115
|
# File 'lib/chargebee/models/estimate.rb', line 110
def self.gift_subscription_for_items(params, env=nil, ={})
jsonKeys = {
:additional_information => 1,
}
Request.send('post', uri_path("estimates","gift_subscription_for_items"), params, env, ,nil, false, jsonKeys)
end
|
.pause_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
91
92
93
94
95
|
# File 'lib/chargebee/models/estimate.rb', line 91
def self.pause_subscription(id, params={}, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("subscriptions",id.to_s,"pause_subscription_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.payment_schedules(params, env = nil, headers = {}) ⇒ Object
129
130
131
132
133
|
# File 'lib/chargebee/models/estimate.rb', line 129
def self.payment_schedules(params, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("estimates","payment_schedules"), params, env, ,nil, false, jsonKeys)
end
|
.regenerate_invoice_estimate(id, params = {}, env = nil, headers = {}) ⇒ Object
61
62
63
64
65
|
# File 'lib/chargebee/models/estimate.rb', line 61
def self.regenerate_invoice_estimate(id, params={}, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("subscriptions",id.to_s,"regenerate_invoice_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.renewal_estimate(id, params = {}, env = nil, headers = {}) ⇒ Object
49
50
51
52
53
|
# File 'lib/chargebee/models/estimate.rb', line 49
def self.renewal_estimate(id, params={}, env=nil, ={})
jsonKeys = {
}
Request.send('get', uri_path("subscriptions",id.to_s,"renewal_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.resume_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
97
98
99
100
101
|
# File 'lib/chargebee/models/estimate.rb', line 97
def self.resume_subscription(id, params={}, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("subscriptions",id.to_s,"resume_subscription_estimate"), params, env, ,nil, false, jsonKeys)
end
|
.upcoming_invoices_estimate(id, env = nil, headers = {}) ⇒ Object
67
68
69
70
71
|
# File 'lib/chargebee/models/estimate.rb', line 67
def self.upcoming_invoices_estimate(id, env=nil, ={})
jsonKeys = {
}
Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), {}, env, ,nil, false, jsonKeys)
end
|
.update_subscription(params, env = nil, headers = {}) ⇒ Object
37
38
39
40
41
|
# File 'lib/chargebee/models/estimate.rb', line 37
def self.update_subscription(params, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("estimates","update_subscription"), params, env, ,nil, false, jsonKeys)
end
|
.update_subscription_for_items(params, env = nil, headers = {}) ⇒ Object
43
44
45
46
47
|
# File 'lib/chargebee/models/estimate.rb', line 43
def self.update_subscription_for_items(params, env=nil, ={})
jsonKeys = {
}
Request.send('post', uri_path("estimates","update_subscription_for_items"), params, env, ,nil, false, jsonKeys)
end
|