-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 235f257
Showing
464 changed files
with
96,570 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
return Symfony\CS\Config::create() | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->setUsingCache(true) | ||
->fixers( | ||
[ | ||
'ordered_use', | ||
'phpdoc_order', | ||
'short_array_syntax', | ||
'strict', | ||
'strict_param' | ||
] | ||
) | ||
->finder( | ||
Symfony\CS\Finder\DefaultFinder::create() | ||
->in(__DIR__) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: php | ||
sudo: false | ||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
before_install: "composer install" | ||
script: "vendor/bin/phpunit" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "ciltocruz/swagger-bankstore-api-rest", | ||
"description": "", | ||
"keywords": [ | ||
"swagger", | ||
"php", | ||
"sdk", | ||
"api" | ||
], | ||
"homepage": "http://swagger.io", | ||
"license": "proprietary", | ||
"authors": [ | ||
{ | ||
"name": "Swagger and contributors", | ||
"homepage": "https://github.com/swagger-api/swagger-codegen" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.5", | ||
"ext-curl": "*", | ||
"ext-json": "*", | ||
"ext-mbstring": "*", | ||
"guzzlehttp/guzzle": "^6.2" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^4.8", | ||
"squizlabs/php_codesniffer": "~2.6", | ||
"friendsofphp/php-cs-fixer": "~1.12" | ||
}, | ||
"autoload": { | ||
"psr-4": { "Swagger\\Client\\" : "lib/" } | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { "Swagger\\Client\\" : "test/" } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Swagger\Client\BalanceApi | ||
|
||
All URIs are relative to *https://rest.paycomet.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**productBalance**](BalanceApi.md#productbalance) | **POST** /v1/balance | Get balance info | ||
|
||
# **productBalance** | ||
> \Swagger\Client\Model\InlineResponse2005 productBalance($body, $paycomet_api_token) | ||
Get balance info | ||
|
||
Gets the balance of a product. Restricted. | ||
|
||
### Example | ||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
// Configure API key authorization: paycometApiKey | ||
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); | ||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); | ||
|
||
$apiInstance = new Swagger\Client\Api\BalanceApi( | ||
// 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(), | ||
$config | ||
); | ||
$body = new \Swagger\Client\Model\Body6(); // \Swagger\Client\Model\Body6 | | ||
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) | ||
|
||
try { | ||
$result = $apiInstance->productBalance($body, $paycomet_api_token); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling BalanceApi->productBalance: ', $e->getMessage(), PHP_EOL; | ||
} | ||
?> | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**body** | [**\Swagger\Client\Model\Body6**](../Model/Body6.md)| | [optional] | ||
**paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] | ||
|
||
### Return type | ||
|
||
[**\Swagger\Client\Model\InlineResponse2005**](../Model/InlineResponse2005.md) | ||
|
||
### Authorization | ||
|
||
[paycometApiKey](../../README.md#paycometApiKey) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) | ||
|
Oops, something went wrong.