lib/definitions/transaction_sets/manual/810/810.rb in eddy-0.5.1 vs lib/definitions/transaction_sets/manual/810/810.rb in eddy-0.6.0

- old
+ new

@@ -5,27 +5,27 @@ # ### Transaction Set Summary: # # - Id: 810 # - Name: Invoice # - Functional Group: IN - class TS810 < Eddy::TransactionSet + class TS < Eddy::Models::TransactionSet ID = "810".freeze NAME = "Invoice".freeze FUNCTIONAL_GROUP = "IN".freeze # @param store [Eddy::Data::Store] # @return [void] def initialize(store) @big = Eddy::Segments::BIG.new(store) @ref = Eddy::Segments::REF.new(store) - @l_n1 = Eddy::TransactionSets::TS810::Loops::N1.new(store) + @l_n1 = Eddy::TransactionSets::TS810::Loops::N1::Base.new(store) @dtm = Eddy::Segments::DTM.new(store) - @l_it1 = Eddy::TransactionSets::TS810::Loops::IT1.new(store) + @l_it1 = Eddy::TransactionSets::TS810::Loops::IT1::Base.new(store) @tds = Eddy::Segments::TDS.new(store) @cad = Eddy::Segments::CAD.new(store) - @l_sac = Eddy::TransactionSets::TS810::Loops::SAC.new(store) + @l_sac = Eddy::TransactionSets::TS810::Loops::SAC::Base.new(store) @ctt = Eddy::Segments::CTT.new(store) super( store, @big, @ref, @@ -39,99 +39,94 @@ ) end # (see Eddy::Segments::BIG) # - # @yieldparam [Eddy::Segments::BIG] big + # @yieldparam [Eddy::Segments::BIG] # @return [Eddy::Segments::BIG] def BIG() yield(@big) if block_given? return @big end # (see Eddy::Segments::REF) # - # @yieldparam [Eddy::Segments::REF] ref + # @yieldparam [Eddy::Segments::REF] # @return [Eddy::Segments::REF] def REF() yield(@ref) if block_given? return @ref end - # (see Eddy::TransactionSets::TS810::Loops::N1) + # (see Eddy::TransactionSets::TS810::Loops::N1::Base) # - # @yieldparam [Eddy::Segments::N1] n1 - # @yieldparam [Eddy::Segments::N3] n3 - # @yieldparam [Eddy::Segments::N4] n4 + # @yieldparam [Eddy::TransactionSets::TS810::Loops::N1::Repeat] # @return [void] def L_N1(&block) if block_given? - @l_n1.add_iteration(&block) + @l_n1.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end # (see Eddy::Segments::DTM) # - # @yieldparam [Eddy::Segments::DTM] dtm + # @yieldparam [Eddy::Segments::DTM] # @return [Eddy::Segments::DTM] def DTM() yield(@dtm) if block_given? return @dtm end - # (see Eddy::TransactionSets::TS810::Loops::IT1) + # (see Eddy::TransactionSets::TS810::Loops::IT1::Base) # - # @yieldparam [Eddy::Segments::IT1] it1 - # @yieldparam [Eddy::Segments::CTP] ctp - # @yieldparam [Eddy::TransactionSets::TS810::Loops::PID] l_pid - # @yieldparam [Eddy::TransactionSets::TS810::Loops::SAC] l_sac + # @yieldparam [Eddy::TransactionSets::TS810::Loops::IT1::Repeat] # @return [void] def L_IT1(&block) if block_given? - @l_it1.add_iteration(&block) + @l_it1.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end # (see Eddy::Segments::TDS) # - # @yieldparam [Eddy::Segments::TDS] tds + # @yieldparam [Eddy::Segments::TDS] # @return [Eddy::Segments::TDS] def TDS() yield(@tds) if block_given? return @tds end # (see Eddy::Segments::CAD) # - # @yieldparam [Eddy::Segments::CAD] cad + # @yieldparam [Eddy::Segments::CAD] # @return [Eddy::Segments::CAD] def CAD() yield(@cad) if block_given? return @cad end - # (see Eddy::TransactionSets::TS810::Loops::SAC) + # (see Eddy::TransactionSets::TS810::Loops::SAC::Base) # - # @yieldparam [Eddy::Segments::SAC] sac + # @yieldparam [Eddy::TransactionSets::TS810::Loops::SAC::Repeat] # @return [void] def L_SAC(&block) if block_given? - @l_sac.add_iteration(&block) + @l_sac.repeat(&block) else raise Eddy::Errors::Error, "No block given in loop iteration" end return nil end # (see Eddy::Segments::CTT) # - # @yieldparam [Eddy::Segments::CTT] ctt + # @yieldparam [Eddy::Segments::CTT] # @return [Eddy::Segments::CTT] def CTT() yield(@ctt) if block_given? return @ctt end