Skip to content

Commit

Permalink
Merging from master
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwhitt committed Oct 12, 2016
2 parents fe28050 + 24ee387 commit c301445
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Nacha/Field/TransactionCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ class TransactionCode extends Number {
const SAVINGS_DEBIT_PRENOTIFICATION = 38; // Prenotification for a Savings debit
const SAVINGS_DEBIT_ZERO_DOLLAR = 39; // Zero dollar with remittance into Savings

const GL_CREDIT = 42; // General ledger Deposit (Credit)
const GL_DEBIT = 47; // General ledger Withdrawal
const GL_CREDIT_PRENOTIFICATION = 48; // Prenotification for General ledger Deposit (Credit)

const LOAN_CREDIT = 52; // Loan Deposit (Credit)
const LOAN_REVERSAL = 55; // Loan Reversal (Debit) (used rarely; reverses code 52)
const LOAN_CREDIT_PRENOTIFICATION = 53; // Pre-Note: Loan Deposit (Credit)

public function __construct($value) {
parent::__construct($value, 2);

Expand All @@ -36,6 +44,12 @@ public function __construct($value) {
self::SAVINGS_DEBIT,
self::SAVINGS_DEBIT_PRENOTIFICATION,
self::SAVINGS_DEBIT_ZERO_DOLLAR,
self::GL_CREDIT,
self::GL_DEBIT,
self::GL_CREDIT_PRENOTIFICATION,
self::LOAN_CREDIT,
self::LOAN_REVERSAL,
self::LOAN_CREDIT_PRENOTIFICATION,
];

if (!in_array($value, $valid)) {
Expand Down

0 comments on commit c301445

Please sign in to comment.