mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge pull request #5601 from turbo124/v5-develop
Fixes for PSR loading
This commit is contained in:
commit
f2cf84669c
@ -9,7 +9,7 @@
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
|
||||
namespace App\DataMapper\Analytics;
|
||||
namespace App\DataMapper\Analytics\Mail;
|
||||
|
||||
class EmailBounce
|
||||
{
|
||||
|
@ -9,7 +9,7 @@
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
|
||||
namespace App\DataMapper\Analytics;
|
||||
namespace App\DataMapper\Analytics\Mail;
|
||||
|
||||
class EmailSpam
|
||||
{
|
||||
|
@ -79,8 +79,9 @@ class Client extends BaseModel implements HasLocalePreference
|
||||
|
||||
protected $with = [
|
||||
'gateway_tokens',
|
||||
'documents'
|
||||
//'currency',
|
||||
'documents',
|
||||
'contacts.company',
|
||||
// 'currency',
|
||||
// 'primary_contact',
|
||||
// 'country',
|
||||
// 'contacts',
|
||||
|
@ -85,6 +85,7 @@ class Gateway extends StaticModel
|
||||
return [GatewayType::PAYPAL => ['refund' => true, 'token_billing' => false]]; //Paypal
|
||||
break;
|
||||
case 20:
|
||||
case 56:
|
||||
return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true],
|
||||
GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable']],
|
||||
GatewayType::ALIPAY => ['refund' => false, 'token_billing' => false],
|
||||
|
@ -30,8 +30,8 @@ class StripeConnectGateway extends Migration
|
||||
Gateway::create($gateway);
|
||||
|
||||
if (Ninja::isNinja()) {
|
||||
Gateway::where('id', 20)->update(['visible' => 0]);
|
||||
Gateway::where('id', 56)->update(['visible' => 1]);
|
||||
Gateway::whereIn('id', [20])->update(['visible' => 0]);
|
||||
Gateway::whereIn('id', [56])->update(['visible' => 1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user