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