Sha256: b7d770679591805ecad45e650168b29f9fc0be5c28a1c006b5a32b6dbb6ab3eb

Contents?: true

Size: 631 Bytes

Versions: 4

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true

require_relative '../operation'

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module Operation
        class SparseUpdate
          include QuickBooksOnline::Operation::Mixin

          private

          def operate
            response = adaptor.post(
              resource: quickbooks_online_resource_type,
              payload: merged_serializer.to_ledger_hash
            )

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.3.2 lib/ledger_sync/adaptors/quickbooks_online/operation/sparse_update.rb
ledger_sync-1.3.1 lib/ledger_sync/adaptors/quickbooks_online/operation/sparse_update.rb
ledger_sync-1.1.3 lib/ledger_sync/adaptors/quickbooks_online/operation/sparse_update.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/quickbooks_online/operation/sparse_update.rb