Fixes for PSR loading

This commit is contained in:
David Bomba 2021-05-04 22:04:07 +10:00
parent 3e0c306d57
commit 4703496c7c
5 changed files with 8 additions and 6 deletions

View File

@ -9,7 +9,7 @@
* @license https://opensource.org/licenses/AAL * @license https://opensource.org/licenses/AAL
*/ */
namespace App\DataMapper\Analytics; namespace App\DataMapper\Analytics\Mail;
class EmailBounce class EmailBounce
{ {

View File

@ -9,7 +9,7 @@
* @license https://opensource.org/licenses/AAL * @license https://opensource.org/licenses/AAL
*/ */
namespace App\DataMapper\Analytics; namespace App\DataMapper\Analytics\Mail;
class EmailSpam class EmailSpam
{ {

View File

@ -79,8 +79,9 @@ class Client extends BaseModel implements HasLocalePreference
protected $with = [ protected $with = [
'gateway_tokens', 'gateway_tokens',
'documents' 'documents',
//'currency', 'contacts.company',
// 'currency',
// 'primary_contact', // 'primary_contact',
// 'country', // 'country',
// 'contacts', // 'contacts',

View File

@ -85,6 +85,7 @@ class Gateway extends StaticModel
return [GatewayType::PAYPAL => ['refund' => true, 'token_billing' => false]]; //Paypal return [GatewayType::PAYPAL => ['refund' => true, 'token_billing' => false]]; //Paypal
break; break;
case 20: case 20:
case 56:
return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true], return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true],
GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable']], GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable']],
GatewayType::ALIPAY => ['refund' => false, 'token_billing' => false], GatewayType::ALIPAY => ['refund' => false, 'token_billing' => false],

View File

@ -30,8 +30,8 @@ class StripeConnectGateway extends Migration
Gateway::create($gateway); Gateway::create($gateway);
if (Ninja::isNinja()) { if (Ninja::isNinja()) {
Gateway::where('id', 20)->update(['visible' => 0]); Gateway::whereIn('id', [20])->update(['visible' => 0]);
Gateway::where('id', 56)->update(['visible' => 1]); Gateway::whereIn('id', [56])->update(['visible' => 1]);
} }
} }