src/Services/UserService.php
public function getAddresses($userId, UserAddressCriteria $criteria = null)
    {
        $criteria = $criteria ?: UserAddressCriteria::create();

        return $this->request(new GetUserAddressesRequest($userId, $criteria));
    }
public function getAddresses($userId, UserAddressCriteria $criteria = null)
    {
        $criteria = $criteria ?: UserAddressCriteria::create();

        return $this->request(new GetUserAddressesRequest($userId, $criteria));
    }
@param int                 $userId
@param UserAddressCriteria $criteria

@return UserAddress[]

@throws OrdercloudRequestException