Class: IngramMicro::SalesOrderRejection
Instance Attribute Summary
#hash
Instance Method Summary
collapse
#==, #initialize, #transaction_name
Instance Method Details
#customer_id ⇒ Object
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
|
#detail ⇒ Object
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
|
17
18
19
20
|
# File 'lib/ingram_micro/inbound_elements/sales_order_rejection.rb', line 17
def
= hash['message']['sales_order_rejection']['header']['order_header']
IngramMicro::InboundOrderHeader.new()
end
|
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
|
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
|