Updates for payment types

This commit is contained in:
David Bomba 2023-05-10 09:06:34 +10:00
parent 7f5063c64a
commit 87114d2b73
3 changed files with 4 additions and 5 deletions

View File

@ -34,10 +34,6 @@ class SendRecurring implements ShouldQueue
use GeneratesCounter; use GeneratesCounter;
use MakesHash; use MakesHash;
public $recurring_invoice;
protected $db;
public $tries = 1; public $tries = 1;
/** /**
@ -46,7 +42,7 @@ class SendRecurring implements ShouldQueue
* @param RecurringInvoice $recurring_invoice * @param RecurringInvoice $recurring_invoice
* @param string $db * @param string $db
*/ */
public function __construct(RecurringInvoice $recurring_invoice, string $db = 'db-ninja-01') public function __construct(public RecurringInvoice $recurring_invoice, public string $db = 'db-ninja-01')
{ {
$this->recurring_invoice = $recurring_invoice; $this->recurring_invoice = $recurring_invoice;
$this->db = $db; $this->db = $db;

View File

@ -75,6 +75,7 @@ class PaymentType extends StaticModel
const Interac_E_Transfer = 48; const Interac_E_Transfer = 48;
const BACS = 49; const BACS = 49;
const STRIPE_BANK_TRANSFER = 50; const STRIPE_BANK_TRANSFER = 50;
const CASH_APP = 51;
public array $type_names = [ public array $type_names = [
self::CREDIT => 'payment_type_Credit', self::CREDIT => 'payment_type_Credit',
@ -117,6 +118,7 @@ class PaymentType extends StaticModel
self::KLARNA => 'payment_type_Klarna', self::KLARNA => 'payment_type_Klarna',
self::Interac_E_Transfer => 'payment_type_Interac E Transfer', self::Interac_E_Transfer => 'payment_type_Interac E Transfer',
self::STRIPE_BANK_TRANSFER => 'bank_transfer', self::STRIPE_BANK_TRANSFER => 'bank_transfer',
self::CASH_APP => 'payment_type_Cash App',
]; ];
public static function parseCardType($cardName) public static function parseCardType($cardName)

View File

@ -5080,6 +5080,7 @@ $LANG = array(
'set_tax_category' => 'Set Tax Category', 'set_tax_category' => 'Set Tax Category',
'payment_manual' => 'Payment Manual', 'payment_manual' => 'Payment Manual',
'expense_payment_type' => 'Expense Payment Type', 'expense_payment_type' => 'Expense Payment Type',
'payment_type_Cash App' => 'Cash App',
); );