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
$addonConstraint
private
string|null
$addonConstraint
$addonIds
private
array<string|int, string>
$addonIds
= []
$applyOn
private
string
$applyOn
$discountAmount
private
int|null
$discountAmount
$discountPercentage
private
float|null
$discountPercentage
$discountType
private
string
$discountType
$durationMonth
private
int|null
$durationMonth
$durationType
private
string
$durationType
$id
private
string
$id
$invoiceName
private
string|null
$invoiceName
$maxRedemptions
private
int|null
$maxRedemptions
$name
private
string
$name
$planConstraint
private
string|null
$planConstraint
$planIds
private
array<string|int, string>
$planIds
= []
$redemptions
private
int|null
$redemptions
$status
private
string|null
$status
$validTill
private
int|null
$validTill
Methods
fromChargeBeeResponse()
public
fromChargeBeeResponse(mixed $coupon) : self
Parameters
- $coupon : mixed
Return values
selfgetAddonConstraint()
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|nullgetDiscountAmount()
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
boolgetMaxRedemptions()
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
getRedemptions()
public
getRedemptions() : mixed
getStatus()
public
getStatus() : string|null
Return values
string|nullgetValidTill()
public
getValidTill() : int|null
Return values
int|null —$validTill
isApplicableToAddon()
public
isApplicableToAddon(string $addonTextId) : bool
Parameters
- $addonTextId : string
Return values
boolisApplicableToPlan()
public
isApplicableToPlan(string $planTextId) : bool
Parameters
- $planTextId : string
Return values
booljsonSerialize()
public
jsonSerialize() : mixed
setAddonConstraint()
Set the value of addonConstraint
public
setAddonConstraint(mixed $addonConstraint) : self
Parameters
- $addonConstraint : mixed
Return values
selfsetAddonIds()
Set the value of addonIds
public
setAddonIds(mixed $addonIds) : self
Parameters
- $addonIds : mixed
Return values
selfsetApplyOn()
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
selfsetPlanIds()
Set the value of planIds
public
setPlanIds(mixed $planIds) : self
Parameters
- $planIds : mixed
Return values
selfsetRedemptions()
public
setRedemptions(mixed $redemptions) : self
Parameters
- $redemptions : mixed
Return values
selfsetStatus()
public
setStatus(string|null $status) : void
Parameters
- $status : string|null
setValidTill()
public
setValidTill(int|null $validTill) : void
Parameters
- $validTill : int|null