Module: Mercadolibre::Core::Money

Included in:
Api
Defined in:
lib/mercadolibre/core/money.rb

Instance Method Summary collapse

Instance Method Details

#get_collection(collection_id) ⇒ Object



4
5
6
7
8
# File 'lib/mercadolibre/core/money.rb', line 4

def get_collection(collection_id)
  filters = { access_token: @access_token }

  get_request("/collections/#{collection_id}", filters).body
end

#get_payment(payment_id) ⇒ Object



10
11
12
# File 'lib/mercadolibre/core/money.rb', line 10

def get_payment(payment_id)
  get_request("/payments/#{payment_id}", { access_token: @access_token }).body
end

#get_user_mercadopago_balance(user_id) ⇒ Object



14
15
16
17
18
# File 'lib/mercadolibre/core/money.rb', line 14

def get_user_mercadopago_balance(user_id)
  params = { access_token: @access_token }

  get_request("/users/#{user_id}/mercadopago_account/balance", params).body
end