PointConversionInterface
in
Table of Contents
Methods
- aggregateConversionRequest() : int
- getAvailableUserPoints() : int
- getCommissionFee() : 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
Methods
aggregateConversionRequest()
public
aggregateConversionRequest(Carbon $start, Carbon $end) : int
Parameters
- $start : Carbon
- $end : Carbon
Return values
intgetAvailableUserPoints()
public
getAvailableUserPoints(User $user) : int
Parameters
- $user : User
Return values
intgetCommissionFee()
public
getCommissionFee(float $total) : float
Parameters
- $total : float
Return values
floatgetConversionAmount()
public
getConversionAmount(int $points, string $currency) : float
Parameters
- $points : int
- $currency : string
Return values
floatgetConversionCurrencies()
public
getConversionCurrencies() : array<string|int, mixed>
Return values
array<string|int, mixed>getConversionRequestStatusOptions()
public
getConversionRequestStatusOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getExchangedPointsInMonth()
public
getExchangedPointsInMonth(User $user) : int
Parameters
- $user : User
Return values
intgetExchangedPointsInYear()
public
getExchangedPointsInYear(User $user) : int
Parameters
- $user : User
Return values
intgetExchangeRateFormat()
public
getExchangeRateFormat(string $currency) : string|null
Parameters
- $currency : string
Return values
string|nullgetMaxPointsCanCreate()
public
getMaxPointsCanCreate(User $user) : int
Parameters
- $user : User
Return values
intgetMinPointsCanCreate()
public
getMinPointsCanCreate(User $user) : int
Parameters
- $user : User
Return values
intgetPendingConversionPoints()
public
getPendingConversionPoints(User $user) : int
Parameters
- $user : User
Return values
intgetRestPointsPerDay()
public
getRestPointsPerDay(User $user) : int|null
Parameters
- $user : User
Return values
int|nullgetRestPointsPerMonth()
public
getRestPointsPerMonth(User $user) : int|null
Parameters
- $user : User
Return values
int|nullgetTotalPointsPerDay()
public
getTotalPointsPerDay(User $user) : int
Parameters
- $user : User
Return values
intgetTotalPointsPerMonth()
public
getTotalPointsPerMonth(User $user) : int
Parameters
- $user : User