No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This PHP package is automatically generated by the Swagger Codegen project:
- API version: v1.2
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen For more information, please visit https://ekassir.com
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\MerchantApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$qrc_id = "qrc_id_example"; // string |
$body = new \Swagger\Client\Model\map(); // map[string,null] |
try {
$apiInstance->petition($qrc_id, $body);
} catch (Exception $e) {
echo 'Exception when calling MerchantApi->petition: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = new Swagger\Client\Api\MerchantApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$qrc_id = "qrc_id_example"; // string |
$media_type = new \Swagger\Client\Model\MediaType(); // \Swagger\Client\Model\MediaType |
$width = 300; // int |
$height = 300; // int |
try {
$result = $apiInstance->qRCodeGet($qrc_id, $media_type, $width, $height);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MerchantApi->qRCodeGet: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = new Swagger\Client\Api\MerchantApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\map(); // map[string,null] |
$media_type = new \Swagger\Client\Model\MediaType(); // \Swagger\Client\Model\MediaType |
$width = 300; // int |
$height = 300; // int |
try {
$result = $apiInstance->qRCodePost($body, $media_type, $width, $height);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MerchantApi->qRCodePost: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = new Swagger\Client\Api\MerchantApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\map(); // map[string,null] |
try {
$result = $apiInstance->qRCodePost_0($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MerchantApi->qRCodePost_0: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to /
Class | Method | HTTP request | Description |
---|---|---|---|
MerchantApi | petition | POST /api/merchant/v1/petition/{qrcId} | |
MerchantApi | qRCodeGet | GET /api/merchant/v1/qrc-data/{qrcId}/payload | Get QR-code payload |
MerchantApi | qRCodePost | POST /api/merchant/v1/qrc-data | Register QR-code data |
MerchantApi | qRCodePost_0 | PUT /api/merchant/v1/qrc-status | Get QR-codes statuses |
ReportsApi | ordersGET | GET /api/merchant/v1/reports/orders/{orderId} | |
ReportsApi | ordersPOST | POST /api/merchant/v1/reports/orders |
- Data
- DataStatus
- Image
- MediaType
- Parameters
- PaymentParameter
- PaymentPetitionDto
- Period
- QrcDataDto
- QrcDataDtoCurrency
- QrcDataDtoQrcType
- QrcDataDtoTemplateVersion
- QrcDataResultOk
- QrcPayloadResultOk
- QrcStatusDto
- QrcStatusResultOk
- ReportOrder
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header