Sha256: a4147c844aa2fbb5d1b9f1ff4f42d6d17ae29339e68a54a2a9e293f70fefbb78

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 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
            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

2 entries across 2 versions & 1 rubygems

Version Path
ledger_sync-1.3.2 lib/ledger_sync/adaptors/quickbooks_online/operation/create.rb
ledger_sync-1.3.1 lib/ledger_sync/adaptors/quickbooks_online/operation/create.rb