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(options = {}) ⇒ Object
- #payment(options = {}) ⇒ Object
- #remind(options = {}) ⇒ Object
- #resend(options = {}) ⇒ Object
- #sell ⇒ Object
- #send!(options = {}) ⇒ Object
- #writeoff(options = {}) ⇒ Object
Methods inherited from Resource
build_objects, create, #delete, delete, endpoint, fetch, #initialize, perform_request, relation, relations, search, 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 @attachment 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
56 57 58 |
# File 'lib/billogram/resources/invoice.rb', line 56 def attach( = {}) perform_request("#{endpoint}/#{id}/command/attach", :post, ) end |
#collect ⇒ Object
23 24 25 |
# File 'lib/billogram/resources/invoice.rb', line 23 def collect perform_request("#{endpoint}/#{id}/command/collect", :post) end |
#credit(options = {}) ⇒ Object
48 49 50 |
# File 'lib/billogram/resources/invoice.rb', line 48 def credit( = {}) perform_request("#{endpoint}/#{id}/command/credit", :post, ) end |
#message(options = {}) ⇒ Object
52 53 54 |
# File 'lib/billogram/resources/invoice.rb', line 52 def ( = {}) perform_request("#{endpoint}/#{id}/command/message", :post, ) end |
#payment(options = {}) ⇒ Object
44 45 46 |
# File 'lib/billogram/resources/invoice.rb', line 44 def payment( = {}) perform_request("#{endpoint}/#{id}/command/payment", :post, ) end |
#remind(options = {}) ⇒ Object
40 41 42 |
# File 'lib/billogram/resources/invoice.rb', line 40 def remind( = {}) perform_request("#{endpoint}/#{id}/command/remind", :post, ) end |
#resend(options = {}) ⇒ Object
36 37 38 |
# File 'lib/billogram/resources/invoice.rb', line 36 def resend( = {}) perform_request("#{endpoint}/#{id}/command/resend", :post, ) end |
#sell ⇒ Object
19 20 21 |
# File 'lib/billogram/resources/invoice.rb', line 19 def sell perform_request("#{endpoint}/#{id}/command/send", :post) end |
#send!(options = {}) ⇒ Object
31 32 33 34 |
# File 'lib/billogram/resources/invoice.rb', line 31 def send!( = {}) # https://billogram.com/api/documentation#billogram_call_send perform_request("#{endpoint}/#{id}/command/send", :post, ) end |
#writeoff(options = {}) ⇒ Object
27 28 29 |
# File 'lib/billogram/resources/invoice.rb', line 27 def writeoff( = {}) perform_request("#{endpoint}/#{id}/command/writeoff", :post) end |