mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-08 22:36:06 -06:00
#2245 Add points-module as payment method
This commit is contained in:
parent
e80f9b9cb0
commit
4a8c1b6010
@ -306,4 +306,10 @@ return [
|
|||||||
'and_above' => 'and above',
|
'and_above' => 'and above',
|
||||||
'and_below' => 'and below',
|
'and_below' => 'and below',
|
||||||
'clear_all' => 'Clear All',
|
'clear_all' => 'Clear All',
|
||||||
|
'balances' => 'Balances',
|
||||||
|
'packages' => 'Packages',
|
||||||
|
'dopings' => 'Dopings',
|
||||||
|
'advs' => 'Advs',
|
||||||
|
'site' => 'Site',
|
||||||
|
'subscription' => 'Subscription',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -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'
|
||||||
|
],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -3,6 +3,7 @@
|
|||||||
use Illuminate\Contracts\Bus\Dispatcher;
|
use Illuminate\Contracts\Bus\Dispatcher;
|
||||||
use Visiosoft\AdvsModule\Adv\Command\appendRequestURL;
|
use Visiosoft\AdvsModule\Adv\Command\appendRequestURL;
|
||||||
use Visiosoft\AdvsModule\Support\Command\CheckModuleInstalled;
|
use Visiosoft\AdvsModule\Support\Command\CheckModuleInstalled;
|
||||||
|
use Visiosoft\AdvsModule\Support\Command\GetBuyables;
|
||||||
|
|
||||||
if (!function_exists('fullLink'))
|
if (!function_exists('fullLink'))
|
||||||
{
|
{
|
||||||
@ -16,4 +17,11 @@ if (!function_exists('is_module_installed'))
|
|||||||
function is_module_installed($moduleNamespace, $checkEnabled = true) {
|
function is_module_installed($moduleNamespace, $checkEnabled = true) {
|
||||||
return dispatch_now(new CheckModuleInstalled($moduleNamespace, $checkEnabled));
|
return dispatch_now(new CheckModuleInstalled($moduleNamespace, $checkEnabled));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!function_exists('get_buyables'))
|
||||||
|
{
|
||||||
|
function get_buyables() {
|
||||||
|
return dispatch_now(new GetBuyables());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user