Coupon
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Constants
-
APPLY_ON_EACH_SPECIFIED_ITEM
= "each_specified_item"
-
APPLY_ON_INVOICE_AMOUNT
= "invoice_amount"
-
CONSTRAINT_ALL
= "all"
-
CONSTRAINT_NONE
= "none"
-
CONSTRAINT_NOT_APPLICABLE
= "not_applicable"
-
CONSTRAINT_SPECIFIC
= "specific"
-
DISCOUNT_TYPE_FIXED_AMOUNT
= "fixed_amount"
-
DISCOUNT_TYPE_PERCENTAGE
= "percentage"
-
DURATION_TYPE_FOREVER
= "forever"
-
DURATION_TYPE_LIMITED_PERIOD
= "limited_period"
-
DURATION_TYPE_ONE_TIME
= "one_time"
-
STATUS_ACTIVE
= "active"
-
STATUS_ARCHIVED
= "archived"
-
STATUS_DELETED
= "deleted"
-
STATUS_EXPIRED
= "expired"
Properties
-
$addonConstraint
: string|null
-
$addonIds
: array<string|int, string>
-
$applyOn
: string
-
$chargeBeeId
: string
-
$discountAmount
: int|null
-
$discountPercentage
: float|null
-
$discountType
: string
-
$durationMonth
: int|null
-
$durationType
: string
-
$maxRedemptions
: int|null
-
$planConstraint
: string|null
-
$planIds
: array<string|int, string>
-
$status
: string|null
-
$validTill
: int|null
Methods
-
__construct()
: mixed
-
getAddonConstraint()
: string|null
-
getAddonIds()
: array<string|int, string>
-
getApplyOn()
: string
-
getChargeBeeId()
: string
-
getDiscountAmount()
: int|null
-
getDiscountPercentage()
: float|null
-
getDiscountType()
: string
-
getDurationMonth()
: int|null
-
getDurationType()
: string
-
getIsRecurring()
: mixed
-
getMaxRedemptions()
: int|null
-
getPlanConstraint()
: string|null
-
getPlanIds()
: array<string|int, string>
-
getStatus()
: string|null
-
getValidTill()
: int|null
-
jsonSerialize()
: mixed
APPLY_ON_EACH_SPECIFIED_ITEM
public
mixed
APPLY_ON_EACH_SPECIFIED_ITEM
= "each_specified_item"
APPLY_ON_INVOICE_AMOUNT
public
mixed
APPLY_ON_INVOICE_AMOUNT
= "invoice_amount"
CONSTRAINT_ALL
public
mixed
CONSTRAINT_ALL
= "all"
CONSTRAINT_NONE
public
mixed
CONSTRAINT_NONE
= "none"
CONSTRAINT_NOT_APPLICABLE
public
mixed
CONSTRAINT_NOT_APPLICABLE
= "not_applicable"
CONSTRAINT_SPECIFIC
public
mixed
CONSTRAINT_SPECIFIC
= "specific"
DISCOUNT_TYPE_FIXED_AMOUNT
public
mixed
DISCOUNT_TYPE_FIXED_AMOUNT
= "fixed_amount"
DISCOUNT_TYPE_PERCENTAGE
public
mixed
DISCOUNT_TYPE_PERCENTAGE
= "percentage"
DURATION_TYPE_FOREVER
public
mixed
DURATION_TYPE_FOREVER
= "forever"
DURATION_TYPE_LIMITED_PERIOD
public
mixed
DURATION_TYPE_LIMITED_PERIOD
= "limited_period"
DURATION_TYPE_ONE_TIME
public
mixed
DURATION_TYPE_ONE_TIME
= "one_time"
STATUS_ACTIVE
public
mixed
STATUS_ACTIVE
= "active"
STATUS_ARCHIVED
public
mixed
STATUS_ARCHIVED
= "archived"
STATUS_DELETED
public
mixed
STATUS_DELETED
= "deleted"
STATUS_EXPIRED
public
mixed
STATUS_EXPIRED
= "expired"
$addonConstraint
private
string|null
$addonConstraint
$addonIds
private
array<string|int, string>
$addonIds
= []
$applyOn
private
string
$applyOn
$chargeBeeId
private
string
$chargeBeeId
$discountAmount
private
int|null
$discountAmount
$discountPercentage
private
float|null
$discountPercentage
$discountType
private
string
$discountType
$durationMonth
private
int|null
$durationMonth
$durationType
private
string
$durationType
$maxRedemptions
private
int|null
$maxRedemptions
$planConstraint
private
string|null
$planConstraint
$planIds
private
array<string|int, string>
$planIds
= []
$status
private
string|null
$status
$validTill
private
int|null
$validTill
__construct()
public
__construct(string $chargeBeeId, string|null $discountType, int|null $discountAmount, float|null $discountPercentage, string|null $durationType, int|null $durationMonth, int|null $validTill, int|null $maxRedemptions, string|null $status, string|null $applyOn, string|null $planConstraint, string|null $addonConstraint, array<string|int, mixed>|null $planIds, array<string|int, mixed>|null $addonIds) : mixed
Parameters
-
$chargeBeeId
: string
-
-
$discountType
: string|null
-
-
$discountAmount
: int|null
-
-
$discountPercentage
: float|null
-
-
$durationType
: string|null
-
-
$durationMonth
: int|null
-
-
$validTill
: int|null
-
-
$maxRedemptions
: int|null
-
-
$status
: string|null
-
-
$applyOn
: string|null
-
-
$planConstraint
: string|null
-
-
$addonConstraint
: string|null
-
-
$planIds
: array<string|int, mixed>|null
-
-
$addonIds
: array<string|int, mixed>|null
-
getAddonConstraint()
public
getAddonConstraint() : string|null
Return values
string|null
getAddonIds()
public
getAddonIds() : array<string|int, string>
Return values
array<string|int, string>
getApplyOn()
public
getApplyOn() : string
getChargeBeeId()
public
getChargeBeeId() : string
getDiscountAmount()
public
getDiscountAmount() : int|null
getDiscountPercentage()
public
getDiscountPercentage() : float|null
getDiscountType()
public
getDiscountType() : string
getDurationMonth()
public
getDurationMonth() : int|null
getDurationType()
public
getDurationType() : string
getIsRecurring()
public
getIsRecurring() : mixed
getMaxRedemptions()
public
getMaxRedemptions() : int|null
getPlanConstraint()
public
getPlanConstraint() : string|null
Return values
string|null
getPlanIds()
public
getPlanIds() : array<string|int, string>
Return values
array<string|int, string>
getStatus()
public
getStatus() : string|null
Return values
string|null
getValidTill()
public
getValidTill() : int|null
jsonSerialize()
public
jsonSerialize() : mixed