Sha256: 02889e21b054d1303238045d8759691f7ddbae161f609d93f96026bed1ff371f

Contents?: true

Size: 498 Bytes

Versions: 5

Compression:

Stored size: 498 Bytes

Contents

require 'netsuite_api/base'
require 'netsuite_api/concerns/request_handler'
require 'netsuite_api/concerns/response_handler'

module NetsuiteApi
  class CreditMemo < Base
    include Concerns::RequestHandler
    include Concerns::ResponseHandler

    PATH = "creditMemo"

    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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netsuite_api-0.1.4 lib/netsuite_api/credit_memo.rb
netsuite_api-0.1.3 lib/netsuite_api/credit_memo.rb
netsuite_api-0.1.2 lib/netsuite_api/credit_memo.rb
netsuite_api-0.1.1 lib/netsuite_api/credit_memo.rb
netsuite_api-0.1.0 lib/netsuite_api/credit_memo.rb