Класс, расширяющий стандартный класс ответа от Mindbox и используемый в стандартном запросе на объединение потребителей.
Class MindboxMergeCustomersResponse
- Class name: MindboxMergeCustomersResponse
- Namespace: Mindbox\Responses
- Parent class: Mindbox\MindboxResponse
const MINDBOX_SUCCESS_STATUS = 'Success'
protected integer $httpCode
- Visibility: protected
protected array $headers
- Visibility: protected
protected array $body
- Visibility: protected
protected string $rawBody
- Visibility: protected
protected \Mindbox\MindboxRequest $request
- Visibility: protected
\Mindbox\DTO\V3\Responses\CustomerIdentityResponseCollection|null Mindbox\Responses\MindboxMergeCustomersResponse::getCustomersToMerge()
Возвращает коллекцию объединяемых потребителей, если такие есть в ответе.
- Visibility: public
\Mindbox\DTO\V3\Responses\CustomerIdentityResponseDTO|null Mindbox\Responses\MindboxMergeCustomersResponse::getResultingCustomer()
Возвращает объект результирующего потребителя, если такой есть в ответе.
- Visibility: public
mixed Mindbox\MindboxResponse::__construct(integer $httpCode, array $headers, array $body, string $rawBody, \Mindbox\MindboxRequest $request)
Конструктор MindboxResponse.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
- $httpCode integer - <p>HTTP код ответа.</p>
- $headers array - <p>Заголовки ответа.</p>
- $body array - <p>Тело ответа в виде массива.</p>
- $rawBody string - <p>"Сырое" тело ответа (xml|json).</p>
- $request Mindbox\MindboxRequest - <p>Экземпляр связанного запроса.</p>
boolean Mindbox\MindboxResponse::isError()
Проверка статуса операции Mindbox.
Возвращает true, если в ответе есть поля errorId или errorMessage. Возвращает false, если статус ответа совпадает с MINDBOX_SUCCESS_STATUS или статус отсутствует в ответе. При отличии статуса от MINDBOX_SUCCESS_STATUS возвращает true.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
array Mindbox\MindboxResponse::getBody()
Геттер для $body.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
string|null Mindbox\MindboxResponse::getMindboxStatus()
Возвращает статус операции Mindbox.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
\Mindbox\DTO\ResultDTO Mindbox\MindboxResponse::getResult()
Возвращает тело ответа в виде экземпляра DTO.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
\Mindbox\DTO\V3\Responses\ValidationMessageResponseCollection|null Mindbox\MindboxResponse::getValidationErrors()
Возвращает ошибки валидации в виде DTO, если такие присутствуют в ответе.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
integer Mindbox\MindboxResponse::getHttpCode()
Геттер для $httpCode.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
array Mindbox\MindboxResponse::getHeaders()
Геттер для $headers.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
string Mindbox\MindboxResponse::getRawBody()
Геттер для $rawBody.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse
\Mindbox\MindboxRequest Mindbox\MindboxResponse::getRequest()
Геттер для $request.
- Visibility: public
- This method is defined by Mindbox\MindboxResponse