Class: PlentyClient::Order::Date
- Inherits:
-
Object
- Object
- PlentyClient::Order::Date
show all
- Extended by:
- Endpoint, Request
- Defined in:
- lib/plenty_client/order/date.rb
Constant Summary
collapse
- LIST_ORDER_DATE_TYPE_NAMES =
'/orders/dates/types/{typeId}/names'.freeze
- FIND_ORDER_DATE_TYPE_NAME =
'/orders/dates/types/{typeId}/names/{lang}'.freeze
- LIST_ORDER_DATES =
'/orders/{orderId}/dates'.freeze
- FIND_ORDER_DATE =
'/orders/{orderId}/dates/{typeId}'.freeze
Class Method Summary
collapse
-
.find(order_id, type_id, headers = {}, &block) ⇒ Object
-
.find_date_type_name(type_id, lang, headers = {}, &block) ⇒ Object
-
.list(currency_iso, headers = {}, &block) ⇒ Object
-
.list_date_type_names(type_id, headers = {}, &block) ⇒ Object
Methods included from Endpoint
build_endpoint, routes
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.find(order_id, type_id, headers = {}, &block) ⇒ Object
25
26
27
|
# File 'lib/plenty_client/order/date.rb', line 25
def find(order_id, type_id, = {}, &block)
get(build_endpoint(FIND_ORDER_DATE, order: order_id, type: type_id), , &block)
end
|
.find_date_type_name(type_id, lang, headers = {}, &block) ⇒ Object
17
18
19
|
# File 'lib/plenty_client/order/date.rb', line 17
def find_date_type_name(type_id, lang, = {}, &block)
get(build_endpoint(FIND_ORDER_DATE_TYPE_NAME, type: type_id, lang: lang), , &block)
end
|
.list(currency_iso, headers = {}, &block) ⇒ Object
21
22
23
|
# File 'lib/plenty_client/order/date.rb', line 21
def list(currency_iso, = {}, &block)
get(build_endpoint(LIST_ORDER_DATES, order: order_id), , &block)
end
|
.list_date_type_names(type_id, headers = {}, &block) ⇒ Object
13
14
15
|
# File 'lib/plenty_client/order/date.rb', line 13
def list_date_type_names(type_id, = {}, &block)
get(build_endpoint(LIST_ORDER_DATE_TYPE_NAMES, type: type_id), , &block)
end
|