#2245 Add points-module as payment method

This commit is contained in:
Diatrex 2020-10-08 14:07:15 +03:00
parent e80f9b9cb0
commit 4a8c1b6010
3 changed files with 48 additions and 0 deletions

View File

@ -306,4 +306,10 @@ return [
'and_above' => 'and above',
'and_below' => 'and below',
'clear_all' => 'Clear All',
'balances' => 'Balances',
'packages' => 'Packages',
'dopings' => 'Dopings',
'advs' => 'Advs',
'site' => 'Site',
'subscription' => 'Subscription',
];

View File

@ -0,0 +1,34 @@
<?php namespace Visiosoft\AdvsModule\Support\Command;
class GetBuyables
{
public function handle()
{
return [
'balances' => [
'name' => trans('visiosoft.module.advs::field.balances'),
'entry_type' => 'Visiosoft\BalancesModule\Balance\BalanceModel'
],
'packages' => [
'name' => trans('visiosoft.module.advs::field.packages'),
'entry_type' => 'Visiosoft\PackagesModule\Package\PackageModel'
],
'dopings' => [
'name' => trans('visiosoft.module.advs::field.dopings'),
'entry_type' => 'Anomaly\Streams\Platform\Model\Dopings\DopingsDopingsEntryModel'
],
'advs' => [
'name' => trans('visiosoft.module.advs::field.advs'),
'entry_type' => 'Visiosoft\AdvsModule\Adv\AdvModel'
],
'site' => [
'name' => trans('visiosoft.module.advs::field.site'),
'entry_type' => 'Visiosoft\SiteModule\Addon\AddonModel'
],
'subscriptions' => [
'name' => trans('visiosoft.module.advs::field.subscriptions'),
'entry_type' => 'Anomaly\Streams\Platform\Model\Users\UsersUsersEntryModel'
],
];
}
}

View File

@ -3,6 +3,7 @@
use Illuminate\Contracts\Bus\Dispatcher;
use Visiosoft\AdvsModule\Adv\Command\appendRequestURL;
use Visiosoft\AdvsModule\Support\Command\CheckModuleInstalled;
use Visiosoft\AdvsModule\Support\Command\GetBuyables;
if (!function_exists('fullLink'))
{
@ -16,4 +17,11 @@ if (!function_exists('is_module_installed'))
function is_module_installed($moduleNamespace, $checkEnabled = true) {
return dispatch_now(new CheckModuleInstalled($moduleNamespace, $checkEnabled));
}
}
if (!function_exists('get_buyables'))
{
function get_buyables() {
return dispatch_now(new GetBuyables());
}
}