Sha256: fa9ee1129e4172d64110aae967ad41a603c6057c39d5c4c5531a72e737ab0b02

Contents?: true

Size: 542 Bytes

Versions: 3

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

require_relative '../operation'

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

          private

          def operate
            response_to_operation_result(
              response: adaptor.post(
                path: ledger_resource_type_for_path,
                payload: ledger_serializer.to_ledger_hash
              )
            )
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/quickbooks_online/operation/create.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/quickbooks_online/operation/create.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/quickbooks_online/operation/create.rb