UpdateCustomersDefaultAddress
in package
Class UpdateCustomersDefaultAddress
Tags
Table of Contents
- $addressAttributeMethodMap : array<string|int, mixed>
- $factory : CustomerAddressFactory
- $readService : CustomerDefaultAddressReadService
- $writeService : CustomerDefaultAddressWriteService
- __construct() : mixed
- __invoke() : Response
- parseRequestBody() : array<string|int, mixed>
Properties
$addressAttributeMethodMap
private
static array<string|int, mixed>
$addressAttributeMethodMap
= ['paymentAddress' => 'getDefaultPaymentAddress', 'shippingAddress' => 'getDefaultShippingAddress']
$factory
private
CustomerAddressFactory
$factory
$readService
private
CustomerDefaultAddressReadService
$readService
$writeService
private
CustomerDefaultAddressWriteService
$writeService
Methods
__construct()
public
__construct(CustomerDefaultAddressReadService $readService, CustomerDefaultAddressWriteService $writeService, CustomerAddressFactory $factory) : mixed
Parameters
- $readService : CustomerDefaultAddressReadService
- $writeService : CustomerDefaultAddressWriteService
- $factory : CustomerAddressFactory
Return values
mixed —__invoke()
public
__invoke(Request $request, Response $response, array<string|int, mixed> $args) : Response
Parameters
Return values
Response —parseRequestBody()
private
parseRequestBody(array<string|int, mixed> $body) : array<string|int, mixed>
Parameters
- $body : array<string|int, mixed>