Class: ChargeBee::PromotionalCredit
- Defined in:
- lib/chargebee/models/promotional_credit.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#amount_in_decimal ⇒ Object
Returns the value of attribute amount_in_decimal.
-
#closing_balance ⇒ Object
Returns the value of attribute closing_balance.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#credit_type ⇒ Object
Returns the value of attribute credit_type.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#description ⇒ Object
Returns the value of attribute description.
-
#done_by ⇒ Object
Returns the value of attribute done_by.
-
#id ⇒ Object
Returns the value of attribute id.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.add(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .deduct(params, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .set(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
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.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def amount @amount end |
#amount_in_decimal ⇒ Object
Returns the value of attribute amount_in_decimal.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def amount_in_decimal @amount_in_decimal end |
#closing_balance ⇒ Object
Returns the value of attribute closing_balance.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def closing_balance @closing_balance end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def created_at @created_at end |
#credit_type ⇒ Object
Returns the value of attribute credit_type.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def credit_type @credit_type end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def currency_code @currency_code end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def customer_id @customer_id end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def description @description end |
#done_by ⇒ Object
Returns the value of attribute done_by.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def done_by @done_by end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def id @id end |
#reference ⇒ Object
Returns the value of attribute reference.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def reference @reference end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/chargebee/models/promotional_credit.rb', line 4 def type @type end |
Class Method Details
.add(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
10 11 12 |
# File 'lib/chargebee/models/promotional_credit.rb', line 10 def self.add(params, env=nil, headers={}) Request.send('post', uri_path("promotional_credits","add"), params, env, headers) end |
.deduct(params, env = nil, headers = {}) ⇒ Object
14 15 16 |
# File 'lib/chargebee/models/promotional_credit.rb', line 14 def self.deduct(params, env=nil, headers={}) Request.send('post', uri_path("promotional_credits","deduct"), params, env, headers) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
22 23 24 |
# File 'lib/chargebee/models/promotional_credit.rb', line 22 def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("promotional_credits"), params, env, headers) end |