ItemInterface
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 | |
string|null | getBillingPeriod() | Get start date for items that renew | |
ItemInterface | setQuantity(int $qty) | Set quantity for scaling quantity items | |
int|null | 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 |
Details
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
string|null
getBillingPeriod ()
Get start date for items that renew
ItemInterface
setQuantity (int $qty)
Set quantity for scaling quantity items
int|null
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