Sha256: ce9e37ba88839ed385d4bc23f35b5cc4101a2c85f2026f18914b32d2bd8ffb20

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

class Epics::FDL < Epics::GenericRequest
  def header
    fdl_order_params = Hash.new.tap do |params|
      params[:DateRange] = {
        Start: options[:from],
        End: options[:to],
      } if options[:from] && options[:to]
      params[:FileFormat] = options[:file_format]
    end

    client.header_request.build(
      nonce: nonce,
      timestamp: timestamp,
      order_type: 'FDL',
      order_attribute: 'DZHNN',
      order_id: 'A00A',
      custom_order_params: { FDLOrderParams: fdl_order_params },
      mutable: { TransactionPhase: 'Initialisation' }
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
epics-2.8.0 lib/epics/fdl.rb
epics-2.7.0 lib/epics/fdl.rb