CustomerDisallowedShippingMethodsWriteService
in package
implements
CustomerDisallowedShippingMethodsWriteService
Class CustomerDisallowedShippingMethodsWriteService
Interfaces, Classes and Traits
- CustomerDisallowedShippingMethodsWriteService
- Interface CustomerDisallowedShippingMethodsWriteService
Table of Contents
- $factory : ShippingMethodFactory
- $repository : CustomerDisallowedShippingMethodsRepository
- __construct() : mixed
- setDisallowedShippingMethods() : void
- Sets the disallowed shipping methods for a given customer.
Properties
$factory
private
ShippingMethodFactory
$factory
$repository
private
CustomerDisallowedShippingMethodsRepository
$repository
Methods
__construct()
public
__construct(CustomerDisallowedShippingMethodsRepository $repository, ShippingMethodFactory $factory) : mixed
Parameters
- $repository : CustomerDisallowedShippingMethodsRepository
- $factory : ShippingMethodFactory
Return values
mixed —setDisallowedShippingMethods()
Sets the disallowed shipping methods for a given customer.
public
setDisallowedShippingMethods(int $customerId, string ...$shippingMethodIds) : void
Parameters
- $customerId : int
- $shippingMethodIds : string