ShippingManifest
class ShippingManifest implements ShippingManifestInterface (View source)
Properties
$options | The collection of available shipping options. |
||
$getOptionUsing |
Methods
__construct()
Initiate the class.
addOptions(Collection $options)
Add a collection of shipping options to the manifest.
clearOptions()
Remove all shipping options
Collection
ShippingOption|null
ShippingOption|null
Details
__construct()
Initiate the class.
ShippingManifestInterface
addOption(ShippingOption $option)
Add a shipping option to the manifest.
ShippingManifestInterface
addOptions(Collection $options)
Add a collection of shipping options to the manifest.
ShippingManifestInterface
clearOptions()
Remove all shipping options
ShippingManifestInterface
getOptionUsing(Closure $closure)
Define closure to retrieve shipping option
Collection
getOptions(Cart $cart)
Return available options for a given cart.
ShippingOption|null
getOption(Cart $cart, string $identifier)
Return available option for a given cart by identifier.
ShippingOption|null
getShippingOption(Cart $cart)
Retrieve shipping option for a given cart