PointConversion
extends Facade
Table of Contents
Methods
-
aggregateConversionRequest()
: int
-
getAvailableUserPoints()
: int
-
getCommissionFee()
: float
-
getCommissionPercentage()
: float
-
getConversionAmount()
: float
-
getConversionCurrencies()
: array<string|int, mixed>
-
getConversionRequestStatusOptions()
: array<string|int, mixed>
-
getExchangedPointsInMonth()
: int
-
getExchangedPointsInYear()
: int
-
getExchangeRateFormat()
: string|null
-
getMaxPointsCanCreate()
: int
-
getMinPointsCanCreate()
: int
-
getPendingConversionPoints()
: int
-
getRestPointsPerDay()
: int|null
-
getRestPointsPerMonth()
: int|null
-
getTotalPointsPerDay()
: int
-
getTotalPointsPerMonth()
: int
-
getFacadeAccessor()
: mixed
aggregateConversionRequest()
public
static aggregateConversionRequest(Carbon $start, Carbon $end) : int
Parameters
-
$start
: Carbon
-
-
$end
: Carbon
-
getAvailableUserPoints()
public
static getAvailableUserPoints(User $user) : int
Parameters
-
$user
: User
-
getCommissionFee()
public
static getCommissionFee(float $total) : float
Parameters
-
$total
: float
-
getCommissionPercentage()
public
static getCommissionPercentage() : float
getConversionAmount()
public
static getConversionAmount(int $points, string $currency) : float
Parameters
-
$points
: int
-
-
$currency
: string
-
getConversionCurrencies()
public
static getConversionCurrencies() : array<string|int, mixed>
Return values
array<string|int, mixed>
getConversionRequestStatusOptions()
public
static getConversionRequestStatusOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>
getExchangedPointsInMonth()
public
static getExchangedPointsInMonth(User $user) : int
Parameters
-
$user
: User
-
getExchangedPointsInYear()
public
static getExchangedPointsInYear(User $user) : int
Parameters
-
$user
: User
-
public
static getExchangeRateFormat(string $currency = Support::DEFAULT_CONVERSION_RATE_CURRENCY_TO_MONEY) : string|null
Parameters
-
$currency = Support::DEFAULT_CONVERSION_RATE_CURRENCY_TO_MONEY
: string
-
Return values
string|null
getMaxPointsCanCreate()
public
static getMaxPointsCanCreate(User $user) : int
Parameters
-
$user
: User
-
getMinPointsCanCreate()
public
static getMinPointsCanCreate(User $user) : int
Parameters
-
$user
: User
-
getPendingConversionPoints()
public
static getPendingConversionPoints(User $user) : int
Parameters
-
$user
: User
-
getRestPointsPerDay()
public
static getRestPointsPerDay(User $user) : int|null
Parameters
-
$user
: User
-
getRestPointsPerMonth()
public
static getRestPointsPerMonth(User $user) : int|null
Parameters
-
$user
: User
-
getTotalPointsPerDay()
public
static getTotalPointsPerDay(User $user) : int
Parameters
-
$user
: User
-
getTotalPointsPerMonth()
public
static getTotalPointsPerMonth(User $user) : int
Parameters
-
$user
: User
-
getFacadeAccessor()
protected
static getFacadeAccessor() : mixed