Get all profile according to the given parameters

@param string $customerId
@param string $expiredBy
@param int    $begin
@param int    $size

@return Responses\ListProfilesResponse
@internal param string $mpayTid
769548
public function listCustomers($customerId = null, $expiredBy = null, $begin = null, $size = null)
    {
        $this->integrityCheck();

        $response = $this->mpay24Sdk->listProfiles($customerId, $expiredBy, $begin, $size);

        $this->recordedLastMessageExchange('ListProfiles');

        return $response;
    }
1063376
public function createPaymentByInvoiceTitleAndCustomerIdQuery($invoiceTitle, $customerId)
    {
        $query = $this->getFactory()->createPaymentPayoneQuery();
        $query->useSpySalesOrderQuery()
            ->filterByFkCustomer($customerId)
            ->endUse()
            ->useSpyPaymentPayoneDetailQuery()
            ->filterByInvoiceTitle($invoiceTitle)
            ->endUse()
            ->useSpyPaymentPayoneApiLogQuery()
            ->filterByStatus(PayoneApiConstants::RESPONSE_TYPE_APPROVED)
            ->endUse();

        return $query;
    }
32829
public function getProfiles($accountId = false, $propertyId = false)
    {
        if (!$this->getAccountId() && !$accountId || !$this->getPropertyId() && !$propertyId) {
            return false;
        }

        // get views
        if ($accountId && $propertyId) {
            $profiles = $this->serviceHelper->getService()->management_profiles->listManagementProfiles(
                    $accountId,
                    $propertyId
                );
        } else {
            $profiles = $this->serviceHelper->getService()->management_profiles->listManagementProfiles(
                    $this->getAccountId(),
                    $this->getPropertyId()
                );
        }

        $data = array();
        if (is_array($profiles->getItems())) {
            foreach ($profiles->getItems() as $profile) {
                $data[$profile->name] = array(
                            'profileId' => $profile->id,
                            'profileName' => $profile->name,
                            'created' => $profile->created,
                        );
            }
        }
        ksort($data);

        return $data;
    }
846118
public function deleteProfile($customerId, $profileId = null)
    {
        $this->integrityCheck();

        $response = $this->mpay24Sdk->deleteProfile($customerId, $profileId);
        $this->recordedLastMessageExchange('DeleteProfile');
        return $response;
    }
568213
public function beforeDeleteById(
        \Magento\Customer\Api\CustomerRepositoryInterface $subject,
        $customerId
    ) {
        $this->deleteSnaps($customerId);
        $this->deleteChange($customerId);
        $result = [$customerId];
        return $result;
    }
594137
public function registerCard(string $customerId, string $urlReturn = null)
    {
        $this->flow->getLogger()->debug("Registering Card for $customerId, returns to $urlReturn");

        return BasicResponse::make(
            $this->flow->send('post',
                $this->endpoint . '/register',
                [
                    'customerId' => $customerId,
                    'url_return' => $urlReturn ?? $this->flow->getReturnUrls('card.url_return'),
                ]
            )
        );
    }
1119777
public function delete($customerId, $resourceId, $optParams = array()) {
      $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('delete', array($params));
      return $data;
    }
1203210
private function _determineCustomerId($customerOrId)
    {
        $customerId = ($customerOrId instanceof Customer) ? $customerOrId->id : $customerOrId;
        $this->_validateCustomerId($customerId);
        return $customerId;

    }
1356962
public function loadByCustomerId($customerId)
    {
        $contact = $this->getCollection()
            ->loadByCustomerId($customerId);

        if ($contact) {
            return $contact;
        }

        return $this;
    }
1231202
public function getById($appId, $profileId, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->getById($appId, $profileId, $queryParams);

        return new ProfileResponse($response);
    }
76980
public function get($customerId, $optParams = array()) {
      $params = array('customerId' => $customerId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('get', array($params));
      if ($this->useObjects()) {
        return new Customer($data);
      } else {
        return $data;
      }
    }
90737
public function getAll($appId = null, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->getAll($appId, $queryParams);

        return new ProfilesResponse($response);
    }
377957
public function create($data, $customerId = null)
    {
        if (isset($customerId)) {
            return $this->client()->put($data, 'customers/{customerId}', ['customerId' => $customerId]);
        }

        return $this->client()->post($data, 'customers');
    }
387967
public function getFor(Customer $customer, $subscriptionId, array $parameters = [])
    {
        $this->parentId = $customer->id;

        return parent::rest_read($subscriptionId, $parameters);
    }
1237952
private function getStoredUserProfile($userId)
    {
        if (is_null($this->_userProfileService)) {
            return null;
        }

        try {
            $userProfileMap = $this->_userProfileService->lookup($userId);
            if (is_null($userProfileMap)) {
                $this->_logger->log(
                    Logger::INFO,
                    sprintf('No user profile found for user with ID "%s".', $userId)
                );
            } elseif (UserProfileUtils::isValidUserProfileMap($userProfileMap)) {
                return UserProfileUtils::convertMapToUserProfile($userProfileMap);
            } else {
                $this->_logger->log(
                    Logger::WARNING,
                    'The User Profile Service returned an invalid user profile map.'
                );
            }
        } catch (Exception $e) {
            $this->_logger->log(
                Logger::ERROR,
                sprintf('The User Profile Service lookup method failed: %s.', $e->getMessage())
            );
        }

        return null;
    }
888465
public function listByCustomer($customerId)
    {
        $service = $this->getService();
        $response = $service->request('customers/' . (int)$customerId . '/subscriptions', 'GET');
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $this->_normalizeResponseArray($responseArray);
        } else {
            $this->_data = array();
        }

        return $this;
    }
712331
public function createCustomer($customerExtId)
    {
        $request = $this
            ->apiRequestFactory
            ->createCustomerRequest($customerExtId);

        return $this->send($request);
    }