Sha256: c459d5598c9ed141729992666e8560b69b8cbbae5f8839e5dd3bacda48d7d314

Contents?: true

Size: 724 Bytes

Versions: 29

Compression:

Stored size: 724 Bytes

Contents

module Myfinance
  module Resources
    #
    # A wrapper to Myfinance receivable accounts API
    #
    # [API]
    #   Documentation: https://app.myfinance.com.br/docs/api/receivable_accounts
    #
    class ReceivableAccount < FinancialAccount

      private

      def endpoints
        default_endpoints.merge({
          receive: '/entities/:entity_id/receivable_accounts/:id/receive',
          undo_receivement: '/entities/:entity_id/receivable_accounts/:id/undo_receivement',
        })
      end

      def pay_or_receive_method
        'receive'
      end

      def undo_payment_or_receivement
        'undo_receivement'
      end

      def resource_key
        'receivable_account'
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

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