Skip to content

Commit 96e2c45

Browse files
committed
first time generated
1 parent 46421ef commit 96e2c45

File tree

97 files changed

+25106
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+25106
-2
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore
2+
13
composer.phar
24
/vendor/
35

46
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
57
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
68
# composer.lock
9+
10+
# php-cs-fixer cache
11+
.php_cs.cache
12+
.php-cs-fixer.cache
13+
14+
# PHPUnit cache
15+
.phpunit.result.cache
16+
/doc/

.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
.gitignore
2+
.openapi-generator-ignore
3+
.php-cs-fixer.dist.php
4+
.travis.yml
5+
README.md
6+
composer.json
7+
docs/Api/DefaultApi.md
8+
docs/Model/Account.md
9+
docs/Model/AccountBalance.md
10+
docs/Model/AccountCurrencyExchange.md
11+
docs/Model/AccountRelatedAgents.md
12+
docs/Model/MyAccountsGet400Response.md
13+
docs/Model/MyAccountsGet403Response.md
14+
docs/Model/MyAccountsGet404Response.md
15+
docs/Model/MyAccountsGet405Response.md
16+
docs/Model/MyAccountsGet412Response.md
17+
docs/Model/MyAccountsGet429Response.md
18+
docs/Model/MyAccountsGet500Response.md
19+
docs/Model/MyAccountsGet503Response.md
20+
docs/Model/MyAccountsIdStatementsGet400Response.md
21+
docs/Model/MyAccountsIdStatementsGet403Response.md
22+
docs/Model/MyAccountsIdStatementsGet404Response.md
23+
docs/Model/MyAccountsIdTransactionsGet400Response.md
24+
docs/Model/MyAccountsIdTransactionsGet401Response.md
25+
docs/Model/MyAccountsIdTransactionsGet404Response.md
26+
docs/Model/StatementList.md
27+
docs/Model/StatementListAccountStatementsInner.md
28+
docs/Model/StatementListAccountStatementsInnerPeriod.md
29+
docs/Model/TransactionList.md
30+
docs/Model/TransactionListTransactionsInner.md
31+
git_push.sh
32+
lib/AccountsApi/DefaultApi.php
33+
lib/ApiException.php
34+
lib/Configuration.php
35+
lib/HeaderSelector.php
36+
lib/Model/Account.php
37+
lib/Model/AccountBalance.php
38+
lib/Model/AccountCurrencyExchange.php
39+
lib/Model/AccountRelatedAgents.php
40+
lib/Model/ModelInterface.php
41+
lib/Model/MyAccountsGet400Response.php
42+
lib/Model/MyAccountsGet403Response.php
43+
lib/Model/MyAccountsGet404Response.php
44+
lib/Model/MyAccountsGet405Response.php
45+
lib/Model/MyAccountsGet412Response.php
46+
lib/Model/MyAccountsGet429Response.php
47+
lib/Model/MyAccountsGet500Response.php
48+
lib/Model/MyAccountsGet503Response.php
49+
lib/Model/MyAccountsIdStatementsGet400Response.php
50+
lib/Model/MyAccountsIdStatementsGet403Response.php
51+
lib/Model/MyAccountsIdStatementsGet404Response.php
52+
lib/Model/MyAccountsIdTransactionsGet400Response.php
53+
lib/Model/MyAccountsIdTransactionsGet401Response.php
54+
lib/Model/MyAccountsIdTransactionsGet404Response.php
55+
lib/Model/StatementList.php
56+
lib/Model/StatementListAccountStatementsInner.php
57+
lib/Model/StatementListAccountStatementsInnerPeriod.php
58+
lib/Model/TransactionList.php
59+
lib/Model/TransactionListTransactionsInner.php
60+
lib/ObjectSerializer.php
61+
phpunit.xml.dist
62+
test/Api/DefaultApiTest.php
63+
test/Model/AccountBalanceTest.php
64+
test/Model/AccountCurrencyExchangeTest.php
65+
test/Model/AccountRelatedAgentsTest.php
66+
test/Model/AccountTest.php
67+
test/Model/MyAccountsGet400ResponseTest.php
68+
test/Model/MyAccountsGet403ResponseTest.php
69+
test/Model/MyAccountsGet404ResponseTest.php
70+
test/Model/MyAccountsGet405ResponseTest.php
71+
test/Model/MyAccountsGet412ResponseTest.php
72+
test/Model/MyAccountsGet429ResponseTest.php
73+
test/Model/MyAccountsGet500ResponseTest.php
74+
test/Model/MyAccountsGet503ResponseTest.php
75+
test/Model/MyAccountsIdStatementsGet400ResponseTest.php
76+
test/Model/MyAccountsIdStatementsGet403ResponseTest.php
77+
test/Model/MyAccountsIdStatementsGet404ResponseTest.php
78+
test/Model/MyAccountsIdTransactionsGet400ResponseTest.php
79+
test/Model/MyAccountsIdTransactionsGet401ResponseTest.php
80+
test/Model/MyAccountsIdTransactionsGet404ResponseTest.php
81+
test/Model/StatementListAccountStatementsInnerPeriodTest.php
82+
test/Model/StatementListAccountStatementsInnerTest.php
83+
test/Model/StatementListTest.php
84+
test/Model/TransactionListTest.php
85+
test/Model/TransactionListTransactionsInnerTest.php

