Skip to content

Latest commit

 

History

History
912 lines (629 loc) · 34.4 KB

CompanyConfirmationApi.md

File metadata and controls

912 lines (629 loc) · 34.4 KB

MagDv\Cargomart\CompanyConfirmationApi

All URIs are relative to https://cargomart.ru.

Method HTTP request Description
apiV2CompanyConfirmationCompanyConfirmDelete() DELETE /api/v2/company-confirmation/company/confirm Отказ от данных компании.
apiV2CompanyConfirmationCompanyConfirmPost() POST /api/v2/company-confirmation/company/confirm Подтверждение данных компании.
apiV2CompanyConfirmationCompanyDelete() DELETE /api/v2/company-confirmation/company Откат к шагу ввода ИНН.
apiV2CompanyConfirmationCompanyPost() POST /api/v2/company-confirmation/company Установка начальных данных компании.
apiV2CompanyConfirmationCompanyProfileSendPost() POST /api/v2/company-confirmation/company-profile-send Отправить анкету, перейти к следующему шагу
apiV2CompanyConfirmationCompanyPut() PUT /api/v2/company-confirmation/company Доработка данных компании (СНО, флаг декларации).
apiV2CompanyConfirmationDocumentIdDelete() DELETE /api/v2/company-confirmation/document/{id} Удаление документа.
apiV2CompanyConfirmationDocumentPost() POST /api/v2/company-confirmation/document Загрузка нового документа
apiV2CompanyConfirmationDocumentSendPost() POST /api/v2/company-confirmation/document/send Отправка документа на проверку.
apiV2CompanyConfirmationGet() GET /api/v2/company-confirmation Получение текущего статуса валидации.
apiV2CompanyConfirmationIncomeRequestPost() POST /api/v2/company-confirmation/income-request Отправка запроса на добавление в сотрудники в компанию дубликат.
apiV2CompanyConfirmationRoleDelete() DELETE /api/v2/company-confirmation/role Возврат к выбору роли компании.
apiV2CompanyConfirmationRolePut() PUT /api/v2/company-confirmation/role Установка роли клиента.
apiV2CompanyConfirmationValidationGet() GET /api/v2/company-confirmation/validation Получение текущего статуса валидации.

apiV2CompanyConfirmationCompanyConfirmDelete()

apiV2CompanyConfirmationCompanyConfirmDelete(): \MagDv\Cargomart\Dto\StatusResponse

Отказ от данных компании.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->apiV2CompanyConfirmationCompanyConfirmDelete();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationCompanyConfirmDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationCompanyConfirmPost()

apiV2CompanyConfirmationCompanyConfirmPost(): \MagDv\Cargomart\Dto\StatusResponse

Подтверждение данных компании.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->apiV2CompanyConfirmationCompanyConfirmPost();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationCompanyConfirmPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationCompanyDelete()

apiV2CompanyConfirmationCompanyDelete(): \MagDv\Cargomart\Dto\StatusResponse

Откат к шагу ввода ИНН.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->apiV2CompanyConfirmationCompanyDelete();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationCompanyDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationCompanyPost()

apiV2CompanyConfirmationCompanyPost($company_create_request): \MagDv\Cargomart\Dto\StatusResponse

Установка начальных данных компании.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$company_create_request = new \MagDv\Cargomart\Dto\CompanyCreateRequest(); // \MagDv\Cargomart\Dto\CompanyCreateRequest

