Sha256: 842f8263128bbc880912e8cd729d37cdd2e1422caa833e1e0648a62a4aa5799b

Contents?: true

Size: 615 Bytes

Versions: 5

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

require_relative '../operation'

module LedgerSync
  module Adaptors
    module NetSuiteSOAP
      module Operation
        class Create
          include NetSuiteSOAP::Operation::Mixin

          private

          def operate
            response = adaptor.post(
              resource: netsuite_online_resource_type,
              payload: ledger_serializer.to_ledger_hash
            )

            success(
              resource: ledger_serializer.deserialize(hash: response),
              response: response
            )
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/netsuite_soap/operation/create.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/netsuite_soap/operation/create.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/netsuite_soap/operation/create.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/netsuite_soap/operation/create.rb
ledger_sync-1.3.1 lib/ledger_sync/adaptors/netsuite_soap/operation/create.rb