Class: Gillbus::GetOrderStatus::Request

Inherits:
BaseRequest show all
Defined in:
lib/gillbus/get_order_status.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

#order_numberObject

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



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

def order_number
  @order_number
end

Instance Method Details

#paramsObject



12
13
14
15
16
# File 'lib/gillbus/get_order_status.rb', line 12

def params
  compact(
    orderNumber: order_number.is_a?(Array) ? order_number.join(';') : order_number,
  )
end

#pathObject



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

def path; '/online2/getOrderStatus' end