Class: IngramMicro::SalesOrderRejection

Inherits:
InboundBaseElement show all
Defined in:
lib/ingram_micro/inbound_elements/sales_order_rejection.rb

Instance Attribute Summary

Attributes inherited from InboundBaseElement

#hash

Instance Method Summary collapse

Methods inherited from InboundBaseElement

#==, #initialize, #transaction_name

Constructor Details

This class inherits a constructor from IngramMicro::InboundBaseElement

Instance Method Details

#customer_idObject



3
4
5
# File 'lib/ingram_micro/inbound_elements/sales_order_rejection.rb', line 3

def customer_id
  hash['message']['sales_order_rejection']['header']['customer_id']
end

#detailObject



22
23
24
25
# File 'lib/ingram_micro/inbound_elements/sales_order_rejection.rb', line 22

def detail
  detail_hash = hash['message']['sales_order_rejection']['detail']
  IngramMicro::InboundDetail.new(detail_hash)
end

#order_headerObject



17
18
19
20
# File 'lib/ingram_micro/inbound_elements/sales_order_rejection.rb', line 17

def order_header
  order_header_hash = hash['message']['sales_order_rejection']['header']['order_header']
  IngramMicro::InboundOrderHeader.new(order_header_hash)
end

#purchase_order_informationObject



12
13
14
15
# File 'lib/ingram_micro/inbound_elements/sales_order_rejection.rb', line 12

def purchase_order_information
  purchase_order_information_hash = hash['message']['sales_order_rejection']['header']['purchase_order_information']
  IngramMicro::InboundPurchaseOrderInformation.new(purchase_order_information_hash)
end

#shipment_informationObject



7
8
9
10
# File 'lib/ingram_micro/inbound_elements/sales_order_rejection.rb', line 7

def shipment_information
  shipment_information_hash = hash['message']['sales_order_rejection']['header']['shipment_information']
  IngramMicro::InboundShipmentInformation.new(shipment_information_hash)
end