CustomerAddressResource

Namespace

IO\Api\Resources

Extends
Constants
Type Name Value Description

int

ADDRESS_NOT_SET

-99

Properties
Type Name Description

CustomerService

$customerService

Methods
public __construct($request, $response, $customerService)

CustomerAddressResource constructor.

Parameters

Type

Name

Description

Request

$request

ApiResponse

$response

CustomerService

$customerService

public index(): Response

Get an address by type

public store(): Response

Create an address with the given type

public update($addressId): Response

Update the address with the given ID

Parameters

Type

Name

Description

string

$addressId

public destroy($addressId): Response

Delete the address with the given ID

Parameters

Type

Name

Description

string

$addressId