Sha256: 339c77561dbd047f9feba35d3d8cccd3462843d5a70b25ea217515e5afa838d7

Contents?: true

Size: 492 Bytes

Versions: 13

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true

require_relative '../operation'

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

        private

        def operate
          response_to_operation_result(
            response: client.post(
              path: ledger_resource_type_for_path,
              payload: serializer.serialize(resource: resource)
            )
          )
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-2.0.0 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/operation/create.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/operation/create.rb