.openapi-generator/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.10.0

.openapi-generator/config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
templateDir: .openapi-generator/templates
3+
additionalProperties:
4+
packageName: Premium - Accounts API
5+
apiPackage: AccountsApi
6+
UserId: VitexSoftware
7+
RepoId: php-vitexsoftware-rbczpremiumapi
8+
infoEmail: vitezslav.dvorak@spojenet.cz
9+
allowUnicodeIdentifiers: true
10+
artifactVersion: 3.0.0
11+
invokerPackage: Spoje-NET\php-csas-webapi
12+
modelPackage: Model
13+
variableNamingConvention: camelCase

.php-cs-fixer.dist.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/**
4+
* @generated
5+
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
6+
*/
7+
$finder = PhpCsFixer\Finder::create()
8+
->in(__DIR__)
9+
->exclude('vendor')
10+
->exclude('test')
11+
->exclude('tests')
12+
;
13+
14+
$config = new PhpCsFixer\Config();
15+
return $config->setRules([
16+
'@PSR12' => true,
17+
'phpdoc_order' => true,
18+
'array_syntax' => [ 'syntax' => 'short' ],
19+
'strict_comparison' => true,
20+
'strict_param' => true,
21+
'no_trailing_whitespace' => false,
22+
'no_trailing_whitespace_in_comment' => false,
23+
'braces' => false,
24+
'single_blank_line_at_eof' => false,
25+
'blank_line_after_namespace' => false,
26+
'no_leading_import_slash' => false,
27+
])
28+
->setFinder($finder)
29+
;

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: php
2+
# Bionic environment has preinstalled PHP from 7.1 to 7.4
3+
# https://docs.travis-ci.com/user/reference/bionic/#php-support
4+
dist: bionic
5+
php:
6+
- 7.4
7+
before_install: "composer install"
8+
script: "vendor/bin/phpunit"

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vim: set tabstop=8 softtabstop=8 noexpandtab:
2+
.PHONY: help
3+
help: ## Displays this list of targets with descriptions
4+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
5+
6+
.PHONY: static-code-analysis
7+
static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan
8+
vendor/bin/phpstan analyse --configuration=phpstan-default.neon.dist --memory-limit=-1
9+
10+
.PHONY: static-code-analysis-baseline
11+
static-code-analysis-baseline: check-symfony vendor ## Generates a baseline for static code analysis with phpstan/phpstan
12+
vendor/bin/phpstan analyze --configuration=phpstan-default.neon.dist --generate-baseline=phpstan-default-baseline.neon --memory-limit=-1
13+
14+
.PHONY: tests
15+
tests: vendor
16+
vendor/bin/phpunit tests
17+
18+
.PHONY: vendor
19+
vendor: composer.json composer.lock ## Installs composer dependencies
20+
composer install
21+
22+
.PHONY: cs
23+
cs: ## Update Coding Standards
24+
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --verbose

