CustomerDisallowedPaymentMethodsWriteService
in package
implements
CustomerDisallowedPaymentMethodsWriteService
Class CustomerDisallowedPaymentMethodsWriteService
Interfaces, Classes and Traits
- CustomerDisallowedPaymentMethodsWriteService
- Interface CustomerDisallowedPaymentMethodsWriteService
Table of Contents
- $factory : PaymentMethodFactory
- $repository : CustomerDisallowedPaymentMethodsRepository
- __construct() : mixed
- setDisallowedPaymentMethods() : void
- Sets the disallowed payment methods for a given customer.
Properties
$factory
private
PaymentMethodFactory
$factory
$repository
private
CustomerDisallowedPaymentMethodsRepository
$repository
Methods
__construct()
public
__construct(CustomerDisallowedPaymentMethodsRepository $repository, PaymentMethodFactory $factory) : mixed
Parameters
- $repository : CustomerDisallowedPaymentMethodsRepository
- $factory : PaymentMethodFactory
Return values
mixed —setDisallowedPaymentMethods()
Sets the disallowed payment methods for a given customer.
public
setDisallowedPaymentMethods(int $customerId, string ...$methodsIds) : void
Parameters
- $customerId : int
- $methodsIds : string