Class: Mollie::Invoice
Defined Under Namespace
Classes: Line
Constant Summary collapse
- STATUS_OPEN =
'open'.freeze
- STATUS_PAID =
'paid'.freeze
- STATUS_OVERDUE =
'overdue'.freeze
Instance Attribute Summary collapse
-
#_links ⇒ Object
(also: #links)
Returns the value of attribute _links.
-
#due_at ⇒ Object
Returns the value of attribute due_at.
-
#gross_amount ⇒ Object
Returns the value of attribute gross_amount.
-
#id ⇒ Object
Returns the value of attribute id.
-
#issued_at ⇒ Object
Returns the value of attribute issued_at.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#net_amount ⇒ Object
Returns the value of attribute net_amount.
-
#paid_at ⇒ Object
Returns the value of attribute paid_at.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#status ⇒ Object
Returns the value of attribute status.
-
#vat_amount ⇒ Object
Returns the value of attribute vat_amount.
-
#vat_number ⇒ Object
Returns the value of attribute vat_number.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update
Constructor Details
This class inherits a constructor from Mollie::Base
Instance Attribute Details
#_links ⇒ Object Also known as: links
Returns the value of attribute _links.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def _links @_links end |
#due_at ⇒ Object
Returns the value of attribute due_at.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def due_at @due_at end |
#gross_amount ⇒ Object
Returns the value of attribute gross_amount.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def gross_amount @gross_amount end |
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def id @id end |
#issued_at ⇒ Object
Returns the value of attribute issued_at.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def issued_at @issued_at end |
#lines ⇒ Object
Returns the value of attribute lines.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def lines @lines end |
#net_amount ⇒ Object
Returns the value of attribute net_amount.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def net_amount @net_amount end |
#paid_at ⇒ Object
Returns the value of attribute paid_at.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def paid_at @paid_at end |
#reference ⇒ Object
Returns the value of attribute reference.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def reference @reference end |
#status ⇒ Object
Returns the value of attribute status.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def status @status end |
#vat_amount ⇒ Object
Returns the value of attribute vat_amount.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def vat_amount @vat_amount end |
#vat_number ⇒ Object
Returns the value of attribute vat_number.
15 16 17 |
# File 'lib/mollie/invoice.rb', line 15 def vat_number @vat_number end |
Instance Method Details
#open? ⇒ Boolean
30 31 32 |
# File 'lib/mollie/invoice.rb', line 30 def open? status == STATUS_OPEN end |
#overdue? ⇒ Boolean
38 39 40 |
# File 'lib/mollie/invoice.rb', line 38 def overdue? status == STATUS_OVERDUE end |
#paid? ⇒ Boolean
34 35 36 |
# File 'lib/mollie/invoice.rb', line 34 def paid? status == STATUS_PAID end |
#pdf ⇒ Object
74 75 76 |
# File 'lib/mollie/invoice.rb', line 74 def pdf Util.extract_url(links, 'pdf') end |