MetaFox

PointConversion extends Facade
in package

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

Methods

aggregateConversionRequest()

public static aggregateConversionRequest(Carbon $start, Carbon $end) : int
Parameters
$start : Carbon
$end : Carbon
Return values
int

getAvailableUserPoints()

public static getAvailableUserPoints(User $user) : int
Parameters
$user : User
Return values
int

getCommissionFee()

public static getCommissionFee(float $total) : float
Parameters
$total : float
Return values
float

getCommissionPercentage()

public static getCommissionPercentage() : float
Return values
float

getConversionAmount()

public static getConversionAmount(int $points, string $currency) : float
Parameters
$points : int
$currency : string
Return values
float

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
Return values
int

getExchangedPointsInYear()

public static getExchangedPointsInYear(User $user) : int
Parameters
$user : User
Return values
int

getExchangeRateFormat()

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
Return values
int

getMinPointsCanCreate()

public static getMinPointsCanCreate(User $user) : int
Parameters
$user : User
Return values
int

getPendingConversionPoints()

public static getPendingConversionPoints(User $user) : int
Parameters
$user : User
Return values
int

getRestPointsPerDay()

public static getRestPointsPerDay(User $user) : int|null
Parameters
$user : User
Return values
int|null

getRestPointsPerMonth()

public static getRestPointsPerMonth(User $user) : int|null
Parameters
$user : User
Return values
int|null

getTotalPointsPerDay()

public static getTotalPointsPerDay(User $user) : int
Parameters
$user : User
Return values
int

getTotalPointsPerMonth()

public static getTotalPointsPerMonth(User $user) : int
Parameters
$user : User
Return values
int

        
On this page

Search results