Sha256: 90881cd214b2cfb127c301f4bb018de7fcd8e8683dbd9191fa4ccb43a0ecfdaa

Contents?: true

Size: 633 Bytes

Versions: 3

Compression:

Stored size: 633 Bytes

Contents

class Epics::HAC < Epics::GenericRequest
  # By default HAC only returns data for transactions which have not yet been fetched. Therefore,
  # most applications not not have to specify a date range, but can simply fetch the status and
  # be done
  def header
    client.header_request.build(
      nonce: nonce,
      timestamp: timestamp,
      order_type: 'HAC',
      order_attribute: 'DZHNN',
      order_params: !!options[:from] && !!options[:to] ? {
        DateRange: {
          Start: options[:from],
          End: options[:to]
        }
      } : {},
      mutable: { TransactionPhase: 'Initialisation' }
    )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
epics-2.7.0 lib/epics/hac.rb
epics-2.6.0 lib/epics/hac.rb
epics-2.5.0 lib/epics/hac.rb