diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 02020e3..046e960 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -171,6 +171,7 @@ src/Model/InvoiceSettings.php src/Model/LedgerNumberInformation.php src/Model/ModelInterface.php src/Model/ModificationDocumentInsert.php +src/Model/OneOfInterface.php src/Model/OnlinePayment.php src/Model/OnlineSzamlaStatus.php src/Model/OnlineSzamlaStatusEnum.php diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 2540a3a..0783219 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.20.0 +7.24.0 diff --git a/docs/Model/Address.md b/docs/Model/Address.md index 8364626..61a193b 100644 --- a/docs/Model/Address.md +++ b/docs/Model/Address.md @@ -1,4 +1,4 @@ -# # Address +# Address ## Properties diff --git a/docs/Model/BankAccount.md b/docs/Model/BankAccount.md index 63c3ce3..88a4ee9 100644 --- a/docs/Model/BankAccount.md +++ b/docs/Model/BankAccount.md @@ -1,4 +1,4 @@ -# # BankAccount +# BankAccount ## Properties diff --git a/docs/Model/BankAccountList.md b/docs/Model/BankAccountList.md index f1afc8d..706f8e9 100644 --- a/docs/Model/BankAccountList.md +++ b/docs/Model/BankAccountList.md @@ -1,4 +1,4 @@ -# # BankAccountList +# BankAccountList ## Properties diff --git a/docs/Model/Category.md b/docs/Model/Category.md index 37faa20..890b372 100644 --- a/docs/Model/Category.md +++ b/docs/Model/Category.md @@ -1,4 +1,4 @@ -# # Category +# Category ## Properties diff --git a/docs/Model/CheckTaxNumberMessage.md b/docs/Model/CheckTaxNumberMessage.md index babc80e..4003055 100644 --- a/docs/Model/CheckTaxNumberMessage.md +++ b/docs/Model/CheckTaxNumberMessage.md @@ -1,4 +1,4 @@ -# # CheckTaxNumberMessage +# CheckTaxNumberMessage ## Properties diff --git a/docs/Model/ClientError.md b/docs/Model/ClientError.md index 5b97bcc..b9414a0 100644 --- a/docs/Model/ClientError.md +++ b/docs/Model/ClientError.md @@ -1,4 +1,4 @@ -# # ClientError +# ClientError ## Properties diff --git a/docs/Model/ClientErrorResponse.md b/docs/Model/ClientErrorResponse.md index 3efae38..60f0261 100644 --- a/docs/Model/ClientErrorResponse.md +++ b/docs/Model/ClientErrorResponse.md @@ -1,4 +1,4 @@ -# # ClientErrorResponse +# ClientErrorResponse ## Properties diff --git a/docs/Model/ConversationRate.md b/docs/Model/ConversationRate.md index 19130e2..311bd8d 100644 --- a/docs/Model/ConversationRate.md +++ b/docs/Model/ConversationRate.md @@ -1,4 +1,4 @@ -# # ConversationRate +# ConversationRate ## Properties diff --git a/docs/Model/CorrectionType.md b/docs/Model/CorrectionType.md index 179a906..0b6d033 100644 --- a/docs/Model/CorrectionType.md +++ b/docs/Model/CorrectionType.md @@ -1,4 +1,4 @@ -# # CorrectionType +# CorrectionType ## Properties diff --git a/docs/Model/Country.md b/docs/Model/Country.md index 11fd8e1..eb15ddd 100644 --- a/docs/Model/Country.md +++ b/docs/Model/Country.md @@ -1,4 +1,4 @@ -# # Country +# Country ## Properties diff --git a/docs/Model/CreateDocumentExport.md b/docs/Model/CreateDocumentExport.md index 1678bac..8ea8b54 100644 --- a/docs/Model/CreateDocumentExport.md +++ b/docs/Model/CreateDocumentExport.md @@ -1,4 +1,4 @@ -# # CreateDocumentExport +# CreateDocumentExport ## Properties diff --git a/docs/Model/Currency.md b/docs/Model/Currency.md index c294a48..6efbd0f 100644 --- a/docs/Model/Currency.md +++ b/docs/Model/Currency.md @@ -1,4 +1,4 @@ -# # Currency +# Currency ## Properties diff --git a/docs/Model/DateType.md b/docs/Model/DateType.md index fffa627..6881da3 100644 --- a/docs/Model/DateType.md +++ b/docs/Model/DateType.md @@ -1,4 +1,4 @@ -# # DateType +# DateType ## Properties diff --git a/docs/Model/Discount.md b/docs/Model/Discount.md index dd8cc98..ef43a21 100644 --- a/docs/Model/Discount.md +++ b/docs/Model/Discount.md @@ -1,4 +1,4 @@ -# # Discount +# Discount ## Properties diff --git a/docs/Model/DiscountType.md b/docs/Model/DiscountType.md index 0760561..3623202 100644 --- a/docs/Model/DiscountType.md +++ b/docs/Model/DiscountType.md @@ -1,4 +1,4 @@ -# # DiscountType +# DiscountType ## Properties diff --git a/docs/Model/Document.md b/docs/Model/Document.md index c94f551..a2e08e1 100644 --- a/docs/Model/Document.md +++ b/docs/Model/Document.md @@ -1,4 +1,4 @@ -# # Document +# Document ## Properties diff --git a/docs/Model/DocumentAncestor.md b/docs/Model/DocumentAncestor.md index ae74de0..6b47880 100644 --- a/docs/Model/DocumentAncestor.md +++ b/docs/Model/DocumentAncestor.md @@ -1,4 +1,4 @@ -# # DocumentAncestor +# DocumentAncestor ## Properties diff --git a/docs/Model/DocumentBankAccount.md b/docs/Model/DocumentBankAccount.md index 086030d..1f211b9 100644 --- a/docs/Model/DocumentBankAccount.md +++ b/docs/Model/DocumentBankAccount.md @@ -1,4 +1,4 @@ -# # DocumentBankAccount +# DocumentBankAccount ## Properties diff --git a/docs/Model/DocumentBlock.md b/docs/Model/DocumentBlock.md index ba7b480..6d4ffca 100644 --- a/docs/Model/DocumentBlock.md +++ b/docs/Model/DocumentBlock.md @@ -1,4 +1,4 @@ -# # DocumentBlock +# DocumentBlock ## Properties diff --git a/docs/Model/DocumentBlockList.md b/docs/Model/DocumentBlockList.md index ad09637..2da4824 100644 --- a/docs/Model/DocumentBlockList.md +++ b/docs/Model/DocumentBlockList.md @@ -1,4 +1,4 @@ -# # DocumentBlockList +# DocumentBlockList ## Properties diff --git a/docs/Model/DocumentBlockType.md b/docs/Model/DocumentBlockType.md index cf0031d..f8c1d50 100644 --- a/docs/Model/DocumentBlockType.md +++ b/docs/Model/DocumentBlockType.md @@ -1,4 +1,4 @@ -# # DocumentBlockType +# DocumentBlockType ## Properties diff --git a/docs/Model/DocumentCancellation.md b/docs/Model/DocumentCancellation.md index 6f2ff81..2f65db1 100644 --- a/docs/Model/DocumentCancellation.md +++ b/docs/Model/DocumentCancellation.md @@ -1,4 +1,4 @@ -# # DocumentCancellation +# DocumentCancellation ## Properties diff --git a/docs/Model/DocumentExportFilterExtra.md b/docs/Model/DocumentExportFilterExtra.md index 680e4b2..261dd9f 100644 --- a/docs/Model/DocumentExportFilterExtra.md +++ b/docs/Model/DocumentExportFilterExtra.md @@ -1,4 +1,4 @@ -# # DocumentExportFilterExtra +# DocumentExportFilterExtra ## Properties diff --git a/docs/Model/DocumentExportId.md b/docs/Model/DocumentExportId.md index 0e1d523..491a45f 100644 --- a/docs/Model/DocumentExportId.md +++ b/docs/Model/DocumentExportId.md @@ -1,4 +1,4 @@ -# # DocumentExportId +# DocumentExportId ## Properties diff --git a/docs/Model/DocumentExportOtherOptions.md b/docs/Model/DocumentExportOtherOptions.md index 8d8a55b..0baffc7 100644 --- a/docs/Model/DocumentExportOtherOptions.md +++ b/docs/Model/DocumentExportOtherOptions.md @@ -1,4 +1,4 @@ -# # DocumentExportOtherOptions +# DocumentExportOtherOptions ## Properties diff --git a/docs/Model/DocumentExportQueryType.md b/docs/Model/DocumentExportQueryType.md index 9095012..dfce929 100644 --- a/docs/Model/DocumentExportQueryType.md +++ b/docs/Model/DocumentExportQueryType.md @@ -1,4 +1,4 @@ -# # DocumentExportQueryType +# DocumentExportQueryType ## Properties diff --git a/docs/Model/DocumentExportSortBy.md b/docs/Model/DocumentExportSortBy.md index 3ed8f00..042a3c4 100644 --- a/docs/Model/DocumentExportSortBy.md +++ b/docs/Model/DocumentExportSortBy.md @@ -1,4 +1,4 @@ -# # DocumentExportSortBy +# DocumentExportSortBy ## Properties diff --git a/docs/Model/DocumentExportStatus.md b/docs/Model/DocumentExportStatus.md index db7c995..24b6ca1 100644 --- a/docs/Model/DocumentExportStatus.md +++ b/docs/Model/DocumentExportStatus.md @@ -1,4 +1,4 @@ -# # DocumentExportStatus +# DocumentExportStatus ## Properties diff --git a/docs/Model/DocumentExportStatusState.md b/docs/Model/DocumentExportStatusState.md index 7eb7827..be29f51 100644 --- a/docs/Model/DocumentExportStatusState.md +++ b/docs/Model/DocumentExportStatusState.md @@ -1,4 +1,4 @@ -# # DocumentExportStatusState +# DocumentExportStatusState ## Properties diff --git a/docs/Model/DocumentExportType.md b/docs/Model/DocumentExportType.md index 88973a3..f1cdb6b 100644 --- a/docs/Model/DocumentExportType.md +++ b/docs/Model/DocumentExportType.md @@ -1,4 +1,4 @@ -# # DocumentExportType +# DocumentExportType ## Properties diff --git a/docs/Model/DocumentForm.md b/docs/Model/DocumentForm.md index e6e2828..5c4df05 100644 --- a/docs/Model/DocumentForm.md +++ b/docs/Model/DocumentForm.md @@ -1,4 +1,4 @@ -# # DocumentForm +# DocumentForm ## Properties diff --git a/docs/Model/DocumentFormat.md b/docs/Model/DocumentFormat.md index 861b367..bbe64a1 100644 --- a/docs/Model/DocumentFormat.md +++ b/docs/Model/DocumentFormat.md @@ -1,4 +1,4 @@ -# # DocumentFormat +# DocumentFormat ## Properties diff --git a/docs/Model/DocumentInsert.md b/docs/Model/DocumentInsert.md index 0fa5c03..5f7b55f 100644 --- a/docs/Model/DocumentInsert.md +++ b/docs/Model/DocumentInsert.md @@ -1,4 +1,4 @@ -# # DocumentInsert +# DocumentInsert ## Properties diff --git a/docs/Model/DocumentInsertItemsInner.md b/docs/Model/DocumentInsertItemsInner.md index 974ee53..ed4e6db 100644 --- a/docs/Model/DocumentInsertItemsInner.md +++ b/docs/Model/DocumentInsertItemsInner.md @@ -1,17 +1,11 @@ -# # DocumentInsertItemsInner +# DocumentInsertItemsInner -## Properties +This model is a `oneOf` wrapper: a value is exactly one of the member types listed below. +It is never instantiated directly — use one of the concrete types. -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**productId** | **int** | | -**quantity** | **float** | | -**comment** | **string** | | [optional] -**name** | **string** | | -**unitPrice** | **float** | | -**unitPriceType** | [**\Cone\Billingo\Model\UnitPriceType**](UnitPriceType.md) | | -**unit** | **string** | | -**vat** | [**\Cone\Billingo\Model\Vat**](Vat.md) | | -**entitlement** | [**\Cone\Billingo\Model\Entitlement**](Entitlement.md) | | [optional] +## oneOf + +- [**\Cone\Billingo\Model\DocumentItemData**](DocumentItemData.md) +- [**\Cone\Billingo\Model\DocumentProductData**](DocumentProductData.md) [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DocumentInsertType.md b/docs/Model/DocumentInsertType.md index c306835..f701df9 100644 --- a/docs/Model/DocumentInsertType.md +++ b/docs/Model/DocumentInsertType.md @@ -1,4 +1,4 @@ -# # DocumentInsertType +# DocumentInsertType ## Properties diff --git a/docs/Model/DocumentItem.md b/docs/Model/DocumentItem.md index dd8c16c..bba089b 100644 --- a/docs/Model/DocumentItem.md +++ b/docs/Model/DocumentItem.md @@ -1,4 +1,4 @@ -# # DocumentItem +# DocumentItem ## Properties diff --git a/docs/Model/DocumentItemData.md b/docs/Model/DocumentItemData.md index 513c6a8..f0e0223 100644 --- a/docs/Model/DocumentItemData.md +++ b/docs/Model/DocumentItemData.md @@ -1,4 +1,4 @@ -# # DocumentItemData +# DocumentItemData ## Properties diff --git a/docs/Model/DocumentLanguage.md b/docs/Model/DocumentLanguage.md index 82703c8..7cb2d56 100644 --- a/docs/Model/DocumentLanguage.md +++ b/docs/Model/DocumentLanguage.md @@ -1,4 +1,4 @@ -# # DocumentLanguage +# DocumentLanguage ## Properties diff --git a/docs/Model/DocumentList.md b/docs/Model/DocumentList.md index 61d4793..14a4c9e 100644 --- a/docs/Model/DocumentList.md +++ b/docs/Model/DocumentList.md @@ -1,4 +1,4 @@ -# # DocumentList +# DocumentList ## Properties diff --git a/docs/Model/DocumentNotificationStatus.md b/docs/Model/DocumentNotificationStatus.md index d86d130..dd3ee1c 100644 --- a/docs/Model/DocumentNotificationStatus.md +++ b/docs/Model/DocumentNotificationStatus.md @@ -1,4 +1,4 @@ -# # DocumentNotificationStatus +# DocumentNotificationStatus ## Properties diff --git a/docs/Model/DocumentOrganization.md b/docs/Model/DocumentOrganization.md index 6305a1c..b795f60 100644 --- a/docs/Model/DocumentOrganization.md +++ b/docs/Model/DocumentOrganization.md @@ -1,4 +1,4 @@ -# # DocumentOrganization +# DocumentOrganization ## Properties diff --git a/docs/Model/DocumentPartner.md b/docs/Model/DocumentPartner.md index 110bb4a..c5389c1 100644 --- a/docs/Model/DocumentPartner.md +++ b/docs/Model/DocumentPartner.md @@ -1,4 +1,4 @@ -# # DocumentPartner +# DocumentPartner ## Properties diff --git a/docs/Model/DocumentProductData.md b/docs/Model/DocumentProductData.md index 704358c..b07caa9 100644 --- a/docs/Model/DocumentProductData.md +++ b/docs/Model/DocumentProductData.md @@ -1,4 +1,4 @@ -# # DocumentProductData +# DocumentProductData ## Properties diff --git a/docs/Model/DocumentPublicUrl.md b/docs/Model/DocumentPublicUrl.md index 822c772..d84e489 100644 --- a/docs/Model/DocumentPublicUrl.md +++ b/docs/Model/DocumentPublicUrl.md @@ -1,4 +1,4 @@ -# # DocumentPublicUrl +# DocumentPublicUrl ## Properties diff --git a/docs/Model/DocumentSettings.md b/docs/Model/DocumentSettings.md index ba2153e..8d5499d 100644 --- a/docs/Model/DocumentSettings.md +++ b/docs/Model/DocumentSettings.md @@ -1,4 +1,4 @@ -# # DocumentSettings +# DocumentSettings ## Properties diff --git a/docs/Model/DocumentSummary.md b/docs/Model/DocumentSummary.md index d6a50be..0478a39 100644 --- a/docs/Model/DocumentSummary.md +++ b/docs/Model/DocumentSummary.md @@ -1,4 +1,4 @@ -# # DocumentSummary +# DocumentSummary ## Properties diff --git a/docs/Model/DocumentType.md b/docs/Model/DocumentType.md index 4adf4f8..95fe4a5 100644 --- a/docs/Model/DocumentType.md +++ b/docs/Model/DocumentType.md @@ -1,4 +1,4 @@ -# # DocumentType +# DocumentType ## Properties diff --git a/docs/Model/DocumentVatRateSummary.md b/docs/Model/DocumentVatRateSummary.md index f26423e..4190c04 100644 --- a/docs/Model/DocumentVatRateSummary.md +++ b/docs/Model/DocumentVatRateSummary.md @@ -1,4 +1,4 @@ -# # DocumentVatRateSummary +# DocumentVatRateSummary ## Properties diff --git a/docs/Model/Entitlement.md b/docs/Model/Entitlement.md index 79aff6e..cccfb8c 100644 --- a/docs/Model/Entitlement.md +++ b/docs/Model/Entitlement.md @@ -1,4 +1,4 @@ -# # Entitlement +# Entitlement ## Properties diff --git a/docs/Model/Feature.md b/docs/Model/Feature.md index a6e3951..9332327 100644 --- a/docs/Model/Feature.md +++ b/docs/Model/Feature.md @@ -1,4 +1,4 @@ -# # Feature +# Feature ## Properties diff --git a/docs/Model/Id.md b/docs/Model/Id.md index 8a996e0..0c79497 100644 --- a/docs/Model/Id.md +++ b/docs/Model/Id.md @@ -1,4 +1,4 @@ -# # Id +# Id ## Properties diff --git a/docs/Model/InvoiceSettings.md b/docs/Model/InvoiceSettings.md index ed67dad..3478230 100644 --- a/docs/Model/InvoiceSettings.md +++ b/docs/Model/InvoiceSettings.md @@ -1,4 +1,4 @@ -# # InvoiceSettings +# InvoiceSettings ## Properties diff --git a/docs/Model/LedgerNumberInformation.md b/docs/Model/LedgerNumberInformation.md index 3dbc711..034e23a 100644 --- a/docs/Model/LedgerNumberInformation.md +++ b/docs/Model/LedgerNumberInformation.md @@ -1,4 +1,4 @@ -# # LedgerNumberInformation +# LedgerNumberInformation ## Properties diff --git a/docs/Model/ModificationDocumentInsert.md b/docs/Model/ModificationDocumentInsert.md index eff1054..5052524 100644 --- a/docs/Model/ModificationDocumentInsert.md +++ b/docs/Model/ModificationDocumentInsert.md @@ -1,4 +1,4 @@ -# # ModificationDocumentInsert +# ModificationDocumentInsert ## Properties diff --git a/docs/Model/OnlinePayment.md b/docs/Model/OnlinePayment.md index 3b1ab71..01e92ef 100644 --- a/docs/Model/OnlinePayment.md +++ b/docs/Model/OnlinePayment.md @@ -1,4 +1,4 @@ -# # OnlinePayment +# OnlinePayment ## Properties diff --git a/docs/Model/OnlineSzamlaStatus.md b/docs/Model/OnlineSzamlaStatus.md index c9b2501..2c2e07e 100644 --- a/docs/Model/OnlineSzamlaStatus.md +++ b/docs/Model/OnlineSzamlaStatus.md @@ -1,4 +1,4 @@ -# # OnlineSzamlaStatus +# OnlineSzamlaStatus ## Properties diff --git a/docs/Model/OnlineSzamlaStatusEnum.md b/docs/Model/OnlineSzamlaStatusEnum.md index 2e966ef..4b7d0f4 100644 --- a/docs/Model/OnlineSzamlaStatusEnum.md +++ b/docs/Model/OnlineSzamlaStatusEnum.md @@ -1,4 +1,4 @@ -# # OnlineSzamlaStatusEnum +# OnlineSzamlaStatusEnum ## Properties diff --git a/docs/Model/OnlineSzamlaStatusMessage.md b/docs/Model/OnlineSzamlaStatusMessage.md index 96c5fd2..292ae20 100644 --- a/docs/Model/OnlineSzamlaStatusMessage.md +++ b/docs/Model/OnlineSzamlaStatusMessage.md @@ -1,4 +1,4 @@ -# # OnlineSzamlaStatusMessage +# OnlineSzamlaStatusMessage ## Properties diff --git a/docs/Model/OrganizationData.md b/docs/Model/OrganizationData.md index 650e4dd..e970e74 100644 --- a/docs/Model/OrganizationData.md +++ b/docs/Model/OrganizationData.md @@ -1,4 +1,4 @@ -# # OrganizationData +# OrganizationData ## Properties diff --git a/docs/Model/Partner.md b/docs/Model/Partner.md index 44c2fde..11bb5f0 100644 --- a/docs/Model/Partner.md +++ b/docs/Model/Partner.md @@ -1,4 +1,4 @@ -# # Partner +# Partner ## Properties diff --git a/docs/Model/PartnerCustomBillingSettings.md b/docs/Model/PartnerCustomBillingSettings.md index 194708a..b558384 100644 --- a/docs/Model/PartnerCustomBillingSettings.md +++ b/docs/Model/PartnerCustomBillingSettings.md @@ -1,4 +1,4 @@ -# # PartnerCustomBillingSettings +# PartnerCustomBillingSettings ## Properties diff --git a/docs/Model/PartnerList.md b/docs/Model/PartnerList.md index d75f9f2..a56125b 100644 --- a/docs/Model/PartnerList.md +++ b/docs/Model/PartnerList.md @@ -1,4 +1,4 @@ -# # PartnerList +# PartnerList ## Properties diff --git a/docs/Model/PartnerTaxType.md b/docs/Model/PartnerTaxType.md index 40f5ca3..dec834d 100644 --- a/docs/Model/PartnerTaxType.md +++ b/docs/Model/PartnerTaxType.md @@ -1,4 +1,4 @@ -# # PartnerTaxType +# PartnerTaxType ## Properties diff --git a/docs/Model/PaymentHistory.md b/docs/Model/PaymentHistory.md index 0377a39..395e499 100644 --- a/docs/Model/PaymentHistory.md +++ b/docs/Model/PaymentHistory.md @@ -1,4 +1,4 @@ -# # PaymentHistory +# PaymentHistory ## Properties diff --git a/docs/Model/PaymentMethod.md b/docs/Model/PaymentMethod.md index 2e363b9..1b26d5d 100644 --- a/docs/Model/PaymentMethod.md +++ b/docs/Model/PaymentMethod.md @@ -1,4 +1,4 @@ -# # PaymentMethod +# PaymentMethod ## Properties diff --git a/docs/Model/PaymentStatus.md b/docs/Model/PaymentStatus.md index 19a4b98..9dccb8c 100644 --- a/docs/Model/PaymentStatus.md +++ b/docs/Model/PaymentStatus.md @@ -1,4 +1,4 @@ -# # PaymentStatus +# PaymentStatus ## Properties diff --git a/docs/Model/PaymentStatusSpending.md b/docs/Model/PaymentStatusSpending.md index 7f07d8d..1bb0872 100644 --- a/docs/Model/PaymentStatusSpending.md +++ b/docs/Model/PaymentStatusSpending.md @@ -1,4 +1,4 @@ -# # PaymentStatusSpending +# PaymentStatusSpending ## Properties diff --git a/docs/Model/Product.md b/docs/Model/Product.md index 4d544f1..110bf41 100644 --- a/docs/Model/Product.md +++ b/docs/Model/Product.md @@ -1,4 +1,4 @@ -# # Product +# Product ## Properties diff --git a/docs/Model/ProductList.md b/docs/Model/ProductList.md index 90dea52..7e57067 100644 --- a/docs/Model/ProductList.md +++ b/docs/Model/ProductList.md @@ -1,4 +1,4 @@ -# # ProductList +# ProductList ## Properties diff --git a/docs/Model/ReceiptInsert.md b/docs/Model/ReceiptInsert.md index c9c16d0..9456830 100644 --- a/docs/Model/ReceiptInsert.md +++ b/docs/Model/ReceiptInsert.md @@ -1,4 +1,4 @@ -# # ReceiptInsert +# ReceiptInsert ## Properties diff --git a/docs/Model/ReceiptInsertItemsInner.md b/docs/Model/ReceiptInsertItemsInner.md index 1b7e6ed..4749400 100644 --- a/docs/Model/ReceiptInsertItemsInner.md +++ b/docs/Model/ReceiptInsertItemsInner.md @@ -1,12 +1,11 @@ -# # ReceiptInsertItemsInner +# ReceiptInsertItemsInner -## Properties +This model is a `oneOf` wrapper: a value is exactly one of the member types listed below. +It is never instantiated directly — use one of the concrete types. -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**productId** | **int** | | -**name** | **string** | | [optional] -**unitPrice** | **float** | | -**vat** | [**\Cone\Billingo\Model\Vat**](Vat.md) | | +## oneOf + +- [**\Cone\Billingo\Model\ReceiptItemData**](ReceiptItemData.md) +- [**\Cone\Billingo\Model\ReceiptProductData**](ReceiptProductData.md) [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ReceiptItemData.md b/docs/Model/ReceiptItemData.md index 3512028..cf41961 100644 --- a/docs/Model/ReceiptItemData.md +++ b/docs/Model/ReceiptItemData.md @@ -1,4 +1,4 @@ -# # ReceiptItemData +# ReceiptItemData ## Properties diff --git a/docs/Model/ReceiptProductData.md b/docs/Model/ReceiptProductData.md index 768a082..300fbe1 100644 --- a/docs/Model/ReceiptProductData.md +++ b/docs/Model/ReceiptProductData.md @@ -1,4 +1,4 @@ -# # ReceiptProductData +# ReceiptProductData ## Properties diff --git a/docs/Model/Round.md b/docs/Model/Round.md index 29d270b..36f109a 100644 --- a/docs/Model/Round.md +++ b/docs/Model/Round.md @@ -1,4 +1,4 @@ -# # Round +# Round ## Properties diff --git a/docs/Model/SendDocument.md b/docs/Model/SendDocument.md index f4b46c5..60614dc 100644 --- a/docs/Model/SendDocument.md +++ b/docs/Model/SendDocument.md @@ -1,4 +1,4 @@ -# # SendDocument +# SendDocument ## Properties diff --git a/docs/Model/ServerError.md b/docs/Model/ServerError.md index 644f58f..aefa798 100644 --- a/docs/Model/ServerError.md +++ b/docs/Model/ServerError.md @@ -1,4 +1,4 @@ -# # ServerError +# ServerError ## Properties diff --git a/docs/Model/ServerErrorResponse.md b/docs/Model/ServerErrorResponse.md index 722ff0a..91067ab 100644 --- a/docs/Model/ServerErrorResponse.md +++ b/docs/Model/ServerErrorResponse.md @@ -1,4 +1,4 @@ -# # ServerErrorResponse +# ServerErrorResponse ## Properties diff --git a/docs/Model/ServerTime.md b/docs/Model/ServerTime.md index 6c729fa..cfdbaa7 100644 --- a/docs/Model/ServerTime.md +++ b/docs/Model/ServerTime.md @@ -1,4 +1,4 @@ -# # ServerTime +# ServerTime ## Properties diff --git a/docs/Model/Source.md b/docs/Model/Source.md index 16a36c7..1039592 100644 --- a/docs/Model/Source.md +++ b/docs/Model/Source.md @@ -1,4 +1,4 @@ -# # Source +# Source ## Properties diff --git a/docs/Model/Spending.md b/docs/Model/Spending.md index d88a30a..f111d7c 100644 --- a/docs/Model/Spending.md +++ b/docs/Model/Spending.md @@ -1,4 +1,4 @@ -# # Spending +# Spending ## Properties diff --git a/docs/Model/SpendingList.md b/docs/Model/SpendingList.md index 7880879..7b08c74 100644 --- a/docs/Model/SpendingList.md +++ b/docs/Model/SpendingList.md @@ -1,4 +1,4 @@ -# # SpendingList +# SpendingList ## Properties diff --git a/docs/Model/SpendingListItem.md b/docs/Model/SpendingListItem.md index e4491c5..b64f9b4 100644 --- a/docs/Model/SpendingListItem.md +++ b/docs/Model/SpendingListItem.md @@ -1,4 +1,4 @@ -# # SpendingListItem +# SpendingListItem ## Properties diff --git a/docs/Model/SpendingPartner.md b/docs/Model/SpendingPartner.md index 6be25cc..2bf44de 100644 --- a/docs/Model/SpendingPartner.md +++ b/docs/Model/SpendingPartner.md @@ -1,4 +1,4 @@ -# # SpendingPartner +# SpendingPartner ## Properties diff --git a/docs/Model/SpendingPaymentMethod.md b/docs/Model/SpendingPaymentMethod.md index 92552c0..76f5a6d 100644 --- a/docs/Model/SpendingPaymentMethod.md +++ b/docs/Model/SpendingPaymentMethod.md @@ -1,4 +1,4 @@ -# # SpendingPaymentMethod +# SpendingPaymentMethod ## Properties diff --git a/docs/Model/SpendingSave.md b/docs/Model/SpendingSave.md index 5393f47..0576c44 100644 --- a/docs/Model/SpendingSave.md +++ b/docs/Model/SpendingSave.md @@ -1,4 +1,4 @@ -# # SpendingSave +# SpendingSave ## Properties diff --git a/docs/Model/Subscription.md b/docs/Model/Subscription.md index ba7afd7..4eaec29 100644 --- a/docs/Model/Subscription.md +++ b/docs/Model/Subscription.md @@ -1,4 +1,4 @@ -# # Subscription +# Subscription ## Properties diff --git a/docs/Model/SubscriptionErrorResponse.md b/docs/Model/SubscriptionErrorResponse.md index 4d9852f..9ab4ba2 100644 --- a/docs/Model/SubscriptionErrorResponse.md +++ b/docs/Model/SubscriptionErrorResponse.md @@ -1,4 +1,4 @@ -# # SubscriptionErrorResponse +# SubscriptionErrorResponse ## Properties diff --git a/docs/Model/TaxNumber.md b/docs/Model/TaxNumber.md index 5ee3b8b..e7d8d60 100644 --- a/docs/Model/TaxNumber.md +++ b/docs/Model/TaxNumber.md @@ -1,4 +1,4 @@ -# # TaxNumber +# TaxNumber ## Properties diff --git a/docs/Model/TooManyRequestsResponse.md b/docs/Model/TooManyRequestsResponse.md index f9228a6..b431cb1 100644 --- a/docs/Model/TooManyRequestsResponse.md +++ b/docs/Model/TooManyRequestsResponse.md @@ -1,4 +1,4 @@ -# # TooManyRequestsResponse +# TooManyRequestsResponse ## Properties diff --git a/docs/Model/UnitPriceType.md b/docs/Model/UnitPriceType.md index cb02d06..2d80519 100644 --- a/docs/Model/UnitPriceType.md +++ b/docs/Model/UnitPriceType.md @@ -1,4 +1,4 @@ -# # UnitPriceType +# UnitPriceType ## Properties diff --git a/docs/Model/ValidationError.md b/docs/Model/ValidationError.md index 61dabdf..5af547f 100644 --- a/docs/Model/ValidationError.md +++ b/docs/Model/ValidationError.md @@ -1,4 +1,4 @@ -# # ValidationError +# ValidationError ## Properties diff --git a/docs/Model/ValidationErrorResponse.md b/docs/Model/ValidationErrorResponse.md index 2bd1874..ebdf824 100644 --- a/docs/Model/ValidationErrorResponse.md +++ b/docs/Model/ValidationErrorResponse.md @@ -1,4 +1,4 @@ -# # ValidationErrorResponse +# ValidationErrorResponse ## Properties diff --git a/docs/Model/Vat.md b/docs/Model/Vat.md index c61a38b..1d92666 100644 --- a/docs/Model/Vat.md +++ b/docs/Model/Vat.md @@ -1,4 +1,4 @@ -# # Vat +# Vat ## Properties diff --git a/src/Api/BankAccountApi.php b/src/Api/BankAccountApi.php index 035e4b1..c019b9e 100644 --- a/src/Api/BankAccountApi.php +++ b/src/Api/BankAccountApi.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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class BankAccountApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'createBankAccount' => [ 'application/json', @@ -167,7 +165,7 @@ public function createBankAccount( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\BankAccount|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createBankAccountWithHttpInfo( \Cone\Billingo\Model\BankAccount $bankAccount, @@ -248,7 +246,6 @@ public function createBankAccountWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -429,7 +426,6 @@ public function createBankAccountRequest( \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['createBankAccount'][0] ): Request { - // verify the required parameter 'bankAccount' is set if ($bankAccount === null || (is_array($bankAccount) && count($bankAccount) === 0)) { throw new InvalidArgumentException( @@ -437,7 +433,6 @@ public function createBankAccountRequest( ); } - $resourcePath = '/bank-accounts'; $formParams = []; $queryParams = []; @@ -476,7 +471,7 @@ public function createBankAccountRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -544,7 +539,7 @@ public function deleteBankAccount( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @return array{0: null, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function deleteBankAccountWithHttpInfo( int $id, @@ -717,7 +712,6 @@ public function deleteBankAccountRequest( int $id, string $contentType = self::contentTypes['deleteBankAccount'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -725,9 +719,7 @@ public function deleteBankAccountRequest( ); } - $resourcePath = '/bank-accounts/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -738,7 +730,7 @@ public function deleteBankAccountRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -751,30 +743,6 @@ public function deleteBankAccountRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -833,7 +801,7 @@ public function getBankAccount( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\BankAccount|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getBankAccountWithHttpInfo( int $id, @@ -914,7 +882,6 @@ public function getBankAccountWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1095,7 +1062,6 @@ public function getBankAccountRequest( int $id, string $contentType = self::contentTypes['getBankAccount'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -1103,9 +1069,7 @@ public function getBankAccountRequest( ); } - $resourcePath = '/bank-accounts/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1116,7 +1080,7 @@ public function getBankAccountRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1129,30 +1093,6 @@ public function getBankAccountRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1214,7 +1154,7 @@ public function listBankAccount( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\BankAccountList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function listBankAccountWithHttpInfo( ?int $page = null, @@ -1290,7 +1230,6 @@ public function listBankAccountWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1469,8 +1408,6 @@ public function listBankAccountRequest( ?int $perPage = 25, string $contentType = self::contentTypes['listBankAccount'][0] ): Request { - - if ($perPage !== null && $perPage > 100) { throw new InvalidArgumentException('invalid value for "$perPage" when calling BankAccountApi.listBankAccount, must be smaller than or equal to 100.'); } @@ -1478,9 +1415,7 @@ public function listBankAccountRequest( throw new InvalidArgumentException('invalid value for "$perPage" when calling BankAccountApi.listBankAccount, must be bigger than or equal to 1.'); } - $resourcePath = '/bank-accounts'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1514,30 +1449,6 @@ public function listBankAccountRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1599,7 +1510,7 @@ public function updateBankAccount( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\BankAccount|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function updateBankAccountWithHttpInfo( int $id, @@ -1687,7 +1598,6 @@ public function updateBankAccountWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1882,14 +1792,12 @@ public function updateBankAccountRequest( \Cone\Billingo\Model\BankAccount $bankAccount, string $contentType = self::contentTypes['updateBankAccount'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling updateBankAccount' ); } - // verify the required parameter 'bankAccount' is set if ($bankAccount === null || (is_array($bankAccount) && count($bankAccount) === 0)) { throw new InvalidArgumentException( @@ -1897,7 +1805,6 @@ public function updateBankAccountRequest( ); } - $resourcePath = '/bank-accounts/{id}'; $formParams = []; $queryParams = []; @@ -1910,7 +1817,7 @@ public function updateBankAccountRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1944,7 +1851,7 @@ public function updateBankAccountRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters diff --git a/src/Api/CurrencyApi.php b/src/Api/CurrencyApi.php index 45991c5..26a8298 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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class CurrencyApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'getConversionRate' => [ 'application/json', @@ -161,7 +159,7 @@ public function getConversionRate( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\ConversationRate|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\ConversationRate|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getConversionRateWithHttpInfo( \Cone\Billingo\Model\Currency $from, @@ -238,7 +236,6 @@ public function getConversionRateWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -423,14 +420,12 @@ public function getConversionRateRequest( ?\DateTime $date = null, string $contentType = self::contentTypes['getConversionRate'][0] ): Request { - // verify the required parameter 'from' is set if ($from === null || (is_array($from) && count($from) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $from when calling getConversionRate' ); } - // verify the required parameter 'to' is set if ($to === null || (is_array($to) && count($to) === 0)) { throw new InvalidArgumentException( @@ -438,10 +433,7 @@ public function getConversionRateRequest( ); } - - $resourcePath = '/currencies'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -484,30 +476,6 @@ public function getConversionRateRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); diff --git a/src/Api/DocumentApi.php b/src/Api/DocumentApi.php index ea00566..4b79004 100644 --- a/src/Api/DocumentApi.php +++ b/src/Api/DocumentApi.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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class DocumentApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'archiveDocument' => [ 'application/json', @@ -215,7 +213,7 @@ public function archiveDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @return array{0: null, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function archiveDocumentWithHttpInfo( int $id, @@ -396,7 +394,6 @@ public function archiveDocumentRequest( int $id, string $contentType = self::contentTypes['archiveDocument'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -404,9 +401,7 @@ public function archiveDocumentRequest( ); } - $resourcePath = '/documents/{id}/archive'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -417,7 +412,7 @@ public function archiveDocumentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -430,30 +425,6 @@ public function archiveDocumentRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -515,7 +486,7 @@ public function cancelDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function cancelDocumentWithHttpInfo( int $id, @@ -603,7 +574,6 @@ public function cancelDocumentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -798,7 +768,6 @@ public function cancelDocumentRequest( ?\Cone\Billingo\Model\DocumentCancellation $documentCancellation = null, string $contentType = self::contentTypes['cancelDocument'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -806,8 +775,6 @@ public function cancelDocumentRequest( ); } - - $resourcePath = '/documents/{id}/cancel'; $formParams = []; $queryParams = []; @@ -820,7 +787,7 @@ public function cancelDocumentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -854,7 +821,7 @@ public function cancelDocumentRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -922,7 +889,7 @@ public function createDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createDocumentWithHttpInfo( \Cone\Billingo\Model\DocumentInsert $documentInsert, @@ -1003,7 +970,6 @@ public function createDocumentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1184,7 +1150,6 @@ public function createDocumentRequest( \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocument'][0] ): Request { - // verify the required parameter 'documentInsert' is set if ($documentInsert === null || (is_array($documentInsert) && count($documentInsert) === 0)) { throw new InvalidArgumentException( @@ -1192,7 +1157,6 @@ public function createDocumentRequest( ); } - $resourcePath = '/documents'; $formParams = []; $queryParams = []; @@ -1231,7 +1195,7 @@ public function createDocumentRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -1302,7 +1266,7 @@ public function createDocumentFromDraft( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createDocumentFromDraftWithHttpInfo( int $id, @@ -1390,7 +1354,6 @@ public function createDocumentFromDraftWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1585,14 +1548,12 @@ public function createDocumentFromDraftRequest( \Cone\Billingo\Model\DocumentInsert $documentInsert, string $contentType = self::contentTypes['createDocumentFromDraft'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling createDocumentFromDraft' ); } - // verify the required parameter 'documentInsert' is set if ($documentInsert === null || (is_array($documentInsert) && count($documentInsert) === 0)) { throw new InvalidArgumentException( @@ -1600,7 +1561,6 @@ public function createDocumentFromDraftRequest( ); } - $resourcePath = '/documents/{id}'; $formParams = []; $queryParams = []; @@ -1613,7 +1573,7 @@ public function createDocumentFromDraftRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1647,7 +1607,7 @@ public function createDocumentFromDraftRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -1718,7 +1678,7 @@ public function createDocumentFromProforma( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createDocumentFromProformaWithHttpInfo( int $id, @@ -1806,7 +1766,6 @@ public function createDocumentFromProformaWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2001,7 +1960,6 @@ public function createDocumentFromProformaRequest( ?\Cone\Billingo\Model\InvoiceSettings $invoiceSettings = null, string $contentType = self::contentTypes['createDocumentFromProforma'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -2009,8 +1967,6 @@ public function createDocumentFromProformaRequest( ); } - - $resourcePath = '/documents/{id}/create-from-proforma'; $formParams = []; $queryParams = []; @@ -2023,7 +1979,7 @@ public function createDocumentFromProformaRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -2057,7 +2013,7 @@ public function createDocumentFromProformaRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -2128,7 +2084,7 @@ public function createModificationDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createModificationDocumentWithHttpInfo( int $id, @@ -2216,7 +2172,6 @@ public function createModificationDocumentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2411,14 +2366,12 @@ public function createModificationDocumentRequest( \Cone\Billingo\Model\ModificationDocumentInsert $modificationDocumentInsert, string $contentType = self::contentTypes['createModificationDocument'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling createModificationDocument' ); } - // verify the required parameter 'modificationDocumentInsert' is set if ($modificationDocumentInsert === null || (is_array($modificationDocumentInsert) && count($modificationDocumentInsert) === 0)) { throw new InvalidArgumentException( @@ -2426,7 +2379,6 @@ public function createModificationDocumentRequest( ); } - $resourcePath = '/documents/{id}/create-modification-document'; $formParams = []; $queryParams = []; @@ -2439,7 +2391,7 @@ public function createModificationDocumentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -2473,7 +2425,7 @@ public function createModificationDocumentRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -2541,7 +2493,7 @@ public function createReceipt( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createReceiptWithHttpInfo( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, @@ -2622,7 +2574,6 @@ public function createReceiptWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2803,7 +2754,6 @@ public function createReceiptRequest( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceipt'][0] ): Request { - // verify the required parameter 'receiptInsert' is set if ($receiptInsert === null || (is_array($receiptInsert) && count($receiptInsert) === 0)) { throw new InvalidArgumentException( @@ -2811,7 +2761,6 @@ public function createReceiptRequest( ); } - $resourcePath = '/documents/receipt'; $formParams = []; $queryParams = []; @@ -2850,7 +2799,7 @@ public function createReceiptRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -2921,7 +2870,7 @@ public function createReceiptFromDraft( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createReceiptFromDraftWithHttpInfo( int $id, @@ -3009,7 +2958,6 @@ public function createReceiptFromDraftWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -3204,14 +3152,12 @@ public function createReceiptFromDraftRequest( \Cone\Billingo\Model\ReceiptInsert $receiptInsert, string $contentType = self::contentTypes['createReceiptFromDraft'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling createReceiptFromDraft' ); } - // verify the required parameter 'receiptInsert' is set if ($receiptInsert === null || (is_array($receiptInsert) && count($receiptInsert) === 0)) { throw new InvalidArgumentException( @@ -3219,7 +3165,6 @@ public function createReceiptFromDraftRequest( ); } - $resourcePath = '/documents/receipt/{id}'; $formParams = []; $queryParams = []; @@ -3232,7 +3177,7 @@ public function createReceiptFromDraftRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -3266,7 +3211,7 @@ public function createReceiptFromDraftRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -3334,7 +3279,7 @@ public function deleteDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @return array{0: null, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function deleteDocumentWithHttpInfo( int $id, @@ -3507,7 +3452,6 @@ public function deleteDocumentRequest( int $id, string $contentType = self::contentTypes['deleteDocument'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -3515,9 +3459,7 @@ public function deleteDocumentRequest( ); } - $resourcePath = '/documents/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -3528,7 +3470,7 @@ public function deleteDocumentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -3541,30 +3483,6 @@ public function deleteDocumentRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -3623,7 +3541,7 @@ public function deletePayment( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\PaymentHistory[]|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\PaymentHistory[]|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function deletePaymentWithHttpInfo( int $id, @@ -3704,7 +3622,6 @@ public function deletePaymentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -3885,7 +3802,6 @@ public function deletePaymentRequest( int $id, string $contentType = self::contentTypes['deletePayment'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -3893,9 +3809,7 @@ public function deletePaymentRequest( ); } - $resourcePath = '/documents/{id}/payments'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -3906,7 +3820,7 @@ public function deletePaymentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -3919,30 +3833,6 @@ public function deletePaymentRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -4001,7 +3891,7 @@ public function documentCopy( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function documentCopyWithHttpInfo( int $id, @@ -4088,7 +3978,6 @@ public function documentCopyWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -4277,7 +4166,6 @@ public function documentCopyRequest( int $id, string $contentType = self::contentTypes['documentCopy'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -4285,9 +4173,7 @@ public function documentCopyRequest( ); } - $resourcePath = '/documents/{id}/copy'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -4298,7 +4184,7 @@ public function documentCopyRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -4311,30 +4197,6 @@ public function documentCopyRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -4393,7 +4255,7 @@ public function downloadDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \SplFileObject|\Cone\Billingo\Model\ClientError|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function downloadDocumentWithHttpInfo( int $id, @@ -4480,7 +4342,6 @@ public function downloadDocumentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -4669,7 +4530,6 @@ public function downloadDocumentRequest( int $id, string $contentType = self::contentTypes['downloadDocument'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -4677,9 +4537,7 @@ public function downloadDocumentRequest( ); } - $resourcePath = '/documents/{id}/download'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -4690,7 +4548,7 @@ public function downloadDocumentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -4703,30 +4561,6 @@ public function downloadDocumentRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -4785,7 +4619,7 @@ public function getDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getDocumentWithHttpInfo( int $id, @@ -4866,7 +4700,6 @@ public function getDocumentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -5047,7 +4880,6 @@ public function getDocumentRequest( int $id, string $contentType = self::contentTypes['getDocument'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -5055,9 +4887,7 @@ public function getDocumentRequest( ); } - $resourcePath = '/documents/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -5068,7 +4898,7 @@ public function getDocumentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -5081,30 +4911,6 @@ public function getDocumentRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -5163,7 +4969,7 @@ public function getDocumentByVendorId( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Document|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getDocumentByVendorIdWithHttpInfo( string $vendorId, @@ -5238,7 +5044,6 @@ public function getDocumentByVendorIdWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -5411,7 +5216,6 @@ public function getDocumentByVendorIdRequest( string $vendorId, string $contentType = self::contentTypes['getDocumentByVendorId'][0] ): Request { - // verify the required parameter 'vendorId' is set if ($vendorId === null || (is_array($vendorId) && count($vendorId) === 0)) { throw new InvalidArgumentException( @@ -5419,9 +5223,7 @@ public function getDocumentByVendorIdRequest( ); } - $resourcePath = '/documents/vendor/{vendor_id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -5432,7 +5234,7 @@ public function getDocumentByVendorIdRequest( // path params if ($vendorId !== null) { $resourcePath = str_replace( - '{' . 'vendor_id' . '}', + '{vendor_id}', ObjectSerializer::toPathValue($vendorId), $resourcePath ); @@ -5445,30 +5247,6 @@ public function getDocumentByVendorIdRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -5527,7 +5305,7 @@ public function getOnlineSzamlaStatus( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\OnlineSzamlaStatus|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getOnlineSzamlaStatusWithHttpInfo( int $id, @@ -5608,7 +5386,6 @@ public function getOnlineSzamlaStatusWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -5789,7 +5566,6 @@ public function getOnlineSzamlaStatusRequest( int $id, string $contentType = self::contentTypes['getOnlineSzamlaStatus'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -5797,9 +5573,7 @@ public function getOnlineSzamlaStatusRequest( ); } - $resourcePath = '/documents/{id}/online-szamla'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -5810,7 +5584,7 @@ public function getOnlineSzamlaStatusRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -5823,30 +5597,6 @@ public function getOnlineSzamlaStatusRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -5905,7 +5655,7 @@ public function getPayment( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\PaymentHistory[]|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\PaymentHistory[]|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getPaymentWithHttpInfo( int $id, @@ -5986,7 +5736,6 @@ public function getPaymentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -6167,7 +5916,6 @@ public function getPaymentRequest( int $id, string $contentType = self::contentTypes['getPayment'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -6175,9 +5923,7 @@ public function getPaymentRequest( ); } - $resourcePath = '/documents/{id}/payments'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -6188,7 +5934,7 @@ public function getPaymentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -6201,30 +5947,6 @@ public function getPaymentRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -6283,7 +6005,7 @@ public function getPublicUrl( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\DocumentPublicUrl|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getPublicUrlWithHttpInfo( int $id, @@ -6364,7 +6086,6 @@ public function getPublicUrlWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -6545,7 +6266,6 @@ public function getPublicUrlRequest( int $id, string $contentType = self::contentTypes['getPublicUrl'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -6553,9 +6273,7 @@ public function getPublicUrlRequest( ); } - $resourcePath = '/documents/{id}/public-url'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -6566,7 +6284,7 @@ public function getPublicUrlRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -6579,30 +6297,6 @@ public function getPublicUrlRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -6715,7 +6409,7 @@ public function listDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\DocumentList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function listDocumentWithHttpInfo( ?int $page = null, @@ -6808,7 +6502,6 @@ public function listDocumentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -7089,8 +6782,6 @@ public function listDocumentRequest( ?string $lastModifiedDate = null, string $contentType = self::contentTypes['listDocument'][0] ): Request { - - if ($perPage !== null && $perPage > 100) { throw new InvalidArgumentException('invalid value for "$perPage" when calling DocumentApi.listDocument, must be smaller than or equal to 100.'); } @@ -7098,26 +6789,7 @@ public function listDocumentRequest( throw new InvalidArgumentException('invalid value for "$perPage" when calling DocumentApi.listDocument, must be bigger than or equal to 1.'); } - - - - - - - - - - - - - - - - - - $resourcePath = '/documents'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -7304,30 +6976,6 @@ public function listDocumentRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -7389,7 +7037,7 @@ public function posPrint( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \SplFileObject|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \SplFileObject|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function posPrintWithHttpInfo( int $id, @@ -7471,7 +7119,6 @@ public function posPrintWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -7658,14 +7305,12 @@ public function posPrintRequest( float $size, string $contentType = self::contentTypes['posPrint'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling posPrint' ); } - // verify the required parameter 'size' is set if ($size === null || (is_array($size) && count($size) === 0)) { throw new InvalidArgumentException( @@ -7673,9 +7318,7 @@ public function posPrintRequest( ); } - $resourcePath = '/documents/{id}/print/pos'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -7695,7 +7338,7 @@ public function posPrintRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -7708,30 +7351,6 @@ public function posPrintRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -7793,7 +7412,7 @@ public function sendDocument( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\SendDocument|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function sendDocumentWithHttpInfo( int $id, @@ -7881,7 +7500,6 @@ public function sendDocumentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -8076,7 +7694,6 @@ public function sendDocumentRequest( ?\Cone\Billingo\Model\SendDocument $sendDocument = null, string $contentType = self::contentTypes['sendDocument'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -8084,8 +7701,6 @@ public function sendDocumentRequest( ); } - - $resourcePath = '/documents/{id}/send'; $formParams = []; $queryParams = []; @@ -8098,7 +7713,7 @@ public function sendDocumentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -8132,7 +7747,7 @@ public function sendDocumentRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -8203,7 +7818,7 @@ public function updatePayment( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\PaymentHistory[]|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\PaymentHistory[]|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function updatePaymentWithHttpInfo( int $id, @@ -8291,7 +7906,6 @@ public function updatePaymentWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -8486,14 +8100,12 @@ public function updatePaymentRequest( array $paymentHistory, string $contentType = self::contentTypes['updatePayment'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling updatePayment' ); } - // verify the required parameter 'paymentHistory' is set if ($paymentHistory === null || (is_array($paymentHistory) && count($paymentHistory) === 0)) { throw new InvalidArgumentException( @@ -8501,7 +8113,6 @@ public function updatePaymentRequest( ); } - $resourcePath = '/documents/{id}/payments'; $formParams = []; $queryParams = []; @@ -8514,7 +8125,7 @@ public function updatePaymentRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -8548,7 +8159,7 @@ public function updatePaymentRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters diff --git a/src/Api/DocumentBlockApi.php b/src/Api/DocumentBlockApi.php index 3535eaf..ed498f5 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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class DocumentBlockApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'listDocumentBlock' => [ 'application/json', @@ -161,7 +159,7 @@ public function listDocumentBlock( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\DocumentBlockList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\DocumentBlockList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function listDocumentBlockWithHttpInfo( ?int $page = null, @@ -238,7 +236,6 @@ public function listDocumentBlockWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -423,8 +420,6 @@ public function listDocumentBlockRequest( ?\Cone\Billingo\Model\DocumentBlockType $type = null, string $contentType = self::contentTypes['listDocumentBlock'][0] ): Request { - - if ($perPage !== null && $perPage > 100) { throw new InvalidArgumentException('invalid value for "$perPage" when calling DocumentBlockApi.listDocumentBlock, must be smaller than or equal to 100.'); } @@ -432,10 +427,7 @@ public function listDocumentBlockRequest( throw new InvalidArgumentException('invalid value for "$perPage" when calling DocumentBlockApi.listDocumentBlock, must be bigger than or equal to 1.'); } - - $resourcePath = '/document-blocks'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -478,30 +470,6 @@ public function listDocumentBlockRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); diff --git a/src/Api/DocumentExportApi.php b/src/Api/DocumentExportApi.php index 951cd7d..1ee94c2 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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class DocumentExportApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'create' => [ 'application/json', @@ -161,7 +159,7 @@ public function create( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\DocumentExportId|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\DocumentExportId|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createWithHttpInfo( \Cone\Billingo\Model\CreateDocumentExport $createDocumentExport, @@ -242,7 +240,6 @@ public function createWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -423,7 +420,6 @@ public function createRequest( \Cone\Billingo\Model\CreateDocumentExport $createDocumentExport, string $contentType = self::contentTypes['create'][0] ): Request { - // verify the required parameter 'createDocumentExport' is set if ($createDocumentExport === null || (is_array($createDocumentExport) && count($createDocumentExport) === 0)) { throw new InvalidArgumentException( @@ -431,7 +427,6 @@ public function createRequest( ); } - $resourcePath = '/document-export'; $formParams = []; $queryParams = []; @@ -470,7 +465,7 @@ public function createRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -538,7 +533,7 @@ public function download( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \SplFileObject|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \SplFileObject|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function downloadWithHttpInfo( string $id, @@ -619,7 +614,6 @@ public function downloadWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -800,7 +794,6 @@ public function downloadRequest( string $id, string $contentType = self::contentTypes['download'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -808,9 +801,7 @@ public function downloadRequest( ); } - $resourcePath = '/document-export/{id}/download'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -821,7 +812,7 @@ public function downloadRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -834,30 +825,6 @@ public function downloadRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -916,7 +883,7 @@ public function poll( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\DocumentExportStatus|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\DocumentExportStatus|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function pollWithHttpInfo( string $id, @@ -997,7 +964,6 @@ public function pollWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1178,7 +1144,6 @@ public function pollRequest( string $id, string $contentType = self::contentTypes['poll'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -1186,9 +1151,7 @@ public function pollRequest( ); } - $resourcePath = '/document-export/{id}/poll'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1199,7 +1162,7 @@ public function pollRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1212,30 +1175,6 @@ public function pollRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); diff --git a/src/Api/OrganizationApi.php b/src/Api/OrganizationApi.php index a81b9f8..a89c545 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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class OrganizationApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'getOrganizationData' => [ 'application/json', @@ -152,7 +150,7 @@ public function getOrganizationData( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\OrganizationData|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\OrganizationData|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getOrganizationDataWithHttpInfo( string $contentType = self::contentTypes['getOrganizationData'][0] @@ -226,7 +224,6 @@ public function getOrganizationDataWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -394,9 +391,7 @@ public function getOrganizationDataRequest( string $contentType = self::contentTypes['getOrganizationData'][0] ): Request { - $resourcePath = '/organization'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -412,30 +407,6 @@ public function getOrganizationDataRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); diff --git a/src/Api/PartnerApi.php b/src/Api/PartnerApi.php index f1d5b7f..20e6cdd 100644 --- a/src/Api/PartnerApi.php +++ b/src/Api/PartnerApi.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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class PartnerApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'createPartner' => [ 'application/json', @@ -167,7 +165,7 @@ public function createPartner( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Partner|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createPartnerWithHttpInfo( \Cone\Billingo\Model\Partner $partner, @@ -248,7 +246,6 @@ public function createPartnerWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -429,7 +426,6 @@ public function createPartnerRequest( \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['createPartner'][0] ): Request { - // verify the required parameter 'partner' is set if ($partner === null || (is_array($partner) && count($partner) === 0)) { throw new InvalidArgumentException( @@ -437,7 +433,6 @@ public function createPartnerRequest( ); } - $resourcePath = '/partners'; $formParams = []; $queryParams = []; @@ -476,7 +471,7 @@ public function createPartnerRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -544,7 +539,7 @@ public function deletePartner( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @return array{0: null, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function deletePartnerWithHttpInfo( int $id, @@ -717,7 +712,6 @@ public function deletePartnerRequest( int $id, string $contentType = self::contentTypes['deletePartner'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -725,9 +719,7 @@ public function deletePartnerRequest( ); } - $resourcePath = '/partners/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -738,7 +730,7 @@ public function deletePartnerRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -751,30 +743,6 @@ public function deletePartnerRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -833,7 +801,7 @@ public function getPartner( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Partner|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getPartnerWithHttpInfo( int $id, @@ -914,7 +882,6 @@ public function getPartnerWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1095,7 +1062,6 @@ public function getPartnerRequest( int $id, string $contentType = self::contentTypes['getPartner'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -1103,9 +1069,7 @@ public function getPartnerRequest( ); } - $resourcePath = '/partners/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1116,7 +1080,7 @@ public function getPartnerRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1129,30 +1093,6 @@ public function getPartnerRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1217,7 +1157,7 @@ public function listPartner( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\PartnerList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function listPartnerWithHttpInfo( ?int $page = null, @@ -1294,7 +1234,6 @@ public function listPartnerWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1479,8 +1418,6 @@ public function listPartnerRequest( ?string $query = null, string $contentType = self::contentTypes['listPartner'][0] ): Request { - - if ($perPage !== null && $perPage > 100) { throw new InvalidArgumentException('invalid value for "$perPage" when calling PartnerApi.listPartner, must be smaller than or equal to 100.'); } @@ -1488,10 +1425,7 @@ public function listPartnerRequest( throw new InvalidArgumentException('invalid value for "$perPage" when calling PartnerApi.listPartner, must be bigger than or equal to 1.'); } - - $resourcePath = '/partners'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1534,30 +1468,6 @@ public function listPartnerRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1619,7 +1529,7 @@ public function updatePartner( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Partner|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function updatePartnerWithHttpInfo( int $id, @@ -1707,7 +1617,6 @@ public function updatePartnerWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1902,14 +1811,12 @@ public function updatePartnerRequest( \Cone\Billingo\Model\Partner $partner, string $contentType = self::contentTypes['updatePartner'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling updatePartner' ); } - // verify the required parameter 'partner' is set if ($partner === null || (is_array($partner) && count($partner) === 0)) { throw new InvalidArgumentException( @@ -1917,7 +1824,6 @@ public function updatePartnerRequest( ); } - $resourcePath = '/partners/{id}'; $formParams = []; $queryParams = []; @@ -1930,7 +1836,7 @@ public function updatePartnerRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1964,7 +1870,7 @@ public function updatePartnerRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters diff --git a/src/Api/ProductApi.php b/src/Api/ProductApi.php index fa4fc31..4b5e396 100644 --- a/src/Api/ProductApi.php +++ b/src/Api/ProductApi.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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class ProductApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'createProduct' => [ 'application/json', @@ -167,7 +165,7 @@ public function createProduct( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Product|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function createProductWithHttpInfo( \Cone\Billingo\Model\Product $product, @@ -248,7 +246,6 @@ public function createProductWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -429,7 +426,6 @@ public function createProductRequest( \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['createProduct'][0] ): Request { - // verify the required parameter 'product' is set if ($product === null || (is_array($product) && count($product) === 0)) { throw new InvalidArgumentException( @@ -437,7 +433,6 @@ public function createProductRequest( ); } - $resourcePath = '/products'; $formParams = []; $queryParams = []; @@ -476,7 +471,7 @@ public function createProductRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -544,7 +539,7 @@ public function deleteProduct( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @return array{0: null, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function deleteProductWithHttpInfo( int $id, @@ -717,7 +712,6 @@ public function deleteProductRequest( int $id, string $contentType = self::contentTypes['deleteProduct'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -725,9 +719,7 @@ public function deleteProductRequest( ); } - $resourcePath = '/products/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -738,7 +730,7 @@ public function deleteProductRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -751,30 +743,6 @@ public function deleteProductRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -833,7 +801,7 @@ public function getProduct( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Product|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getProductWithHttpInfo( int $id, @@ -914,7 +882,6 @@ public function getProductWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1095,7 +1062,6 @@ public function getProductRequest( int $id, string $contentType = self::contentTypes['getProduct'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -1103,9 +1069,7 @@ public function getProductRequest( ); } - $resourcePath = '/products/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1116,7 +1080,7 @@ public function getProductRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1129,30 +1093,6 @@ public function getProductRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1217,7 +1157,7 @@ public function listProduct( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\ProductList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function listProductWithHttpInfo( ?int $page = null, @@ -1294,7 +1234,6 @@ public function listProductWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1479,8 +1418,6 @@ public function listProductRequest( ?string $query = null, string $contentType = self::contentTypes['listProduct'][0] ): Request { - - if ($perPage !== null && $perPage > 100) { throw new InvalidArgumentException('invalid value for "$perPage" when calling ProductApi.listProduct, must be smaller than or equal to 100.'); } @@ -1488,10 +1425,7 @@ public function listProductRequest( throw new InvalidArgumentException('invalid value for "$perPage" when calling ProductApi.listProduct, must be bigger than or equal to 1.'); } - - $resourcePath = '/products'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1534,30 +1468,6 @@ public function listProductRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1619,7 +1529,7 @@ public function updateProduct( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Product|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function updateProductWithHttpInfo( int $id, @@ -1707,7 +1617,6 @@ public function updateProductWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1902,14 +1811,12 @@ public function updateProductRequest( \Cone\Billingo\Model\Product $product, string $contentType = self::contentTypes['updateProduct'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( 'Missing the required parameter $id when calling updateProduct' ); } - // verify the required parameter 'product' is set if ($product === null || (is_array($product) && count($product) === 0)) { throw new InvalidArgumentException( @@ -1917,7 +1824,6 @@ public function updateProductRequest( ); } - $resourcePath = '/products/{id}'; $formParams = []; $queryParams = []; @@ -1930,7 +1836,7 @@ public function updateProductRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1964,7 +1870,7 @@ public function updateProductRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters diff --git a/src/Api/SpendingApi.php b/src/Api/SpendingApi.php index 08da0b6..123c658 100644 --- a/src/Api/SpendingApi.php +++ b/src/Api/SpendingApi.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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class SpendingApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'spendingDelete' => [ 'application/json', @@ -167,7 +165,7 @@ public function spendingDelete( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @return array{0: null, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function spendingDeleteWithHttpInfo( int $id, @@ -340,7 +338,6 @@ public function spendingDeleteRequest( int $id, string $contentType = self::contentTypes['spendingDelete'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -348,9 +345,7 @@ public function spendingDeleteRequest( ); } - $resourcePath = '/spendings/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -361,7 +356,7 @@ public function spendingDeleteRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -374,30 +369,6 @@ public function spendingDeleteRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -486,7 +457,7 @@ public function spendingList( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\SpendingList|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function spendingListWithHttpInfo( ?string $q = '', @@ -571,7 +542,6 @@ public function spendingListWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -804,9 +774,6 @@ public function spendingListRequest( ?\Cone\Billingo\Model\PaymentMethod $paymentMethods = null, string $contentType = self::contentTypes['spendingList'][0] ): Request { - - - if ($perPage !== null && $perPage > 100) { throw new InvalidArgumentException('invalid value for "$perPage" when calling SpendingApi.spendingList, must be smaller than or equal to 100.'); } @@ -814,17 +781,7 @@ public function spendingListRequest( throw new InvalidArgumentException('invalid value for "$perPage" when calling SpendingApi.spendingList, must be bigger than or equal to 1.'); } - - - - - - - - - $resourcePath = '/spendings'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -939,30 +896,6 @@ public function spendingListRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1021,7 +954,7 @@ public function spendingSave( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function spendingSaveWithHttpInfo( ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, @@ -1102,7 +1035,6 @@ public function spendingSaveWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1284,8 +1216,6 @@ public function spendingSaveRequest( string $contentType = self::contentTypes['spendingSave'][0] ): Request { - - $resourcePath = '/spendings'; $formParams = []; $queryParams = []; @@ -1324,7 +1254,7 @@ public function spendingSaveRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters @@ -1392,7 +1322,7 @@ public function spendingShow( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function spendingShowWithHttpInfo( int $id, @@ -1473,7 +1403,6 @@ public function spendingShowWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1654,7 +1583,6 @@ public function spendingShowRequest( int $id, string $contentType = self::contentTypes['spendingShow'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -1662,9 +1590,7 @@ public function spendingShowRequest( ); } - $resourcePath = '/spendings/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1675,7 +1601,7 @@ public function spendingShowRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -1688,30 +1614,6 @@ public function spendingShowRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -1773,7 +1675,7 @@ public function spendingUpdate( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Spending|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{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, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function spendingUpdateWithHttpInfo( int $id, @@ -1861,7 +1763,6 @@ public function spendingUpdateWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -2056,7 +1957,6 @@ public function spendingUpdateRequest( ?\Cone\Billingo\Model\SpendingSave $spendingSave = null, string $contentType = self::contentTypes['spendingUpdate'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -2064,8 +1964,6 @@ public function spendingUpdateRequest( ); } - - $resourcePath = '/spendings/{id}'; $formParams = []; $queryParams = []; @@ -2078,7 +1976,7 @@ public function spendingUpdateRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -2112,7 +2010,7 @@ public function spendingUpdateRequest( } } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); + $httpBody = new \GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { // if Content-Type contains "application/json", json_encode the form parameters diff --git a/src/Api/UtilApi.php b/src/Api/UtilApi.php index ce6a230..a65ce32 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.20.0 + * Generator version: 7.24.0 */ /** @@ -32,7 +32,6 @@ use GuzzleHttp\ClientInterface; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; use GuzzleHttp\Promise\PromiseInterface; @@ -41,7 +40,6 @@ use Cone\Billingo\ApiException; use Cone\Billingo\Configuration; use Cone\Billingo\HeaderSelector; -use Cone\Billingo\FormDataProcessor; use Cone\Billingo\ObjectSerializer; /** @@ -72,7 +70,7 @@ class UtilApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ + /** @var array $contentTypes **/ public const contentTypes = [ 'checkTaxNumber' => [ 'application/json', @@ -161,7 +159,7 @@ public function checkTaxNumber( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\TaxNumber|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\TaxNumber|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function checkTaxNumberWithHttpInfo( string $taxNumber, @@ -236,7 +234,6 @@ public function checkTaxNumberWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -409,7 +406,6 @@ public function checkTaxNumberRequest( string $taxNumber, string $contentType = self::contentTypes['checkTaxNumber'][0] ): Request { - // verify the required parameter 'taxNumber' is set if ($taxNumber === null || (is_array($taxNumber) && count($taxNumber) === 0)) { throw new InvalidArgumentException( @@ -420,9 +416,7 @@ public function checkTaxNumberRequest( throw new InvalidArgumentException("invalid value for \"taxNumber\" when calling UtilApi.checkTaxNumber, must conform to the pattern /^([0-9]{8})-([12345])-([0-9]{2})$/."); } - $resourcePath = '/utils/check-tax-number/{tax_number}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -433,7 +427,7 @@ public function checkTaxNumberRequest( // path params if ($taxNumber !== null) { $resourcePath = str_replace( - '{' . 'tax_number' . '}', + '{tax_number}', ObjectSerializer::toPathValue($taxNumber), $resourcePath ); @@ -446,30 +440,6 @@ public function checkTaxNumberRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -528,7 +498,7 @@ public function getId( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\Id|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse|\Cone\Billingo\Model\ClientErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\Id|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getIdWithHttpInfo( int $id, @@ -609,7 +579,6 @@ public function getIdWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -790,7 +759,6 @@ public function getIdRequest( int $id, string $contentType = self::contentTypes['getId'][0] ): Request { - // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new InvalidArgumentException( @@ -798,9 +766,7 @@ public function getIdRequest( ); } - $resourcePath = '/utils/convert-legacy-id/{id}'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -811,7 +777,7 @@ public function getIdRequest( // path params if ($id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', + '{id}', ObjectSerializer::toPathValue($id), $resourcePath ); @@ -824,30 +790,6 @@ public function getIdRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); @@ -903,7 +845,7 @@ public function getServerTime( * * @throws ApiException on non-2xx response or if the response body is not in the expected format * @throws InvalidArgumentException - * @return array of \Cone\Billingo\Model\ServerTime|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array{0: \Cone\Billingo\Model\ServerTime|\Cone\Billingo\Model\ClientErrorResponse|\Cone\Billingo\Model\SubscriptionErrorResponse|\Cone\Billingo\Model\ValidationErrorResponse|\Cone\Billingo\Model\TooManyRequestsResponse|\Cone\Billingo\Model\ServerErrorResponse, 1: int, 2: array} [response data, HTTP status code, HTTP response headers] */ public function getServerTimeWithHttpInfo( string $contentType = self::contentTypes['getServerTime'][0] @@ -977,7 +919,6 @@ public function getServerTimeWithHttpInfo( ); } - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -1145,9 +1086,7 @@ public function getServerTimeRequest( string $contentType = self::contentTypes['getServerTime'][0] ): Request { - $resourcePath = '/utils/time'; - $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; @@ -1163,30 +1102,6 @@ public function getServerTimeRequest( $multipart ); - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem, - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - // if Content-Type contains "application/json", json_encode the form parameters - $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); - } else { - // for HTTP post (form) - $httpBody = ObjectSerializer::buildQuery($formParams); - } - } // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('X-API-KEY'); diff --git a/src/ApiException.php b/src/ApiException.php index 0711321..c3a3af2 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Configuration.php b/src/Configuration.php index 01d052a..fef0a14 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/FormDataProcessor.php b/src/FormDataProcessor.php index 052b202..71523ef 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index 65651ea..03e384a 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Address.php b/src/Model/Address.php index 76fbcce..4034b92 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.20.0 + * Generator version: 7.24.0 */ /** @@ -96,9 +96,7 @@ class Address implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -106,9 +104,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -146,10 +142,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -157,10 +150,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -205,10 +195,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -216,9 +203,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -226,9 +211,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -236,9 +219,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -285,9 +266,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -309,10 +288,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -430,7 +406,7 @@ public function setAddress(string $address): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -442,7 +418,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -455,7 +431,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -472,7 +448,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/BankAccount.php b/src/Model/BankAccount.php index 6e36257..08825fe 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.20.0 + * Generator version: 7.24.0 */ /** @@ -105,9 +105,7 @@ class BankAccount implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -115,9 +113,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -155,10 +151,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -166,10 +159,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -223,10 +213,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -234,9 +221,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -244,9 +229,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -254,9 +237,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -306,9 +287,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -327,10 +306,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -531,7 +507,7 @@ public function setNeedQr(?bool $needQr): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -543,7 +519,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -556,7 +532,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -573,7 +549,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/BankAccountList.php b/src/Model/BankAccountList.php index 92b567f..9d2899d 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.20.0 + * Generator version: 7.24.0 */ /** @@ -106,9 +106,7 @@ class BankAccountList implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -116,9 +114,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -156,10 +152,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -167,10 +160,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -224,10 +214,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -235,9 +222,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -245,9 +230,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -255,9 +238,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -307,9 +288,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -319,10 +298,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -521,7 +497,7 @@ public function setNextPageUrl(?string $nextPageUrl): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -533,7 +509,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -546,7 +522,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -563,7 +539,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Category.php b/src/Model/Category.php index f0a6aca..103a4a4 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/CheckTaxNumberMessage.php b/src/Model/CheckTaxNumberMessage.php index c3b6771..0dd4ffc 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/ClientError.php b/src/Model/ClientError.php index 0289020..18c957e 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class ClientError implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setMessage(?string $message): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ClientErrorResponse.php b/src/Model/ClientErrorResponse.php index fe9f276..36709a8 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class ClientErrorResponse implements ModelInterface, ArrayAccess, JsonSerializab protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setError(?\Cone\Billingo\Model\ClientError $error): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ConversationRate.php b/src/Model/ConversationRate.php index f462827..e82ae12 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.20.0 + * Generator version: 7.24.0 */ /** @@ -96,9 +96,7 @@ class ConversationRate implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -106,9 +104,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -146,10 +142,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -157,10 +150,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -205,10 +195,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -216,9 +203,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -226,9 +211,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -236,9 +219,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -285,9 +266,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -297,10 +276,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -418,7 +394,7 @@ public function setDate(?\DateTime $date): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -430,7 +406,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -443,7 +419,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -460,7 +436,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/CorrectionType.php b/src/Model/CorrectionType.php index 42b8e4c..b72a2a3 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Country.php b/src/Model/Country.php index 8da9302..e5c6f7d 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/CreateDocumentExport.php b/src/Model/CreateDocumentExport.php index 7f1a250..f17cb44 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.20.0 + * Generator version: 7.24.0 */ /** @@ -123,9 +123,7 @@ class CreateDocumentExport implements ModelInterface, ArrayAccess, JsonSerializa protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -133,9 +131,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -173,10 +169,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -184,10 +177,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -259,10 +249,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -270,9 +257,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -280,9 +265,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -290,9 +273,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -348,9 +329,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -372,10 +351,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -736,7 +712,7 @@ public function setFilterExtra(?\Cone\Billingo\Model\DocumentExportFilterExtra $ /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -748,7 +724,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -761,7 +737,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -778,7 +754,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Currency.php b/src/Model/Currency.php index cc2f21d..5051b3d 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DateType.php b/src/Model/DateType.php index 9189b5e..86283ab 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Discount.php b/src/Model/Discount.php index 713f88b..3b1cbae 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class Discount implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setValue(?int $value): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DiscountType.php b/src/Model/DiscountType.php index 2c4a9df..08561fe 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Document.php b/src/Model/Document.php index 4ab7f2c..1077a17 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.20.0 + * Generator version: 7.24.0 */ /** @@ -172,9 +172,7 @@ class Document implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -182,9 +180,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -222,10 +218,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -233,10 +226,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -356,10 +346,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -367,9 +354,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -377,9 +362,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -387,9 +370,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -461,9 +442,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -473,10 +452,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -1269,7 +1245,7 @@ public function setCorrectionType(?\Cone\Billingo\Model\CorrectionType $correcti /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -1281,7 +1257,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -1294,7 +1270,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -1311,7 +1287,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentAncestor.php b/src/Model/DocumentAncestor.php index 6c8dc7b..32b7687 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.20.0 + * Generator version: 7.24.0 */ /** @@ -91,9 +91,7 @@ class DocumentAncestor implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -101,9 +99,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -141,10 +137,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -152,10 +145,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -194,10 +184,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -205,9 +192,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -215,9 +200,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -225,9 +208,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -272,9 +253,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -284,10 +263,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -351,7 +327,7 @@ public function setInvoiceNumber(?string $invoiceNumber): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -363,7 +339,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -376,7 +352,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -393,7 +369,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentBankAccount.php b/src/Model/DocumentBankAccount.php index a2c4977..4552cae 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.20.0 + * Generator version: 7.24.0 */ /** @@ -99,9 +99,7 @@ class DocumentBankAccount implements ModelInterface, ArrayAccess, JsonSerializab protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -109,9 +107,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -149,10 +145,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -160,10 +153,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -211,10 +201,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -222,9 +209,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -232,9 +217,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -242,9 +225,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -292,9 +273,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -310,10 +289,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -465,7 +441,7 @@ public function setSwift(?string $swift): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -477,7 +453,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -490,7 +466,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -507,7 +483,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentBlock.php b/src/Model/DocumentBlock.php index 44528f6..1c154d9 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.20.0 + * Generator version: 7.24.0 */ /** @@ -102,9 +102,7 @@ class DocumentBlock implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -112,9 +110,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -152,10 +148,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -163,10 +156,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -217,10 +207,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -228,9 +215,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -238,9 +223,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -248,9 +231,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -299,9 +280,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -311,10 +290,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -486,7 +462,7 @@ public function setType(?\Cone\Billingo\Model\DocumentBlockType $type): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -498,7 +474,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -511,7 +487,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -528,7 +504,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentBlockList.php b/src/Model/DocumentBlockList.php index aa5a728..74b774a 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.20.0 + * Generator version: 7.24.0 */ /** @@ -106,9 +106,7 @@ class DocumentBlockList implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -116,9 +114,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -156,10 +152,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -167,10 +160,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -224,10 +214,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -235,9 +222,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -245,9 +230,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -255,9 +238,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -307,9 +288,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -319,10 +298,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -521,7 +497,7 @@ public function setNextPageUrl(?string $nextPageUrl): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -533,7 +509,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -546,7 +522,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -563,7 +539,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentBlockType.php b/src/Model/DocumentBlockType.php index a142033..ffed106 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentCancellation.php b/src/Model/DocumentCancellation.php index 068bb84..e94d8be 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class DocumentCancellation implements ModelInterface, ArrayAccess, JsonSerializa protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setCancellationRecipients(?string $cancellationRecipients): stat /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentExportFilterExtra.php b/src/Model/DocumentExportFilterExtra.php index 786be61..124315f 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.20.0 + * Generator version: 7.24.0 */ /** @@ -111,9 +111,7 @@ class DocumentExportFilterExtra implements ModelInterface, ArrayAccess, JsonSeri protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -121,9 +119,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -161,10 +157,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -172,10 +165,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -235,10 +225,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -246,9 +233,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -256,9 +241,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -266,9 +249,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -320,9 +301,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -332,10 +311,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -588,7 +564,7 @@ public function setUseGrossValues(?bool $useGrossValues): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -600,7 +576,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -613,7 +589,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -630,7 +606,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentExportId.php b/src/Model/DocumentExportId.php index c8451f4..382d69b 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class DocumentExportId implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setId(?string $id): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentExportOtherOptions.php b/src/Model/DocumentExportOtherOptions.php index 4a46dc6..443a9ff 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentExportQueryType.php b/src/Model/DocumentExportQueryType.php index 8b5722c..7803d51 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentExportSortBy.php b/src/Model/DocumentExportSortBy.php index b4e1c18..ef70572 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentExportStatus.php b/src/Model/DocumentExportStatus.php index be91f8d..89d31c6 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.20.0 + * Generator version: 7.24.0 */ /** @@ -93,9 +93,7 @@ class DocumentExportStatus implements ModelInterface, ArrayAccess, JsonSerializa protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -103,9 +101,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -143,10 +139,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -154,10 +147,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -199,10 +189,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -210,9 +197,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -220,9 +205,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -230,9 +213,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -278,9 +259,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -290,10 +269,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -384,7 +360,7 @@ public function setMessage(?string $message): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -396,7 +372,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -409,7 +385,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -426,7 +402,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentExportStatusState.php b/src/Model/DocumentExportStatusState.php index 9f1a1a8..71d96c2 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentExportType.php b/src/Model/DocumentExportType.php index c16d632..41e9f86 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentForm.php b/src/Model/DocumentForm.php index 17f56f5..c5e3ada 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentFormat.php b/src/Model/DocumentFormat.php index 3fa748c..6bccf1e 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentInsert.php b/src/Model/DocumentInsert.php index 3775834..c06906d 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.20.0 + * Generator version: 7.24.0 */ /** @@ -141,9 +141,7 @@ class DocumentInsert implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -151,9 +149,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -191,10 +187,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -202,10 +195,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -295,10 +285,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -306,9 +293,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -316,9 +301,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -326,9 +309,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -390,9 +371,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -426,10 +405,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -791,7 +767,7 @@ public function setPaid(?bool $paid): static /** * Gets items * - * @return \Cone\Billingo\Model\DocumentInsertItemsInner[]|null + * @return (\Cone\Billingo\Model\DocumentItemData|\Cone\Billingo\Model\DocumentProductData)[]|null */ public function getItems(): ?array { @@ -801,7 +777,7 @@ public function getItems(): ?array /** * Sets items * - * @param \Cone\Billingo\Model\DocumentInsertItemsInner[]|null $items items + * @param (\Cone\Billingo\Model\DocumentItemData|\Cone\Billingo\Model\DocumentProductData)[]|null $items items * * @return $this */ @@ -952,7 +928,7 @@ public function setInstantPayment(?bool $instantPayment): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -964,7 +940,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -977,7 +953,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -994,7 +970,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentInsertItemsInner.php b/src/Model/DocumentInsertItemsInner.php index b54f5e5..03e591b 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.20.0 + * Generator version: 7.24.0 */ /** @@ -28,671 +28,54 @@ namespace Cone\Billingo\Model; -use ArrayAccess; -use JsonSerializable; -use InvalidArgumentException; -use ReturnTypeWillChange; -use Cone\Billingo\ObjectSerializer; - /** * DocumentInsertItemsInner Class Doc Comment * * @author OpenAPI Generator team * @link https://openapi-generator.tech - * @implements ArrayAccess */ -class DocumentInsertItemsInner implements ModelInterface, ArrayAccess, JsonSerializable +class DocumentInsertItemsInner implements OneOfInterface { - public const DISCRIMINATOR = null; - /** * The original name of the model. * * @var string */ - protected static string $openAPIModelName = 'DocumentInsert_items_inner'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ - protected static array $openAPITypes = [ - 'productId' => 'int', - 'quantity' => 'float', - 'comment' => 'string', - 'name' => 'string', - 'unitPrice' => 'float', - 'unitPriceType' => '\Cone\Billingo\Model\UnitPriceType', - 'unit' => 'string', - 'vat' => '\Cone\Billingo\Model\Vat', - 'entitlement' => '\Cone\Billingo\Model\Entitlement', - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ - protected static array $openAPIFormats = [ - 'productId' => null, - 'quantity' => 'float', - 'comment' => null, - 'name' => null, - 'unitPrice' => 'float', - 'unitPriceType' => null, - 'unit' => null, - 'vat' => null, - 'entitlement' => null, - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ - protected static array $openAPINullables = [ - 'productId' => false, - 'quantity' => false, - 'comment' => false, - 'name' => false, - 'unitPrice' => false, - 'unitPriceType' => false, - 'unit' => false, - 'vat' => false, - 'entitlement' => false, - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes(): array - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats(): array - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return array - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param array $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var array - */ - protected static array $attributeMap = [ - 'productId' => 'product_id', - 'quantity' => 'quantity', - 'comment' => 'comment', - 'name' => 'name', - 'unitPrice' => 'unit_price', - 'unitPriceType' => 'unit_price_type', - 'unit' => 'unit', - 'vat' => 'vat', - 'entitlement' => 'entitlement', - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var array - */ - protected static array $setters = [ - 'productId' => 'setProductId', - 'quantity' => 'setQuantity', - 'comment' => 'setComment', - 'name' => 'setName', - 'unitPrice' => 'setUnitPrice', - 'unitPriceType' => 'setUnitPriceType', - 'unit' => 'setUnit', - 'vat' => 'setVat', - 'entitlement' => 'setEntitlement', - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var array - */ - protected static array $getters = [ - 'productId' => 'getProductId', - 'quantity' => 'getQuantity', - 'comment' => 'getComment', - 'name' => 'getName', - 'unitPrice' => 'getUnitPrice', - 'unitPriceType' => 'getUnitPriceType', - 'unit' => 'getUnit', - 'vat' => 'getVat', - 'entitlement' => 'getEntitlement', - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap(): array - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters(): array - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters(): array - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName(): string - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var array - */ - protected array $container = []; - - /** - * Constructor - * - * @param array $data Associated array of property values initializing the model - */ - public function __construct(?array $data = null) - { - $this->setIfExists('productId', $data ?? [], null); - $this->setIfExists('quantity', $data ?? [], null); - $this->setIfExists('comment', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('unitPrice', $data ?? [], null); - $this->setIfExists('unitPriceType', $data ?? [], null); - $this->setIfExists('unit', $data ?? [], null); - $this->setIfExists('vat', $data ?? [], null); - $this->setIfExists('entitlement', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons - */ - public function listInvalidProperties(): array - { - $invalidProperties = []; - - if ($this->container['productId'] === null) { - $invalidProperties[] = "'productId' can't be null"; - } - if ($this->container['quantity'] === null) { - $invalidProperties[] = "'quantity' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['unitPrice'] === null) { - $invalidProperties[] = "'unitPrice' can't be null"; - } - if ($this->container['unitPriceType'] === null) { - $invalidProperties[] = "'unitPriceType' can't be null"; - } - if ($this->container['unit'] === null) { - $invalidProperties[] = "'unit' can't be null"; - } - if ($this->container['vat'] === null) { - $invalidProperties[] = "'vat' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid(): bool - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets productId - * - * @return int - */ - public function getProductId(): int - { - return $this->container['productId']; - } - - /** - * Sets productId - * - * @param int $productId productId - * - * @return $this - */ - public function setProductId(int $productId): static - { - if (is_null($productId)) { - throw new InvalidArgumentException('non-nullable productId cannot be null'); - } - $this->container['productId'] = $productId; - - return $this; - } - - /** - * Gets quantity - * - * @return float - */ - public function getQuantity(): float - { - return $this->container['quantity']; - } - - /** - * Sets quantity - * - * @param float $quantity quantity - * - * @return $this - */ - public function setQuantity(float $quantity): static - { - if (is_null($quantity)) { - throw new InvalidArgumentException('non-nullable quantity cannot be null'); - } - $this->container['quantity'] = $quantity; - - return $this; - } - - /** - * Gets comment - * - * @return string|null - */ - public function getComment(): ?string - { - return $this->container['comment']; - } - - /** - * Sets comment - * - * @param string|null $comment comment - * - * @return $this - */ - public function setComment(?string $comment): static - { - if (is_null($comment)) { - throw new InvalidArgumentException('non-nullable comment cannot be null'); - } - $this->container['comment'] = $comment; - - return $this; - } + public const MODEL_NAME = 'DocumentInsert_items_inner'; /** - * Gets name + * The discriminator property name, or null when the schema has no discriminator. * - * @return string + * @var string|null */ - public function getName(): string - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name name - * - * @return $this - */ - public function setName(string $name): static - { - if (is_null($name)) { - throw new InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets unitPrice - * - * @return float - */ - public function getUnitPrice(): float - { - return $this->container['unitPrice']; - } - - /** - * Sets unitPrice - * - * @param float $unitPrice unitPrice - * - * @return $this - */ - public function setUnitPrice(float $unitPrice): static - { - if (is_null($unitPrice)) { - throw new InvalidArgumentException('non-nullable unitPrice cannot be null'); - } - $this->container['unitPrice'] = $unitPrice; - - return $this; - } - - /** - * Gets unitPriceType - * - * @return \Cone\Billingo\Model\UnitPriceType - */ - public function getUnitPriceType(): \Cone\Billingo\Model\UnitPriceType - { - return $this->container['unitPriceType']; - } - - /** - * Sets unitPriceType - * - * @param \Cone\Billingo\Model\UnitPriceType $unitPriceType unitPriceType - * - * @return $this - */ - public function setUnitPriceType(\Cone\Billingo\Model\UnitPriceType $unitPriceType): static - { - if (is_null($unitPriceType)) { - throw new InvalidArgumentException('non-nullable unitPriceType cannot be null'); - } - $this->container['unitPriceType'] = $unitPriceType; - - return $this; - } - - /** - * Gets unit - * - * @return string - */ - public function getUnit(): string - { - return $this->container['unit']; - } - - /** - * Sets unit - * - * @param string $unit unit - * - * @return $this - */ - public function setUnit(string $unit): static - { - if (is_null($unit)) { - throw new InvalidArgumentException('non-nullable unit cannot be null'); - } - $this->container['unit'] = $unit; - - return $this; - } - - /** - * Gets vat - * - * @return \Cone\Billingo\Model\Vat - */ - public function getVat(): \Cone\Billingo\Model\Vat - { - return $this->container['vat']; - } - - /** - * Sets vat - * - * @param \Cone\Billingo\Model\Vat $vat vat - * - * @return $this - */ - public function setVat(\Cone\Billingo\Model\Vat $vat): static - { - if (is_null($vat)) { - throw new InvalidArgumentException('non-nullable vat cannot be null'); - } - $this->container['vat'] = $vat; - - return $this; - } - - /** - * Gets entitlement - * - * @return \Cone\Billingo\Model\Entitlement|null - */ - public function getEntitlement(): ?\Cone\Billingo\Model\Entitlement - { - return $this->container['entitlement']; - } - - /** - * Sets entitlement - * - * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement - * - * @return $this - */ - public function setEntitlement(?\Cone\Billingo\Model\Entitlement $entitlement): static - { - if (is_null($entitlement)) { - throw new InvalidArgumentException('non-nullable entitlement cannot be null'); - } - $this->container['entitlement'] = $entitlement; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param int $offset Offset - * - * @return bool - */ - public function offsetExists(mixed $offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param int $offset Offset - * - * @return mixed|null - */ - #[ReturnTypeWillChange] - public function offsetGet(mixed $offset): mixed - { - return $this->container[$offset] ?? null; - } + public const DISCRIMINATOR = null; /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void + * {@inheritdoc} */ - public function offsetSet(mixed $offset, mixed $value): void + public static function getOneOfTypes(): array { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } + return [ + '\Cone\Billingo\Model\DocumentItemData', + '\Cone\Billingo\Model\DocumentProductData', + ]; } /** - * Unsets offset. - * - * @param int $offset Offset - * - * @return void + * {@inheritdoc} */ - public function offsetUnset(mixed $offset): void + public static function getOneOfDiscriminator(): ?string { - unset($this->container[$offset]); + return self::DISCRIMINATOR; } /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. + * {@inheritdoc} */ - #[ReturnTypeWillChange] - public function jsonSerialize(): mixed + public static function getOneOfDiscriminatorMappings(): array { - return ObjectSerializer::sanitizeForSerialization($this); - } + return [ - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString(): string - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue(): string - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + ]; } } diff --git a/src/Model/DocumentInsertType.php b/src/Model/DocumentInsertType.php index 4018a2e..085ae05 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentItem.php b/src/Model/DocumentItem.php index 55f818d..0931568 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.20.0 + * Generator version: 7.24.0 */ /** @@ -117,9 +117,7 @@ class DocumentItem implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -127,9 +125,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -167,10 +163,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -178,10 +171,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -247,10 +237,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -258,9 +245,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -268,9 +253,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -278,9 +261,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -334,9 +315,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -346,10 +325,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -663,7 +639,7 @@ public function setComment(?string $comment): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -675,7 +651,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -688,7 +664,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -705,7 +681,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentItemData.php b/src/Model/DocumentItemData.php index c7f7426..dc9cad0 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.20.0 + * Generator version: 7.24.0 */ /** @@ -93,9 +93,7 @@ class DocumentItemData implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -103,9 +101,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -143,10 +139,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -154,10 +147,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -199,10 +189,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -210,9 +197,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -220,9 +205,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -230,9 +213,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -278,9 +259,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -296,10 +275,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -390,7 +366,7 @@ public function setComment(?string $comment): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -402,7 +378,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -415,7 +391,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -432,7 +408,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentLanguage.php b/src/Model/DocumentLanguage.php index f60d005..ff6e90f 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentList.php b/src/Model/DocumentList.php index 97af011..e2c16c2 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.20.0 + * Generator version: 7.24.0 */ /** @@ -106,9 +106,7 @@ class DocumentList implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -116,9 +114,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -156,10 +152,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -167,10 +160,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -224,10 +214,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -235,9 +222,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -245,9 +230,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -255,9 +238,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -307,9 +288,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -319,10 +298,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -521,7 +497,7 @@ public function setNextPageUrl(?string $nextPageUrl): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -533,7 +509,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -546,7 +522,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -563,7 +539,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentNotificationStatus.php b/src/Model/DocumentNotificationStatus.php index bca37eb..6edd76e 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentOrganization.php b/src/Model/DocumentOrganization.php index 217787b..6c12a9d 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.20.0 + * Generator version: 7.24.0 */ /** @@ -108,9 +108,7 @@ class DocumentOrganization implements ModelInterface, ArrayAccess, JsonSerializa protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -118,9 +116,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -158,10 +154,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -169,10 +162,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -229,10 +219,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -240,9 +227,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -250,9 +235,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -260,9 +243,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -313,9 +294,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -325,10 +304,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -554,7 +530,7 @@ public function setCashSettled(?bool $cashSettled): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -566,7 +542,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -579,7 +555,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -596,7 +572,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentPartner.php b/src/Model/DocumentPartner.php index 8487f2c..81d536a 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.20.0 + * Generator version: 7.24.0 */ /** @@ -114,9 +114,7 @@ class DocumentPartner implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -124,9 +122,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -164,10 +160,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -175,10 +168,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -241,10 +231,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -252,9 +239,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -262,9 +247,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -272,9 +255,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -327,9 +308,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -339,10 +318,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -622,7 +598,7 @@ public function setTaxType(?\Cone\Billingo\Model\PartnerTaxType $taxType): stati /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -634,7 +610,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -647,7 +623,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -664,7 +640,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentProductData.php b/src/Model/DocumentProductData.php index 180a59a..3cd3add 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.20.0 + * Generator version: 7.24.0 */ /** @@ -108,9 +108,7 @@ class DocumentProductData implements ModelInterface, ArrayAccess, JsonSerializab protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -118,9 +116,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -158,10 +154,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -169,10 +162,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -229,10 +219,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -240,9 +227,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -250,9 +235,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -260,9 +243,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -313,9 +294,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -343,10 +322,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -572,7 +548,7 @@ public function setEntitlement(?\Cone\Billingo\Model\Entitlement $entitlement): /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -584,7 +560,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -597,7 +573,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -614,7 +590,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentPublicUrl.php b/src/Model/DocumentPublicUrl.php index 8de6f10..9d4d244 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class DocumentPublicUrl implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setPublicUrl(?string $publicUrl): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentSettings.php b/src/Model/DocumentSettings.php index 991a2e7..ec694fb 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.20.0 + * Generator version: 7.24.0 */ /** @@ -111,9 +111,7 @@ class DocumentSettings implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -121,9 +119,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -161,10 +157,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -172,10 +165,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -235,10 +225,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -246,9 +233,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -256,9 +241,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -266,9 +249,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -320,9 +301,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -332,10 +311,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -595,7 +571,7 @@ public function setSelectedType(?\Cone\Billingo\Model\DocumentType $selectedType /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -607,7 +583,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -620,7 +596,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -637,7 +613,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentSummary.php b/src/Model/DocumentSummary.php index e31f006..c2504f7 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.20.0 + * Generator version: 7.24.0 */ /** @@ -102,9 +102,7 @@ class DocumentSummary implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -112,9 +110,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -152,10 +148,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -163,10 +156,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -217,10 +207,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -228,9 +215,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -238,9 +223,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -248,9 +231,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -299,9 +280,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -311,10 +290,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -486,7 +462,7 @@ public function setVatRateSummary(?array $vatRateSummary): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -498,7 +474,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -511,7 +487,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -528,7 +504,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/DocumentType.php b/src/Model/DocumentType.php index c5c3928..4cc5242 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/DocumentVatRateSummary.php b/src/Model/DocumentVatRateSummary.php index f2389f8..fa6bd1c 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.20.0 + * Generator version: 7.24.0 */ /** @@ -102,9 +102,7 @@ class DocumentVatRateSummary implements ModelInterface, ArrayAccess, JsonSeriali protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -112,9 +110,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -152,10 +148,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -163,10 +156,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -217,10 +207,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -228,9 +215,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -238,9 +223,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -248,9 +231,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -299,9 +280,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -311,10 +290,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -486,7 +462,7 @@ public function setVatRateGrossAmount(?float $vatRateGrossAmount): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -498,7 +474,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -511,7 +487,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -528,7 +504,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Entitlement.php b/src/Model/Entitlement.php index 3a0d2e8..db32c84 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Feature.php b/src/Model/Feature.php index 6ebc6d6..df26e03 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Id.php b/src/Model/Id.php index 4efe1d4..7e7758f 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class Id implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setLegacyId(?int $legacyId): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/InvoiceSettings.php b/src/Model/InvoiceSettings.php index 1848660..b284621 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.20.0 + * Generator version: 7.24.0 */ /** @@ -99,9 +99,7 @@ class InvoiceSettings implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -109,9 +107,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -149,10 +145,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -160,10 +153,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -211,10 +201,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -222,9 +209,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -232,9 +217,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -242,9 +225,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -292,9 +273,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -304,10 +283,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -452,7 +428,7 @@ public function setComment(?string $comment): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -464,7 +440,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -477,7 +453,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -494,7 +470,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/LedgerNumberInformation.php b/src/Model/LedgerNumberInformation.php index 152bd49..6bad755 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.20.0 + * Generator version: 7.24.0 */ /** @@ -96,9 +96,7 @@ class LedgerNumberInformation implements ModelInterface, ArrayAccess, JsonSerial protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -106,9 +104,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -146,10 +142,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -157,10 +150,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -205,10 +195,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -216,9 +203,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -226,9 +211,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -236,9 +219,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -285,9 +266,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -297,10 +276,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -418,7 +394,7 @@ public function setAfa(?string $afa): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -430,7 +406,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -443,7 +419,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -460,7 +436,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index 1cc170a..0fae8a8 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.20.0 + * Generator version: 7.24.0 */ /** @@ -45,42 +45,43 @@ public function getModelName(): string; /** * Array of property to type mappings. Used for (de)serialization * - * @return array + * @return array */ public static function openAPITypes(): array; /** * Array of property to format mappings. Used for (de)serialization * - * @return array + * @return array */ public static function openAPIFormats(): array; /** - * Array of attributes where the key is the local name, and the value is the original name + * Array of attributes where the key is the local name, + * and the value is the original name * - * @return array + * @return array */ public static function attributeMap(): array; /** * Array of attributes to setter functions (for deserialization of responses) * - * @return array + * @return array */ public static function setters(): array; /** * Array of attributes to getter functions (for serialization of requests) * - * @return array + * @return array */ public static function getters(): array; /** * Show all the invalid properties with reasons. * - * @return array + * @return string[] invalid properties with reasons */ public function listInvalidProperties(): array; @@ -88,7 +89,7 @@ public function listInvalidProperties(): array; * Validate all the properties in the model * return true if all passed * - * @return bool + * @return bool True if all properties are valid */ public function valid(): bool; diff --git a/src/Model/ModificationDocumentInsert.php b/src/Model/ModificationDocumentInsert.php index 7e92c59..8a043fe 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.20.0 + * Generator version: 7.24.0 */ /** @@ -99,9 +99,7 @@ class ModificationDocumentInsert implements ModelInterface, ArrayAccess, JsonSer protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -109,9 +107,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -149,10 +145,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -160,10 +153,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -211,10 +201,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -222,9 +209,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -232,9 +217,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -242,9 +225,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -292,9 +273,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -304,10 +283,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -426,7 +402,7 @@ public function setWithoutFinancialFulfillment(?bool $withoutFinancialFulfillmen /** * Gets items * - * @return \Cone\Billingo\Model\DocumentInsertItemsInner[]|null + * @return (\Cone\Billingo\Model\DocumentItemData|\Cone\Billingo\Model\DocumentProductData)[]|null */ public function getItems(): ?array { @@ -436,7 +412,7 @@ public function getItems(): ?array /** * Sets items * - * @param \Cone\Billingo\Model\DocumentInsertItemsInner[]|null $items items + * @param (\Cone\Billingo\Model\DocumentItemData|\Cone\Billingo\Model\DocumentProductData)[]|null $items items * * @return $this */ @@ -452,7 +428,7 @@ public function setItems(?array $items): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -464,7 +440,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -477,7 +453,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -494,7 +470,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/OneOfInterface.php b/src/Model/OneOfInterface.php new file mode 100644 index 0000000..a3ae244 --- /dev/null +++ b/src/Model/OneOfInterface.php @@ -0,0 +1,65 @@ + + */ + public static function getOneOfDiscriminatorMappings(): array; +} diff --git a/src/Model/OnlinePayment.php b/src/Model/OnlinePayment.php index 0d7d789..b118945 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/OnlineSzamlaStatus.php b/src/Model/OnlineSzamlaStatus.php index 7e18d57..a7e03b0 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.20.0 + * Generator version: 7.24.0 */ /** @@ -93,9 +93,7 @@ class OnlineSzamlaStatus implements ModelInterface, ArrayAccess, JsonSerializabl protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -103,9 +101,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -143,10 +139,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -154,10 +147,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -199,10 +189,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -210,9 +197,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -220,9 +205,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -230,9 +213,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -278,9 +259,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -290,10 +269,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -384,7 +360,7 @@ public function setMessages(?array $messages): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -396,7 +372,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -409,7 +385,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -426,7 +402,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/OnlineSzamlaStatusEnum.php b/src/Model/OnlineSzamlaStatusEnum.php index f752ce3..d2fa8d1 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/OnlineSzamlaStatusMessage.php b/src/Model/OnlineSzamlaStatusMessage.php index c53f18c..691ce00 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.20.0 + * Generator version: 7.24.0 */ /** @@ -93,9 +93,7 @@ class OnlineSzamlaStatusMessage implements ModelInterface, ArrayAccess, JsonSeri protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -103,9 +101,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -143,10 +139,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -154,10 +147,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -199,10 +189,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -210,9 +197,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -220,9 +205,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -230,9 +213,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -278,9 +259,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -290,10 +269,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -384,7 +360,7 @@ public function setHumanReadableMessage(?string $humanReadableMessage): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -396,7 +372,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -409,7 +385,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -426,7 +402,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/OrganizationData.php b/src/Model/OrganizationData.php index 0eedd82..ef9f615 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class OrganizationData implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setSubscription(?\Cone\Billingo\Model\Subscription $subscription /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Partner.php b/src/Model/Partner.php index 3a5a514..160cac3 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.20.0 + * Generator version: 7.24.0 */ /** @@ -123,9 +123,7 @@ class Partner implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -133,9 +131,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -173,10 +169,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -184,10 +177,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -259,10 +249,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -270,9 +257,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -280,9 +265,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -290,9 +273,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -348,9 +329,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -360,10 +339,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -724,7 +700,7 @@ public function setGroupMemberTaxNumber(?string $groupMemberTaxNumber): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -736,7 +712,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -749,7 +725,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -766,7 +742,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/PartnerCustomBillingSettings.php b/src/Model/PartnerCustomBillingSettings.php index 84be0cd..da91c4b 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.20.0 + * Generator version: 7.24.0 */ /** @@ -102,9 +102,7 @@ class PartnerCustomBillingSettings implements ModelInterface, ArrayAccess, JsonS protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -112,9 +110,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -152,10 +148,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -163,10 +156,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -217,10 +207,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -228,9 +215,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -238,9 +223,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -248,9 +231,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -299,9 +280,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -311,10 +290,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -486,7 +462,7 @@ public function setDiscount(?\Cone\Billingo\Model\Discount $discount): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -498,7 +474,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -511,7 +487,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -528,7 +504,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/PartnerList.php b/src/Model/PartnerList.php index 94fa01b..c192400 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.20.0 + * Generator version: 7.24.0 */ /** @@ -106,9 +106,7 @@ class PartnerList implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -116,9 +114,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -156,10 +152,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -167,10 +160,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -224,10 +214,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -235,9 +222,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -245,9 +230,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -255,9 +238,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -307,9 +288,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -319,10 +298,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -521,7 +497,7 @@ public function setNextPageUrl(?string $nextPageUrl): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -533,7 +509,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -546,7 +522,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -563,7 +539,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/PartnerTaxType.php b/src/Model/PartnerTaxType.php index bbf58c9..65512e0 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/PaymentHistory.php b/src/Model/PaymentHistory.php index e25fc0e..a598292 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.20.0 + * Generator version: 7.24.0 */ /** @@ -99,9 +99,7 @@ class PaymentHistory implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -109,9 +107,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -149,10 +145,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -160,10 +153,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -211,10 +201,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -222,9 +209,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -232,9 +217,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -242,9 +225,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -292,9 +273,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -313,10 +292,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -475,7 +451,7 @@ public function setConversionRate(?float $conversionRate): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -487,7 +463,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -500,7 +476,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -517,7 +493,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/PaymentMethod.php b/src/Model/PaymentMethod.php index d6bc3a5..25b6097 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/PaymentStatus.php b/src/Model/PaymentStatus.php index 4aa08ce..f3abb73 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/PaymentStatusSpending.php b/src/Model/PaymentStatusSpending.php index a061b73..36a0bb2 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Product.php b/src/Model/Product.php index ec73cbc..d1677cc 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.20.0 + * Generator version: 7.24.0 */ /** @@ -114,9 +114,7 @@ class Product implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -124,9 +122,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -164,10 +160,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -175,10 +168,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -241,10 +231,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -252,9 +239,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -262,9 +247,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -272,9 +255,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -327,9 +308,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -351,10 +330,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -634,7 +610,7 @@ public function setEntitlement(?\Cone\Billingo\Model\Entitlement $entitlement): /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -646,7 +622,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -659,7 +635,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -676,7 +652,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ProductList.php b/src/Model/ProductList.php index 04082c5..17fef61 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.20.0 + * Generator version: 7.24.0 */ /** @@ -106,9 +106,7 @@ class ProductList implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -116,9 +114,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -156,10 +152,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -167,10 +160,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -224,10 +214,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -235,9 +222,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -245,9 +230,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -255,9 +238,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -307,9 +288,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -319,10 +298,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -521,7 +497,7 @@ public function setNextPageUrl(?string $nextPageUrl): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -533,7 +509,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -546,7 +522,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -563,7 +539,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ReceiptInsert.php b/src/Model/ReceiptInsert.php index 9e986e5..e6aed44 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.20.0 + * Generator version: 7.24.0 */ /** @@ -117,9 +117,7 @@ class ReceiptInsert implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -127,9 +125,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -167,10 +163,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -178,10 +171,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -247,10 +237,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -258,9 +245,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -268,9 +253,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -278,9 +261,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -334,9 +315,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -358,10 +337,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -642,7 +618,7 @@ public function setElectronic(?bool $electronic): static /** * Gets items * - * @return \Cone\Billingo\Model\ReceiptInsertItemsInner[]|null + * @return (\Cone\Billingo\Model\ReceiptItemData|\Cone\Billingo\Model\ReceiptProductData)[]|null */ public function getItems(): ?array { @@ -652,7 +628,7 @@ public function getItems(): ?array /** * Sets items * - * @param \Cone\Billingo\Model\ReceiptInsertItemsInner[]|null $items items + * @param (\Cone\Billingo\Model\ReceiptItemData|\Cone\Billingo\Model\ReceiptProductData)[]|null $items items * * @return $this */ @@ -668,7 +644,7 @@ public function setItems(?array $items): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -680,7 +656,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -693,7 +669,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -710,7 +686,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ReceiptInsertItemsInner.php b/src/Model/ReceiptInsertItemsInner.php index 3def3f1..60364b7 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.20.0 + * Generator version: 7.24.0 */ /** @@ -28,489 +28,54 @@ namespace Cone\Billingo\Model; -use ArrayAccess; -use JsonSerializable; -use InvalidArgumentException; -use ReturnTypeWillChange; -use Cone\Billingo\ObjectSerializer; - /** * ReceiptInsertItemsInner Class Doc Comment * * @author OpenAPI Generator team * @link https://openapi-generator.tech - * @implements ArrayAccess */ -class ReceiptInsertItemsInner implements ModelInterface, ArrayAccess, JsonSerializable +class ReceiptInsertItemsInner implements OneOfInterface { - public const DISCRIMINATOR = null; - /** * The original name of the model. * * @var string */ - protected static string $openAPIModelName = 'ReceiptInsert_items_inner'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ - protected static array $openAPITypes = [ - 'productId' => 'int', - 'name' => 'string', - 'unitPrice' => 'float', - 'vat' => '\Cone\Billingo\Model\Vat', - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ - protected static array $openAPIFormats = [ - 'productId' => null, - 'name' => null, - 'unitPrice' => 'float', - 'vat' => null, - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ - protected static array $openAPINullables = [ - 'productId' => false, - 'name' => false, - 'unitPrice' => false, - 'vat' => false, - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes(): array - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats(): array - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return array - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param array $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var array - */ - protected static array $attributeMap = [ - 'productId' => 'product_id', - 'name' => 'name', - 'unitPrice' => 'unit_price', - 'vat' => 'vat', - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var array - */ - protected static array $setters = [ - 'productId' => 'setProductId', - 'name' => 'setName', - 'unitPrice' => 'setUnitPrice', - 'vat' => 'setVat', - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var array - */ - protected static array $getters = [ - 'productId' => 'getProductId', - 'name' => 'getName', - 'unitPrice' => 'getUnitPrice', - 'vat' => 'getVat', - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap(): array - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters(): array - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters(): array - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName(): string - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var array - */ - protected array $container = []; - - /** - * Constructor - * - * @param array $data Associated array of property values initializing the model - */ - public function __construct(?array $data = null) - { - $this->setIfExists('productId', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('unitPrice', $data ?? [], null); - $this->setIfExists('vat', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons - */ - public function listInvalidProperties(): array - { - $invalidProperties = []; - - if ($this->container['productId'] === null) { - $invalidProperties[] = "'productId' can't be null"; - } - if ($this->container['unitPrice'] === null) { - $invalidProperties[] = "'unitPrice' can't be null"; - } - if ($this->container['vat'] === null) { - $invalidProperties[] = "'vat' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid(): bool - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets productId - * - * @return int - */ - public function getProductId(): int - { - return $this->container['productId']; - } - - /** - * Sets productId - * - * @param int $productId productId - * - * @return $this - */ - public function setProductId(int $productId): static - { - if (is_null($productId)) { - throw new InvalidArgumentException('non-nullable productId cannot be null'); - } - $this->container['productId'] = $productId; - - return $this; - } - - /** - * Gets name - * - * @return string|null - */ - public function getName(): ?string - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName(?string $name): static - { - if (is_null($name)) { - throw new InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets unitPrice - * - * @return float - */ - public function getUnitPrice(): float - { - return $this->container['unitPrice']; - } - - /** - * Sets unitPrice - * - * @param float $unitPrice unitPrice - * - * @return $this - */ - public function setUnitPrice(float $unitPrice): static - { - if (is_null($unitPrice)) { - throw new InvalidArgumentException('non-nullable unitPrice cannot be null'); - } - $this->container['unitPrice'] = $unitPrice; - - return $this; - } + public const MODEL_NAME = 'ReceiptInsert_items_inner'; /** - * Gets vat - * - * @return \Cone\Billingo\Model\Vat - */ - public function getVat(): \Cone\Billingo\Model\Vat - { - return $this->container['vat']; - } - - /** - * Sets vat - * - * @param \Cone\Billingo\Model\Vat $vat vat - * - * @return $this - */ - public function setVat(\Cone\Billingo\Model\Vat $vat): static - { - if (is_null($vat)) { - throw new InvalidArgumentException('non-nullable vat cannot be null'); - } - $this->container['vat'] = $vat; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param int $offset Offset + * The discriminator property name, or null when the schema has no discriminator. * - * @return bool + * @var string|null */ - public function offsetExists(mixed $offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param int $offset Offset - * - * @return mixed|null - */ - #[ReturnTypeWillChange] - public function offsetGet(mixed $offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet(mixed $offset, mixed $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } + public const DISCRIMINATOR = null; /** - * Unsets offset. - * - * @param int $offset Offset - * - * @return void + * {@inheritdoc} */ - public function offsetUnset(mixed $offset): void + public static function getOneOfTypes(): array { - unset($this->container[$offset]); + return [ + '\Cone\Billingo\Model\ReceiptItemData', + '\Cone\Billingo\Model\ReceiptProductData', + ]; } /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. + * {@inheritdoc} */ - #[ReturnTypeWillChange] - public function jsonSerialize(): mixed + public static function getOneOfDiscriminator(): ?string { - return ObjectSerializer::sanitizeForSerialization($this); + return self::DISCRIMINATOR; } /** - * Gets the string presentation of the object - * - * @return string + * {@inheritdoc} */ - public function __toString(): string + public static function getOneOfDiscriminatorMappings(): array { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } + return [ - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue(): string - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + ]; } } diff --git a/src/Model/ReceiptItemData.php b/src/Model/ReceiptItemData.php index 6fee616..374cbc7 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class ReceiptItemData implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -279,10 +258,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -319,7 +295,7 @@ public function setProductId(int $productId): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -331,7 +307,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -344,7 +320,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -361,7 +337,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ReceiptProductData.php b/src/Model/ReceiptProductData.php index 22d6998..5519629 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.20.0 + * Generator version: 7.24.0 */ /** @@ -93,9 +93,7 @@ class ReceiptProductData implements ModelInterface, ArrayAccess, JsonSerializabl protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -103,9 +101,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -143,10 +139,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -154,10 +147,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -199,10 +189,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -210,9 +197,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -220,9 +205,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -230,9 +213,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -278,9 +259,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -296,10 +275,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -390,7 +366,7 @@ public function setVat(\Cone\Billingo\Model\Vat $vat): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -402,7 +378,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -415,7 +391,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -432,7 +408,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Round.php b/src/Model/Round.php index 46d1618..8a9c51e 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/SendDocument.php b/src/Model/SendDocument.php index ee2a0f0..0ecead3 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class SendDocument implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setEmails(?array $emails): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ServerError.php b/src/Model/ServerError.php index dfe5b9e..081ff08 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class ServerError implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setTraceId(?string $traceId): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ServerErrorResponse.php b/src/Model/ServerErrorResponse.php index a78c098..58ab854 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class ServerErrorResponse implements ModelInterface, ArrayAccess, JsonSerializab protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setError(?\Cone\Billingo\Model\ServerError $error): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ServerTime.php b/src/Model/ServerTime.php index 8df1885..3a358f3 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.20.0 + * Generator version: 7.24.0 */ /** @@ -96,9 +96,7 @@ class ServerTime implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -106,9 +104,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -146,10 +142,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -157,10 +150,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -205,10 +195,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -216,9 +203,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -226,9 +211,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -236,9 +219,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -285,9 +266,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -297,10 +276,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -418,7 +394,7 @@ public function setTimezone(?string $timezone): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -430,7 +406,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -443,7 +419,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -460,7 +436,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Source.php b/src/Model/Source.php index be33ede..84bcf62 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/Spending.php b/src/Model/Spending.php index fb6a12c..a5f40ce 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.20.0 + * Generator version: 7.24.0 */ /** @@ -135,9 +135,7 @@ class Spending implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -145,9 +143,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -185,10 +181,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -196,10 +189,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -283,10 +273,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -294,9 +281,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -304,9 +289,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -314,9 +297,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -376,9 +357,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -388,10 +367,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -874,7 +850,7 @@ public function setComment(?string $comment): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -886,7 +862,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -899,7 +875,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -916,7 +892,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/SpendingList.php b/src/Model/SpendingList.php index 51c1463..d37fd4c 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.20.0 + * Generator version: 7.24.0 */ /** @@ -106,9 +106,7 @@ class SpendingList implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -116,9 +114,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -156,10 +152,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -167,10 +160,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -224,10 +214,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -235,9 +222,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -245,9 +230,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -255,9 +238,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -307,9 +288,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -319,10 +298,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -521,7 +497,7 @@ public function setNextPageUrl(?string $nextPageUrl): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -533,7 +509,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -546,7 +522,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -563,7 +539,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/SpendingListItem.php b/src/Model/SpendingListItem.php index 26f464d..632a51d 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.20.0 + * Generator version: 7.24.0 */ /** @@ -138,9 +138,7 @@ class SpendingListItem implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -148,9 +146,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -188,10 +184,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -199,10 +192,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -289,10 +279,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -300,9 +287,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -310,9 +295,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -320,9 +303,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -383,9 +364,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -395,10 +374,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -908,7 +884,7 @@ public function setIsCreatedByNav(?bool $isCreatedByNav): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -920,7 +896,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -933,7 +909,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -950,7 +926,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/SpendingPartner.php b/src/Model/SpendingPartner.php index e0e6d80..ca4d372 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.20.0 + * Generator version: 7.24.0 */ /** @@ -114,9 +114,7 @@ class SpendingPartner implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -124,9 +122,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -164,10 +160,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -175,10 +168,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -241,10 +231,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -252,9 +239,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -262,9 +247,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -272,9 +255,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -327,9 +308,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -339,10 +318,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -622,7 +598,7 @@ public function setGroupMemberTaxNumber(?string $groupMemberTaxNumber): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -634,7 +610,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -647,7 +623,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -664,7 +640,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/SpendingPaymentMethod.php b/src/Model/SpendingPaymentMethod.php index 9a8756e..4a36ecd 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/SpendingSave.php b/src/Model/SpendingSave.php index 15b5bfa..b34acd5 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.20.0 + * Generator version: 7.24.0 */ /** @@ -129,9 +129,7 @@ class SpendingSave implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -139,9 +137,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -179,10 +175,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -190,10 +183,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -271,10 +261,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -282,9 +269,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -292,9 +277,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -302,9 +285,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -362,9 +343,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -398,10 +377,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -816,7 +792,7 @@ public function setPartnerId(?int $partnerId): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -828,7 +804,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -841,7 +817,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -858,7 +834,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index 38cb0a6..3d840e9 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class Subscription implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setFeatures(?array $features): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/SubscriptionErrorResponse.php b/src/Model/SubscriptionErrorResponse.php index ad39763..4b00df6 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class SubscriptionErrorResponse implements ModelInterface, ArrayAccess, JsonSeri protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setError(?\Cone\Billingo\Model\ClientError $error): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/TaxNumber.php b/src/Model/TaxNumber.php index 871e42f..a41eff0 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class TaxNumber implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setResult(?\Cone\Billingo\Model\CheckTaxNumberMessage $result): /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/TooManyRequestsResponse.php b/src/Model/TooManyRequestsResponse.php index 7a4e527..11493b7 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.20.0 + * Generator version: 7.24.0 */ /** @@ -87,9 +87,7 @@ class TooManyRequestsResponse implements ModelInterface, ArrayAccess, JsonSerial protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -97,9 +95,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -137,10 +133,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -148,10 +141,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -187,10 +177,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -198,9 +185,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -208,9 +193,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -218,9 +201,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -264,9 +245,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -276,10 +255,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -316,7 +292,7 @@ public function setError(?\Cone\Billingo\Model\ClientError $error): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -328,7 +304,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -341,7 +317,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -358,7 +334,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/UnitPriceType.php b/src/Model/UnitPriceType.php index e4037a6..70d2036 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/Model/ValidationError.php b/src/Model/ValidationError.php index b37a5d5..3d34e12 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class ValidationError implements ModelInterface, ArrayAccess, JsonSerializable protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setMessage(?string $message): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/ValidationErrorResponse.php b/src/Model/ValidationErrorResponse.php index cde0172..04a1217 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.20.0 + * Generator version: 7.24.0 */ /** @@ -90,9 +90,7 @@ class ValidationErrorResponse implements ModelInterface, ArrayAccess, JsonSerial protected array $openAPINullablesSetToNull = []; /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPITypes(): array { @@ -100,9 +98,7 @@ public static function openAPITypes(): array } /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array + * {@inheritdoc} */ public static function openAPIFormats(): array { @@ -140,10 +136,7 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): } /** - * Checks if a property is nullable - * - * @param string $property - * @return bool + * {@inheritdoc} */ public static function isNullable(string $property): bool { @@ -151,10 +144,7 @@ public static function isNullable(string $property): bool } /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool + * {@inheritdoc} */ public function isNullableSetToNull(string $property): bool { @@ -193,10 +183,7 @@ public function isNullableSetToNull(string $property): bool ]; /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array + * {@inheritdoc} */ public static function attributeMap(): array { @@ -204,9 +191,7 @@ public static function attributeMap(): array } /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array + * {@inheritdoc} */ public static function setters(): array { @@ -214,9 +199,7 @@ public static function setters(): array } /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array + * {@inheritdoc} */ public static function getters(): array { @@ -224,9 +207,7 @@ public static function getters(): array } /** - * The original name of the model. - * - * @return string + * {@inheritdoc} */ public function getModelName(): string { @@ -271,9 +252,7 @@ private function setIfExists(string $variableName, array $fields, mixed $default } /** - * Show all the invalid properties with reasons. - * - * @return string[] invalid properties with reasons + * {@inheritdoc} */ public function listInvalidProperties(): array { @@ -283,10 +262,7 @@ public function listInvalidProperties(): array } /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid + * {@inheritdoc} */ public function valid(): bool { @@ -350,7 +326,7 @@ public function setErrors(?array $errors): static /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return bool */ @@ -362,7 +338,7 @@ public function offsetExists(mixed $offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return mixed|null */ @@ -375,7 +351,7 @@ public function offsetGet(mixed $offset): mixed /** * Sets value based on offset. * - * @param int|null $offset Offset + * @param int|string|null $offset Offset * @param mixed $value Value to be set * * @return void @@ -392,7 +368,7 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int|string $offset Offset * * @return void */ diff --git a/src/Model/Vat.php b/src/Model/Vat.php index 58e37cf..b9ac67e 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.20.0 + * Generator version: 7.24.0 */ /** diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index c4266c8..d2faa9a 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.20.0 + * Generator version: 7.24.0 */ /** @@ -120,7 +120,7 @@ public static function sanitizeForSerialization(mixed $data, ?string $type = nul $values[$property] = self::sanitizeForSerialization($value); } } - return (object)$values; + return (object) $values; } else { return (string)$data; } @@ -241,7 +241,7 @@ public static function toQueryValue( } // Handle DateTime objects in query - if ($openApiType === "\DateTime" && $value instanceof DateTime) { + if ($openApiType === "string" && $value instanceof DateTime) { return ["{$paramName}" => $value->format(self::$dateTimeFormat)]; } @@ -501,7 +501,12 @@ public static function deserialize(mixed $data, string $class, ?array $httpHeade $data = is_string($data) ? json_decode($data) : $data; if (is_array($data)) { - $data = (object)$data; + $data = (object) $data; + } + + // A oneOf schema is not a value object: resolve the data to one of its member types. + if (is_subclass_of($class, '\Cone\Billingo\Model\OneOfInterface')) { + return self::deserializeOneOf($data, $class, $httpHeaders); } // If a discriminator is defined and points to a valid subclass, use it. @@ -539,6 +544,49 @@ public static function deserialize(mixed $data, string $class, ?array $httpHeade } } + /** + * Deserialize data into one of the member types of a `oneOf` schema. + * + * When the schema declares a discriminator, its value selects the member type directly. + * Otherwise each member type is tried in turn and the first one that yields a valid model + * (or a non-null primitive) is returned. + * + * @param mixed $data the data already decoded to an object + * @param string $class a class name implementing OneOfInterface + * @param string[]|null $httpHeaders HTTP headers + * + * @return mixed an instance of one of the `oneOf` member types + */ + private static function deserializeOneOf(mixed $data, string $class, ?array $httpHeaders): mixed + { + $discriminator = $class::getOneOfDiscriminator(); + if ($discriminator !== null && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { + $mappings = $class::getOneOfDiscriminatorMappings(); + if (isset($mappings[$data->{$discriminator}])) { + return self::deserialize($data, $mappings[$data->{$discriminator}], $httpHeaders); + } + } + + foreach ($class::getOneOfTypes() as $type) { + try { + $instance = self::deserialize($data, $type, $httpHeaders); + } catch (\Throwable $e) { + // The data does not match this member type, try the next one. + continue; + } + + if ($instance instanceof ModelInterface) { + if ($instance->valid()) { + return $instance; + } + } elseif ($instance !== null) { + return $instance; + } + } + + throw new \InvalidArgumentException(sprintf('No matching schema in oneOf %s for the given data', $class)); + } + /** * Build a query string from an array of key value pairs. *