Class: IngramMicro::ReturnAuthorizationOrderHeader
- Inherits:
-
BaseElement
- Object
- BaseElement
- IngramMicro::ReturnAuthorizationOrderHeader
- Defined in:
- lib/ingram_micro/elements/return_authorization_order_header.rb
Constant Summary collapse
- DEFAULTS =
{ customer_order_number: nil, brightpoint_order_number: nil, order_reference: nil, customer_order_date: nil, order_sub_total: 0.0 , order_discount: 0.0, order_tax1: 0.0, order_tax2: 0.0, order_tax3: 0.0, order_shipment_charge: 0.0 , order_total_net: 0.0 , order_status: nil, order_type: nil, return_request_expiration_date: nil }
Instance Attribute Summary
Attributes inherited from BaseElement
Instance Method Summary collapse
Methods inherited from BaseElement
#build, #initialize, #integer?, #parse
Constructor Details
This class inherits a constructor from IngramMicro::BaseElement
Instance Method Details
#defaults ⇒ Object
20 21 22 |
# File 'lib/ingram_micro/elements/return_authorization_order_header.rb', line 20 def defaults DEFAULTS end |
#use_current_date? ⇒ Boolean
24 25 26 27 28 |
# File 'lib/ingram_micro/elements/return_authorization_order_header.rb', line 24 def use_current_date? if @element[:customer_order_date].nil? @element[:customer_order_date] = DateTime.now.strftime("%Y%m%d") end end |