Inheritance diagram for Discount:A DraftOrder discount.
Public Properties | |
| const | VALUE_TYPE_FIXED_AMOUNT = 'fixed_amount' |
| const | VALUE_TYPE_PERCENTAGE = 'percentage' |
Public Properties inherited from Data | |
| const | MAP = [] |
| const | PATCH = [] |
Public Methods | |
| magic number | getAmount () |
| magic string | getDescription () |
| magic string | getTitle () |
| magic string | getValue () |
| magic string | getValueType () |
| magic $this | setAmount (number $amount) |
| magic $this | setDescription (string $text) |
| magic $this | setTitle (string $title) |
| magic $this | setValue (string $value) |
| magic $this | setValueType (string $type) |
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... | |
| magic number getAmount | ( | ) |
| magic string getDescription | ( | ) |
| magic string getTitle | ( | ) |
| magic string getValue | ( | ) |
| magic string getValueType | ( | ) |
| magic $this setAmount | ( | number | $amount | ) |
| magic $this setDescription | ( | string | $text | ) |
| magic $this setTitle | ( | string | $title | ) |
| magic $this setValue | ( | string | $value | ) |
| magic $this setValueType | ( | string | $type | ) |