Class: Epics::FUL

Inherits:
GenericUploadRequest show all
Defined in:
lib/epics/ful.rb

Instance Attribute Summary

Attributes inherited from GenericUploadRequest

#document, #iv, #key

Attributes inherited from GenericRequest

#client, #options, #transaction_id

Instance Method Summary collapse

Methods inherited from GenericUploadRequest

#body, #cipher, #digester, #encrypt, #encrypted_order_data, #encrypted_order_signature, #initialize, #order_signature, #pad, #signature_value

Methods inherited from GenericRequest

#auth_signature, #body, #initialize, #nonce, #root, #timestamp, #to_receipt_xml, #to_transfer_xml, #to_xml

Constructor Details

This class inherits a constructor from Epics::GenericUploadRequest

Instance Method Details

#headerObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/epics/ful.rb', line 4

def header
  ful_order_params = Hash.new.tap do |params|
    params[:FileFormat] = options[:file_format]
  end

  client.header_request.build(
    nonce: nonce,
    timestamp: timestamp,
    order_type: 'FUL',
    order_attribute: 'DZHNN',
    custom_order_params: { FULOrderParams: ful_order_params },
    mutable: { TransactionPhase: 'Initialisation' }
  )
end