Class: ChargeBee::CreditNote
- Defined in:
- lib/chargebee/models/credit_note.rb
Defined Under Namespace
Classes: Allocation, Discount, LineItem, LinkedRefund, Tax
Instance Attribute Summary collapse
-
#allocations ⇒ Object
Returns the value of attribute allocations.
-
#amount_allocated ⇒ Object
Returns the value of attribute amount_allocated.
-
#amount_available ⇒ Object
Returns the value of attribute amount_available.
-
#amount_refunded ⇒ Object
Returns the value of attribute amount_refunded.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#date ⇒ Object
Returns the value of attribute date.
-
#discounts ⇒ Object
Returns the value of attribute discounts.
-
#id ⇒ Object
Returns the value of attribute id.
-
#line_items ⇒ Object
Returns the value of attribute line_items.
-
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
-
#price_type ⇒ Object
Returns the value of attribute price_type.
-
#reason_code ⇒ Object
Returns the value of attribute reason_code.
-
#reference_invoice_id ⇒ Object
Returns the value of attribute reference_invoice_id.
-
#refunded_at ⇒ Object
Returns the value of attribute refunded_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#sub_total ⇒ Object
Returns the value of attribute sub_total.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#taxes ⇒ Object
Returns the value of attribute taxes.
-
#total ⇒ Object
Returns the value of attribute total.
-
#type ⇒ Object
Returns the value of attribute type.
-
#vat_number ⇒ Object
Returns the value of attribute vat_number.
Class Method Summary collapse
- .credit_notes_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
-
.retrieve(id, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #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
#allocations ⇒ Object
Returns the value of attribute allocations.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def allocations @allocations end |
#amount_allocated ⇒ Object
Returns the value of attribute amount_allocated.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def amount_allocated @amount_allocated end |
#amount_available ⇒ Object
Returns the value of attribute amount_available.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def amount_available @amount_available end |
#amount_refunded ⇒ Object
Returns the value of attribute amount_refunded.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def amount_refunded @amount_refunded end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def customer_id @customer_id end |
#date ⇒ Object
Returns the value of attribute date.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def date @date end |
#discounts ⇒ Object
Returns the value of attribute discounts.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def discounts @discounts end |
#id ⇒ Object
Returns the value of attribute id.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def id @id end |
#line_items ⇒ Object
Returns the value of attribute line_items.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def line_items @line_items end |
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def linked_refunds @linked_refunds end |
#price_type ⇒ Object
Returns the value of attribute price_type.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def price_type @price_type end |
#reason_code ⇒ Object
Returns the value of attribute reason_code.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def reason_code @reason_code end |
#reference_invoice_id ⇒ Object
Returns the value of attribute reference_invoice_id.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def reference_invoice_id @reference_invoice_id end |
#refunded_at ⇒ Object
Returns the value of attribute refunded_at.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def refunded_at @refunded_at end |
#status ⇒ Object
Returns the value of attribute status.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def status @status end |
#sub_total ⇒ Object
Returns the value of attribute sub_total.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def sub_total @sub_total end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def subscription_id @subscription_id end |
#taxes ⇒ Object
Returns the value of attribute taxes.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def taxes @taxes end |
#total ⇒ Object
Returns the value of attribute total.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def total @total end |
#type ⇒ Object
Returns the value of attribute type.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def type @type end |
#vat_number ⇒ Object
Returns the value of attribute vat_number.
24 25 26 |
# File 'lib/chargebee/models/credit_note.rb', line 24 def vat_number @vat_number end |
Class Method Details
.credit_notes_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
39 40 41 |
# File 'lib/chargebee/models/credit_note.rb', line 39 def self.credit_notes_for_customer(id, params={}, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"credit_notes"), params, env, headers) end |