class Eddy::TransactionSets::TS850::TS850

### Transaction Set Summary:

Constants

FUNCTIONAL_GROUP
ID
NAME

Public Class Methods

new(store) click to toggle source

@param store [Eddy::Data::Store] @return [void]

Calls superclass method Eddy::Models::TransactionSet::new
# File lib/definitions/transaction_sets/manual/850/850.rb, line 18
def initialize(store)
  @beg = Eddy::Segments::BEG.new(store)
  @cur = Eddy::Segments::CUR.new(store)
  @ref = Eddy::Segments::REF.new(store)
  @fob = Eddy::Segments::FOB.new(store)
  @l_sac = Eddy::TransactionSets::TS850::Loops::SAC::Base.new(store)
  @itd = Eddy::Segments::ITD.new(store)
  @dtm = Eddy::Segments::DTM.new(store)
  @td5 = Eddy::Segments::TD5.new(store)
  @txi = Eddy::Segments::TXI.new(store)
  @l_n9 = Eddy::TransactionSets::TS850::Loops::N9::Base.new(store)
  @l_n1 = Eddy::TransactionSets::TS850::Loops::N1::Base.new(store)
  @l_po1 = Eddy::TransactionSets::TS850::Loops::PO1::Base.new(store)
  @ctt = Eddy::Segments::CTT.new(store)
  @amt = Eddy::Segments::AMT.new(store)
  super(
    store,
    @beg,
    @cur,
    @ref,
    @fob,
    @l_sac,
    @itd,
    @dtm,
    @td5,
    @txi,
    @l_n9,
    @l_n1,
    @l_po1,
    @ctt,
    @amt,
  )
end

Public Instance Methods

AMT() { |amt| ... } click to toggle source

(see Eddy::Segments::AMT)

@yieldparam [Eddy::Segments::AMT] @return [Eddy::Segments::AMT]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 189
def AMT()
  yield(@amt) if block_given?
  return @amt
end
BEG() { |beg| ... } click to toggle source

(see Eddy::Segments::BEG)

@yieldparam [Eddy::Segments::BEG] @return [Eddy::Segments::BEG]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 56
def BEG()
  yield(@beg) if block_given?
  return @beg
end
CTT() { |ctt| ... } click to toggle source

(see Eddy::Segments::CTT)

@yieldparam [Eddy::Segments::CTT] @return [Eddy::Segments::CTT]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 180
def CTT()
  yield(@ctt) if block_given?
  return @ctt
end
CUR() { |cur| ... } click to toggle source

(see Eddy::Segments::CUR)

@yieldparam [Eddy::Segments::CUR] @return [Eddy::Segments::CUR]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 65
def CUR()
  yield(@cur) if block_given?
  return @cur
end
DTM() { |dtm| ... } click to toggle source

(see Eddy::Segments::DTM)

@yieldparam [Eddy::Segments::DTM] @return [Eddy::Segments::DTM]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 114
def DTM()
  yield(@dtm) if block_given?
  return @dtm
end
FOB() { |fob| ... } click to toggle source

(see Eddy::Segments::FOB)

@yieldparam [Eddy::Segments::FOB] @return [Eddy::Segments::FOB]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 83
def FOB()
  yield(@fob) if block_given?
  return @fob
end
ITD() { |itd| ... } click to toggle source

(see Eddy::Segments::ITD)

@yieldparam [Eddy::Segments::ITD] @return [Eddy::Segments::ITD]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 105
def ITD()
  yield(@itd) if block_given?
  return @itd
end
L_N1(&block) click to toggle source

(see Eddy::TransactionSets::TS850::Loops::N1::Base)

@yieldparam [Eddy::TransactionSets::TS850::Loops::N1::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 154
def L_N1(&block)
  if block_given?
    @l_n1.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
L_N9(&block) click to toggle source

(see Eddy::TransactionSets::TS850::Loops::N9::Base)

@yieldparam [Eddy::TransactionSets::TS850::Loops::N9::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 141
def L_N9(&block)
  if block_given?
    @l_n9.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
L_PO1(&block) click to toggle source

(see Eddy::TransactionSets::TS850::Loops::PO1::Base)

@yieldparam [Eddy::TransactionSets::TS850::Loops::PO1::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 167
def L_PO1(&block)
  if block_given?
    @l_po1.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
L_SAC(&block) click to toggle source

(see Eddy::TransactionSets::TS850::Loops::SAC::Base)

@yieldparam [Eddy::TransactionSets::TS850::Loops::SAC::Repeat] @return [void]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 92
def L_SAC(&block)
  if block_given?
    @l_sac.repeat(&block)
  else
    raise Eddy::Errors::Error, "No block given in loop iteration"
  end
  return nil
end
REF() { |ref| ... } click to toggle source

(see Eddy::Segments::REF)

@yieldparam [Eddy::Segments::REF] @return [Eddy::Segments::REF]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 74
def REF()
  yield(@ref) if block_given?
  return @ref
end
TD5() { |td5| ... } click to toggle source

(see Eddy::Segments::TD5)

@yieldparam [Eddy::Segments::TD5] @return [Eddy::Segments::TD5]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 123
def TD5()
  yield(@td5) if block_given?
  return @td5
end
TXI() { |txi| ... } click to toggle source

(see Eddy::Segments::TXI)

@yieldparam [Eddy::Segments::TXI] @return [Eddy::Segments::TXI]

# File lib/definitions/transaction_sets/manual/850/850.rb, line 132
def TXI()
  yield(@txi) if block_given?
  return @txi
end