Class: EShipper::Order

Inherits:
EShipperResponse show all
Defined in:
lib/eshipper/classes/order.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.search(options = {}) ⇒ Object



5
6
7
8
# File 'lib/eshipper/classes/order.rb', line 5

def self.search(options = {})
  orders = SearchReply.search(options).OrderSearchReply.Order
  orders.is_a?(Array) ? orders : [orders]
end

Instance Method Details

#fetchObject



10
11
12
# File 'lib/eshipper/classes/order.rb', line 10

def fetch
  OrderInformationReply.fetch(order_id: self.Id).OrderInformationReply
end