class PlentyClient::Order::Currency

Constants

FIND_COUNTRIES_FOR_CURRENCY
FIND_CURRENCY_FOR_COUNTRY
FIND_CURRENCY_ISO
LIST_CURRENCIES

Public Class Methods

find(currency_iso, headers = {}, &block) click to toggle source
# File lib/plenty_client/order/currency.rb, line 19
def find(currency_iso, headers = {}, &block)
  get(build_endpoint(FIND_CURRENCY_ISO, currency: currency_iso), headers, &block)
end
find_countries(currency_iso, headers = {}, &block) click to toggle source
# File lib/plenty_client/order/currency.rb, line 23
def find_countries(currency_iso, headers = {}, &block)
  get(build_endpoint(FIND_COUNTRIES_FOR_CURRENCY, currency: currency_iso), headers, &block)
end
find_currency(country_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/order/currency.rb, line 27
def find_currency(country_id, headers = {}, &block)
  get(build_endpoint(FIND_CURRENCY_FOR_COUNTRY, country: country_id), headers, &block)
end
list(headers = {}, &block) click to toggle source
# File lib/plenty_client/order/currency.rb, line 15
def list(headers = {}, &block)
  get(build_endpoint(LIST_CURRENCIES), headers, &block)
end