Class: Billogram::Invoice
- Defined in:
- lib/billogram/resources/invoice.rb
Constant Summary
Constants inherited from Resource
Instance Attribute Summary collapse
-
#attachment ⇒ Object
Returns the value of attribute attachment.
-
#attested_at ⇒ Object
Returns the value of attribute attested_at.
-
#automatic_reminders ⇒ Object
Returns the value of attribute automatic_reminders.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#delivery_method ⇒ Object
Returns the value of attribute delivery_method.
-
#detailed_sums ⇒ Object
Returns the value of attribute detailed_sums.
-
#due_date ⇒ Object
Returns the value of attribute due_date.
-
#due_days ⇒ Object
Returns the value of attribute due_days.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#id ⇒ Object
Returns the value of attribute id.
-
#interest_fee ⇒ Object
Returns the value of attribute interest_fee.
-
#interest_rate ⇒ Object
Returns the value of attribute interest_rate.
-
#invoice_date ⇒ Object
Returns the value of attribute invoice_date.
-
#invoice_fee ⇒ Object
Returns the value of attribute invoice_fee.
-
#invoice_fee_vat ⇒ Object
Returns the value of attribute invoice_fee_vat.
-
#invoice_no ⇒ Object
Returns the value of attribute invoice_no.
-
#ocr_number ⇒ Object
Returns the value of attribute ocr_number.
-
#remaining_sum ⇒ Object
Returns the value of attribute remaining_sum.
-
#reminder_count ⇒ Object
Returns the value of attribute reminder_count.
-
#reminder_fee ⇒ Object
Returns the value of attribute reminder_fee.
-
#rounding_value ⇒ Object
Returns the value of attribute rounding_value.
-
#state ⇒ Object
Returns the value of attribute state.
-
#total_sum ⇒ Object
Returns the value of attribute total_sum.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #attach(options = {}) ⇒ Object
- #collect ⇒ Object
- #credit(options = {}) ⇒ Object
- #message(message:) ⇒ Object
- #payment(amount:) ⇒ Object
- #remind(method:) ⇒ Object
- #resend(method:) ⇒ Object
- #sell ⇒ Object
- #send!(method:) ⇒ Object
- #writeoff ⇒ Object
Methods inherited from Resource
build_objects, create, delete, #delete, endpoint, #endpoint, fetch, #initialize, #perform_request, perform_request, relation, relations, search, #to_json, #update, update
Constructor Details
This class inherits a constructor from Billogram::Resource
Instance Attribute Details
#attachment ⇒ Object
Returns the value of attribute attachment.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def end |
#attested_at ⇒ Object
Returns the value of attribute attested_at.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def attested_at @attested_at end |
#automatic_reminders ⇒ Object
Returns the value of attribute automatic_reminders.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def automatic_reminders @automatic_reminders end |
#created_at ⇒ Object
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def created_at @created_at end |
#currency ⇒ Object
Returns the value of attribute currency.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def currency @currency end |
#delivery_method ⇒ Object
Returns the value of attribute delivery_method.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def delivery_method @delivery_method end |
#detailed_sums ⇒ Object
Returns the value of attribute detailed_sums.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def detailed_sums @detailed_sums end |
#due_date ⇒ Object
Returns the value of attribute due_date.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def due_date @due_date end |
#due_days ⇒ Object
Returns the value of attribute due_days.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def due_days @due_days end |
#flags ⇒ Object
Returns the value of attribute flags.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def flags @flags end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def id @id end |
#interest_fee ⇒ Object
Returns the value of attribute interest_fee.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def interest_fee @interest_fee end |
#interest_rate ⇒ Object
Returns the value of attribute interest_rate.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def interest_rate @interest_rate end |
#invoice_date ⇒ Object
Returns the value of attribute invoice_date.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def invoice_date @invoice_date end |
#invoice_fee ⇒ Object
Returns the value of attribute invoice_fee.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def invoice_fee @invoice_fee end |
#invoice_fee_vat ⇒ Object
Returns the value of attribute invoice_fee_vat.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def invoice_fee_vat @invoice_fee_vat end |
#invoice_no ⇒ Object
Returns the value of attribute invoice_no.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def invoice_no @invoice_no end |
#ocr_number ⇒ Object
Returns the value of attribute ocr_number.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def ocr_number @ocr_number end |
#remaining_sum ⇒ Object
Returns the value of attribute remaining_sum.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def remaining_sum @remaining_sum end |
#reminder_count ⇒ Object
Returns the value of attribute reminder_count.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def reminder_count @reminder_count end |
#reminder_fee ⇒ Object
Returns the value of attribute reminder_fee.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def reminder_fee @reminder_fee end |
#rounding_value ⇒ Object
Returns the value of attribute rounding_value.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def rounding_value @rounding_value end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def state @state end |
#total_sum ⇒ Object
Returns the value of attribute total_sum.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def total_sum @total_sum end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/billogram/resources/invoice.rb', line 5 def url @url end |
Instance Method Details
#attach(options = {}) ⇒ Object
57 58 59 |
# File 'lib/billogram/resources/invoice.rb', line 57 def attach( = {}) perform_request(command_path(:attach), :post, ) end |
#collect ⇒ Object
25 26 27 |
# File 'lib/billogram/resources/invoice.rb', line 25 def collect perform_request(command_path(:collect), :post) end |
#credit(options = {}) ⇒ Object
49 50 51 |
# File 'lib/billogram/resources/invoice.rb', line 49 def credit( = {}) perform_request(command_path(:credit), :post, ) end |
#message(message:) ⇒ Object
53 54 55 |
# File 'lib/billogram/resources/invoice.rb', line 53 def (message: ) perform_request(command_path(:message), :post, {message: }) end |
#payment(amount:) ⇒ Object
45 46 47 |
# File 'lib/billogram/resources/invoice.rb', line 45 def payment(amount: ) perform_request(command_path(:payment), :post, {amount: amount}) end |
#remind(method:) ⇒ Object
41 42 43 |
# File 'lib/billogram/resources/invoice.rb', line 41 def remind(method: ) perform_request(command_path(:remind), :post, {method: method}) end |
#resend(method:) ⇒ Object
37 38 39 |
# File 'lib/billogram/resources/invoice.rb', line 37 def resend(method: ) perform_request(command_path(:resend), :post, {method: method}) end |
#sell ⇒ Object
21 22 23 |
# File 'lib/billogram/resources/invoice.rb', line 21 def sell perform_request(command_path(:sell), :post) end |
#send!(method:) ⇒ Object
33 34 35 |
# File 'lib/billogram/resources/invoice.rb', line 33 def send!(method: ) perform_request(command_path(:send), :post, {method: method}) end |
#writeoff ⇒ Object
29 30 31 |
# File 'lib/billogram/resources/invoice.rb', line 29 def writeoff perform_request(command_path(:writeoff), :post) end |