Class: NetsuiteApi::CreditMemo
- Defined in:
- lib/netsuite_api/credit_memo.rb
Constant Summary collapse
- PATH =
"creditMemo"
Instance Attribute Summary
Attributes inherited from Base
#account_id, #consumer_key, #netsuite_host, #token
Instance Method Summary collapse
Methods included from NetsuiteApi::Concerns::ResponseHandler
#delete_response_handler, #error_handler, #get_response_handler, #post_and_patch_response_handler
Methods included from NetsuiteApi::Concerns::RequestHandler
#delete, #get, #query, #update
Methods inherited from Base
Constructor Details
This class inherits a constructor from NetsuiteApi::Base
Instance Method Details
#create(invoice_id, params) ⇒ Object
12 13 14 15 |
# File 'lib/netsuite_api/credit_memo.rb', line 12 def create(invoice_id, params) response = request("invoice/#{invoice_id}/!transform/#{PATH}", body: params, method: :post, host_type: :netsuite_host) post_and_patch_response_handler(response) end |