From 694ac430ada49cd2de675509c9c6a2be6431d169 Mon Sep 17 00:00:00 2001 From: szepeviktor Date: Mon, 29 Dec 2025 05:03:16 +0000 Subject: [PATCH] Upgrade client --- .openapi-generator/FILES | 1 - .openapi-generator/VERSION | 2 +- README.md | 181 ------ src/Api/BankAccountApi.php | 154 ++--- src/Api/CurrencyApi.php | 2 +- src/Api/DocumentApi.php | 626 ++++++++++++--------- src/Api/DocumentBlockApi.php | 2 +- src/Api/DocumentExportApi.php | 2 +- src/Api/OrganizationApi.php | 2 +- src/Api/PartnerApi.php | 154 ++--- src/Api/ProductApi.php | 154 ++--- src/Api/SpendingApi.php | 154 ++--- src/Api/UtilApi.php | 2 +- src/ApiException.php | 2 +- src/Configuration.php | 2 +- src/FormDataProcessor.php | 2 +- src/HeaderSelector.php | 2 +- src/Model/Address.php | 2 +- src/Model/BankAccount.php | 2 +- src/Model/BankAccountList.php | 2 +- src/Model/Category.php | 2 +- src/Model/CheckTaxNumberMessage.php | 2 +- src/Model/ClientError.php | 2 +- src/Model/ClientErrorResponse.php | 2 +- src/Model/ConversationRate.php | 2 +- src/Model/CorrectionType.php | 2 +- src/Model/Country.php | 2 +- src/Model/CreateDocumentExport.php | 2 +- src/Model/Currency.php | 2 +- src/Model/DateType.php | 2 +- src/Model/Discount.php | 2 +- src/Model/DiscountType.php | 2 +- src/Model/Document.php | 2 +- src/Model/DocumentAncestor.php | 2 +- src/Model/DocumentBankAccount.php | 2 +- src/Model/DocumentBlock.php | 2 +- src/Model/DocumentBlockList.php | 2 +- src/Model/DocumentBlockType.php | 2 +- src/Model/DocumentCancellation.php | 2 +- src/Model/DocumentExportFilterExtra.php | 2 +- src/Model/DocumentExportId.php | 2 +- src/Model/DocumentExportOtherOptions.php | 2 +- src/Model/DocumentExportQueryType.php | 2 +- src/Model/DocumentExportSortBy.php | 2 +- src/Model/DocumentExportStatus.php | 2 +- src/Model/DocumentExportStatusState.php | 2 +- src/Model/DocumentExportType.php | 2 +- src/Model/DocumentForm.php | 2 +- src/Model/DocumentFormat.php | 2 +- src/Model/DocumentInsert.php | 2 +- src/Model/DocumentInsertItemsInner.php | 2 +- src/Model/DocumentInsertType.php | 2 +- src/Model/DocumentItem.php | 2 +- src/Model/DocumentItemData.php | 2 +- src/Model/DocumentLanguage.php | 2 +- src/Model/DocumentList.php | 2 +- src/Model/DocumentNotificationStatus.php | 2 +- src/Model/DocumentOrganization.php | 2 +- src/Model/DocumentPartner.php | 2 +- src/Model/DocumentProductData.php | 2 +- src/Model/DocumentPublicUrl.php | 2 +- src/Model/DocumentSettings.php | 2 +- src/Model/DocumentSummary.php | 2 +- src/Model/DocumentType.php | 2 +- src/Model/DocumentVatRateSummary.php | 2 +- src/Model/Entitlement.php | 2 +- src/Model/Feature.php | 2 +- src/Model/Id.php | 2 +- src/Model/InvoiceSettings.php | 2 +- src/Model/LedgerNumberInformation.php | 2 +- src/Model/ModelInterface.php | 2 +- src/Model/ModificationDocumentInsert.php | 2 +- src/Model/OnlinePayment.php | 2 +- src/Model/OnlineSzamlaStatus.php | 2 +- src/Model/OnlineSzamlaStatusEnum.php | 2 +- src/Model/OnlineSzamlaStatusMessage.php | 2 +- src/Model/OrganizationData.php | 2 +- src/Model/Partner.php | 2 +- src/Model/PartnerCustomBillingSettings.php | 2 +- src/Model/PartnerList.php | 2 +- src/Model/PartnerTaxType.php | 2 +- src/Model/PaymentHistory.php | 2 +- src/Model/PaymentMethod.php | 2 +- src/Model/PaymentStatus.php | 2 +- src/Model/PaymentStatusSpending.php | 2 +- src/Model/Product.php | 2 +- src/Model/ProductList.php | 2 +- src/Model/ReceiptInsert.php | 2 +- src/Model/ReceiptInsertItemsInner.php | 2 +- src/Model/ReceiptItemData.php | 2 +- src/Model/ReceiptProductData.php | 2 +- src/Model/Round.php | 2 +- src/Model/SendDocument.php | 2 +- src/Model/ServerError.php | 2 +- src/Model/ServerErrorResponse.php | 2 +- src/Model/ServerTime.php | 2 +- src/Model/Source.php | 2 +- src/Model/Spending.php | 2 +- src/Model/SpendingList.php | 2 +- src/Model/SpendingListItem.php | 2 +- src/Model/SpendingPartner.php | 2 +- src/Model/SpendingPaymentMethod.php | 2 +- src/Model/SpendingSave.php | 2 +- src/Model/Subscription.php | 2 +- src/Model/SubscriptionErrorResponse.php | 2 +- src/Model/TaxNumber.php | 2 +- src/Model/TooManyRequestsResponse.php | 2 +- src/Model/UnitPriceType.php | 2 +- src/Model/ValidationError.php | 2 +- src/Model/ValidationErrorResponse.php | 2 +- src/Model/Vat.php | 2 +- src/ObjectSerializer.php | 8 +- 112 files changed, 837 insertions(+), 803 deletions(-) delete mode 100644 README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index b41e8c7..02020e3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,5 +1,4 @@ .phplint.yml -README.md docs/Api/BankAccountApi.md docs/Api/CurrencyApi.md docs/Api/DocumentApi.md diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 6328c54..1b2d969 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.17.0 +7.18.0 diff --git a/README.md b/README.md deleted file mode 100644 index 977b3ea..0000000 --- a/README.md +++ /dev/null @@ -1,181 +0,0 @@ -# Billingo PHP SDK - -## Requirements - -- PHP 8.1 and later. -- Curl, JSON, Multibyte String extensions - -## Installation - -```sh -composer require conedevelopment/billingo-php -``` - -## Usage - -```php -use Cone\Billingo\Client; - -$client = new Client('ApiKey'); - -try { - $response = $client->documents()->listDocument(); - - // Handle response -} catch (Throwable $exception) { - // Handle exception, report to Sentry, etc... -} -``` - -## API Endpoints - -All URIs are relative to *https://api.billingo.hu/v3* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*BankAccountApi* | [**createBankAccount**](docs/Api/BankAccountApi.md#createbankaccount) | **POST** /bank-accounts | Create a bank account -*BankAccountApi* | [**deleteBankAccount**](docs/Api/BankAccountApi.md#deletebankaccount) | **DELETE** /bank-accounts/{id} | Delete a bank account -*BankAccountApi* | [**getBankAccount**](docs/Api/BankAccountApi.md#getbankaccount) | **GET** /bank-accounts/{id} | Retrieve a bank account -*BankAccountApi* | [**listBankAccount**](docs/Api/BankAccountApi.md#listbankaccount) | **GET** /bank-accounts | List all bank account -*BankAccountApi* | [**updateBankAccount**](docs/Api/BankAccountApi.md#updatebankaccount) | **PUT** /bank-accounts/{id} | Update a bank account -*CurrencyApi* | [**getConversionRate**](docs/Api/CurrencyApi.md#getconversionrate) | **GET** /currencies | Get currencies exchange rate. -*DocumentApi* | [**archiveDocument**](docs/Api/DocumentApi.md#archivedocument) | **PUT** /documents/{id}/archive | Archive a proforma document. -*DocumentApi* | [**cancelDocument**](docs/Api/DocumentApi.md#canceldocument) | **POST** /documents/{id}/cancel | Cancel a document -*DocumentApi* | [**createDocument**](docs/Api/DocumentApi.md#createdocument) | **POST** /documents | Create a document -*DocumentApi* | [**createDocumentFromDraft**](docs/Api/DocumentApi.md#createdocumentfromdraft) | **PUT** /documents/{id} | Converts a draft to an invoice. -*DocumentApi* | [**createDocumentFromProforma**](docs/Api/DocumentApi.md#createdocumentfromproforma) | **POST** /documents/{id}/create-from-proforma | Create a document from proforma. -*DocumentApi* | [**createModificationDocument**](docs/Api/DocumentApi.md#createmodificationdocument) | **POST** /documents/{id}/create-modification-document | Create a modification document. -*DocumentApi* | [**createReceipt**](docs/Api/DocumentApi.md#createreceipt) | **POST** /documents/receipt | Create a receipt -*DocumentApi* | [**createReceiptFromDraft**](docs/Api/DocumentApi.md#createreceiptfromdraft) | **PUT** /documents/receipt/{id} | Converts a draft to a receipt. -*DocumentApi* | [**deleteDocument**](docs/Api/DocumentApi.md#deletedocument) | **DELETE** /documents/{id} | Delete a draft. -*DocumentApi* | [**deletePayment**](docs/Api/DocumentApi.md#deletepayment) | **DELETE** /documents/{id}/payments | Delete all payment history on document -*DocumentApi* | [**documentCopy**](docs/Api/DocumentApi.md#documentcopy) | **POST** /documents/{id}/copy | Copy a document -*DocumentApi* | [**downloadDocument**](docs/Api/DocumentApi.md#downloaddocument) | **GET** /documents/{id}/download | Download a document in PDF format. -*DocumentApi* | [**getDocument**](docs/Api/DocumentApi.md#getdocument) | **GET** /documents/{id} | Retrieve a document -*DocumentApi* | [**getDocumentByVendorId**](docs/Api/DocumentApi.md#getdocumentbyvendorid) | **GET** /documents/vendor/{vendor_id} | Retrieve a document by vendor id -*DocumentApi* | [**getOnlineSzamlaStatus**](docs/Api/DocumentApi.md#getonlineszamlastatus) | **GET** /documents/{id}/online-szamla | Retrieve a document Online Számla status -*DocumentApi* | [**getPayment**](docs/Api/DocumentApi.md#getpayment) | **GET** /documents/{id}/payments | Retrieve a payment histroy -*DocumentApi* | [**getPublicUrl**](docs/Api/DocumentApi.md#getpublicurl) | **GET** /documents/{id}/public-url | Retrieve a document download public url. -*DocumentApi* | [**listDocument**](docs/Api/DocumentApi.md#listdocument) | **GET** /documents | List all documents -*DocumentApi* | [**posPrint**](docs/Api/DocumentApi.md#posprint) | **GET** /documents/{id}/print/pos | Returns a printable POS PDF -*DocumentApi* | [**sendDocument**](docs/Api/DocumentApi.md#senddocument) | **POST** /documents/{id}/send | Send invoice to given email adresses. -*DocumentApi* | [**updatePayment**](docs/Api/DocumentApi.md#updatepayment) | **PUT** /documents/{id}/payments | Update payment history -*DocumentBlockApi* | [**listDocumentBlock**](docs/Api/DocumentBlockApi.md#listdocumentblock) | **GET** /document-blocks | List all document blocks -*DocumentExportApi* | [**create**](docs/Api/DocumentExportApi.md#create) | **POST** /document-export | Create document export. -*DocumentExportApi* | [**download**](docs/Api/DocumentExportApi.md#download) | **GET** /document-export/{id}/download | Return exported binary file. -*DocumentExportApi* | [**poll**](docs/Api/DocumentExportApi.md#poll) | **GET** /document-export/{id}/poll | Retrieve export state. -*OrganizationApi* | [**getOrganizationData**](docs/Api/OrganizationApi.md#getorganizationdata) | **GET** /organization | Retrieve a organization data. -*PartnerApi* | [**createPartner**](docs/Api/PartnerApi.md#createpartner) | **POST** /partners | Create a partner -*PartnerApi* | [**deletePartner**](docs/Api/PartnerApi.md#deletepartner) | **DELETE** /partners/{id} | Delete a partner -*PartnerApi* | [**getPartner**](docs/Api/PartnerApi.md#getpartner) | **GET** /partners/{id} | Retrieve a partner -*PartnerApi* | [**listPartner**](docs/Api/PartnerApi.md#listpartner) | **GET** /partners | List all partners -*PartnerApi* | [**updatePartner**](docs/Api/PartnerApi.md#updatepartner) | **PUT** /partners/{id} | Update a partner -*ProductApi* | [**createProduct**](docs/Api/ProductApi.md#createproduct) | **POST** /products | Create a product -*ProductApi* | [**deleteProduct**](docs/Api/ProductApi.md#deleteproduct) | **DELETE** /products/{id} | Delete a product -*ProductApi* | [**getProduct**](docs/Api/ProductApi.md#getproduct) | **GET** /products/{id} | Retrieve a product -*ProductApi* | [**listProduct**](docs/Api/ProductApi.md#listproduct) | **GET** /products | List all product -*ProductApi* | [**updateProduct**](docs/Api/ProductApi.md#updateproduct) | **PUT** /products/{id} | Update a product -*SpendingApi* | [**spendingDelete**](docs/Api/SpendingApi.md#spendingdelete) | **DELETE** /spendings/{id} | Deletes a spending. -*SpendingApi* | [**spendingList**](docs/Api/SpendingApi.md#spendinglist) | **GET** /spendings | Lists all spending -*SpendingApi* | [**spendingSave**](docs/Api/SpendingApi.md#spendingsave) | **POST** /spendings | Creates a new spending. -*SpendingApi* | [**spendingShow**](docs/Api/SpendingApi.md#spendingshow) | **GET** /spendings/{id} | Retrieves one specific spending. -*SpendingApi* | [**spendingUpdate**](docs/Api/SpendingApi.md#spendingupdate) | **PUT** /spendings/{id} | Updates a spending item. -*UtilApi* | [**checkTaxNumber**](docs/Api/UtilApi.md#checktaxnumber) | **GET** /utils/check-tax-number/{tax_number} | Check tax number. -*UtilApi* | [**getId**](docs/Api/UtilApi.md#getid) | **GET** /utils/convert-legacy-id/{id} | Convert legacy ID to v3 ID. -*UtilApi* | [**getServerTime**](docs/Api/UtilApi.md#getservertime) | **GET** /utils/time | Get the server time - -## Models - -- [Address](docs/Model/Address.md) -- [BankAccount](docs/Model/BankAccount.md) -- [BankAccountList](docs/Model/BankAccountList.md) -- [Category](docs/Model/Category.md) -- [CheckTaxNumberMessage](docs/Model/CheckTaxNumberMessage.md) -- [ClientError](docs/Model/ClientError.md) -- [ClientErrorResponse](docs/Model/ClientErrorResponse.md) -- [ConversationRate](docs/Model/ConversationRate.md) -- [CorrectionType](docs/Model/CorrectionType.md) -- [Country](docs/Model/Country.md) -- [CreateDocumentExport](docs/Model/CreateDocumentExport.md) -- [Currency](docs/Model/Currency.md) -- [DateType](docs/Model/DateType.md) -- [Discount](docs/Model/Discount.md) -- [DiscountType](docs/Model/DiscountType.md) -- [Document](docs/Model/Document.md) -- [DocumentAncestor](docs/Model/DocumentAncestor.md) -- [DocumentBankAccount](docs/Model/DocumentBankAccount.md) -- [DocumentBlock](docs/Model/DocumentBlock.md) -- [DocumentBlockList](docs/Model/DocumentBlockList.md) -- [DocumentBlockType](docs/Model/DocumentBlockType.md) -- [DocumentCancellation](docs/Model/DocumentCancellation.md) -- [DocumentExportFilterExtra](docs/Model/DocumentExportFilterExtra.md) -- [DocumentExportId](docs/Model/DocumentExportId.md) -- [DocumentExportOtherOptions](docs/Model/DocumentExportOtherOptions.md) -- [DocumentExportQueryType](docs/Model/DocumentExportQueryType.md) -- [DocumentExportSortBy](docs/Model/DocumentExportSortBy.md) -- [DocumentExportStatus](docs/Model/DocumentExportStatus.md) -- [DocumentExportStatusState](docs/Model/DocumentExportStatusState.md) -- [DocumentExportType](docs/Model/DocumentExportType.md) -- [DocumentForm](docs/Model/DocumentForm.md) -- [DocumentFormat](docs/Model/DocumentFormat.md) -- [DocumentInsert](docs/Model/DocumentInsert.md) -- [DocumentInsertItemsInner](docs/Model/DocumentInsertItemsInner.md) -- [DocumentInsertType](docs/Model/DocumentInsertType.md) -- [DocumentItem](docs/Model/DocumentItem.md) -- [DocumentItemData](docs/Model/DocumentItemData.md) -- [DocumentLanguage](docs/Model/DocumentLanguage.md) -- [DocumentList](docs/Model/DocumentList.md) -- [DocumentNotificationStatus](docs/Model/DocumentNotificationStatus.md) -- [DocumentOrganization](docs/Model/DocumentOrganization.md) -- [DocumentPartner](docs/Model/DocumentPartner.md) -- [DocumentProductData](docs/Model/DocumentProductData.md) -- [DocumentPublicUrl](docs/Model/DocumentPublicUrl.md) -- [DocumentSettings](docs/Model/DocumentSettings.md) -- [DocumentSummary](docs/Model/DocumentSummary.md) -- [DocumentType](docs/Model/DocumentType.md) -- [DocumentVatRateSummary](docs/Model/DocumentVatRateSummary.md) -- [Entitlement](docs/Model/Entitlement.md) -- [Feature](docs/Model/Feature.md) -- [Id](docs/Model/Id.md) -- [InvoiceSettings](docs/Model/InvoiceSettings.md) -- [LedgerNumberInformation](docs/Model/LedgerNumberInformation.md) -- [ModificationDocumentInsert](docs/Model/ModificationDocumentInsert.md) -- [OnlinePayment](docs/Model/OnlinePayment.md) -- [OnlineSzamlaStatus](docs/Model/OnlineSzamlaStatus.md) -- [OnlineSzamlaStatusEnum](docs/Model/OnlineSzamlaStatusEnum.md) -- [OnlineSzamlaStatusMessage](docs/Model/OnlineSzamlaStatusMessage.md) -- [OrganizationData](docs/Model/OrganizationData.md) -- [Partner](docs/Model/Partner.md) -- [PartnerCustomBillingSettings](docs/Model/PartnerCustomBillingSettings.md) -- [PartnerList](docs/Model/PartnerList.md) -- [PartnerTaxType](docs/Model/PartnerTaxType.md) -- [PaymentHistory](docs/Model/PaymentHistory.md) -- [PaymentMethod](docs/Model/PaymentMethod.md) -- [PaymentStatus](docs/Model/PaymentStatus.md) -- [PaymentStatusSpending](docs/Model/PaymentStatusSpending.md) -- [Product](docs/Model/Product.md) -- [ProductList](docs/Model/ProductList.md) -- [ReceiptInsert](docs/Model/ReceiptInsert.md) -- [ReceiptInsertItemsInner](docs/Model/ReceiptInsertItemsInner.md) -- [ReceiptItemData](docs/Model/ReceiptItemData.md) -- [ReceiptProductData](docs/Model/ReceiptProductData.md) -- [Round](docs/Model/Round.md) -- [SendDocument](docs/Model/SendDocument.md) -- [ServerError](docs/Model/ServerError.md) -- [ServerErrorResponse](docs/Model/ServerErrorResponse.md) -- [ServerTime](docs/Model/ServerTime.md) -- [Source](docs/Model/Source.md) -- [Spending](docs/Model/Spending.md) -- [SpendingList](docs/Model/SpendingList.md) -- [SpendingListItem](docs/Model/SpendingListItem.md) -- [SpendingPartner](docs/Model/SpendingPartner.md) -- [SpendingPaymentMethod](docs/Model/SpendingPaymentMethod.md) -- [SpendingSave](docs/Model/SpendingSave.md) -- [Subscription](docs/Model/Subscription.md) -- [SubscriptionErrorResponse](docs/Model/SubscriptionErrorResponse.md) -- [TaxNumber](docs/Model/TaxNumber.md) -- [TooManyRequestsResponse](docs/Model/TooManyRequestsResponse.md) -- [UnitPriceType](docs/Model/UnitPriceType.md) -- [ValidationError](docs/Model/ValidationError.md) -- [ValidationErrorResponse](docs/Model/ValidationErrorResponse.md) -- [Vat](docs/Model/Vat.md) diff --git a/src/Api/BankAccountApi.php b/src/Api/BankAccountApi.php index b157bd0..a5d5c05 100644 --- a/src/Api/BankAccountApi.php +++ b/src/Api/BankAccountApi.php @@ -1,9 +1,9 @@ createBankAccountWithHttpInfo($bankAccount, $contentType); return $response; } @@ -172,7 +174,8 @@ public function createBankAccount( public function createBankAccountWithHttpInfo( \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['createBankAccount'][0] - ): array { + ): array + { $request = $this->createBankAccountRequest($bankAccount, $contentType); try { @@ -197,7 +200,7 @@ public function createBankAccountWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\BankAccount', @@ -247,7 +250,7 @@ public function createBankAccountWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -334,7 +337,7 @@ public function createBankAccountWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -353,7 +356,8 @@ public function createBankAccountWithHttpInfo( public function createBankAccountAsync( \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['createBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createBankAccountAsyncWithHttpInfo($bankAccount, $contentType) ->then( function ($response) { @@ -376,7 +380,8 @@ function ($response) { public function createBankAccountAsyncWithHttpInfo( \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['createBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\BankAccount'; $request = $this->createBankAccountRequest($bankAccount, $contentType); @@ -384,7 +389,7 @@ public function createBankAccountAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -396,7 +401,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -428,7 +433,8 @@ function ($exception) { public function createBankAccountRequest( \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['createBankAccount'][0] - ): Request { + ): Request + { // verify the required parameter 'bankAccount' is set if ($bankAccount === null || (is_array($bankAccount) && count($bankAccount) === 0)) { @@ -458,7 +464,7 @@ public function createBankAccountRequest( // for model (json/xml) if (isset($bankAccount)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($bankAccount)); } else { $httpBody = $bankAccount; @@ -471,7 +477,7 @@ public function createBankAccountRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -479,7 +485,7 @@ public function createBankAccountRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -524,12 +530,13 @@ public function createBankAccountRequest( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|null */ public function deleteBankAccount( int $id, string $contentType = self::contentTypes['deleteBankAccount'][0] - ): \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): ?\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->deleteBankAccountWithHttpInfo($id, $contentType); return $response; } @@ -549,7 +556,8 @@ public function deleteBankAccount( public function deleteBankAccountWithHttpInfo( int $id, string $contentType = self::contentTypes['deleteBankAccount'][0] - ): array { + ): array + { $request = $this->deleteBankAccountRequest($id, $contentType); try { @@ -635,7 +643,7 @@ public function deleteBankAccountWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -654,7 +662,8 @@ public function deleteBankAccountWithHttpInfo( public function deleteBankAccountAsync( int $id, string $contentType = self::contentTypes['deleteBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->deleteBankAccountAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -677,7 +686,8 @@ function ($response) { public function deleteBankAccountAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['deleteBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = ''; $request = $this->deleteBankAccountRequest($id, $contentType); @@ -716,7 +726,8 @@ function ($exception) { public function deleteBankAccountRequest( int $id, string $contentType = self::contentTypes['deleteBankAccount'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -760,7 +771,7 @@ public function deleteBankAccountRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -768,7 +779,7 @@ public function deleteBankAccountRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -818,7 +829,8 @@ public function deleteBankAccountRequest( public function getBankAccount( int $id, string $contentType = self::contentTypes['getBankAccount'][0] - ): \Cone\Billingo\Model\BankAccount|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\BankAccount|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getBankAccountWithHttpInfo($id, $contentType); return $response; } @@ -838,7 +850,8 @@ public function getBankAccount( public function getBankAccountWithHttpInfo( int $id, string $contentType = self::contentTypes['getBankAccount'][0] - ): array { + ): array + { $request = $this->getBankAccountRequest($id, $contentType); try { @@ -863,7 +876,7 @@ public function getBankAccountWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\BankAccount', @@ -913,7 +926,7 @@ public function getBankAccountWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1000,7 +1013,7 @@ public function getBankAccountWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1019,7 +1032,8 @@ public function getBankAccountWithHttpInfo( public function getBankAccountAsync( int $id, string $contentType = self::contentTypes['getBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getBankAccountAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -1042,7 +1056,8 @@ function ($response) { public function getBankAccountAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['getBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\BankAccount'; $request = $this->getBankAccountRequest($id, $contentType); @@ -1050,7 +1065,7 @@ public function getBankAccountAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1062,7 +1077,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1094,7 +1109,8 @@ function ($exception) { public function getBankAccountRequest( int $id, string $contentType = self::contentTypes['getBankAccount'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1138,7 +1154,7 @@ public function getBankAccountRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1146,7 +1162,7 @@ public function getBankAccountRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1198,7 +1214,8 @@ public function listBankAccount( ?int $page = null, ?int $perPage = 25, string $contentType = self::contentTypes['listBankAccount'][0] - ): \Cone\Billingo\Model\BankAccountList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\BankAccountList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->listBankAccountWithHttpInfo($page, $perPage, $contentType); return $response; } @@ -1220,7 +1237,8 @@ public function listBankAccountWithHttpInfo( ?int $page = null, ?int $perPage = 25, string $contentType = self::contentTypes['listBankAccount'][0] - ): array { + ): array + { $request = $this->listBankAccountRequest($page, $perPage, $contentType); try { @@ -1245,7 +1263,7 @@ public function listBankAccountWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\BankAccountList', @@ -1289,7 +1307,7 @@ public function listBankAccountWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1368,7 +1386,7 @@ public function listBankAccountWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1389,7 +1407,8 @@ public function listBankAccountAsync( ?int $page = null, ?int $perPage = 25, string $contentType = self::contentTypes['listBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->listBankAccountAsyncWithHttpInfo($page, $perPage, $contentType) ->then( function ($response) { @@ -1414,7 +1433,8 @@ public function listBankAccountAsyncWithHttpInfo( ?int $page = null, ?int $perPage = 25, string $contentType = self::contentTypes['listBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\BankAccountList'; $request = $this->listBankAccountRequest($page, $perPage, $contentType); @@ -1422,7 +1442,7 @@ public function listBankAccountAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1434,7 +1454,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1468,7 +1488,8 @@ public function listBankAccountRequest( ?int $page = null, ?int $perPage = 25, string $contentType = self::contentTypes['listBankAccount'][0] - ): Request { + ): Request + { if ($perPage !== null && $perPage > 100) { @@ -1477,7 +1498,7 @@ public function listBankAccountRequest( if ($perPage !== null && $perPage < 1) { throw new InvalidArgumentException('invalid value for "$perPage" when calling BankAccountApi.listBankAccount, must be bigger than or equal to 1.'); } - + $resourcePath = '/bank-accounts'; $formParams = []; @@ -1523,7 +1544,7 @@ public function listBankAccountRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1531,7 +1552,7 @@ public function listBankAccountRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1583,7 +1604,8 @@ public function updateBankAccount( int $id, \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['updateBankAccount'][0] - ): \Cone\Billingo\Model\BankAccount|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\BankAccount|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->updateBankAccountWithHttpInfo($id, $bankAccount, $contentType); return $response; } @@ -1605,7 +1627,8 @@ public function updateBankAccountWithHttpInfo( int $id, \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['updateBankAccount'][0] - ): array { + ): array + { $request = $this->updateBankAccountRequest($id, $bankAccount, $contentType); try { @@ -1630,7 +1653,7 @@ public function updateBankAccountWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\BankAccount', @@ -1686,7 +1709,7 @@ public function updateBankAccountWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1781,7 +1804,7 @@ public function updateBankAccountWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1802,7 +1825,8 @@ public function updateBankAccountAsync( int $id, \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['updateBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->updateBankAccountAsyncWithHttpInfo($id, $bankAccount, $contentType) ->then( function ($response) { @@ -1827,7 +1851,8 @@ public function updateBankAccountAsyncWithHttpInfo( int $id, \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['updateBankAccount'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\BankAccount'; $request = $this->updateBankAccountRequest($id, $bankAccount, $contentType); @@ -1835,7 +1860,7 @@ public function updateBankAccountAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1847,7 +1872,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1881,7 +1906,8 @@ public function updateBankAccountRequest( int $id, \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['updateBankAccount'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1926,7 +1952,7 @@ public function updateBankAccountRequest( // for model (json/xml) if (isset($bankAccount)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($bankAccount)); } else { $httpBody = $bankAccount; @@ -1939,7 +1965,7 @@ public function updateBankAccountRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1947,7 +1973,7 @@ public function updateBankAccountRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2006,7 +2032,7 @@ private function handleResponseWithDataType( RequestInterface $request, ResponseInterface $response, ): array { - if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2030,7 +2056,7 @@ private function handleResponseWithDataType( return [ ObjectSerializer::deserialize($content, $dataType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; } diff --git a/src/Api/CurrencyApi.php b/src/Api/CurrencyApi.php index 193dd7d..0d77180 100644 --- a/src/Api/CurrencyApi.php +++ b/src/Api/CurrencyApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Api/DocumentApi.php b/src/Api/DocumentApi.php index fe8ddc3..b242d2a 100644 --- a/src/Api/DocumentApi.php +++ b/src/Api/DocumentApi.php @@ -1,9 +1,9 @@ archiveDocumentWithHttpInfo($id, $contentType); return $response; } @@ -220,7 +222,8 @@ public function archiveDocument( public function archiveDocumentWithHttpInfo( int $id, string $contentType = self::contentTypes['archiveDocument'][0] - ): array { + ): array + { $request = $this->archiveDocumentRequest($id, $contentType); try { @@ -314,7 +317,7 @@ public function archiveDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -333,7 +336,8 @@ public function archiveDocumentWithHttpInfo( public function archiveDocumentAsync( int $id, string $contentType = self::contentTypes['archiveDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->archiveDocumentAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -356,7 +360,8 @@ function ($response) { public function archiveDocumentAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['archiveDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = ''; $request = $this->archiveDocumentRequest($id, $contentType); @@ -395,7 +400,8 @@ function ($exception) { public function archiveDocumentRequest( int $id, string $contentType = self::contentTypes['archiveDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -439,7 +445,7 @@ public function archiveDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -447,7 +453,7 @@ public function archiveDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -499,7 +505,8 @@ public function cancelDocument( int $id, ?\Cone\Billingo\Model\DocumentCancellation $documentCancellation = null, string $contentType = self::contentTypes['cancelDocument'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->cancelDocumentWithHttpInfo($id, $documentCancellation, $contentType); return $response; } @@ -521,7 +528,8 @@ public function cancelDocumentWithHttpInfo( int $id, ?\Cone\Billingo\Model\DocumentCancellation $documentCancellation = null, string $contentType = self::contentTypes['cancelDocument'][0] - ): array { + ): array + { $request = $this->cancelDocumentRequest($id, $documentCancellation, $contentType); try { @@ -546,7 +554,7 @@ public function cancelDocumentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -602,7 +610,7 @@ public function cancelDocumentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -697,7 +705,7 @@ public function cancelDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -718,7 +726,8 @@ public function cancelDocumentAsync( int $id, ?\Cone\Billingo\Model\DocumentCancellation $documentCancellation = null, string $contentType = self::contentTypes['cancelDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->cancelDocumentAsyncWithHttpInfo($id, $documentCancellation, $contentType) ->then( function ($response) { @@ -743,7 +752,8 @@ public function cancelDocumentAsyncWithHttpInfo( int $id, ?\Cone\Billingo\Model\DocumentCancellation $documentCancellation = null, string $contentType = self::contentTypes['cancelDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->cancelDocumentRequest($id, $documentCancellation, $contentType); @@ -751,7 +761,7 @@ public function cancelDocumentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -763,7 +773,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -797,7 +807,8 @@ public function cancelDocumentRequest( int $id, ?\Cone\Billingo\Model\DocumentCancellation $documentCancellation = null, string $contentType = self::contentTypes['cancelDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -836,7 +847,7 @@ public function cancelDocumentRequest( // for model (json/xml) if (isset($documentCancellation)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($documentCancellation)); } else { $httpBody = $documentCancellation; @@ -849,7 +860,7 @@ public function cancelDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -857,7 +868,7 @@ public function cancelDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -907,7 +918,8 @@ public function cancelDocumentRequest( public function createDocument( \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocument'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->createDocumentWithHttpInfo($documentInsert, $contentType); return $response; } @@ -927,7 +939,8 @@ public function createDocument( public function createDocumentWithHttpInfo( \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocument'][0] - ): array { + ): array + { $request = $this->createDocumentRequest($documentInsert, $contentType); try { @@ -952,7 +965,7 @@ public function createDocumentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -1002,7 +1015,7 @@ public function createDocumentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1089,7 +1102,7 @@ public function createDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1108,7 +1121,8 @@ public function createDocumentWithHttpInfo( public function createDocumentAsync( \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createDocumentAsyncWithHttpInfo($documentInsert, $contentType) ->then( function ($response) { @@ -1131,7 +1145,8 @@ function ($response) { public function createDocumentAsyncWithHttpInfo( \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->createDocumentRequest($documentInsert, $contentType); @@ -1139,7 +1154,7 @@ public function createDocumentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1151,7 +1166,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1183,7 +1198,8 @@ function ($exception) { public function createDocumentRequest( \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'documentInsert' is set if ($documentInsert === null || (is_array($documentInsert) && count($documentInsert) === 0)) { @@ -1213,7 +1229,7 @@ public function createDocumentRequest( // for model (json/xml) if (isset($documentInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($documentInsert)); } else { $httpBody = $documentInsert; @@ -1226,7 +1242,7 @@ public function createDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1234,7 +1250,7 @@ public function createDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1286,7 +1302,8 @@ public function createDocumentFromDraft( int $id, \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocumentFromDraft'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->createDocumentFromDraftWithHttpInfo($id, $documentInsert, $contentType); return $response; } @@ -1308,7 +1325,8 @@ public function createDocumentFromDraftWithHttpInfo( int $id, \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocumentFromDraft'][0] - ): array { + ): array + { $request = $this->createDocumentFromDraftRequest($id, $documentInsert, $contentType); try { @@ -1333,7 +1351,7 @@ public function createDocumentFromDraftWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -1389,7 +1407,7 @@ public function createDocumentFromDraftWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1484,7 +1502,7 @@ public function createDocumentFromDraftWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1505,7 +1523,8 @@ public function createDocumentFromDraftAsync( int $id, \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocumentFromDraft'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createDocumentFromDraftAsyncWithHttpInfo($id, $documentInsert, $contentType) ->then( function ($response) { @@ -1530,7 +1549,8 @@ public function createDocumentFromDraftAsyncWithHttpInfo( int $id, \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocumentFromDraft'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->createDocumentFromDraftRequest($id, $documentInsert, $contentType); @@ -1538,7 +1558,7 @@ public function createDocumentFromDraftAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1550,7 +1570,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1584,7 +1604,8 @@ public function createDocumentFromDraftRequest( int $id, \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocumentFromDraft'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1629,7 +1650,7 @@ public function createDocumentFromDraftRequest( // for model (json/xml) if (isset($documentInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($documentInsert)); } else { $httpBody = $documentInsert; @@ -1642,7 +1663,7 @@ public function createDocumentFromDraftRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1650,7 +1671,7 @@ public function createDocumentFromDraftRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1702,7 +1723,8 @@ public function createDocumentFromProforma( int $id, ?\Cone\Billingo\Model\InvoiceSettings $invoiceSettings = null, string $contentType = self::contentTypes['createDocumentFromProforma'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->createDocumentFromProformaWithHttpInfo($id, $invoiceSettings, $contentType); return $response; } @@ -1724,7 +1746,8 @@ public function createDocumentFromProformaWithHttpInfo( int $id, ?\Cone\Billingo\Model\InvoiceSettings $invoiceSettings = null, string $contentType = self::contentTypes['createDocumentFromProforma'][0] - ): array { + ): array + { $request = $this->createDocumentFromProformaRequest($id, $invoiceSettings, $contentType); try { @@ -1749,7 +1772,7 @@ public function createDocumentFromProformaWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -1805,7 +1828,7 @@ public function createDocumentFromProformaWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1900,7 +1923,7 @@ public function createDocumentFromProformaWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1921,7 +1944,8 @@ public function createDocumentFromProformaAsync( int $id, ?\Cone\Billingo\Model\InvoiceSettings $invoiceSettings = null, string $contentType = self::contentTypes['createDocumentFromProforma'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createDocumentFromProformaAsyncWithHttpInfo($id, $invoiceSettings, $contentType) ->then( function ($response) { @@ -1946,7 +1970,8 @@ public function createDocumentFromProformaAsyncWithHttpInfo( int $id, ?\Cone\Billingo\Model\InvoiceSettings $invoiceSettings = null, string $contentType = self::contentTypes['createDocumentFromProforma'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->createDocumentFromProformaRequest($id, $invoiceSettings, $contentType); @@ -1954,7 +1979,7 @@ public function createDocumentFromProformaAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1966,7 +1991,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -2000,7 +2025,8 @@ public function createDocumentFromProformaRequest( int $id, ?\Cone\Billingo\Model\InvoiceSettings $invoiceSettings = null, string $contentType = self::contentTypes['createDocumentFromProforma'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -2039,7 +2065,7 @@ public function createDocumentFromProformaRequest( // for model (json/xml) if (isset($invoiceSettings)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($invoiceSettings)); } else { $httpBody = $invoiceSettings; @@ -2052,7 +2078,7 @@ public function createDocumentFromProformaRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -2060,7 +2086,7 @@ public function createDocumentFromProformaRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2112,7 +2138,8 @@ public function createModificationDocument( int $id, \Cone\Billingo\Model\ModificationDocumentInsert $modificationDocumentInsert, string $contentType = self::contentTypes['createModificationDocument'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->createModificationDocumentWithHttpInfo($id, $modificationDocumentInsert, $contentType); return $response; } @@ -2134,7 +2161,8 @@ public function createModificationDocumentWithHttpInfo( int $id, \Cone\Billingo\Model\ModificationDocumentInsert $modificationDocumentInsert, string $contentType = self::contentTypes['createModificationDocument'][0] - ): array { + ): array + { $request = $this->createModificationDocumentRequest($id, $modificationDocumentInsert, $contentType); try { @@ -2159,7 +2187,7 @@ public function createModificationDocumentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -2215,7 +2243,7 @@ public function createModificationDocumentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2310,7 +2338,7 @@ public function createModificationDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -2331,7 +2359,8 @@ public function createModificationDocumentAsync( int $id, \Cone\Billingo\Model\ModificationDocumentInsert $modificationDocumentInsert, string $contentType = self::contentTypes['createModificationDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createModificationDocumentAsyncWithHttpInfo($id, $modificationDocumentInsert, $contentType) ->then( function ($response) { @@ -2356,7 +2385,8 @@ public function createModificationDocumentAsyncWithHttpInfo( int $id, \Cone\Billingo\Model\ModificationDocumentInsert $modificationDocumentInsert, string $contentType = self::contentTypes['createModificationDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->createModificationDocumentRequest($id, $modificationDocumentInsert, $contentType); @@ -2364,7 +2394,7 @@ public function createModificationDocumentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2376,7 +2406,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -2410,7 +2440,8 @@ public function createModificationDocumentRequest( int $id, \Cone\Billingo\Model\ModificationDocumentInsert $modificationDocumentInsert, string $contentType = self::contentTypes['createModificationDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -2455,7 +2486,7 @@ public function createModificationDocumentRequest( // for model (json/xml) if (isset($modificationDocumentInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($modificationDocumentInsert)); } else { $httpBody = $modificationDocumentInsert; @@ -2468,7 +2499,7 @@ public function createModificationDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -2476,7 +2507,7 @@ public function createModificationDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2526,7 +2557,8 @@ public function createModificationDocumentRequest( public function createReceipt( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceipt'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->createReceiptWithHttpInfo($receiptInsert, $contentType); return $response; } @@ -2546,7 +2578,8 @@ public function createReceipt( public function createReceiptWithHttpInfo( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceipt'][0] - ): array { + ): array + { $request = $this->createReceiptRequest($receiptInsert, $contentType); try { @@ -2571,7 +2604,7 @@ public function createReceiptWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -2621,7 +2654,7 @@ public function createReceiptWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2708,7 +2741,7 @@ public function createReceiptWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -2727,7 +2760,8 @@ public function createReceiptWithHttpInfo( public function createReceiptAsync( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceipt'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createReceiptAsyncWithHttpInfo($receiptInsert, $contentType) ->then( function ($response) { @@ -2750,7 +2784,8 @@ function ($response) { public function createReceiptAsyncWithHttpInfo( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceipt'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->createReceiptRequest($receiptInsert, $contentType); @@ -2758,7 +2793,7 @@ public function createReceiptAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2770,7 +2805,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -2802,7 +2837,8 @@ function ($exception) { public function createReceiptRequest( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceipt'][0] - ): Request { + ): Request + { // verify the required parameter 'receiptInsert' is set if ($receiptInsert === null || (is_array($receiptInsert) && count($receiptInsert) === 0)) { @@ -2832,7 +2868,7 @@ public function createReceiptRequest( // for model (json/xml) if (isset($receiptInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($receiptInsert)); } else { $httpBody = $receiptInsert; @@ -2845,7 +2881,7 @@ public function createReceiptRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -2853,7 +2889,7 @@ public function createReceiptRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2905,7 +2941,8 @@ public function createReceiptFromDraft( int $id, \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceiptFromDraft'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->createReceiptFromDraftWithHttpInfo($id, $receiptInsert, $contentType); return $response; } @@ -2927,7 +2964,8 @@ public function createReceiptFromDraftWithHttpInfo( int $id, \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceiptFromDraft'][0] - ): array { + ): array + { $request = $this->createReceiptFromDraftRequest($id, $receiptInsert, $contentType); try { @@ -2952,7 +2990,7 @@ public function createReceiptFromDraftWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -3008,7 +3046,7 @@ public function createReceiptFromDraftWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3103,7 +3141,7 @@ public function createReceiptFromDraftWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -3124,7 +3162,8 @@ public function createReceiptFromDraftAsync( int $id, \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceiptFromDraft'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createReceiptFromDraftAsyncWithHttpInfo($id, $receiptInsert, $contentType) ->then( function ($response) { @@ -3149,7 +3188,8 @@ public function createReceiptFromDraftAsyncWithHttpInfo( int $id, \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceiptFromDraft'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->createReceiptFromDraftRequest($id, $receiptInsert, $contentType); @@ -3157,7 +3197,7 @@ public function createReceiptFromDraftAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -3169,7 +3209,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -3203,7 +3243,8 @@ public function createReceiptFromDraftRequest( int $id, \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceiptFromDraft'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -3248,7 +3289,7 @@ public function createReceiptFromDraftRequest( // for model (json/xml) if (isset($receiptInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($receiptInsert)); } else { $httpBody = $receiptInsert; @@ -3261,7 +3302,7 @@ public function createReceiptFromDraftRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -3269,7 +3310,7 @@ public function createReceiptFromDraftRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -3314,12 +3355,13 @@ public function createReceiptFromDraftRequest( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|null */ public function deleteDocument( int $id, string $contentType = self::contentTypes['deleteDocument'][0] - ): \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): ?\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->deleteDocumentWithHttpInfo($id, $contentType); return $response; } @@ -3339,7 +3381,8 @@ public function deleteDocument( public function deleteDocumentWithHttpInfo( int $id, string $contentType = self::contentTypes['deleteDocument'][0] - ): array { + ): array + { $request = $this->deleteDocumentRequest($id, $contentType); try { @@ -3425,7 +3468,7 @@ public function deleteDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -3444,7 +3487,8 @@ public function deleteDocumentWithHttpInfo( public function deleteDocumentAsync( int $id, string $contentType = self::contentTypes['deleteDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->deleteDocumentAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -3467,7 +3511,8 @@ function ($response) { public function deleteDocumentAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['deleteDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = ''; $request = $this->deleteDocumentRequest($id, $contentType); @@ -3506,7 +3551,8 @@ function ($exception) { public function deleteDocumentRequest( int $id, string $contentType = self::contentTypes['deleteDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -3550,7 +3596,7 @@ public function deleteDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -3558,7 +3604,7 @@ public function deleteDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -3608,7 +3654,8 @@ public function deleteDocumentRequest( public function deletePayment( int $id, string $contentType = self::contentTypes['deletePayment'][0] - ): array|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): array|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->deletePaymentWithHttpInfo($id, $contentType); return $response; } @@ -3628,7 +3675,8 @@ public function deletePayment( public function deletePaymentWithHttpInfo( int $id, string $contentType = self::contentTypes['deletePayment'][0] - ): array { + ): array + { $request = $this->deletePaymentRequest($id, $contentType); try { @@ -3653,7 +3701,7 @@ public function deletePaymentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\PaymentHistory[]', @@ -3703,7 +3751,7 @@ public function deletePaymentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3790,7 +3838,7 @@ public function deletePaymentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -3809,7 +3857,8 @@ public function deletePaymentWithHttpInfo( public function deletePaymentAsync( int $id, string $contentType = self::contentTypes['deletePayment'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->deletePaymentAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -3832,7 +3881,8 @@ function ($response) { public function deletePaymentAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['deletePayment'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\PaymentHistory[]'; $request = $this->deletePaymentRequest($id, $contentType); @@ -3840,7 +3890,7 @@ public function deletePaymentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -3852,7 +3902,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -3884,7 +3934,8 @@ function ($exception) { public function deletePaymentRequest( int $id, string $contentType = self::contentTypes['deletePayment'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -3928,7 +3979,7 @@ public function deletePaymentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -3936,7 +3987,7 @@ public function deletePaymentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -3986,7 +4037,8 @@ public function deletePaymentRequest( public function documentCopy( int $id, string $contentType = self::contentTypes['documentCopy'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->documentCopyWithHttpInfo($id, $contentType); return $response; } @@ -4006,7 +4058,8 @@ public function documentCopy( public function documentCopyWithHttpInfo( int $id, string $contentType = self::contentTypes['documentCopy'][0] - ): array { + ): array + { $request = $this->documentCopyRequest($id, $contentType); try { @@ -4031,7 +4084,7 @@ public function documentCopyWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -4087,7 +4140,7 @@ public function documentCopyWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -4182,7 +4235,7 @@ public function documentCopyWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -4201,7 +4254,8 @@ public function documentCopyWithHttpInfo( public function documentCopyAsync( int $id, string $contentType = self::contentTypes['documentCopy'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->documentCopyAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -4224,7 +4278,8 @@ function ($response) { public function documentCopyAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['documentCopy'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->documentCopyRequest($id, $contentType); @@ -4232,7 +4287,7 @@ public function documentCopyAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -4244,7 +4299,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -4276,7 +4331,8 @@ function ($exception) { public function documentCopyRequest( int $id, string $contentType = self::contentTypes['documentCopy'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -4320,7 +4376,7 @@ public function documentCopyRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -4328,7 +4384,7 @@ public function documentCopyRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -4378,7 +4434,8 @@ public function documentCopyRequest( public function downloadDocument( int $id, string $contentType = self::contentTypes['downloadDocument'][0] - ): \SplFileObject|\Cone\Billingo\Model\ClientError|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \SplFileObject|\Cone\Billingo\Model\ClientError|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->downloadDocumentWithHttpInfo($id, $contentType); return $response; } @@ -4398,7 +4455,8 @@ public function downloadDocument( public function downloadDocumentWithHttpInfo( int $id, string $contentType = self::contentTypes['downloadDocument'][0] - ): array { + ): array + { $request = $this->downloadDocumentRequest($id, $contentType); try { @@ -4423,7 +4481,7 @@ public function downloadDocumentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\SplFileObject', @@ -4479,7 +4537,7 @@ public function downloadDocumentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -4574,7 +4632,7 @@ public function downloadDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -4593,7 +4651,8 @@ public function downloadDocumentWithHttpInfo( public function downloadDocumentAsync( int $id, string $contentType = self::contentTypes['downloadDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->downloadDocumentAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -4616,7 +4675,8 @@ function ($response) { public function downloadDocumentAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['downloadDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\SplFileObject'; $request = $this->downloadDocumentRequest($id, $contentType); @@ -4624,7 +4684,7 @@ public function downloadDocumentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -4636,7 +4696,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -4668,7 +4728,8 @@ function ($exception) { public function downloadDocumentRequest( int $id, string $contentType = self::contentTypes['downloadDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -4712,7 +4773,7 @@ public function downloadDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -4720,7 +4781,7 @@ public function downloadDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -4770,7 +4831,8 @@ public function downloadDocumentRequest( public function getDocument( int $id, string $contentType = self::contentTypes['getDocument'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getDocumentWithHttpInfo($id, $contentType); return $response; } @@ -4790,7 +4852,8 @@ public function getDocument( public function getDocumentWithHttpInfo( int $id, string $contentType = self::contentTypes['getDocument'][0] - ): array { + ): array + { $request = $this->getDocumentRequest($id, $contentType); try { @@ -4815,7 +4878,7 @@ public function getDocumentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -4865,7 +4928,7 @@ public function getDocumentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -4952,7 +5015,7 @@ public function getDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -4971,7 +5034,8 @@ public function getDocumentWithHttpInfo( public function getDocumentAsync( int $id, string $contentType = self::contentTypes['getDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getDocumentAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -4994,7 +5058,8 @@ function ($response) { public function getDocumentAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['getDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->getDocumentRequest($id, $contentType); @@ -5002,7 +5067,7 @@ public function getDocumentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -5014,7 +5079,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -5046,7 +5111,8 @@ function ($exception) { public function getDocumentRequest( int $id, string $contentType = self::contentTypes['getDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -5090,7 +5156,7 @@ public function getDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -5098,7 +5164,7 @@ public function getDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -5148,7 +5214,8 @@ public function getDocumentRequest( public function getDocumentByVendorId( string $vendorId, string $contentType = self::contentTypes['getDocumentByVendorId'][0] - ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getDocumentByVendorIdWithHttpInfo($vendorId, $contentType); return $response; } @@ -5168,7 +5235,8 @@ public function getDocumentByVendorId( public function getDocumentByVendorIdWithHttpInfo( string $vendorId, string $contentType = self::contentTypes['getDocumentByVendorId'][0] - ): array { + ): array + { $request = $this->getDocumentByVendorIdRequest($vendorId, $contentType); try { @@ -5193,7 +5261,7 @@ public function getDocumentByVendorIdWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Document', @@ -5237,7 +5305,7 @@ public function getDocumentByVendorIdWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -5316,7 +5384,7 @@ public function getDocumentByVendorIdWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -5335,7 +5403,8 @@ public function getDocumentByVendorIdWithHttpInfo( public function getDocumentByVendorIdAsync( string $vendorId, string $contentType = self::contentTypes['getDocumentByVendorId'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getDocumentByVendorIdAsyncWithHttpInfo($vendorId, $contentType) ->then( function ($response) { @@ -5358,7 +5427,8 @@ function ($response) { public function getDocumentByVendorIdAsyncWithHttpInfo( string $vendorId, string $contentType = self::contentTypes['getDocumentByVendorId'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Document'; $request = $this->getDocumentByVendorIdRequest($vendorId, $contentType); @@ -5366,7 +5436,7 @@ public function getDocumentByVendorIdAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -5378,7 +5448,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -5410,7 +5480,8 @@ function ($exception) { public function getDocumentByVendorIdRequest( string $vendorId, string $contentType = self::contentTypes['getDocumentByVendorId'][0] - ): Request { + ): Request + { // verify the required parameter 'vendorId' is set if ($vendorId === null || (is_array($vendorId) && count($vendorId) === 0)) { @@ -5454,7 +5525,7 @@ public function getDocumentByVendorIdRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -5462,7 +5533,7 @@ public function getDocumentByVendorIdRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -5512,7 +5583,8 @@ public function getDocumentByVendorIdRequest( public function getOnlineSzamlaStatus( int $id, string $contentType = self::contentTypes['getOnlineSzamlaStatus'][0] - ): \Cone\Billingo\Model\OnlineSzamlaStatus|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\OnlineSzamlaStatus|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getOnlineSzamlaStatusWithHttpInfo($id, $contentType); return $response; } @@ -5532,7 +5604,8 @@ public function getOnlineSzamlaStatus( public function getOnlineSzamlaStatusWithHttpInfo( int $id, string $contentType = self::contentTypes['getOnlineSzamlaStatus'][0] - ): array { + ): array + { $request = $this->getOnlineSzamlaStatusRequest($id, $contentType); try { @@ -5557,7 +5630,7 @@ public function getOnlineSzamlaStatusWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\OnlineSzamlaStatus', @@ -5607,7 +5680,7 @@ public function getOnlineSzamlaStatusWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -5694,7 +5767,7 @@ public function getOnlineSzamlaStatusWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -5713,7 +5786,8 @@ public function getOnlineSzamlaStatusWithHttpInfo( public function getOnlineSzamlaStatusAsync( int $id, string $contentType = self::contentTypes['getOnlineSzamlaStatus'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getOnlineSzamlaStatusAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -5736,7 +5810,8 @@ function ($response) { public function getOnlineSzamlaStatusAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['getOnlineSzamlaStatus'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\OnlineSzamlaStatus'; $request = $this->getOnlineSzamlaStatusRequest($id, $contentType); @@ -5744,7 +5819,7 @@ public function getOnlineSzamlaStatusAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -5756,7 +5831,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -5788,7 +5863,8 @@ function ($exception) { public function getOnlineSzamlaStatusRequest( int $id, string $contentType = self::contentTypes['getOnlineSzamlaStatus'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -5832,7 +5908,7 @@ public function getOnlineSzamlaStatusRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -5840,7 +5916,7 @@ public function getOnlineSzamlaStatusRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -5890,7 +5966,8 @@ public function getOnlineSzamlaStatusRequest( public function getPayment( int $id, string $contentType = self::contentTypes['getPayment'][0] - ): array|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): array|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getPaymentWithHttpInfo($id, $contentType); return $response; } @@ -5910,7 +5987,8 @@ public function getPayment( public function getPaymentWithHttpInfo( int $id, string $contentType = self::contentTypes['getPayment'][0] - ): array { + ): array + { $request = $this->getPaymentRequest($id, $contentType); try { @@ -5935,7 +6013,7 @@ public function getPaymentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\PaymentHistory[]', @@ -5985,7 +6063,7 @@ public function getPaymentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -6072,7 +6150,7 @@ public function getPaymentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -6091,7 +6169,8 @@ public function getPaymentWithHttpInfo( public function getPaymentAsync( int $id, string $contentType = self::contentTypes['getPayment'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getPaymentAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -6114,7 +6193,8 @@ function ($response) { public function getPaymentAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['getPayment'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\PaymentHistory[]'; $request = $this->getPaymentRequest($id, $contentType); @@ -6122,7 +6202,7 @@ public function getPaymentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -6134,7 +6214,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -6166,7 +6246,8 @@ function ($exception) { public function getPaymentRequest( int $id, string $contentType = self::contentTypes['getPayment'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -6210,7 +6291,7 @@ public function getPaymentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -6218,7 +6299,7 @@ public function getPaymentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -6268,7 +6349,8 @@ public function getPaymentRequest( public function getPublicUrl( int $id, string $contentType = self::contentTypes['getPublicUrl'][0] - ): \Cone\Billingo\Model\DocumentPublicUrl|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\DocumentPublicUrl|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getPublicUrlWithHttpInfo($id, $contentType); return $response; } @@ -6288,7 +6370,8 @@ public function getPublicUrl( public function getPublicUrlWithHttpInfo( int $id, string $contentType = self::contentTypes['getPublicUrl'][0] - ): array { + ): array + { $request = $this->getPublicUrlRequest($id, $contentType); try { @@ -6313,7 +6396,7 @@ public function getPublicUrlWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\DocumentPublicUrl', @@ -6363,7 +6446,7 @@ public function getPublicUrlWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -6450,7 +6533,7 @@ public function getPublicUrlWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -6469,7 +6552,8 @@ public function getPublicUrlWithHttpInfo( public function getPublicUrlAsync( int $id, string $contentType = self::contentTypes['getPublicUrl'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getPublicUrlAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -6492,7 +6576,8 @@ function ($response) { public function getPublicUrlAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['getPublicUrl'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\DocumentPublicUrl'; $request = $this->getPublicUrlRequest($id, $contentType); @@ -6500,7 +6585,7 @@ public function getPublicUrlAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -6512,7 +6597,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -6544,7 +6629,8 @@ function ($exception) { public function getPublicUrlRequest( int $id, string $contentType = self::contentTypes['getPublicUrl'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -6588,7 +6674,7 @@ public function getPublicUrlRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -6596,7 +6682,7 @@ public function getPublicUrlRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -6682,7 +6768,8 @@ public function listDocument( ?\DateTime $fulfillmentEndDate = null, ?string $lastModifiedDate = null, string $contentType = self::contentTypes['listDocument'][0] - ): \Cone\Billingo\Model\DocumentList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\DocumentList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->listDocumentWithHttpInfo($page, $perPage, $blockId, $partnerId, $paymentMethod, $paymentStatus, $startDate, $endDate, $startNumber, $endNumber, $startYear, $endYear, $type, $query, $paidStartDate, $paidEndDate, $fulfillmentStartDate, $fulfillmentEndDate, $lastModifiedDate, $contentType); return $response; } @@ -6738,7 +6825,8 @@ public function listDocumentWithHttpInfo( ?\DateTime $fulfillmentEndDate = null, ?string $lastModifiedDate = null, string $contentType = self::contentTypes['listDocument'][0] - ): array { + ): array + { $request = $this->listDocumentRequest($page, $perPage, $blockId, $partnerId, $paymentMethod, $paymentStatus, $startDate, $endDate, $startNumber, $endNumber, $startYear, $endYear, $type, $query, $paidStartDate, $paidEndDate, $fulfillmentStartDate, $fulfillmentEndDate, $lastModifiedDate, $contentType); try { @@ -6763,7 +6851,7 @@ public function listDocumentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\DocumentList', @@ -6807,7 +6895,7 @@ public function listDocumentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -6886,7 +6974,7 @@ public function listDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -6941,7 +7029,8 @@ public function listDocumentAsync( ?\DateTime $fulfillmentEndDate = null, ?string $lastModifiedDate = null, string $contentType = self::contentTypes['listDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->listDocumentAsyncWithHttpInfo($page, $perPage, $blockId, $partnerId, $paymentMethod, $paymentStatus, $startDate, $endDate, $startNumber, $endNumber, $startYear, $endYear, $type, $query, $paidStartDate, $paidEndDate, $fulfillmentStartDate, $fulfillmentEndDate, $lastModifiedDate, $contentType) ->then( function ($response) { @@ -7000,7 +7089,8 @@ public function listDocumentAsyncWithHttpInfo( ?\DateTime $fulfillmentEndDate = null, ?string $lastModifiedDate = null, string $contentType = self::contentTypes['listDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\DocumentList'; $request = $this->listDocumentRequest($page, $perPage, $blockId, $partnerId, $paymentMethod, $paymentStatus, $startDate, $endDate, $startNumber, $endNumber, $startYear, $endYear, $type, $query, $paidStartDate, $paidEndDate, $fulfillmentStartDate, $fulfillmentEndDate, $lastModifiedDate, $contentType); @@ -7008,7 +7098,7 @@ public function listDocumentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -7020,7 +7110,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -7088,7 +7178,8 @@ public function listDocumentRequest( ?\DateTime $fulfillmentEndDate = null, ?string $lastModifiedDate = null, string $contentType = self::contentTypes['listDocument'][0] - ): Request { + ): Request + { if ($perPage !== null && $perPage > 100) { @@ -7097,7 +7188,7 @@ public function listDocumentRequest( if ($perPage !== null && $perPage < 1) { throw new InvalidArgumentException('invalid value for "$perPage" when calling DocumentApi.listDocument, must be bigger than or equal to 1.'); } - + @@ -7313,7 +7404,7 @@ public function listDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -7321,7 +7412,7 @@ public function listDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -7373,7 +7464,8 @@ public function posPrint( int $id, float $size, string $contentType = self::contentTypes['posPrint'][0] - ): \SplFileObject|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \SplFileObject|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->posPrintWithHttpInfo($id, $size, $contentType); return $response; } @@ -7395,7 +7487,8 @@ public function posPrintWithHttpInfo( int $id, float $size, string $contentType = self::contentTypes['posPrint'][0] - ): array { + ): array + { $request = $this->posPrintRequest($id, $size, $contentType); try { @@ -7420,7 +7513,7 @@ public function posPrintWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\SplFileObject', @@ -7470,7 +7563,7 @@ public function posPrintWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -7557,7 +7650,7 @@ public function posPrintWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -7578,7 +7671,8 @@ public function posPrintAsync( int $id, float $size, string $contentType = self::contentTypes['posPrint'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->posPrintAsyncWithHttpInfo($id, $size, $contentType) ->then( function ($response) { @@ -7603,7 +7697,8 @@ public function posPrintAsyncWithHttpInfo( int $id, float $size, string $contentType = self::contentTypes['posPrint'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\SplFileObject'; $request = $this->posPrintRequest($id, $size, $contentType); @@ -7611,7 +7706,7 @@ public function posPrintAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -7623,7 +7718,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -7657,7 +7752,8 @@ public function posPrintRequest( int $id, float $size, string $contentType = self::contentTypes['posPrint'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -7717,7 +7813,7 @@ public function posPrintRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -7725,7 +7821,7 @@ public function posPrintRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -7777,7 +7873,8 @@ public function sendDocument( int $id, ?\Cone\Billingo\Model\SendDocument $sendDocument = null, string $contentType = self::contentTypes['sendDocument'][0] - ): \Cone\Billingo\Model\SendDocument|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\SendDocument|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->sendDocumentWithHttpInfo($id, $sendDocument, $contentType); return $response; } @@ -7799,7 +7896,8 @@ public function sendDocumentWithHttpInfo( int $id, ?\Cone\Billingo\Model\SendDocument $sendDocument = null, string $contentType = self::contentTypes['sendDocument'][0] - ): array { + ): array + { $request = $this->sendDocumentRequest($id, $sendDocument, $contentType); try { @@ -7824,7 +7922,7 @@ public function sendDocumentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\SendDocument', @@ -7880,7 +7978,7 @@ public function sendDocumentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -7975,7 +8073,7 @@ public function sendDocumentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -7996,7 +8094,8 @@ public function sendDocumentAsync( int $id, ?\Cone\Billingo\Model\SendDocument $sendDocument = null, string $contentType = self::contentTypes['sendDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->sendDocumentAsyncWithHttpInfo($id, $sendDocument, $contentType) ->then( function ($response) { @@ -8021,7 +8120,8 @@ public function sendDocumentAsyncWithHttpInfo( int $id, ?\Cone\Billingo\Model\SendDocument $sendDocument = null, string $contentType = self::contentTypes['sendDocument'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\SendDocument'; $request = $this->sendDocumentRequest($id, $sendDocument, $contentType); @@ -8029,7 +8129,7 @@ public function sendDocumentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -8041,7 +8141,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -8075,7 +8175,8 @@ public function sendDocumentRequest( int $id, ?\Cone\Billingo\Model\SendDocument $sendDocument = null, string $contentType = self::contentTypes['sendDocument'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -8114,7 +8215,7 @@ public function sendDocumentRequest( // for model (json/xml) if (isset($sendDocument)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($sendDocument)); } else { $httpBody = $sendDocument; @@ -8127,7 +8228,7 @@ public function sendDocumentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -8135,7 +8236,7 @@ public function sendDocumentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -8187,7 +8288,8 @@ public function updatePayment( int $id, array $paymentHistory, string $contentType = self::contentTypes['updatePayment'][0] - ): array|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): array|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->updatePaymentWithHttpInfo($id, $paymentHistory, $contentType); return $response; } @@ -8209,7 +8311,8 @@ public function updatePaymentWithHttpInfo( int $id, array $paymentHistory, string $contentType = self::contentTypes['updatePayment'][0] - ): array { + ): array + { $request = $this->updatePaymentRequest($id, $paymentHistory, $contentType); try { @@ -8234,7 +8337,7 @@ public function updatePaymentWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\PaymentHistory[]', @@ -8290,7 +8393,7 @@ public function updatePaymentWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -8385,7 +8488,7 @@ public function updatePaymentWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -8406,7 +8509,8 @@ public function updatePaymentAsync( int $id, array $paymentHistory, string $contentType = self::contentTypes['updatePayment'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->updatePaymentAsyncWithHttpInfo($id, $paymentHistory, $contentType) ->then( function ($response) { @@ -8431,7 +8535,8 @@ public function updatePaymentAsyncWithHttpInfo( int $id, array $paymentHistory, string $contentType = self::contentTypes['updatePayment'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\PaymentHistory[]'; $request = $this->updatePaymentRequest($id, $paymentHistory, $contentType); @@ -8439,7 +8544,7 @@ public function updatePaymentAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -8451,7 +8556,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -8485,7 +8590,8 @@ public function updatePaymentRequest( int $id, array $paymentHistory, string $contentType = self::contentTypes['updatePayment'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -8530,7 +8636,7 @@ public function updatePaymentRequest( // for model (json/xml) if (isset($paymentHistory)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($paymentHistory)); } else { $httpBody = $paymentHistory; @@ -8543,7 +8649,7 @@ public function updatePaymentRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -8551,7 +8657,7 @@ public function updatePaymentRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -8610,7 +8716,7 @@ private function handleResponseWithDataType( RequestInterface $request, ResponseInterface $response, ): array { - if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -8634,7 +8740,7 @@ private function handleResponseWithDataType( return [ ObjectSerializer::deserialize($content, $dataType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; } diff --git a/src/Api/DocumentBlockApi.php b/src/Api/DocumentBlockApi.php index f7c3ddf..e1dbdcd 100644 --- a/src/Api/DocumentBlockApi.php +++ b/src/Api/DocumentBlockApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Api/DocumentExportApi.php b/src/Api/DocumentExportApi.php index e92d228..29b939f 100644 --- a/src/Api/DocumentExportApi.php +++ b/src/Api/DocumentExportApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Api/OrganizationApi.php b/src/Api/OrganizationApi.php index 3428ef4..7f3c8ac 100644 --- a/src/Api/OrganizationApi.php +++ b/src/Api/OrganizationApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Api/PartnerApi.php b/src/Api/PartnerApi.php index d93789a..ca3cce9 100644 --- a/src/Api/PartnerApi.php +++ b/src/Api/PartnerApi.php @@ -1,9 +1,9 @@ createPartnerWithHttpInfo($partner, $contentType); return $response; } @@ -172,7 +174,8 @@ public function createPartner( public function createPartnerWithHttpInfo( \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['createPartner'][0] - ): array { + ): array + { $request = $this->createPartnerRequest($partner, $contentType); try { @@ -197,7 +200,7 @@ public function createPartnerWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Partner', @@ -247,7 +250,7 @@ public function createPartnerWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -334,7 +337,7 @@ public function createPartnerWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -353,7 +356,8 @@ public function createPartnerWithHttpInfo( public function createPartnerAsync( \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['createPartner'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createPartnerAsyncWithHttpInfo($partner, $contentType) ->then( function ($response) { @@ -376,7 +380,8 @@ function ($response) { public function createPartnerAsyncWithHttpInfo( \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['createPartner'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Partner'; $request = $this->createPartnerRequest($partner, $contentType); @@ -384,7 +389,7 @@ public function createPartnerAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -396,7 +401,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -428,7 +433,8 @@ function ($exception) { public function createPartnerRequest( \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['createPartner'][0] - ): Request { + ): Request + { // verify the required parameter 'partner' is set if ($partner === null || (is_array($partner) && count($partner) === 0)) { @@ -458,7 +464,7 @@ public function createPartnerRequest( // for model (json/xml) if (isset($partner)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($partner)); } else { $httpBody = $partner; @@ -471,7 +477,7 @@ public function createPartnerRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -479,7 +485,7 @@ public function createPartnerRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -524,12 +530,13 @@ public function createPartnerRequest( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|null */ public function deletePartner( int $id, string $contentType = self::contentTypes['deletePartner'][0] - ): \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): ?\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->deletePartnerWithHttpInfo($id, $contentType); return $response; } @@ -549,7 +556,8 @@ public function deletePartner( public function deletePartnerWithHttpInfo( int $id, string $contentType = self::contentTypes['deletePartner'][0] - ): array { + ): array + { $request = $this->deletePartnerRequest($id, $contentType); try { @@ -635,7 +643,7 @@ public function deletePartnerWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -654,7 +662,8 @@ public function deletePartnerWithHttpInfo( public function deletePartnerAsync( int $id, string $contentType = self::contentTypes['deletePartner'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->deletePartnerAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -677,7 +686,8 @@ function ($response) { public function deletePartnerAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['deletePartner'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = ''; $request = $this->deletePartnerRequest($id, $contentType); @@ -716,7 +726,8 @@ function ($exception) { public function deletePartnerRequest( int $id, string $contentType = self::contentTypes['deletePartner'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -760,7 +771,7 @@ public function deletePartnerRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -768,7 +779,7 @@ public function deletePartnerRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -818,7 +829,8 @@ public function deletePartnerRequest( public function getPartner( int $id, string $contentType = self::contentTypes['getPartner'][0] - ): \Cone\Billingo\Model\Partner|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Partner|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getPartnerWithHttpInfo($id, $contentType); return $response; } @@ -838,7 +850,8 @@ public function getPartner( public function getPartnerWithHttpInfo( int $id, string $contentType = self::contentTypes['getPartner'][0] - ): array { + ): array + { $request = $this->getPartnerRequest($id, $contentType); try { @@ -863,7 +876,7 @@ public function getPartnerWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Partner', @@ -913,7 +926,7 @@ public function getPartnerWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1000,7 +1013,7 @@ public function getPartnerWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1019,7 +1032,8 @@ public function getPartnerWithHttpInfo( public function getPartnerAsync( int $id, string $contentType = self::contentTypes['getPartner'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getPartnerAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -1042,7 +1056,8 @@ function ($response) { public function getPartnerAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['getPartner'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Partner'; $request = $this->getPartnerRequest($id, $contentType); @@ -1050,7 +1065,7 @@ public function getPartnerAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1062,7 +1077,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1094,7 +1109,8 @@ function ($exception) { public function getPartnerRequest( int $id, string $contentType = self::contentTypes['getPartner'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1138,7 +1154,7 @@ public function getPartnerRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1146,7 +1162,7 @@ public function getPartnerRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1200,7 +1216,8 @@ public function listPartner( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listPartner'][0] - ): \Cone\Billingo\Model\PartnerList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\PartnerList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->listPartnerWithHttpInfo($page, $perPage, $query, $contentType); return $response; } @@ -1224,7 +1241,8 @@ public function listPartnerWithHttpInfo( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listPartner'][0] - ): array { + ): array + { $request = $this->listPartnerRequest($page, $perPage, $query, $contentType); try { @@ -1249,7 +1267,7 @@ public function listPartnerWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\PartnerList', @@ -1293,7 +1311,7 @@ public function listPartnerWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1372,7 +1390,7 @@ public function listPartnerWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1395,7 +1413,8 @@ public function listPartnerAsync( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listPartner'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->listPartnerAsyncWithHttpInfo($page, $perPage, $query, $contentType) ->then( function ($response) { @@ -1422,7 +1441,8 @@ public function listPartnerAsyncWithHttpInfo( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listPartner'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\PartnerList'; $request = $this->listPartnerRequest($page, $perPage, $query, $contentType); @@ -1430,7 +1450,7 @@ public function listPartnerAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1442,7 +1462,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1478,7 +1498,8 @@ public function listPartnerRequest( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listPartner'][0] - ): Request { + ): Request + { if ($perPage !== null && $perPage > 100) { @@ -1487,7 +1508,7 @@ public function listPartnerRequest( if ($perPage !== null && $perPage < 1) { throw new InvalidArgumentException('invalid value for "$perPage" when calling PartnerApi.listPartner, must be bigger than or equal to 1.'); } - + $resourcePath = '/partners'; @@ -1543,7 +1564,7 @@ public function listPartnerRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1551,7 +1572,7 @@ public function listPartnerRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1603,7 +1624,8 @@ public function updatePartner( int $id, \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['updatePartner'][0] - ): \Cone\Billingo\Model\Partner|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Partner|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->updatePartnerWithHttpInfo($id, $partner, $contentType); return $response; } @@ -1625,7 +1647,8 @@ public function updatePartnerWithHttpInfo( int $id, \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['updatePartner'][0] - ): array { + ): array + { $request = $this->updatePartnerRequest($id, $partner, $contentType); try { @@ -1650,7 +1673,7 @@ public function updatePartnerWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Partner', @@ -1706,7 +1729,7 @@ public function updatePartnerWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1801,7 +1824,7 @@ public function updatePartnerWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1822,7 +1845,8 @@ public function updatePartnerAsync( int $id, \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['updatePartner'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->updatePartnerAsyncWithHttpInfo($id, $partner, $contentType) ->then( function ($response) { @@ -1847,7 +1871,8 @@ public function updatePartnerAsyncWithHttpInfo( int $id, \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['updatePartner'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Partner'; $request = $this->updatePartnerRequest($id, $partner, $contentType); @@ -1855,7 +1880,7 @@ public function updatePartnerAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1867,7 +1892,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1901,7 +1926,8 @@ public function updatePartnerRequest( int $id, \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['updatePartner'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1946,7 +1972,7 @@ public function updatePartnerRequest( // for model (json/xml) if (isset($partner)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($partner)); } else { $httpBody = $partner; @@ -1959,7 +1985,7 @@ public function updatePartnerRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1967,7 +1993,7 @@ public function updatePartnerRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2026,7 +2052,7 @@ private function handleResponseWithDataType( RequestInterface $request, ResponseInterface $response, ): array { - if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2050,7 +2076,7 @@ private function handleResponseWithDataType( return [ ObjectSerializer::deserialize($content, $dataType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; } diff --git a/src/Api/ProductApi.php b/src/Api/ProductApi.php index 0f776cf..b21d0c7 100644 --- a/src/Api/ProductApi.php +++ b/src/Api/ProductApi.php @@ -1,9 +1,9 @@ createProductWithHttpInfo($product, $contentType); return $response; } @@ -172,7 +174,8 @@ public function createProduct( public function createProductWithHttpInfo( \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['createProduct'][0] - ): array { + ): array + { $request = $this->createProductRequest($product, $contentType); try { @@ -197,7 +200,7 @@ public function createProductWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Product', @@ -247,7 +250,7 @@ public function createProductWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -334,7 +337,7 @@ public function createProductWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -353,7 +356,8 @@ public function createProductWithHttpInfo( public function createProductAsync( \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['createProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->createProductAsyncWithHttpInfo($product, $contentType) ->then( function ($response) { @@ -376,7 +380,8 @@ function ($response) { public function createProductAsyncWithHttpInfo( \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['createProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Product'; $request = $this->createProductRequest($product, $contentType); @@ -384,7 +389,7 @@ public function createProductAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -396,7 +401,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -428,7 +433,8 @@ function ($exception) { public function createProductRequest( \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['createProduct'][0] - ): Request { + ): Request + { // verify the required parameter 'product' is set if ($product === null || (is_array($product) && count($product) === 0)) { @@ -458,7 +464,7 @@ public function createProductRequest( // for model (json/xml) if (isset($product)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($product)); } else { $httpBody = $product; @@ -471,7 +477,7 @@ public function createProductRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -479,7 +485,7 @@ public function createProductRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -524,12 +530,13 @@ public function createProductRequest( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + * @return \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|null */ public function deleteProduct( int $id, string $contentType = self::contentTypes['deleteProduct'][0] - ): \Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): ?\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->deleteProductWithHttpInfo($id, $contentType); return $response; } @@ -549,7 +556,8 @@ public function deleteProduct( public function deleteProductWithHttpInfo( int $id, string $contentType = self::contentTypes['deleteProduct'][0] - ): array { + ): array + { $request = $this->deleteProductRequest($id, $contentType); try { @@ -635,7 +643,7 @@ public function deleteProductWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -654,7 +662,8 @@ public function deleteProductWithHttpInfo( public function deleteProductAsync( int $id, string $contentType = self::contentTypes['deleteProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->deleteProductAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -677,7 +686,8 @@ function ($response) { public function deleteProductAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['deleteProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = ''; $request = $this->deleteProductRequest($id, $contentType); @@ -716,7 +726,8 @@ function ($exception) { public function deleteProductRequest( int $id, string $contentType = self::contentTypes['deleteProduct'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -760,7 +771,7 @@ public function deleteProductRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -768,7 +779,7 @@ public function deleteProductRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -818,7 +829,8 @@ public function deleteProductRequest( public function getProduct( int $id, string $contentType = self::contentTypes['getProduct'][0] - ): \Cone\Billingo\Model\Product|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Product|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->getProductWithHttpInfo($id, $contentType); return $response; } @@ -838,7 +850,8 @@ public function getProduct( public function getProductWithHttpInfo( int $id, string $contentType = self::contentTypes['getProduct'][0] - ): array { + ): array + { $request = $this->getProductRequest($id, $contentType); try { @@ -863,7 +876,7 @@ public function getProductWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Product', @@ -913,7 +926,7 @@ public function getProductWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1000,7 +1013,7 @@ public function getProductWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1019,7 +1032,8 @@ public function getProductWithHttpInfo( public function getProductAsync( int $id, string $contentType = self::contentTypes['getProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->getProductAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -1042,7 +1056,8 @@ function ($response) { public function getProductAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['getProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Product'; $request = $this->getProductRequest($id, $contentType); @@ -1050,7 +1065,7 @@ public function getProductAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1062,7 +1077,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1094,7 +1109,8 @@ function ($exception) { public function getProductRequest( int $id, string $contentType = self::contentTypes['getProduct'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1138,7 +1154,7 @@ public function getProductRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1146,7 +1162,7 @@ public function getProductRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1200,7 +1216,8 @@ public function listProduct( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listProduct'][0] - ): \Cone\Billingo\Model\ProductList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\ProductList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->listProductWithHttpInfo($page, $perPage, $query, $contentType); return $response; } @@ -1224,7 +1241,8 @@ public function listProductWithHttpInfo( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listProduct'][0] - ): array { + ): array + { $request = $this->listProductRequest($page, $perPage, $query, $contentType); try { @@ -1249,7 +1267,7 @@ public function listProductWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\ProductList', @@ -1293,7 +1311,7 @@ public function listProductWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1372,7 +1390,7 @@ public function listProductWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1395,7 +1413,8 @@ public function listProductAsync( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->listProductAsyncWithHttpInfo($page, $perPage, $query, $contentType) ->then( function ($response) { @@ -1422,7 +1441,8 @@ public function listProductAsyncWithHttpInfo( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\ProductList'; $request = $this->listProductRequest($page, $perPage, $query, $contentType); @@ -1430,7 +1450,7 @@ public function listProductAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1442,7 +1462,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1478,7 +1498,8 @@ public function listProductRequest( ?int $perPage = 25, ?string $query = null, string $contentType = self::contentTypes['listProduct'][0] - ): Request { + ): Request + { if ($perPage !== null && $perPage > 100) { @@ -1487,7 +1508,7 @@ public function listProductRequest( if ($perPage !== null && $perPage < 1) { throw new InvalidArgumentException('invalid value for "$perPage" when calling ProductApi.listProduct, must be bigger than or equal to 1.'); } - + $resourcePath = '/products'; @@ -1543,7 +1564,7 @@ public function listProductRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1551,7 +1572,7 @@ public function listProductRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1603,7 +1624,8 @@ public function updateProduct( int $id, \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['updateProduct'][0] - ): \Cone\Billingo\Model\Product|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Product|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->updateProductWithHttpInfo($id, $product, $contentType); return $response; } @@ -1625,7 +1647,8 @@ public function updateProductWithHttpInfo( int $id, \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['updateProduct'][0] - ): array { + ): array + { $request = $this->updateProductRequest($id, $product, $contentType); try { @@ -1650,7 +1673,7 @@ public function updateProductWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Product', @@ -1706,7 +1729,7 @@ public function updateProductWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1801,7 +1824,7 @@ public function updateProductWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1822,7 +1845,8 @@ public function updateProductAsync( int $id, \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['updateProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->updateProductAsyncWithHttpInfo($id, $product, $contentType) ->then( function ($response) { @@ -1847,7 +1871,8 @@ public function updateProductAsyncWithHttpInfo( int $id, \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['updateProduct'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Product'; $request = $this->updateProductRequest($id, $product, $contentType); @@ -1855,7 +1880,7 @@ public function updateProductAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1867,7 +1892,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1901,7 +1926,8 @@ public function updateProductRequest( int $id, \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['updateProduct'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1946,7 +1972,7 @@ public function updateProductRequest( // for model (json/xml) if (isset($product)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($product)); } else { $httpBody = $product; @@ -1959,7 +1985,7 @@ public function updateProductRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1967,7 +1993,7 @@ public function updateProductRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2026,7 +2052,7 @@ private function handleResponseWithDataType( RequestInterface $request, ResponseInterface $response, ): array { - if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2050,7 +2076,7 @@ private function handleResponseWithDataType( return [ ObjectSerializer::deserialize($content, $dataType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; } diff --git a/src/Api/SpendingApi.php b/src/Api/SpendingApi.php index 7fb3428..afe0776 100644 --- a/src/Api/SpendingApi.php +++ b/src/Api/SpendingApi.php @@ -1,9 +1,9 @@ spendingDeleteWithHttpInfo($id, $contentType); return $response; } @@ -172,7 +174,8 @@ public function spendingDelete( public function spendingDeleteWithHttpInfo( int $id, string $contentType = self::contentTypes['spendingDelete'][0] - ): array { + ): array + { $request = $this->spendingDeleteRequest($id, $contentType); try { @@ -258,7 +261,7 @@ public function spendingDeleteWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -277,7 +280,8 @@ public function spendingDeleteWithHttpInfo( public function spendingDeleteAsync( int $id, string $contentType = self::contentTypes['spendingDelete'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->spendingDeleteAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -300,7 +304,8 @@ function ($response) { public function spendingDeleteAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['spendingDelete'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = ''; $request = $this->spendingDeleteRequest($id, $contentType); @@ -339,7 +344,8 @@ function ($exception) { public function spendingDeleteRequest( int $id, string $contentType = self::contentTypes['spendingDelete'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -383,7 +389,7 @@ public function spendingDeleteRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -391,7 +397,7 @@ public function spendingDeleteRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -461,7 +467,8 @@ public function spendingList( ?\Cone\Billingo\Model\Currency $currencies = null, ?\Cone\Billingo\Model\PaymentMethod $paymentMethods = null, string $contentType = self::contentTypes['spendingList'][0] - ): \Cone\Billingo\Model\SpendingList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\SpendingList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->spendingListWithHttpInfo($q, $page, $perPage, $spendingDate, $startDate, $endDate, $paymentStatus, $spendingType, $categories, $currencies, $paymentMethods, $contentType); return $response; } @@ -501,7 +508,8 @@ public function spendingListWithHttpInfo( ?\Cone\Billingo\Model\Currency $currencies = null, ?\Cone\Billingo\Model\PaymentMethod $paymentMethods = null, string $contentType = self::contentTypes['spendingList'][0] - ): array { + ): array + { $request = $this->spendingListRequest($q, $page, $perPage, $spendingDate, $startDate, $endDate, $paymentStatus, $spendingType, $categories, $currencies, $paymentMethods, $contentType); try { @@ -526,7 +534,7 @@ public function spendingListWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\SpendingList', @@ -570,7 +578,7 @@ public function spendingListWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -649,7 +657,7 @@ public function spendingListWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -688,7 +696,8 @@ public function spendingListAsync( ?\Cone\Billingo\Model\Currency $currencies = null, ?\Cone\Billingo\Model\PaymentMethod $paymentMethods = null, string $contentType = self::contentTypes['spendingList'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->spendingListAsyncWithHttpInfo($q, $page, $perPage, $spendingDate, $startDate, $endDate, $paymentStatus, $spendingType, $categories, $currencies, $paymentMethods, $contentType) ->then( function ($response) { @@ -731,7 +740,8 @@ public function spendingListAsyncWithHttpInfo( ?\Cone\Billingo\Model\Currency $currencies = null, ?\Cone\Billingo\Model\PaymentMethod $paymentMethods = null, string $contentType = self::contentTypes['spendingList'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\SpendingList'; $request = $this->spendingListRequest($q, $page, $perPage, $spendingDate, $startDate, $endDate, $paymentStatus, $spendingType, $categories, $currencies, $paymentMethods, $contentType); @@ -739,7 +749,7 @@ public function spendingListAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -751,7 +761,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -803,7 +813,8 @@ public function spendingListRequest( ?\Cone\Billingo\Model\Currency $currencies = null, ?\Cone\Billingo\Model\PaymentMethod $paymentMethods = null, string $contentType = self::contentTypes['spendingList'][0] - ): Request { + ): Request + { @@ -813,7 +824,7 @@ public function spendingListRequest( if ($perPage !== null && $perPage < 1) { throw new InvalidArgumentException('invalid value for "$perPage" when calling SpendingApi.spendingList, must be bigger than or equal to 1.'); } - + @@ -948,7 +959,7 @@ public function spendingListRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -956,7 +967,7 @@ public function spendingListRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1006,7 +1017,8 @@ public function spendingListRequest( public function spendingSave( ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingSave'][0] - ): \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->spendingSaveWithHttpInfo($spendingSave, $contentType); return $response; } @@ -1026,7 +1038,8 @@ public function spendingSave( public function spendingSaveWithHttpInfo( ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingSave'][0] - ): array { + ): array + { $request = $this->spendingSaveRequest($spendingSave, $contentType); try { @@ -1051,7 +1064,7 @@ public function spendingSaveWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 201: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Spending', @@ -1101,7 +1114,7 @@ public function spendingSaveWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1188,7 +1201,7 @@ public function spendingSaveWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1207,7 +1220,8 @@ public function spendingSaveWithHttpInfo( public function spendingSaveAsync( ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingSave'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->spendingSaveAsyncWithHttpInfo($spendingSave, $contentType) ->then( function ($response) { @@ -1230,7 +1244,8 @@ function ($response) { public function spendingSaveAsyncWithHttpInfo( ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingSave'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Spending'; $request = $this->spendingSaveRequest($spendingSave, $contentType); @@ -1238,7 +1253,7 @@ public function spendingSaveAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1250,7 +1265,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1282,7 +1297,8 @@ function ($exception) { public function spendingSaveRequest( ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingSave'][0] - ): Request { + ): Request + { @@ -1306,7 +1322,7 @@ public function spendingSaveRequest( // for model (json/xml) if (isset($spendingSave)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($spendingSave)); } else { $httpBody = $spendingSave; @@ -1319,7 +1335,7 @@ public function spendingSaveRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1327,7 +1343,7 @@ public function spendingSaveRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1377,7 +1393,8 @@ public function spendingSaveRequest( public function spendingShow( int $id, string $contentType = self::contentTypes['spendingShow'][0] - ): \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->spendingShowWithHttpInfo($id, $contentType); return $response; } @@ -1397,7 +1414,8 @@ public function spendingShow( public function spendingShowWithHttpInfo( int $id, string $contentType = self::contentTypes['spendingShow'][0] - ): array { + ): array + { $request = $this->spendingShowRequest($id, $contentType); try { @@ -1422,7 +1440,7 @@ public function spendingShowWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Spending', @@ -1472,7 +1490,7 @@ public function spendingShowWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1559,7 +1577,7 @@ public function spendingShowWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1578,7 +1596,8 @@ public function spendingShowWithHttpInfo( public function spendingShowAsync( int $id, string $contentType = self::contentTypes['spendingShow'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->spendingShowAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { @@ -1601,7 +1620,8 @@ function ($response) { public function spendingShowAsyncWithHttpInfo( int $id, string $contentType = self::contentTypes['spendingShow'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Spending'; $request = $this->spendingShowRequest($id, $contentType); @@ -1609,7 +1629,7 @@ public function spendingShowAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1621,7 +1641,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -1653,7 +1673,8 @@ function ($exception) { public function spendingShowRequest( int $id, string $contentType = self::contentTypes['spendingShow'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1697,7 +1718,7 @@ public function spendingShowRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -1705,7 +1726,7 @@ public function spendingShowRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1757,7 +1778,8 @@ public function spendingUpdate( int $id, ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingUpdate'][0] - ): \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse { + ): \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse + { list($response) = $this->spendingUpdateWithHttpInfo($id, $spendingSave, $contentType); return $response; } @@ -1779,7 +1801,8 @@ public function spendingUpdateWithHttpInfo( int $id, ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingUpdate'][0] - ): array { + ): array + { $request = $this->spendingUpdateRequest($id, $spendingSave, $contentType); try { @@ -1804,7 +1827,7 @@ public function spendingUpdateWithHttpInfo( $statusCode = $response->getStatusCode(); - switch ($statusCode) { + switch($statusCode) { case 200: return $this->handleResponseWithDataType( '\Cone\Billingo\Model\Spending', @@ -1860,7 +1883,7 @@ public function spendingUpdateWithHttpInfo( $response, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1955,7 +1978,7 @@ public function spendingUpdateWithHttpInfo( $e->setResponseObject($data); throw $e; } - + throw $e; } } @@ -1976,7 +1999,8 @@ public function spendingUpdateAsync( int $id, ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingUpdate'][0] - ): PromiseInterface { + ): PromiseInterface + { return $this->spendingUpdateAsyncWithHttpInfo($id, $spendingSave, $contentType) ->then( function ($response) { @@ -2001,7 +2025,8 @@ public function spendingUpdateAsyncWithHttpInfo( int $id, ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingUpdate'][0] - ): PromiseInterface { + ): PromiseInterface + { $returnType = '\Cone\Billingo\Model\Spending'; $request = $this->spendingUpdateRequest($id, $spendingSave, $contentType); @@ -2009,7 +2034,7 @@ public function spendingUpdateAsyncWithHttpInfo( ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($returnType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2021,7 +2046,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; }, function ($exception) { @@ -2055,7 +2080,8 @@ public function spendingUpdateRequest( int $id, ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingUpdate'][0] - ): Request { + ): Request + { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -2094,7 +2120,7 @@ public function spendingUpdateRequest( // for model (json/xml) if (isset($spendingSave)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the body + # if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($spendingSave)); } else { $httpBody = $spendingSave; @@ -2107,7 +2133,7 @@ public function spendingUpdateRequest( foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem, + 'contents' => $formParamValueItem ]; } } @@ -2115,7 +2141,7 @@ public function spendingUpdateRequest( $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters + # if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2174,7 +2200,7 @@ private function handleResponseWithDataType( RequestInterface $request, ResponseInterface $response, ): array { - if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'], true)) { + if (in_array($dataType, ['\SplFileObject', '\Psr\Http\Message\StreamInterface'])) { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2198,7 +2224,7 @@ private function handleResponseWithDataType( return [ ObjectSerializer::deserialize($content, $dataType, []), $response->getStatusCode(), - $response->getHeaders(), + $response->getHeaders() ]; } diff --git a/src/Api/UtilApi.php b/src/Api/UtilApi.php index 87c893a..b9b2446 100644 --- a/src/Api/UtilApi.php +++ b/src/Api/UtilApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/ApiException.php b/src/ApiException.php index d14b687..c4147fe 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Configuration.php b/src/Configuration.php index 08ea358..83eefb1 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/FormDataProcessor.php b/src/FormDataProcessor.php index 22bb955..0d86754 100644 --- a/src/FormDataProcessor.php +++ b/src/FormDataProcessor.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index 48c412b..db3ae53 100644 --- a/src/HeaderSelector.php +++ b/src/HeaderSelector.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Address.php b/src/Model/Address.php index 94dd341..185218d 100644 --- a/src/Model/Address.php +++ b/src/Model/Address.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/BankAccount.php b/src/Model/BankAccount.php index 871dd0a..7cdd7a1 100644 --- a/src/Model/BankAccount.php +++ b/src/Model/BankAccount.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/BankAccountList.php b/src/Model/BankAccountList.php index 8941834..0c10f13 100644 --- a/src/Model/BankAccountList.php +++ b/src/Model/BankAccountList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Category.php b/src/Model/Category.php index f62c3f3..7df099b 100644 --- a/src/Model/Category.php +++ b/src/Model/Category.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/CheckTaxNumberMessage.php b/src/Model/CheckTaxNumberMessage.php index 31ac922..1e9980e 100644 --- a/src/Model/CheckTaxNumberMessage.php +++ b/src/Model/CheckTaxNumberMessage.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ClientError.php b/src/Model/ClientError.php index 443c088..268d882 100644 --- a/src/Model/ClientError.php +++ b/src/Model/ClientError.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ClientErrorResponse.php b/src/Model/ClientErrorResponse.php index 4cb75ac..9a317b3 100644 --- a/src/Model/ClientErrorResponse.php +++ b/src/Model/ClientErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ConversationRate.php b/src/Model/ConversationRate.php index 9516884..c062c4f 100644 --- a/src/Model/ConversationRate.php +++ b/src/Model/ConversationRate.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/CorrectionType.php b/src/Model/CorrectionType.php index f928794..8e9a496 100644 --- a/src/Model/CorrectionType.php +++ b/src/Model/CorrectionType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Country.php b/src/Model/Country.php index 5510395..359eb5d 100644 --- a/src/Model/Country.php +++ b/src/Model/Country.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/CreateDocumentExport.php b/src/Model/CreateDocumentExport.php index c6df627..f021ea2 100644 --- a/src/Model/CreateDocumentExport.php +++ b/src/Model/CreateDocumentExport.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Currency.php b/src/Model/Currency.php index dcfce2e..245099f 100644 --- a/src/Model/Currency.php +++ b/src/Model/Currency.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DateType.php b/src/Model/DateType.php index 1e09c38..43b20df 100644 --- a/src/Model/DateType.php +++ b/src/Model/DateType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Discount.php b/src/Model/Discount.php index 768d7b7..0f99653 100644 --- a/src/Model/Discount.php +++ b/src/Model/Discount.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DiscountType.php b/src/Model/DiscountType.php index d904060..2ddbd89 100644 --- a/src/Model/DiscountType.php +++ b/src/Model/DiscountType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Document.php b/src/Model/Document.php index 3217eb2..aff7a65 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentAncestor.php b/src/Model/DocumentAncestor.php index ecee7ce..b91ccaa 100644 --- a/src/Model/DocumentAncestor.php +++ b/src/Model/DocumentAncestor.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentBankAccount.php b/src/Model/DocumentBankAccount.php index 542c2f2..602c3cb 100644 --- a/src/Model/DocumentBankAccount.php +++ b/src/Model/DocumentBankAccount.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentBlock.php b/src/Model/DocumentBlock.php index 44666ab..55191f0 100644 --- a/src/Model/DocumentBlock.php +++ b/src/Model/DocumentBlock.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentBlockList.php b/src/Model/DocumentBlockList.php index 660042a..395c2cb 100644 --- a/src/Model/DocumentBlockList.php +++ b/src/Model/DocumentBlockList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentBlockType.php b/src/Model/DocumentBlockType.php index 0c98620..34811bf 100644 --- a/src/Model/DocumentBlockType.php +++ b/src/Model/DocumentBlockType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentCancellation.php b/src/Model/DocumentCancellation.php index 5d440f2..a809f0d 100644 --- a/src/Model/DocumentCancellation.php +++ b/src/Model/DocumentCancellation.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportFilterExtra.php b/src/Model/DocumentExportFilterExtra.php index 8968f45..a5f5365 100644 --- a/src/Model/DocumentExportFilterExtra.php +++ b/src/Model/DocumentExportFilterExtra.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportId.php b/src/Model/DocumentExportId.php index ffdac9e..e347a20 100644 --- a/src/Model/DocumentExportId.php +++ b/src/Model/DocumentExportId.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportOtherOptions.php b/src/Model/DocumentExportOtherOptions.php index f8b4f17..d055449 100644 --- a/src/Model/DocumentExportOtherOptions.php +++ b/src/Model/DocumentExportOtherOptions.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportQueryType.php b/src/Model/DocumentExportQueryType.php index c771b07..4b0ed38 100644 --- a/src/Model/DocumentExportQueryType.php +++ b/src/Model/DocumentExportQueryType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportSortBy.php b/src/Model/DocumentExportSortBy.php index 824cdee..8d775b4 100644 --- a/src/Model/DocumentExportSortBy.php +++ b/src/Model/DocumentExportSortBy.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportStatus.php b/src/Model/DocumentExportStatus.php index 04ce183..15ba89e 100644 --- a/src/Model/DocumentExportStatus.php +++ b/src/Model/DocumentExportStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportStatusState.php b/src/Model/DocumentExportStatusState.php index 287c577..c7e77f4 100644 --- a/src/Model/DocumentExportStatusState.php +++ b/src/Model/DocumentExportStatusState.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentExportType.php b/src/Model/DocumentExportType.php index 4e84f62..f16435b 100644 --- a/src/Model/DocumentExportType.php +++ b/src/Model/DocumentExportType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentForm.php b/src/Model/DocumentForm.php index 89b9853..c569e50 100644 --- a/src/Model/DocumentForm.php +++ b/src/Model/DocumentForm.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentFormat.php b/src/Model/DocumentFormat.php index d0a994d..5cc0a1b 100644 --- a/src/Model/DocumentFormat.php +++ b/src/Model/DocumentFormat.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentInsert.php b/src/Model/DocumentInsert.php index 5387377..a7a4249 100644 --- a/src/Model/DocumentInsert.php +++ b/src/Model/DocumentInsert.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentInsertItemsInner.php b/src/Model/DocumentInsertItemsInner.php index d6fbca4..37f93df 100644 --- a/src/Model/DocumentInsertItemsInner.php +++ b/src/Model/DocumentInsertItemsInner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentInsertType.php b/src/Model/DocumentInsertType.php index 3668348..c6a17fa 100644 --- a/src/Model/DocumentInsertType.php +++ b/src/Model/DocumentInsertType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentItem.php b/src/Model/DocumentItem.php index 1020c74..5e160bf 100644 --- a/src/Model/DocumentItem.php +++ b/src/Model/DocumentItem.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentItemData.php b/src/Model/DocumentItemData.php index 6e186d3..3728d58 100644 --- a/src/Model/DocumentItemData.php +++ b/src/Model/DocumentItemData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentLanguage.php b/src/Model/DocumentLanguage.php index 5fc74b7..33523ee 100644 --- a/src/Model/DocumentLanguage.php +++ b/src/Model/DocumentLanguage.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentList.php b/src/Model/DocumentList.php index 42fc9df..da9583b 100644 --- a/src/Model/DocumentList.php +++ b/src/Model/DocumentList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentNotificationStatus.php b/src/Model/DocumentNotificationStatus.php index ed52870..20af2ac 100644 --- a/src/Model/DocumentNotificationStatus.php +++ b/src/Model/DocumentNotificationStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentOrganization.php b/src/Model/DocumentOrganization.php index 709dbe1..35ef40f 100644 --- a/src/Model/DocumentOrganization.php +++ b/src/Model/DocumentOrganization.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentPartner.php b/src/Model/DocumentPartner.php index 9fdee5b..445ed36 100644 --- a/src/Model/DocumentPartner.php +++ b/src/Model/DocumentPartner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentProductData.php b/src/Model/DocumentProductData.php index d860450..1ec362b 100644 --- a/src/Model/DocumentProductData.php +++ b/src/Model/DocumentProductData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentPublicUrl.php b/src/Model/DocumentPublicUrl.php index 9416d09..2ee6f90 100644 --- a/src/Model/DocumentPublicUrl.php +++ b/src/Model/DocumentPublicUrl.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentSettings.php b/src/Model/DocumentSettings.php index 030324c..b80c23f 100644 --- a/src/Model/DocumentSettings.php +++ b/src/Model/DocumentSettings.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentSummary.php b/src/Model/DocumentSummary.php index 1681344..cceb07f 100644 --- a/src/Model/DocumentSummary.php +++ b/src/Model/DocumentSummary.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentType.php b/src/Model/DocumentType.php index 0669f93..39cfe0d 100644 --- a/src/Model/DocumentType.php +++ b/src/Model/DocumentType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/DocumentVatRateSummary.php b/src/Model/DocumentVatRateSummary.php index 2c27296..23ecee1 100644 --- a/src/Model/DocumentVatRateSummary.php +++ b/src/Model/DocumentVatRateSummary.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Entitlement.php b/src/Model/Entitlement.php index 8fc7fc2..7cdb792 100644 --- a/src/Model/Entitlement.php +++ b/src/Model/Entitlement.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Feature.php b/src/Model/Feature.php index 95fde49..7ff2f6c 100644 --- a/src/Model/Feature.php +++ b/src/Model/Feature.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Id.php b/src/Model/Id.php index a265554..6df17a1 100644 --- a/src/Model/Id.php +++ b/src/Model/Id.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/InvoiceSettings.php b/src/Model/InvoiceSettings.php index ed5337f..c11baad 100644 --- a/src/Model/InvoiceSettings.php +++ b/src/Model/InvoiceSettings.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/LedgerNumberInformation.php b/src/Model/LedgerNumberInformation.php index b46f796..3a18233 100644 --- a/src/Model/LedgerNumberInformation.php +++ b/src/Model/LedgerNumberInformation.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index 71cb7bb..e79815b 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ModificationDocumentInsert.php b/src/Model/ModificationDocumentInsert.php index 0a62e99..bf94acf 100644 --- a/src/Model/ModificationDocumentInsert.php +++ b/src/Model/ModificationDocumentInsert.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/OnlinePayment.php b/src/Model/OnlinePayment.php index 5c2fc03..e353eb1 100644 --- a/src/Model/OnlinePayment.php +++ b/src/Model/OnlinePayment.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/OnlineSzamlaStatus.php b/src/Model/OnlineSzamlaStatus.php index 8ea06ef..516cacc 100644 --- a/src/Model/OnlineSzamlaStatus.php +++ b/src/Model/OnlineSzamlaStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/OnlineSzamlaStatusEnum.php b/src/Model/OnlineSzamlaStatusEnum.php index 7fb485c..fc7cbb3 100644 --- a/src/Model/OnlineSzamlaStatusEnum.php +++ b/src/Model/OnlineSzamlaStatusEnum.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/OnlineSzamlaStatusMessage.php b/src/Model/OnlineSzamlaStatusMessage.php index e9008e2..1d2a296 100644 --- a/src/Model/OnlineSzamlaStatusMessage.php +++ b/src/Model/OnlineSzamlaStatusMessage.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/OrganizationData.php b/src/Model/OrganizationData.php index a168814..3d0d200 100644 --- a/src/Model/OrganizationData.php +++ b/src/Model/OrganizationData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Partner.php b/src/Model/Partner.php index 393d023..a3ba0a6 100644 --- a/src/Model/Partner.php +++ b/src/Model/Partner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/PartnerCustomBillingSettings.php b/src/Model/PartnerCustomBillingSettings.php index 9ec01a8..c09d012 100644 --- a/src/Model/PartnerCustomBillingSettings.php +++ b/src/Model/PartnerCustomBillingSettings.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/PartnerList.php b/src/Model/PartnerList.php index 2231c28..05073b8 100644 --- a/src/Model/PartnerList.php +++ b/src/Model/PartnerList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/PartnerTaxType.php b/src/Model/PartnerTaxType.php index c3535eb..8067003 100644 --- a/src/Model/PartnerTaxType.php +++ b/src/Model/PartnerTaxType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/PaymentHistory.php b/src/Model/PaymentHistory.php index 273b0d5..e56279a 100644 --- a/src/Model/PaymentHistory.php +++ b/src/Model/PaymentHistory.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/PaymentMethod.php b/src/Model/PaymentMethod.php index dad12e2..0556162 100644 --- a/src/Model/PaymentMethod.php +++ b/src/Model/PaymentMethod.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/PaymentStatus.php b/src/Model/PaymentStatus.php index fc2ad61..230ac04 100644 --- a/src/Model/PaymentStatus.php +++ b/src/Model/PaymentStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/PaymentStatusSpending.php b/src/Model/PaymentStatusSpending.php index 540e79e..205ea66 100644 --- a/src/Model/PaymentStatusSpending.php +++ b/src/Model/PaymentStatusSpending.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Product.php b/src/Model/Product.php index ac3f510..2ad5b1c 100644 --- a/src/Model/Product.php +++ b/src/Model/Product.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ProductList.php b/src/Model/ProductList.php index 7451887..75e0038 100644 --- a/src/Model/ProductList.php +++ b/src/Model/ProductList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ReceiptInsert.php b/src/Model/ReceiptInsert.php index 3a262a0..f1de523 100644 --- a/src/Model/ReceiptInsert.php +++ b/src/Model/ReceiptInsert.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ReceiptInsertItemsInner.php b/src/Model/ReceiptInsertItemsInner.php index 03dc0b9..fe703b1 100644 --- a/src/Model/ReceiptInsertItemsInner.php +++ b/src/Model/ReceiptInsertItemsInner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ReceiptItemData.php b/src/Model/ReceiptItemData.php index 01a6701..d3525ec 100644 --- a/src/Model/ReceiptItemData.php +++ b/src/Model/ReceiptItemData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ReceiptProductData.php b/src/Model/ReceiptProductData.php index ca6476b..a27281a 100644 --- a/src/Model/ReceiptProductData.php +++ b/src/Model/ReceiptProductData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Round.php b/src/Model/Round.php index b2894f1..2342c46 100644 --- a/src/Model/Round.php +++ b/src/Model/Round.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/SendDocument.php b/src/Model/SendDocument.php index 64bddff..5db42d9 100644 --- a/src/Model/SendDocument.php +++ b/src/Model/SendDocument.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ServerError.php b/src/Model/ServerError.php index daeddd1..3fa7069 100644 --- a/src/Model/ServerError.php +++ b/src/Model/ServerError.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ServerErrorResponse.php b/src/Model/ServerErrorResponse.php index 2731f2f..e78d9c8 100644 --- a/src/Model/ServerErrorResponse.php +++ b/src/Model/ServerErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ServerTime.php b/src/Model/ServerTime.php index 5dad4c0..c824045 100644 --- a/src/Model/ServerTime.php +++ b/src/Model/ServerTime.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Source.php b/src/Model/Source.php index 3dfe55d..87a951b 100644 --- a/src/Model/Source.php +++ b/src/Model/Source.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Spending.php b/src/Model/Spending.php index 798d092..971f0f8 100644 --- a/src/Model/Spending.php +++ b/src/Model/Spending.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/SpendingList.php b/src/Model/SpendingList.php index 6d9b0ae..1fa1381 100644 --- a/src/Model/SpendingList.php +++ b/src/Model/SpendingList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/SpendingListItem.php b/src/Model/SpendingListItem.php index 8e407bd..f2c97ef 100644 --- a/src/Model/SpendingListItem.php +++ b/src/Model/SpendingListItem.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/SpendingPartner.php b/src/Model/SpendingPartner.php index 23925f8..8bbfadc 100644 --- a/src/Model/SpendingPartner.php +++ b/src/Model/SpendingPartner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/SpendingPaymentMethod.php b/src/Model/SpendingPaymentMethod.php index 79a4559..2198a0b 100644 --- a/src/Model/SpendingPaymentMethod.php +++ b/src/Model/SpendingPaymentMethod.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/SpendingSave.php b/src/Model/SpendingSave.php index 0c1b82f..5648198 100644 --- a/src/Model/SpendingSave.php +++ b/src/Model/SpendingSave.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index 4b32345..d1bef54 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/SubscriptionErrorResponse.php b/src/Model/SubscriptionErrorResponse.php index 5d0a118..fe6673a 100644 --- a/src/Model/SubscriptionErrorResponse.php +++ b/src/Model/SubscriptionErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/TaxNumber.php b/src/Model/TaxNumber.php index 071f7c6..4df41e4 100644 --- a/src/Model/TaxNumber.php +++ b/src/Model/TaxNumber.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/TooManyRequestsResponse.php b/src/Model/TooManyRequestsResponse.php index 941e898..b7a4c06 100644 --- a/src/Model/TooManyRequestsResponse.php +++ b/src/Model/TooManyRequestsResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/UnitPriceType.php b/src/Model/UnitPriceType.php index 0a13244..4b33a14 100644 --- a/src/Model/UnitPriceType.php +++ b/src/Model/UnitPriceType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ValidationError.php b/src/Model/ValidationError.php index b31df2e..697271a 100644 --- a/src/Model/ValidationError.php +++ b/src/Model/ValidationError.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/ValidationErrorResponse.php b/src/Model/ValidationErrorResponse.php index 2c7407a..cd2267c 100644 --- a/src/Model/ValidationErrorResponse.php +++ b/src/Model/ValidationErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/Model/Vat.php b/src/Model/Vat.php index 92586a8..a791bd8 100644 --- a/src/Model/Vat.php +++ b/src/Model/Vat.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index 5bed9ee..9937fee 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.17.0 + * Generator version: 7.18.0 */ /** @@ -28,6 +28,7 @@ namespace Cone\Billingo; +use BackedEnum; use DateTimeInterface; use DateTime; use GuzzleHttp\Psr7\Utils; @@ -264,6 +265,11 @@ public static function toQueryValue( // push key itself $result[] = $prop; } + + if ($v instanceof BackedEnum) { + $v = $v->value; + } + $result[$prop] = $v; } }