Class: ChargeBee::CreditNote
- Defined in:
- lib/chargebee/models/credit_note.rb
Defined Under Namespace
Classes: Allocation, BillingAddress, Discount, Einvoice, LineItem, LineItemAddress, LineItemDiscount, LineItemTax, LineItemTier, LinkedRefund, ShippingAddress, SiteDetailsAtCreation, Tax, TaxOrigin
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.
-
#billing_address ⇒ Object
Returns the value of attribute billing_address.
-
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#create_reason_code ⇒ Object
Returns the value of attribute create_reason_code.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#date ⇒ Object
Returns the value of attribute date.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#discounts ⇒ Object
Returns the value of attribute discounts.
-
#einvoice ⇒ Object
Returns the value of attribute einvoice.
-
#fractional_correction ⇒ Object
Returns the value of attribute fractional_correction.
-
#generated_at ⇒ Object
Returns the value of attribute generated_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#line_item_addresses ⇒ Object
Returns the value of attribute line_item_addresses.
-
#line_item_discounts ⇒ Object
Returns the value of attribute line_item_discounts.
-
#line_item_taxes ⇒ Object
Returns the value of attribute line_item_taxes.
-
#line_item_tiers ⇒ Object
Returns the value of attribute line_item_tiers.
-
#line_items ⇒ Object
Returns the value of attribute line_items.
-
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
-
#local_currency_code ⇒ Object
Returns the value of attribute local_currency_code.
-
#local_currency_exchange_rate ⇒ Object
Returns the value of attribute local_currency_exchange_rate.
-
#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.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#round_off_amount ⇒ Object
Returns the value of attribute round_off_amount.
-
#shipping_address ⇒ Object
Returns the value of attribute shipping_address.
-
#site_details_at_creation ⇒ Object
Returns the value of attribute site_details_at_creation.
-
#status ⇒ Object
Returns the value of attribute status.
-
#sub_total ⇒ Object
Returns the value of attribute sub_total.
-
#sub_total_in_local_currency ⇒ Object
Returns the value of attribute sub_total_in_local_currency.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#tax_category ⇒ Object
Returns the value of attribute tax_category.
-
#tax_origin ⇒ Object
Returns the value of attribute tax_origin.
-
#taxes ⇒ Object
Returns the value of attribute taxes.
-
#total ⇒ Object
Returns the value of attribute total.
-
#total_in_local_currency ⇒ Object
Returns the value of attribute total_in_local_currency.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#vat_number ⇒ Object
Returns the value of attribute vat_number.
-
#vat_number_prefix ⇒ Object
Returns the value of attribute vat_number_prefix.
-
#voided_at ⇒ Object
Returns the value of attribute voided_at.
Class Method Summary collapse
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .credit_notes_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
- .delete(id, params = {}, env = nil, headers = {}) ⇒ Object
- .download_einvoice(id, env = nil, headers = {}) ⇒ Object
- .import_credit_note(params, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .pdf(id, params = {}, env = nil, headers = {}) ⇒ Object
- .record_refund(id, params, env = nil, headers = {}) ⇒ Object
- .refund(id, params = {}, env = nil, headers = {}) ⇒ Object
- .remove_tax_withheld_refund(id, params, env = nil, headers = {}) ⇒ Object
- .resend_einvoice(id, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .send_einvoice(id, env = nil, headers = {}) ⇒ Object
- .void_credit_note(id, 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
#allocations ⇒ Object
Returns the value of attribute allocations.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def allocations @allocations end |
#amount_allocated ⇒ Object
Returns the value of attribute amount_allocated.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def amount_allocated @amount_allocated end |
#amount_available ⇒ Object
Returns the value of attribute amount_available.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def amount_available @amount_available end |
#amount_refunded ⇒ Object
Returns the value of attribute amount_refunded.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def amount_refunded @amount_refunded end |
#billing_address ⇒ Object
Returns the value of attribute billing_address.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def billing_address @billing_address end |
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def business_entity_id @business_entity_id end |
#channel ⇒ Object
Returns the value of attribute channel.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def channel @channel end |
#create_reason_code ⇒ Object
Returns the value of attribute create_reason_code.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def create_reason_code @create_reason_code end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def currency_code @currency_code end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def customer_id @customer_id end |
#date ⇒ Object
Returns the value of attribute date.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def date @date end |
#deleted ⇒ Object
Returns the value of attribute deleted.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def deleted @deleted end |
#discounts ⇒ Object
Returns the value of attribute discounts.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def discounts @discounts end |
#einvoice ⇒ Object
Returns the value of attribute einvoice.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def einvoice @einvoice end |
#fractional_correction ⇒ Object
Returns the value of attribute fractional_correction.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def fractional_correction @fractional_correction end |
#generated_at ⇒ Object
Returns the value of attribute generated_at.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def generated_at @generated_at end |
#id ⇒ Object
Returns the value of attribute id.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def id @id end |
#line_item_addresses ⇒ Object
Returns the value of attribute line_item_addresses.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def line_item_addresses @line_item_addresses end |
#line_item_discounts ⇒ Object
Returns the value of attribute line_item_discounts.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def line_item_discounts @line_item_discounts end |
#line_item_taxes ⇒ Object
Returns the value of attribute line_item_taxes.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def line_item_taxes @line_item_taxes end |
#line_item_tiers ⇒ Object
Returns the value of attribute line_item_tiers.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def line_item_tiers @line_item_tiers end |
#line_items ⇒ Object
Returns the value of attribute line_items.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def line_items @line_items end |
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def linked_refunds @linked_refunds end |
#local_currency_code ⇒ Object
Returns the value of attribute local_currency_code.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def local_currency_code @local_currency_code end |
#local_currency_exchange_rate ⇒ Object
Returns the value of attribute local_currency_exchange_rate.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def local_currency_exchange_rate @local_currency_exchange_rate end |
#price_type ⇒ Object
Returns the value of attribute price_type.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def price_type @price_type end |
#reason_code ⇒ Object
Returns the value of attribute reason_code.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def reason_code @reason_code end |
#reference_invoice_id ⇒ Object
Returns the value of attribute reference_invoice_id.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def reference_invoice_id @reference_invoice_id end |
#refunded_at ⇒ Object
Returns the value of attribute refunded_at.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def refunded_at @refunded_at end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def resource_version @resource_version end |
#round_off_amount ⇒ Object
Returns the value of attribute round_off_amount.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def round_off_amount @round_off_amount end |
#shipping_address ⇒ Object
Returns the value of attribute shipping_address.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def shipping_address @shipping_address end |
#site_details_at_creation ⇒ Object
Returns the value of attribute site_details_at_creation.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def site_details_at_creation @site_details_at_creation end |
#status ⇒ Object
Returns the value of attribute status.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def status @status end |
#sub_total ⇒ Object
Returns the value of attribute sub_total.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def sub_total @sub_total end |
#sub_total_in_local_currency ⇒ Object
Returns the value of attribute sub_total_in_local_currency.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def sub_total_in_local_currency @sub_total_in_local_currency end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def subscription_id @subscription_id end |
#tax_category ⇒ Object
Returns the value of attribute tax_category.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def tax_category @tax_category end |
#tax_origin ⇒ Object
Returns the value of attribute tax_origin.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def tax_origin @tax_origin end |
#taxes ⇒ Object
Returns the value of attribute taxes.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def taxes @taxes end |
#total ⇒ Object
Returns the value of attribute total.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def total @total end |
#total_in_local_currency ⇒ Object
Returns the value of attribute total_in_local_currency.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def total_in_local_currency @total_in_local_currency end |
#type ⇒ Object
Returns the value of attribute type.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def updated_at @updated_at end |
#vat_number ⇒ Object
Returns the value of attribute vat_number.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def vat_number @vat_number end |
#vat_number_prefix ⇒ Object
Returns the value of attribute vat_number_prefix.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def vat_number_prefix @vat_number_prefix end |
#voided_at ⇒ Object
Returns the value of attribute voided_at.
60 61 62 |
# File 'lib/chargebee/models/credit_note.rb', line 60 def voided_at @voided_at end |
Class Method Details
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
72 73 74 75 76 |
# File 'lib/chargebee/models/credit_note.rb', line 72 def self.create(params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys) end |
.credit_notes_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
120 121 122 123 124 |
# File 'lib/chargebee/models/credit_note.rb', line 120 def self.credit_notes_for_customer(id, params={}, env=nil, headers={}) jsonKeys = { } Request.send('get', uri_path("customers",id.to_s,"credit_notes"), params, env, headers,nil, false, jsonKeys) end |
.delete(id, params = {}, env = nil, headers = {}) ⇒ Object
126 127 128 129 130 |
# File 'lib/chargebee/models/credit_note.rb', line 126 def self.delete(id, params={}, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys) end |
.download_einvoice(id, env = nil, headers = {}) ⇒ Object
90 91 92 93 94 |
# File 'lib/chargebee/models/credit_note.rb', line 90 def self.download_einvoice(id, env=nil, headers={}) jsonKeys = { } Request.send('get', uri_path("credit_notes",id.to_s,"download_einvoice"), {}, env, headers,nil, false, jsonKeys) end |
.import_credit_note(params, env = nil, headers = {}) ⇒ Object
150 151 152 153 154 |
# File 'lib/chargebee/models/credit_note.rb', line 150 def self.import_credit_note(params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes","import_credit_note"), params, env, headers,nil, false, jsonKeys) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
114 115 116 117 118 |
# File 'lib/chargebee/models/credit_note.rb', line 114 def self.list(params={}, env=nil, headers={}) jsonKeys = { } Request.send_list_request('get', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys) end |
.pdf(id, params = {}, env = nil, headers = {}) ⇒ Object
84 85 86 87 88 |
# File 'lib/chargebee/models/credit_note.rb', line 84 def self.pdf(id, params={}, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys) end |
.record_refund(id, params, env = nil, headers = {}) ⇒ Object
102 103 104 105 106 |
# File 'lib/chargebee/models/credit_note.rb', line 102 def self.record_refund(id, params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"record_refund"), params, env, headers,nil, false, jsonKeys) end |
.refund(id, params = {}, env = nil, headers = {}) ⇒ Object
96 97 98 99 100 |
# File 'lib/chargebee/models/credit_note.rb', line 96 def self.refund(id, params={}, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"refund"), params, env, headers,nil, false, jsonKeys) end |
.remove_tax_withheld_refund(id, params, env = nil, headers = {}) ⇒ Object
132 133 134 135 136 |
# File 'lib/chargebee/models/credit_note.rb', line 132 def self.remove_tax_withheld_refund(id, params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"remove_tax_withheld_refund"), params, env, headers,nil, false, jsonKeys) end |
.resend_einvoice(id, env = nil, headers = {}) ⇒ Object
138 139 140 141 142 |
# File 'lib/chargebee/models/credit_note.rb', line 138 def self.resend_einvoice(id, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"resend_einvoice"), {}, env, headers,nil, false, jsonKeys) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
78 79 80 81 82 |
# File 'lib/chargebee/models/credit_note.rb', line 78 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } Request.send('get', uri_path("credit_notes",id.to_s), {}, env, headers,nil, false, jsonKeys) end |
.send_einvoice(id, env = nil, headers = {}) ⇒ Object
144 145 146 147 148 |
# File 'lib/chargebee/models/credit_note.rb', line 144 def self.send_einvoice(id, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"send_einvoice"), {}, env, headers,nil, false, jsonKeys) end |
.void_credit_note(id, params = {}, env = nil, headers = {}) ⇒ Object
108 109 110 111 112 |
# File 'lib/chargebee/models/credit_note.rb', line 108 def self.void_credit_note(id, params={}, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("credit_notes",id.to_s,"void"), params, env, headers,nil, false, jsonKeys) end |