From 87114d2b73fe6cd55dcba9dfcec4f2fbe5180156 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 10 May 2023 09:06:34 +1000 Subject: [PATCH] Updates for payment types --- app/Jobs/RecurringInvoice/SendRecurring.php | 6 +----- app/Models/PaymentType.php | 2 ++ lang/en/texts.php | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Jobs/RecurringInvoice/SendRecurring.php b/app/Jobs/RecurringInvoice/SendRecurring.php index e95ab582baa4..808580736484 100644 --- a/app/Jobs/RecurringInvoice/SendRecurring.php +++ b/app/Jobs/RecurringInvoice/SendRecurring.php @@ -34,10 +34,6 @@ class SendRecurring implements ShouldQueue use GeneratesCounter; use MakesHash; - public $recurring_invoice; - - protected $db; - public $tries = 1; /** @@ -46,7 +42,7 @@ class SendRecurring implements ShouldQueue * @param RecurringInvoice $recurring_invoice * @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->db = $db; diff --git a/app/Models/PaymentType.php b/app/Models/PaymentType.php index d6e77a6caa9c..12e716ca0034 100644 --- a/app/Models/PaymentType.php +++ b/app/Models/PaymentType.php @@ -75,6 +75,7 @@ class PaymentType extends StaticModel const Interac_E_Transfer = 48; const BACS = 49; const STRIPE_BANK_TRANSFER = 50; + const CASH_APP = 51; public array $type_names = [ self::CREDIT => 'payment_type_Credit', @@ -117,6 +118,7 @@ class PaymentType extends StaticModel self::KLARNA => 'payment_type_Klarna', self::Interac_E_Transfer => 'payment_type_Interac E Transfer', self::STRIPE_BANK_TRANSFER => 'bank_transfer', + self::CASH_APP => 'payment_type_Cash App', ]; public static function parseCardType($cardName) diff --git a/lang/en/texts.php b/lang/en/texts.php index 03f5170af4d7..8fde96f8b670 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5080,6 +5080,7 @@ $LANG = array( 'set_tax_category' => 'Set Tax Category', 'payment_manual' => 'Payment Manual', 'expense_payment_type' => 'Expense Payment Type', + 'payment_type_Cash App' => 'Cash App', );