Skip to content

Commit

Permalink
Merge pull request #8 from conedevelopment/php-client
Browse files Browse the repository at this point in the history
Upgrade PHP client to
  • Loading branch information
iamgergo authored Dec 5, 2023
2 parents ba04b68 + 484089d commit 3fe36c2
Show file tree
Hide file tree
Showing 169 changed files with 70,631 additions and 622 deletions.
364 changes: 110 additions & 254 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.6.0
7.1.0
24 changes: 12 additions & 12 deletions docs/Api/BankAccountApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All URIs are relative to https://api.billingo.hu/v3, except if the operation def
## `createBankAccount()`

```php
createBankAccount($bank_account): \Cone\Billingo\Model\BankAccount
createBankAccount($bankAccount): \Cone\Billingo\Model\BankAccount
```

Create a bank account
Expand All @@ -40,10 +40,10 @@ $apiInstance = new Cone\Billingo\Api\BankAccountApi(
new GuzzleHttp\Client(),
$config
);
$bank_account = new \Cone\Billingo\Model\BankAccount(); // \Cone\Billingo\Model\BankAccount | BankAccount object that you would like to store.
$bankAccount = new \Cone\Billingo\Model\BankAccount(); // \Cone\Billingo\Model\BankAccount | BankAccount object that you would like to store.

try {
$result = $apiInstance->createBankAccount($bank_account);
$result = $apiInstance->createBankAccount($bankAccount);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BankAccountApi->createBankAccount: ', $e->getMessage(), PHP_EOL;
Expand All @@ -54,7 +54,7 @@ try {

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **bank_account** | [**\Cone\Billingo\Model\BankAccount**](../Model/BankAccount.md)| BankAccount object that you would like to store. | |
| **bankAccount** | [**\Cone\Billingo\Model\BankAccount**](../Model/BankAccount.md)| BankAccount object that you would like to store. | |

### Return type

Expand Down Expand Up @@ -199,7 +199,7 @@ try {
## `listBankAccount()`

```php
listBankAccount($page, $per_page): \Cone\Billingo\Model\BankAccountList
listBankAccount($page, $perPage): \Cone\Billingo\Model\BankAccountList
```

List all bank account
Expand All @@ -226,10 +226,10 @@ $apiInstance = new Cone\Billingo\Api\BankAccountApi(
$config
);
$page = 56; // int
$per_page = 25; // int
$perPage = 25; // int

try {
$result = $apiInstance->listBankAccount($page, $per_page);
$result = $apiInstance->listBankAccount($page, $perPage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BankAccountApi->listBankAccount: ', $e->getMessage(), PHP_EOL;
Expand All @@ -241,7 +241,7 @@ try {
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **page** | **int**| | [optional] |
| **per_page** | **int**| | [optional] [default to 25] |
| **perPage** | **int**| | [optional] [default to 25] |

### Return type

Expand All @@ -263,7 +263,7 @@ try {
## `updateBankAccount()`

```php
updateBankAccount($id, $bank_account): \Cone\Billingo\Model\BankAccount
updateBankAccount($id, $bankAccount): \Cone\Billingo\Model\BankAccount
```

Update a bank account
Expand All @@ -290,10 +290,10 @@ $apiInstance = new Cone\Billingo\Api\BankAccountApi(
$config
);
$id = 56; // int
$bank_account = new \Cone\Billingo\Model\BankAccount(); // \Cone\Billingo\Model\BankAccount | Bank account object that you would like to update.
$bankAccount = new \Cone\Billingo\Model\BankAccount(); // \Cone\Billingo\Model\BankAccount | Bank account object that you would like to update.

try {
$result = $apiInstance->updateBankAccount($id, $bank_account);
$result = $apiInstance->updateBankAccount($id, $bankAccount);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BankAccountApi->updateBankAccount: ', $e->getMessage(), PHP_EOL;
Expand All @@ -305,7 +305,7 @@ try {
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **int**| | |
| **bank_account** | [**\Cone\Billingo\Model\BankAccount**](../Model/BankAccount.md)| Bank account object that you would like to update. | |
| **bankAccount** | [**\Cone\Billingo\Model\BankAccount**](../Model/BankAccount.md)| Bank account object that you would like to update. | |

### Return type

Expand Down
148 changes: 74 additions & 74 deletions docs/Api/DocumentApi.md

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions docs/Api/DocumentBlockApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Cone\Billingo\DocumentBlockApi

All URIs are relative to https://api.billingo.hu/v3, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**listDocumentBlock()**](DocumentBlockApi.md#listDocumentBlock) | **GET** /document-blocks | List all document blocks |


## `listDocumentBlock()`

```php
listDocumentBlock($page, $perPage, $type): \Cone\Billingo\Model\DocumentBlockList
```

List all document blocks

Returns a list of your document blocks. The document blocks are returned sorted by creation date, with the most recent document blocks appearing first.

### Example

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


// Configure API key authorization: api_key
$config = Cone\Billingo\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Cone\Billingo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');


$apiInstance = new Cone\Billingo\Api\DocumentBlockApi(
// 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
);
$page = 56; // int
$perPage = 25; // int
$type = invoice; // DocumentBlockType | Filter document blocks by type

try {
$result = $apiInstance->listDocumentBlock($page, $perPage, $type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentBlockApi->listDocumentBlock: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **page** | **int**| | [optional] |
| **perPage** | **int**| | [optional] [default to 25] |
| **type** | [**DocumentBlockType**](../Model/.md)| Filter document blocks by type | [optional] |

### Return type

[**\Cone\Billingo\Model\DocumentBlockList**](../Model/DocumentBlockList.md)

### Authorization

[api_key](../../README.md#api_key)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
8 changes: 4 additions & 4 deletions docs/Api/DocumentExportApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ All URIs are relative to https://api.billingo.hu/v3, except if the operation def
## `create()`

```php
create($create_document_export): \Cone\Billingo\Model\DocumentExportId
create($createDocumentExport): \Cone\Billingo\Model\DocumentExportId
```

Create document export.
Expand All @@ -38,10 +38,10 @@ $apiInstance = new Cone\Billingo\Api\DocumentExportApi(
new GuzzleHttp\Client(),
$config
);
$create_document_export = new \Cone\Billingo\Model\CreateDocumentExport(); // \Cone\Billingo\Model\CreateDocumentExport | Create document export body.
$createDocumentExport = new \Cone\Billingo\Model\CreateDocumentExport(); // \Cone\Billingo\Model\CreateDocumentExport | Create document export body.

try {
$result = $apiInstance->create($create_document_export);
$result = $apiInstance->create($createDocumentExport);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentExportApi->create: ', $e->getMessage(), PHP_EOL;
Expand All @@ -52,7 +52,7 @@ try {

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **create_document_export** | [**\Cone\Billingo\Model\CreateDocumentExport**](../Model/CreateDocumentExport.md)| Create document export body. | |
| **createDocumentExport** | [**\Cone\Billingo\Model\CreateDocumentExport**](../Model/CreateDocumentExport.md)| Create document export body. | |

### Return type

Expand Down
Loading

0 comments on commit 3fe36c2

Please sign in to comment.