/**
  * @return Line
  */
 public function getLine()
 {
     $line = new Line();
     $columns = ['record_type' => PresetStringColumnFactory::create('IFH', $label = 'record_type'), 'file_format' => ConfigurableStringColumnFactory::create($config = $this->config, 'file_format', $label = 'file_format'), 'file_type' => ConfigurableStringColumnFactory::create($config = $this->config, 'file_type', $label = 'file_type'), 'hexagon_abc_customer_id' => ConfigurableStringColumnFactory::create($config = $this->config, 'hexagon_abc_customer_id', $label = 'hexagon_abc_customer_id'), 'hsbcnet_id' => ConfigurableStringColumnFactory::create($config = $this->config, 'hsbcnet_id', $label = 'hsbcnet_id'), 'file_reference' => VariableLengthStringColumnFactory::create($this->getFileReference(), 35, $label = 'file_reference'), 'file_creation_date' => VariableLengthStringColumnFactory::create(date('Y/m/d'), 10, $label = 'file_creation_date'), 'file_creation_time' => VariableLengthStringColumnFactory::create(date('H:i:s'), 8, $label = 'file_creation_time'), 'authorization_type' => PresetStringColumnFactory::create('P', $label = 'authorization_type'), 'file_version' => ConfigurableStringColumnFactory::create($config = $this->config, 'file_version', $label = 'file_version'), 'record_count' => VariableLengthStringColumnFactory::create($this->getTotalLines(), 7, $label = 'record_count')];
     $line->setColumns($columns);
     return $line;
 }
 /**
  * The Payment Details Table Row Content record
  * @param BeneficiaryAdapterInterface
  * @param String The key to read the config from
  * @return Line a line
  */
 public static function createPaymentDetailsTableRowContentRecordLine(BeneficiaryAdapterInterface $beneficiary, $config_key)
 {
     $line = new Line($config_key);
     $columns = ['record_type' => PresetStringColumnFactory::create('COS-TBL', $label = 'record_type'), 'instruction_indicator' => PresetStringColumnFactory::create('I', $label = 'instruction_indicator'), 'table_name_id' => ConfigurableStringColumnFactory::create($config = $line->config, 'table_name_id', $label = 'table_name_id'), 'table_col_1' => VariableLengthStringColumnFactory::create($beneficiary->getUserId(), $max_length = 90, $label = 'table_col_1'), 'table_col_2' => VariableLengthStringColumnFactory::create($beneficiary->getPaymentId(), $max_length = 90, $label = 'table_col_2'), 'table_col_3' => VariableLengthStringColumnFactory::create($beneficiary->getPaymentDateTimeFormatted(), $max_length = 90, $label = 'table_col_3'), 'table_col_4' => VariableLengthStringColumnFactory::create($beneficiary->getEmail(), $max_length = 90, $label = 'table_col_4'), 'table_col_5' => VariableLengthStringColumnFactory::create("1", $max_length = 90, $label = 'table_col_5'), 'table_col_6' => VariableLengthStringColumnFactory::create($beneficiary->getFullname(), $max_length = 90, $label = 'table_col_6')];
     $line->setColumns($columns);
     return $line;
 }
 /**
  * @param Beneficiary
  * @return BeneficiaryLines
  */
 public function getLine()
 {
     $line = new Line();
     $columns = ['record_type' => PresetStringColumnFactory::create('BATHDR', $label = 'record_type'), 'instruction_type' => PresetStringColumnFactory::create('COS', $label = 'instruction_type'), 'total_instructions' => VariableLengthStringColumnFactory::create($this->getBeneficiaryCount(), $max_length = 7, $label = 'total_instructions'), 'batch_reference' => EmptyColumnFactory::create($label = 'batch_reference'), 'filter_1' => EmptyColumnFactory::create($label = 'filter_1'), 'filter_2' => EmptyColumnFactory::create($label = 'filter_2'), 'filter_3' => EmptyColumnFactory::create($label = 'filter_3'), 'filter_4' => EmptyColumnFactory::create($label = 'filter_4'), 'filter_5' => EmptyColumnFactory::create($label = 'filter_5'), 'constant_eye_catcher' => PresetStringColumnFactory::create('@1ST@', $label = 'constant_eye_catcher'), 'value_date' => EmptyColumnFactory::create($label = 'value_date'), 'first_party_account' => ConfigurableStringColumnFactory::create($this->config, 'first_party_account', $label = 'first_party_account'), 'transaction_currency' => EmptyColumnFactory::create($label = 'transaction_currency'), 'transaction_amount' => EmptyColumnFactory::create($label = 'transaction_amount'), 'template_mode' => EmptyColumnFactory::create($label = 'template_mode'), 'batch_template_id' => EmptyColumnFactory::create($label = 'batch_template_id'), 'first_party_acc_country_code' => ConfigurableStringColumnFactory::create($this->config, 'first_party_account_country_code', $label = 'first_party_acc_country_code'), 'first_party_acc_institution_code' => ConfigurableStringColumnFactory::create($this->config, 'first_party_account_institution_code', $label = 'first_party_acc_institution_code'), 'first_party_acc_currency' => ConfigurableStringColumnFactory::create($this->config, 'first_party_account_currency', $label = 'first_party_acc_currency'), 'payment_amount_debit_acc_currency' => EmptyColumnFactory::create($label = 'payment_amount_debit_acc_currency'), 'first_party_name' => EmptyColumnFactory::create($label = 'first_party_name'), 'first_party_info_1' => EmptyColumnFactory::create($label = 'first_party_info_1'), 'first_party_info_2' => EmptyColumnFactory::create($label = 'first_party_info_2'), 'first_party_info_3' => EmptyColumnFactory::create($label = 'first_party_info_3'), 'first_party_info_4' => EmptyColumnFactory::create($label = 'first_party_info_4'), 'payment_code' => EmptyColumnFactory::create($label = 'payment_code'), 'reference_line_1' => VariableLengthStringColumnFactory::create($this->getFileReference(), $max_length = 35, $label = 'reference_line_1')];
     $line->setColumns($columns);
     return $line;
 }
 /**
  * @return Line
  */
 public function getLine()
 {
     $line = new Line();
     $line->setColumnDelimiter("");
     $columns = ['record_type' => PresetStringColumnFactory::create('0', $label = 'record_type'), 'file_name' => VariableLengthStringColumnFactory::create($this->fileName, 10, $label = 'file_name'), 'creation_date' => RightPaddedStringColumnFactory::create(date('Ymd'), 8, $label = 'creation_date'), 'creation_time' => RightPaddedStringColumnFactory::create(date('His'), 6, $label = 'creation_time'), 'company_id' => ConfigurableStringColumnFactory::create($config = $this->config, 'company_id', $label = 'company_id'), 'check_sum' => LeftPaddedZerofillStringColumnFactory::create(self::getCheckSum(), 15, $label = 'check_sum'), 'company_id_bib' => ConfigurableStringColumnFactory::create($config = $this->config, 'company_id', $label = 'company_id_bib'), 'filler' => RightPaddedStringColumnFactory::create('', 836, $label = 'filler')];
     $line->setColumns($columns);
     return $line;
 }