Discount
+ Inheritance diagram for Discount:

Description

An applied discount in an AbandonedCheckout.

Public Properties

const TYPE_FIXED_AMOUNT = 'fixed_amount'
 
const TYPE_PERCENTAGE = 'percentage'
 
const TYPE_SHIPPING = 'shipping'
 
- Public Properties inherited from Data
const MAP = []
 
const PATCH = []
 

Public Methods

magic number getAmount ()
 
magic string getCode ()
 
magic string getCreatedAt ()
 ISO8601. More...
 
magic string getType ()
 See the type constants. More...
 
magic string getUpdatedAt ()
 ISO8601. More...
 
magic string getUsageCount ()
 
- Public Methods inherited from Data
mixed __call (string $method, array $args)
 
 __construct ($caller, array $data=[])
 
string serialize ()
 Dehydrated JSON encode. More...
 
array toArray ()
 
void unserialize ($serialized)
 

Additional Inherited Members

- Protected Properties inherited from Data
Api $api
 
Pool $pool
 
- Protected Methods inherited from Data
mixed _hydrate (string $class, $item)
 A factory that also hydrates / caches entities. More...
 
array _select ($subject, callable $filter,... $args)
 Magic method: selectField(callable $filter) More...
 
$this _setData (array $data)
 Clears all diffs and sets all data, hydrating mapped fields. More...
 
$this _setField (string $field, $value)
 Sets a value, hydrating if mapped, and clears the diff. More...
 

Methods

◆ getAmount()

magic number getAmount ( )
Returns
number

◆ getCode()

magic string getCode ( )
Returns
string

◆ getCreatedAt()

magic string getCreatedAt ( )

ISO8601.

Returns
string

◆ getType()

magic string getType ( )

See the type constants.

Returns
string

◆ getUpdatedAt()

magic string getUpdatedAt ( )

ISO8601.

Returns
string

◆ getUsageCount()

magic string getUsageCount ( )
Returns
string