CoolCMS API

CategoryPriceInterface extends PaymentRegionScopedInterface

Advert category price in a payment region and currency; the "From …" price on the list is computed from it ({@see \App\Core\Base\Shared\Bazaar\Models\Entities\Category::getMinPriceForPaymentRegion()}).

Table of Contents

Methods

getActive()  : bool
getCategoryId()  : int|null
getCurrencyId()  : int|null
getPaymentGateId()  : int|null
getPaymentRegionId()  : int|null
getPrice()  : string
Returns the price as a decimal string.
getPriceForUnlogged()  : string|null
isActive()  : bool
Returns whether the price counts; an inactive price (gateway disabled in the region) is excluded from the minimum.
setActive()  : self
setCategoryId()  : self
setCurrencyId()  : self
setPaymentGateId()  : self
setPaymentRegionId()  : self
setPrice()  : self
setPriceForUnlogged()  : self

Methods

getPrice()

Returns the price as a decimal string.

public getPrice() : string
Return values
string

isActive()

Returns whether the price counts; an inactive price (gateway disabled in the region) is excluded from the minimum.

public isActive() : bool
Return values
bool

setCategoryId()

public setCategoryId(int|null $categoryId) : self
Parameters
$categoryId : int|null
Return values
self

setCurrencyId()

public setCurrencyId(int|null $currencyId) : self
Parameters
$currencyId : int|null
Return values
self

setPaymentGateId()

public setPaymentGateId(int|null $paymentGateId) : self
Parameters
$paymentGateId : int|null
Return values
self

setPaymentRegionId()

public setPaymentRegionId(int|null $paymentRegionId) : self
Parameters
$paymentRegionId : int|null
Return values
self

setPriceForUnlogged()

public setPriceForUnlogged(string|null $priceForUnlogged) : self
Parameters
$priceForUnlogged : string|null
Return values
self
On this page

Search results