Sha256: e100f462f9da5e1c13d7ea62bc2e285a95ce6d4eca8e7ae0ac3d4c2c6229ab4a

Contents?: true

Size: 553 Bytes

Versions: 19

Compression:

Stored size: 553 Bytes

Contents

module Myfinance
  module Resources
    class Reconcile < Base
      def reconcile(entity_id, financial_accounts_ids = [], financial_transactions_ids = [])
        body = { selected_financial_account_ids: financial_accounts_ids,
                 selected_financial_transaction_ids: financial_transactions_ids }

        http.post(path(entity_id), body: body) do |response|
          respond_with_collection(response)
        end
      end

      private

      def path(entity_id)
        "/entities/#{entity_id}/reconciles"
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
myfinance-1.8.2 lib/myfinance/resources/reconcile.rb
myfinance-1.8.1 lib/myfinance/resources/reconcile.rb
myfinance-1.8.0 lib/myfinance/resources/reconcile.rb
myfinance-1.7.0 lib/myfinance/resources/reconcile.rb
myfinance-1.6.6 lib/myfinance/resources/reconcile.rb
myfinance-1.6.5 lib/myfinance/resources/reconcile.rb
myfinance-1.6.4 lib/myfinance/resources/reconcile.rb
myfinance-1.6.3 lib/myfinance/resources/reconcile.rb
myfinance-1.6.1 lib/myfinance/resources/reconcile.rb
myfinance-1.6.0 lib/myfinance/resources/reconcile.rb
myfinance-1.5.0 lib/myfinance/resources/reconcile.rb
myfinance-1.4.1 lib/myfinance/resources/reconcile.rb
myfinance-1.4.0 lib/myfinance/resources/reconcile.rb
myfinance-1.3.1 lib/myfinance/resources/reconcile.rb
myfinance-1.3.0 lib/myfinance/resources/reconcile.rb
myfinance-1.2.1 lib/myfinance/resources/reconcile.rb
myfinance-1.2.0 lib/myfinance/resources/reconcile.rb
myfinance-1.1.0 lib/myfinance/resources/reconcile.rb
myfinance-1.0.0 lib/myfinance/resources/reconcile.rb