Class: Hcp::Job::Invoice
- Defined in:
- lib/hcp/resources/job/invoice.rb
Overview
A bill raised for a job.
Class Method Summary collapse
-
.key ⇒ Object
What Housecall Pro calls a list of them.
Instance Method Summary collapse
-
#amount ⇒ BigDecimal?
The amount, which Housecall Pro counts in cents.
-
#due_amount ⇒ BigDecimal?
The due_amount, which Housecall Pro counts in cents.
-
#invoice_number ⇒ String?
The invoice_number, as Housecall Pro answers it.
- #paid_at ⇒ Time?
- #sent_at ⇒ Time?
- #status ⇒ String?
Methods inherited from Resource
amount, attribute, #id, #initialize, timestamp
Constructor Details
This class inherits a constructor from Hcp::Resource
Class Method Details
.key ⇒ Object
What Housecall Pro calls a list of them.
5 |
# File 'lib/hcp/resources/job/invoice.rb', line 5 def self.key = 'invoices' |
Instance Method Details
#amount ⇒ BigDecimal?
Returns the amount, which Housecall Pro counts in cents.
12 |
# File 'lib/hcp/resources/job/invoice.rb', line 12 amount :amount |
#due_amount ⇒ BigDecimal?
Returns the due_amount, which Housecall Pro counts in cents.
13 |
# File 'lib/hcp/resources/job/invoice.rb', line 13 amount :due_amount |
#invoice_number ⇒ String?
Returns the invoice_number, as Housecall Pro answers it.
7 |
# File 'lib/hcp/resources/job/invoice.rb', line 7 attribute :invoice_number |
#paid_at ⇒ Time?
19 |
# File 'lib/hcp/resources/job/invoice.rb', line 19 :paid_at |
#sent_at ⇒ Time?
16 |
# File 'lib/hcp/resources/job/invoice.rb', line 16 :sent_at |
#status ⇒ String?
10 |
# File 'lib/hcp/resources/job/invoice.rb', line 10 attribute :status |