Class: GlobalCollect::Requests::GetOrderStatus

Inherits:
Simple
  • Object
show all
Defined in:
lib/global_collect/requests/get_order_status.rb

Instance Attribute Summary

Attributes inherited from Base

#action, #version

Instance Method Summary collapse

Methods inherited from Simple

#to_xml

Methods inherited from Base

#default_xml_encoding_options, #to_xml

Constructor Details

#initialize(order_id) ⇒ GetOrderStatus

WDL §5.23



4
5
6
# File 'lib/global_collect/requests/get_order_status.rb', line 4

def initialize(order_id)
  super("GET_ORDERSTATUS", { "ORDERID" => order_id })
end

Instance Method Details

#fieldsObject



18
19
20
21
22
# File 'lib/global_collect/requests/get_order_status.rb', line 18

def fields
  {
    "ORDERID" => ["N10", "R"]
  }
end

#suggested_response_mixinsObject



8
9
10
11
12
13
14
# File 'lib/global_collect/requests/get_order_status.rb', line 8

def suggested_response_mixins
  case self.version
  when "1.0" then [GlobalCollect::Responses::GetOrderStatus::V1ResponseMethods]
  when "2.0" then [GlobalCollect::Responses::GetOrderStatus::V2ResponseMethods]
  else []
  end
end

#wrapperObject



16
# File 'lib/global_collect/requests/get_order_status.rb', line 16

def wrapper; "ORDER"; end