Class: Fakturoid::Api::InvoiceMessage
- Inherits:
-
Object
- Object
- Fakturoid::Api::InvoiceMessage
show all
- Includes:
- Base
- Defined in:
- lib/fakturoid/api/invoice_message.rb
Instance Attribute Summary
Attributes included from Base
#client
Instance Method Summary
collapse
Methods included from Base
#initialize, #perform_request
Instance Method Details
#create(invoice_id, payload = {}) ⇒ Object
8
9
10
11
|
# File 'lib/fakturoid/api/invoice_message.rb', line 8
def create(invoice_id, payload = {})
Utils.validate_numerical_id(invoice_id)
perform_request(HTTP_POST, "invoices/#{invoice_id}/message.json", payload: payload)
end
|