Heystack\Ecommerce\Transaction\Interfaces\TransactionInterface
Defines what functions a Transaction Class needs to implement
- Author: Glenn Bautista <glenn@heyday.co.nz>
- Copyright: Heyday
Synopsis
interface TransactionInterface
extends StorableInterface
{
- // methods
- public void addModifier()
- public TransactionModifierInterface getModifier()
- public array getModifiers()
- public array getChargeableModifiers()
- public array getDeductibleModifiers()
- public array getNeutralModifiers()
- public array getModifiersByType()
- public Money getTotal()
- public void updateTotal()
- public Money getTotalWithExclusions()
- public Money getChargeableTotalWithExclusions()
- public Money getDeductibleTotalWithExclusions()
- public array getLinkedModifers()
- public void setStatus()
- public string getStatus()
Hierarchy
Extends
- Heystack\Core\Storage\StorableInterface
Methods
public
- addModifier() — Add a TransactionModifier to the Transaction
- getChargeableModifiers()
- getChargeableTotalWithExclusions()
- getDeductibleModifiers()
- getDeductibleTotalWithExclusions()
- getLinkedModifers()
- getModifier() — Returns a TransactionModifier based on the identifier
- getModifiers() — Returns all the TransactionModifiers held by the Transaction object
- getModifiersByType() — Returns modifiers on the transaction by TranactionModifierType
- getNeutralModifiers()
- getStatus() — Retrieves the Transaction's status
- getTotal() — Returns the aggregate total of the TransactionModifers held by the Transaction object
- getTotalWithExclusions() — Retrieves the total without adding excluded modifiers
- setStatus() — Sets the status of the transaction
- updateTotal() — Update the aggregate total of the TransactionModifers held by the Transaction object