Documentation

CouponEntity
in package
implements JsonSerializable

Table of Contents

Interfaces

JsonSerializable

Properties

$addonConstraint  : string|null
$addonIds  : array<string|int, string>
$applyOn  : string
$discountAmount  : int|null
$discountPercentage  : float|null
$discountType  : string
$durationMonth  : int|null
$durationType  : string
$id  : string
$invoiceName  : string|null
$maxRedemptions  : int|null
$name  : string
$planConstraint  : string|null
$planIds  : array<string|int, string>
$redemptions  : int|null
$status  : string|null
$validTill  : int|null

Methods

fromChargeBeeResponse()  : self
getAddonConstraint()  : mixed
Get the value of addonConstraint
getAddonIds()  : mixed
Get the value of addonIds
getApplyOn()  : string|null
getDiscountAmount()  : int|null
getDiscountPercentage()  : float|null
getDiscountType()  : string
getDurationMonth()  : int|null
getDurationType()  : string
getId()  : string
getInvoiceName()  : string|null
getIsActive()  : bool
getMaxRedemptions()  : int|null
getName()  : string
getPlanConstraint()  : mixed
Get the value of planConstraint
getPlanIds()  : mixed
Get the value of planIds
getRedemptions()  : mixed
getStatus()  : string|null
getValidTill()  : int|null
isApplicableToAddon()  : bool
isApplicableToPlan()  : bool
jsonSerialize()  : mixed
setAddonConstraint()  : self
Set the value of addonConstraint
setAddonIds()  : self
Set the value of addonIds
setApplyOn()  : void
setDiscountAmount()  : void
setDiscountPercentage()  : void
setDiscountType()  : void
setDurationMonth()  : void
setDurationType()  : void
setId()  : void
setInvoiceName()  : void
setMaxRedemptions()  : void
setName()  : void
setPlanConstraint()  : self
Set the value of planConstraint
setPlanIds()  : self
Set the value of planIds
setRedemptions()  : self
setStatus()  : void
setValidTill()  : void

Properties

$addonIds

private array<string|int, string> $addonIds = []

$discountPercentage

private float|null $discountPercentage

$planIds

private array<string|int, string> $planIds = []

Methods

fromChargeBeeResponse()

public fromChargeBeeResponse(mixed $coupon) : self
Parameters
$coupon : mixed
Return values
self

getAddonConstraint()

Get the value of addonConstraint

public getAddonConstraint() : mixed

getAddonIds()

Get the value of addonIds

public getAddonIds() : mixed

getApplyOn()

public getApplyOn() : string|null
Return values
string|null

getDiscountAmount()

public getDiscountAmount() : int|null
Return values
int|null

$discountAmount

getDiscountPercentage()

public getDiscountPercentage() : float|null
Return values
float|null

$discountPercentage

getDiscountType()

public getDiscountType() : string
Return values
string

$discountType

getDurationMonth()

public getDurationMonth() : int|null
Return values
int|null

$durationMonth

getDurationType()

public getDurationType() : string
Return values
string

$durationType

getId()

public getId() : string
Return values
string

$id

getInvoiceName()

public getInvoiceName() : string|null
Return values
string|null

$invoiceName

getIsActive()

public getIsActive() : bool
Return values
bool

getMaxRedemptions()

public getMaxRedemptions() : int|null
Return values
int|null

$maxRedemptions

getName()

public getName() : string
Return values
string

$name

getPlanConstraint()

Get the value of planConstraint

public getPlanConstraint() : mixed

getPlanIds()

Get the value of planIds

public getPlanIds() : mixed

getStatus()

public getStatus() : string|null
Return values
string|null

getValidTill()

public getValidTill() : int|null
Return values
int|null

$validTill

isApplicableToAddon()

public isApplicableToAddon(string $addonTextId) : bool
Parameters
$addonTextId : string
Return values
bool

isApplicableToPlan()

public isApplicableToPlan(string $planTextId) : bool
Parameters
$planTextId : string
Return values
bool

setAddonConstraint()

Set the value of addonConstraint

public setAddonConstraint(mixed $addonConstraint) : self
Parameters
$addonConstraint : mixed
Return values
self

setAddonIds()

Set the value of addonIds

public setAddonIds(mixed $addonIds) : self
Parameters
$addonIds : mixed
Return values
self

setApplyOn()

public setApplyOn(string $applyOn) : void
Parameters
$applyOn : string

setDiscountAmount()

public setDiscountAmount(int|null $discountAmount) : void
Parameters
$discountAmount : int|null

setDiscountPercentage()

public setDiscountPercentage(float|null $discountPercentage) : void
Parameters
$discountPercentage : float|null

setDiscountType()

public setDiscountType(string $discountType) : void
Parameters
$discountType : string

setDurationMonth()

public setDurationMonth(int|null $durationMonth) : void
Parameters
$durationMonth : int|null

setDurationType()

public setDurationType(string $durationType) : void
Parameters
$durationType : string

setId()

public setId(string $id) : void
Parameters
$id : string

setInvoiceName()

public setInvoiceName(string|null $invoiceName) : void
Parameters
$invoiceName : string|null

setMaxRedemptions()

public setMaxRedemptions(int|null $maxRedemptions) : void
Parameters
$maxRedemptions : int|null

setName()

public setName(string $name) : void
Parameters
$name : string

setPlanConstraint()

Set the value of planConstraint

public setPlanConstraint(mixed $planConstraint) : self
Parameters
$planConstraint : mixed
Return values
self

setPlanIds()

Set the value of planIds

public setPlanIds(mixed $planIds) : self
Parameters
$planIds : mixed
Return values
self

setRedemptions()

public setRedemptions(mixed $redemptions) : self
Parameters
$redemptions : mixed
Return values
self

setStatus()

public setStatus(string|null $status) : void
Parameters
$status : string|null

setValidTill()

public setValidTill(int|null $validTill) : void
Parameters
$validTill : int|null

        
On this page

Search results