Skip to content

itfrogs/ekassir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerClient-php

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

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

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;
}
?>

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

Bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

oAuth2

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published