try {
    $result = $apiInstance->apiV2CompanyConfirmationCompanyPost($company_create_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationCompanyPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
company_create_request \MagDv\Cargomart\Dto\CompanyCreateRequest

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationCompanyProfileSendPost()

apiV2CompanyConfirmationCompanyProfileSendPost($company_profile): \MagDv\Cargomart\Dto\StatusResponse

Отправить анкету, перейти к следующему шагу

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$company_profile = new \MagDv\Cargomart\Dto\CompanyProfile(); // \MagDv\Cargomart\Dto\CompanyProfile

try {
    $result = $apiInstance->apiV2CompanyConfirmationCompanyProfileSendPost($company_profile);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationCompanyProfileSendPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
company_profile \MagDv\Cargomart\Dto\CompanyProfile

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationCompanyPut()

apiV2CompanyConfirmationCompanyPut($company_update_request): \MagDv\Cargomart\Dto\StatusResponse

Доработка данных компании (СНО, флаг декларации).

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$company_update_request = new \MagDv\Cargomart\Dto\CompanyUpdateRequest(); // \MagDv\Cargomart\Dto\CompanyUpdateRequest

try {
    $result = $apiInstance->apiV2CompanyConfirmationCompanyPut($company_update_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationCompanyPut: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
company_update_request \MagDv\Cargomart\Dto\CompanyUpdateRequest

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationDocumentIdDelete()

apiV2CompanyConfirmationDocumentIdDelete($id): \MagDv\Cargomart\Dto\StatusResponse

Удаление документа.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$id = 56; // int | Идентификатор документа.

try {
    $result = $apiInstance->apiV2CompanyConfirmationDocumentIdDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationDocumentIdDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id int Идентификатор документа.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationDocumentPost()

apiV2CompanyConfirmationDocumentPost($type, $file): \MagDv\Cargomart\Dto\StatusResponse

Загрузка нового документа

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$type = 'type_example'; // string | Тип загружаемого документа.
$file = '/path/to/file.txt'; // \SplFileObject

try {
    $result = $apiInstance->apiV2CompanyConfirmationDocumentPost($type, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationDocumentPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
type string Тип загружаемого документа.
file \SplFileObject**\SplFileObject** [optional]

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationDocumentSendPost()

apiV2CompanyConfirmationDocumentSendPost(): \MagDv\Cargomart\Dto\StatusResponse

Отправка документа на проверку.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->apiV2CompanyConfirmationDocumentSendPost();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationDocumentSendPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationGet()

apiV2CompanyConfirmationGet(): \MagDv\Cargomart\Dto\StatusResponse

Получение текущего статуса валидации.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->apiV2CompanyConfirmationGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationIncomeRequestPost()

apiV2CompanyConfirmationIncomeRequestPost($income_request): \MagDv\Cargomart\Dto\StatusResponse

Отправка запроса на добавление в сотрудники в компанию дубликат.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$income_request = new \MagDv\Cargomart\Dto\IncomeRequest(); // \MagDv\Cargomart\Dto\IncomeRequest

try {
    $result = $apiInstance->apiV2CompanyConfirmationIncomeRequestPost($income_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationIncomeRequestPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
income_request \MagDv\Cargomart\Dto\IncomeRequest

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationRoleDelete()

apiV2CompanyConfirmationRoleDelete(): \MagDv\Cargomart\Dto\StatusResponse

Возврат к выбору роли компании.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->apiV2CompanyConfirmationRoleDelete();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationRoleDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationRolePut()

apiV2CompanyConfirmationRolePut($role_set_request): \MagDv\Cargomart\Dto\StatusResponse

Установка роли клиента.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$role_set_request = new \MagDv\Cargomart\Dto\RoleSetRequest(); // \MagDv\Cargomart\Dto\RoleSetRequest

try {
    $result = $apiInstance->apiV2CompanyConfirmationRolePut($role_set_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationRolePut: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
role_set_request \MagDv\Cargomart\Dto\RoleSetRequest

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2CompanyConfirmationValidationGet()

apiV2CompanyConfirmationValidationGet(): \MagDv\Cargomart\Dto\StatusResponse

Получение текущего статуса валидации.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new MagDv\Cargomart\Api\CompanyConfirmationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->apiV2CompanyConfirmationValidationGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyConfirmationApi->apiV2CompanyConfirmationValidationGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\StatusResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]