Shipping
+ Inheritance diagram for Shipping:

Description

A shipping line.

See also
Order
DraftOrder

Public Properties

const MAP
 
- Public Properties inherited from Data
const MAP = []
 
const PATCH = []
 

Public Methods

magic string getCarrierIdentifier ()
 @only Order More...
 
magic string getCode ()
 @only Order More...
 
magic string getDiscountedPrice ()
 @only Order More...
 
magic Funds getDiscountedPriceSet ()
 @only Order More...
 
magic string getHandle ()
 @only DraftOrder More...
 
magic string getPrice ()
 
magic Funds getPriceSet ()
 @only Order More...
 
magic string getRequestedFulfillmentServiceId ()
 @only Order More...
 
magic string getSource ()
 @only Order More...
 
magic Tax[] getTaxLines ()
 @only Order More...
 
magic string getTitle ()
 
magic bool isCustom ()
 @only DraftOrder More...
 
magic $this setCode (string $code)
 @only Order More...
 
magic $this setCustom (bool $custom)
 @only DraftOrder More...
 
magic $this setDiscountedPrice (string $price)
 @only Order More...
 
magic $this setHandle (string $handle)
 @only DraftOrder More...
 
magic $this setPrice (string $price)
 
magic $this setTitle (string $title)
 
- 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...
 

Properties

◆ MAP

const MAP
Initial value:
= [
'discounted_price_set' => Funds::class,
'price_set' => Funds::class,
'tax_lines' => Tax::class,
]

Methods

◆ getCarrierIdentifier()

magic string getCarrierIdentifier ( )

@only Order

Returns
string

◆ getCode()

magic string getCode ( )

@only Order

Returns
string

◆ getDiscountedPrice()

magic string getDiscountedPrice ( )

@only Order

Returns
string

◆ getDiscountedPriceSet()

magic Funds getDiscountedPriceSet ( )

@only Order

Returns
Funds

◆ getHandle()

magic string getHandle ( )

@only DraftOrder

Returns
string

◆ getPrice()

magic string getPrice ( )
Returns
string

◆ getPriceSet()

magic Funds getPriceSet ( )

@only Order

Returns
Funds

◆ getRequestedFulfillmentServiceId()

magic string getRequestedFulfillmentServiceId ( )

@only Order

Returns
string

◆ getSource()

magic string getSource ( )

@only Order

Returns
string

◆ getTaxLines()

magic Tax [] getTaxLines ( )

@only Order

Returns
Tax[]

◆ getTitle()

magic string getTitle ( )
Returns
string

◆ isCustom()

magic bool isCustom ( )

@only DraftOrder

Returns
bool

◆ setCode()

magic $this setCode ( string  $code)

@only Order

Returns
$this

◆ setCustom()

magic $this setCustom ( bool  $custom)

@only DraftOrder

Returns
$this

◆ setDiscountedPrice()

magic $this setDiscountedPrice ( string  $price)

@only Order

Returns
$this

◆ setHandle()

magic $this setHandle ( string  $handle)

@only DraftOrder

Returns
$this

◆ setPrice()

magic $this setPrice ( string  $price)
Returns
$this

◆ setTitle()

magic $this setTitle ( string  $title)
Returns
$this