ShippingManifestInterface
interface ShippingManifestInterface (View source)
Methods
addOptions(Collection $shippingOptions)
Add a collection of shipping options to the manifest.
clearOptions()
Remove all shipping options
Collection
ShippingOption|null
ShippingOption|null
Details
ShippingManifestInterface
addOption(ShippingOption $shippingOption)
Add a shipping option to the manifest.
ShippingManifestInterface
addOptions(Collection $shippingOptions)
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