interface ItemInterface

Methods summary

Return Type Method Name Description
string getUuid() Runtime unique id for cart item
ItemInterface setId(string|null $id) Set type prefixed product identifier
string|null getId() Get prefixed product identifier
ItemInterface setName(string $name) Set description name
string getName() Get description name
ItemInterface setBillingCycle($billingCycle) Set billing cycle, such as free, onetime, monthly, quarterly, etc
string getBillingCycle() Get billing cycle
ItemInterface setBillingPeriod(string $billingPeriod) Start date for items that renew
int getBillingPeriod() Get start date for items that renew
ItemInterface setQuantity(int $qty) Set quantity for scaling quantity items
int getQuantity() Get quantity for scaling quantity items
ItemInterface setAmount(Price $amount) Set initial cost amount
Price getAmount() Get Initial cost amount
ItemInterface setRecurringAmount(Price $recurring = null) Set recurring cost amount
Price|null getRecurringAmount() Get recurring cost amount
ItemInterface setTaxed(bool $taxed) Set taxable status of item
bool isTaxed() Is item taxable
ItemInterface setInitialPeriod(string $period, string $cycle) Set initial period in days for prorated item
bool hasInitialPeriod() If an initial period is defined (prorata)
bool isRecurring() If the item is a of a recurring cycle
string getType() Item type such as Product, Addon, Domain or generic Item
Price getSetupAmount() The setup amount
setSetupAmount(Price|null $amount) Set the setup amount
Price getRecurringBasePrice() The recurring base price without Tax or Setup fee
setRecurringBasePrice(Price|null $amount) Set the base prince
string getItemName() Item's name without concatenated group's name
setItemName(string $name) -
string getItemGroupName() Item's group name (without its name)
setItemGroupName(string $groupName) -
int getItemGroupId() -
setItemGroupId(int $groupId) -
Price getAmountExcludeTaxSetup() Initial cost without Tax and Setup fee
setAmountExcludeTaxSetup(Price|null $price) -
bool isFree() If the cart item has free billing cycle

Details

string getUuid ()

Runtime unique id for cart item

Return Value

string

ItemInterface setId (string|null $id)

Set type prefixed product identifier

Parameters

string|null $id

Return Value

ItemInterface

string|null getId ()

Get prefixed product identifier

Return Value

string|null

ItemInterface setName (string $name)

Set description name

Parameters

string $name

Return Value

ItemInterface

string getName ()

Get description name

Return Value

string

ItemInterface setBillingCycle ($billingCycle)

Set billing cycle, such as free, onetime, monthly, quarterly, etc

Parameters

$billingCycle

Return Value

ItemInterface

string getBillingCycle ()

Get billing cycle

Return Value

string

ItemInterface setBillingPeriod (string $billingPeriod)

Start date for items that renew

Parameters

string $billingPeriod

Return Value

ItemInterface

int getBillingPeriod ()

Get start date for items that renew

Return Value

int

ItemInterface setQuantity (int $qty)

Set quantity for scaling quantity items

Parameters

int $qty

Return Value

ItemInterface

int getQuantity ()

Get quantity for scaling quantity items

Return Value

int

ItemInterface setAmount (Price $amount)

Set initial cost amount

Parameters

Price $amount

Return Value

ItemInterface

Price getAmount ()

Get Initial cost amount

Return Value

Price

ItemInterface setRecurringAmount (Price $recurring = null)

Set recurring cost amount

Parameters

Price $recurring

Return Value

ItemInterface

Price|null getRecurringAmount ()

Get recurring cost amount

Return Value

Price|null

ItemInterface setTaxed (bool $taxed)

Set taxable status of item

Parameters

bool $taxed

Return Value

ItemInterface

bool isTaxed ()

Is item taxable

Return Value

bool

ItemInterface setInitialPeriod (string $period, string $cycle)

Set initial period in days for prorated item

Parameters

string $period
string $cycle

Return Value

ItemInterface

bool hasInitialPeriod ()

If an initial period is defined (prorata)

Return Value

bool

bool isRecurring ()

If the item is a of a recurring cycle

Return Value

bool

string getType ()

Item type such as Product, Addon, Domain or generic Item

Return Value

string

Price getSetupAmount ()

The setup amount

Return Value

Price

setSetupAmount (Price|null $amount)

Set the setup amount

Parameters

Price|null $amount

Price getRecurringBasePrice ()

The recurring base price without Tax or Setup fee

Return Value

Price

setRecurringBasePrice (Price|null $amount)

Set the base prince

Parameters

Price|null $amount

string getItemName ()

Item's name without concatenated group's name

Return Value

string

setItemName (string $name)

Parameters

string $name

string getItemGroupName ()

Item's group name (without its name)

Return Value

string

setItemGroupName (string $groupName)

Parameters

string $groupName

int getItemGroupId ()

Return Value

int

setItemGroupId (int $groupId)

Parameters

int $groupId

Price getAmountExcludeTaxSetup ()

Initial cost without Tax and Setup fee

Return Value

Price

setAmountExcludeTaxSetup (Price|null $price)

Parameters

Price|null $price

bool isFree ()

If the cart item has free billing cycle

Return Value

bool