Example #1
0
 /**
  * @param int $amount
  * @param int $tranCode
  * @return \Nacha\Entry
  */
 private function newEntry($amount = 1, $tranCode = \Nacha\Entry::DEBIT_CHECKING)
 {
     return \Nacha\Entry::create($tranCode, '123456789', '1', '1', '1', $amount);
 }
Example #2
0
 /**
  * @return \Nacha\Entry
  */
 private function newEntry()
 {
     return \Nacha\Entry::create(\Nacha\Entry::DEPOSIT_CHECKING, '123456789', '1', '1', '1', 1);
 }
Example #3
0
 /**
  * Create a new Entry and assign the required fields
  *
  * @param string $tranCode use one of the class constants DEBIT_CHECKING|DEPOSIT_CHECKING
  * @param string $routing receivers routing number
  * @param string $account receivers account number
  * @param string $receiverId receivers id
  * @param string $receiverName receivers name
  * @param float $amount amount of transaction
  * @return Entry
  */
 public static function create($tranCode, $routing, $account, $receiverId, $receiverName, $amount)
 {
     $instance = new Entry();
     $instance->setTransactionCode($tranCode)->setRoutingNumber($routing)->setAccountNumber($account)->setReceiverId($receiverId)->setReceiverName($receiverName)->setAmount($amount);
     return $instance;
 }
Example #4
0
 /**
  * add a new Entry to this batch
  *
  * @param Entry $entry
  * @return $this
  */
 public function addEntry(Entry $entry)
 {
     $entry->setBatchNumber($this->batchNumber)->setEntryNumber(count($this->entries) + 1);
     $this->entries[] = $entry;
     return $this;
 }