Class: PlentyClient::Order::Currency
- Inherits:
-
Object
- Object
- PlentyClient::Order::Currency
- Defined in:
- lib/plenty_client/order/currency.rb
Constant Summary collapse
- LIST_CURRENCIES =
'/orders/currencies'
- FIND_CURRENCY_ISO =
'/orders/currencies/{currencyIso}'
- FIND_COUNTRIES_FOR_CURRENCY =
'/orders/currencies/{currencyIso}/countries'
- FIND_CURRENCY_FOR_COUNTRY =
'/orders/currencies/countries/{countryId}'
Class Method Summary collapse
- .find(currency_iso, headers = {}, &block) ⇒ Object
- .find_countries(currency_iso, headers = {}, &block) ⇒ Object
- .find_currency(country_id, headers = {}, &block) ⇒ Object
- .list(headers = {}, &block) ⇒ Object
Methods included from Request
Methods included from Endpoint
Class Method Details
.find(currency_iso, headers = {}, &block) ⇒ Object
19 20 21 |
# 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) ⇒ Object
23 24 25 |
# 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) ⇒ Object
27 28 29 |
# 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) ⇒ Object
15 16 17 |
# File 'lib/plenty_client/order/currency.rb', line 15 def list(headers = {}, &block) get(build_endpoint(LIST_CURRENCIES), headers, &block) end |