README.md

Lines changed: 132 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,132 @@
1-
# php-csas-webapi
2-
PHP Client library for www.csas.cz/webapi/api/v3/
1+
# Premium - Accounts API
2+
3+
API for managing production accounts.
4+
5+
6+
## Installation & Usage
7+
8+
### Requirements
9+
10+
PHP 7.4 and later.
11+
Should also work with PHP 8.0.
12+
13+
### Composer
14+
15+
To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:
16+
17+
```json
18+
{
19+
"repositories": [
20+
{
21+
"type": "vcs",
22+
"url": "https://github.com/Spoje-NET/php-csas-webapi.git"
23+
}
24+
],
25+
"require": {
26+
"Spoje-NET/php-csas-webapi": "*@dev"
27+
}
28+
}
29+
```
30+
31+
Then run `composer install`
32+
33+
### Manual Installation
34+
35+
Download the files and include `autoload.php`:
36+
37+
```php
38+
<?php
39+
require_once('/path/to/Premium - Accounts API/vendor/autoload.php');
40+
```
41+
42+
## Getting Started
43+
44+
Please follow the [installation procedure](#installation--usage) and then run the following:
45+
46+
```php
47+
<?php
48+
require_once(__DIR__ . '/vendor/autoload.php');
49+
50+
51+
52+
53+
$apiInstance = new Spoje-NET\php-csas-webapi\Api\DefaultApi(
54+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
55+
// This is optional, `GuzzleHttp\Client` will be used as default.
56+
new GuzzleHttp\Client()
57+
);
58+
$size = 56; // int | Number of accounts to return
59+
$page = 56; // int | Page number to return
60+
$sort = 'sort_example'; // string | Field to sort by
61+
$order = 'order_example'; // string | Sort order
62+
63+
try {
64+
$result = $apiInstance->myAccountsGet($size, $page, $sort, $order);
65+
print_r($result);
66+
} catch (Exception $e) {
67+
echo 'Exception when calling DefaultApi->myAccountsGet: ', $e->getMessage(), PHP_EOL;
68+
}
69+
70+
```
71+
72+
## API Endpoints
73+
74+
All URIs are relative to *https://www.csas.cz/webapi/api/v3/accounts*
75+
76+
Class | Method | HTTP request | Description
77+
------------ | ------------- | ------------- | -------------
78+
*DefaultApi* | [**myAccountsGet**](docs/Api/DefaultApi.md#myaccountsget) | **GET** /my/accounts | Get account details
79+
*DefaultApi* | [**myAccountsIdBalanceGet**](docs/Api/DefaultApi.md#myaccountsidbalanceget) | **GET** /my/accounts/{id}/balance | Get account balance
80+
*DefaultApi* | [**myAccountsIdStatementsGet**](docs/Api/DefaultApi.md#myaccountsidstatementsget) | **GET** /my/accounts/{id}/statements | Get statements list
81+
*DefaultApi* | [**myAccountsIdTransactionsGet**](docs/Api/DefaultApi.md#myaccountsidtransactionsget) | **GET** /my/accounts/{id}/transactions | Overview of transactions
82+
83+
## Models
84+
85+
- [Account](docs/Model/Account.md)
86+
- [AccountBalance](docs/Model/AccountBalance.md)
87+
- [AccountCurrencyExchange](docs/Model/AccountCurrencyExchange.md)
88+
- [AccountRelatedAgents](docs/Model/AccountRelatedAgents.md)
89+
- [MyAccountsGet400Response](docs/Model/MyAccountsGet400Response.md)
90+
- [MyAccountsGet403Response](docs/Model/MyAccountsGet403Response.md)
91+
- [MyAccountsGet404Response](docs/Model/MyAccountsGet404Response.md)
92+
- [MyAccountsGet405Response](docs/Model/MyAccountsGet405Response.md)
93+
- [MyAccountsGet412Response](docs/Model/MyAccountsGet412Response.md)
94+
- [MyAccountsGet429Response](docs/Model/MyAccountsGet429Response.md)
95+
- [MyAccountsGet500Response](docs/Model/MyAccountsGet500Response.md)
96+
- [MyAccountsGet503Response](docs/Model/MyAccountsGet503Response.md)
97+
- [MyAccountsIdStatementsGet400Response](docs/Model/MyAccountsIdStatementsGet400Response.md)
98+
- [MyAccountsIdStatementsGet403Response](docs/Model/MyAccountsIdStatementsGet403Response.md)
99+
- [MyAccountsIdStatementsGet404Response](docs/Model/MyAccountsIdStatementsGet404Response.md)
100+
- [MyAccountsIdTransactionsGet400Response](docs/Model/MyAccountsIdTransactionsGet400Response.md)
101+
- [MyAccountsIdTransactionsGet401Response](docs/Model/MyAccountsIdTransactionsGet401Response.md)
102+
- [MyAccountsIdTransactionsGet404Response](docs/Model/MyAccountsIdTransactionsGet404Response.md)
103+
- [StatementList](docs/Model/StatementList.md)
104+
- [StatementListAccountStatementsInner](docs/Model/StatementListAccountStatementsInner.md)
105+
- [StatementListAccountStatementsInnerPeriod](docs/Model/StatementListAccountStatementsInnerPeriod.md)
106+
- [TransactionList](docs/Model/TransactionList.md)
107+
- [TransactionListTransactionsInner](docs/Model/TransactionListTransactionsInner.md)
108+
109+
## Authorization
110+
Endpoints do not require authorization.
111+
112+
## Tests
113+
114+
To run the tests, use:
115+
116+
```bash
117+
composer install
118+
vendor/bin/phpunit
119+
```
120+
121+
## Author
122+
123+
vitezslav.dvorak@spojenet.cz
124+
125+
## About this package
126+
127+
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
128+
129+
- API version: `1.0.0`
130+
- Package version: `3.0.0`
131+
- Generator version: `7.10.0`
132+
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"version": "3.0.0",
3+
"description": "API for managing production accounts.",
4+
"keywords": [
5+
"openapitools",
6+
"openapi-generator",
7+
"openapi",
8+
"php",
9+
"sdk",
10+
"rest",
11+
"api"
12+
],
13+
"homepage": "https://openapi-generator.tech",
14+
"license": "unlicense",
15+
"authors": [
16+
{
17+
"name": "OpenAPI",
18+
"homepage": "https://openapi-generator.tech"
19+
}
20+
],
21+
"require": {
22+
"php": "^7.4 || ^8.0",
23+
"ext-curl": "*",
24+
"ext-json": "*",
25+
"ext-mbstring": "*",
26+
"guzzlehttp/guzzle": "^7.3",
27+
"guzzlehttp/psr7": "^1.7 || ^2.0"
28+
},
29+
"require-dev": {
30+
"phpunit/phpunit": "^8.0 || ^9.0",
31+
"friendsofphp/php-cs-fixer": "^3.5"
32+
},
33+
"autoload": {
34+
"psr-4": { "Spoje-NET\\php-csas-webapi\\" : "lib/" }
35+
},
36+
"autoload-dev": {
37+
"psr-4": { "Spoje-NET\\php-csas-webapi\\Test\\" : "test/" }
38+
}
39+
}

0 commit comments

Comments
 (0)