Class: Workarea::GlobalE::Api::UpdateOrderStatus

Inherits:
Object
  • Object
show all
Defined in:
app/services/workarea/global_e/api/update_order_status.rb

Defined Under Namespace

Classes: Canceled

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order, merchant_order) ⇒ UpdateOrderStatus

Returns a new instance of UpdateOrderStatus.



7
8
9
10
# File 'app/services/workarea/global_e/api/update_order_status.rb', line 7

def initialize(order, merchant_order)
  @order = order
  @merchant_order = merchant_order
end

Instance Attribute Details

#merchant_orderObject (readonly)

Returns the value of attribute merchant_order.



5
6
7
# File 'app/services/workarea/global_e/api/update_order_status.rb', line 5

def merchant_order
  @merchant_order
end

#orderObject (readonly)

Returns the value of attribute order.



5
6
7
# File 'app/services/workarea/global_e/api/update_order_status.rb', line 5

def order
  @order
end

Instance Method Details

#responseObject



12
13
14
15
16
17
18
# File 'app/services/workarea/global_e/api/update_order_status.rb', line 12

def response
  @response ||=
    begin
      klass.perform(order)
      Merchant::ResponseInfo.new(order: order)
    end
end