class Button::Merchants

www.usebutton.com/developers/api-reference/

Public Instance Methods

all(opts = {}) click to toggle source

Gets a list of available merchants

@option [String] status The status to filter by. One of ('approved',

'pending', or 'available')

@option [ISO-4217 String] currency Currency code to filter returned rates

by

@return [Button::Response] the API response

# File lib/button/resources/merchants.rb, line 15
def all(opts = {})
  query = {}
  query['status'] = opts[:status] if opts[:status]
  query['currency'] = opts[:currency] if opts[:currency]

  api_get('/v1/merchants', query)
end