Class: Gillbus::CancelOrder::Request

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

#cancel_reasonObject

cancelReason Cancellation reason



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

def cancel_reason
  @cancel_reason
end

#order_numberObject

orderNumber The order number



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

def order_number
  @order_number
end

Instance Method Details

#paramsObject



16
17
18
19
20
21
# File 'lib/gillbus/cancel_order.rb', line 16

def params
  compact(
    orderNumber: order_number,
    cancelReason: cancel_reason,
  )
end

#pathObject



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

def path; '/online2/cancelOrder' end