Class: Gillbus::FindOrder::Request

Inherits:
BaseRequest show all
Defined in:
lib/gillbus/find_order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseRequest

#initialize, #method

Constructor Details

This class inherits a constructor from Gillbus::BaseRequest

Instance Attribute Details

#localeObject

Язык формирования данных.



17
18
19
# File 'lib/gillbus/find_order.rb', line 17

def locale
  @locale
end

#order_idObject

orderId Уникальный ИД заказа, переданный при отложенной продаже.



10
11
12
# File 'lib/gillbus/find_order.rb', line 10

def order_id
  @order_id
end

#order_numberObject

orderNumber Номер заказа полученный при создании отложенной продажи.



14
15
16
# File 'lib/gillbus/find_order.rb', line 14

def order_number
  @order_number
end

Instance Method Details

#paramsObject



19
20
21
22
23
24
25
# File 'lib/gillbus/find_order.rb', line 19

def params
  compact(
    orderId: order_id,
    orderNumber: order_number,
    locale: translated_locale(locale),
  )
end

#pathObject



6
# File 'lib/gillbus/find_order.rb', line 6

def path; '/online2/findOrder' end