From 6250bdb7c5f1d25decba4390b5af93b2e1c3cc95 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Mar 2023 16:22:11 +0100 Subject: [PATCH] Release 2.1.7 --- README.md | 4 +- changelog.txt | 14 + docs/en/documentation.html | 6 +- ...financecheckout-admin-order-completion.php | 19 +- ...ostfinancecheckout-admin-settings-page.php | 2 +- .../class-wc-postfinancecheckout-gateway.php | 1 + ...class-wc-postfinancecheckout-migration.php | 4 +- ...ostfinancecheckout-service-transaction.php | 37 +- ...heckout-webhook-transaction-completion.php | 4 +- languages/woo-postfinancecheckout-de_DE.mo | Bin 15593 -> 15485 bytes languages/woo-postfinancecheckout-de_DE.po | 18 +- languages/woo-postfinancecheckout.pot | 18 +- postfinancecheckout-sdk/.travis.yml | 3 +- postfinancecheckout-sdk/LICENSE | 2 +- postfinancecheckout-sdk/README.md | 3 + postfinancecheckout-sdk/composer.json | 4 +- postfinancecheckout-sdk/lib/ApiClient.php | 115 +- postfinancecheckout-sdk/lib/Configuration.php | 6 +- .../lib/Http/CurlHttpClient.php | 4 +- .../lib/Http/HttpRequest.php | 19 +- .../lib/Http/SocketHttpClient.php | 2 +- .../lib/Model/AbstractAccountUpdate.php | 6 +- .../Model/AbstractApplicationUserUpdate.php | 6 +- .../lib/Model/AbstractCustomerActive.php | 6 +- .../Model/AbstractCustomerAddressActive.php | 4 + .../Model/AbstractCustomerCommentActive.php | 4 + .../lib/Model/AbstractHumanUserUpdate.php | 6 +- .../lib/Model/AbstractPaymentLinkUpdate.php | 4 + .../lib/Model/AbstractRefundCommentActive.php | 4 + ...stractShopifySubscriptionProductUpdate.php | 4 + .../lib/Model/AbstractSpaceUpdate.php | 8 +- .../lib/Model/AbstractTokenUpdate.php | 6 +- .../AbstractTransactionCommentActive.php | 4 + ...bstractTransactionInvoiceCommentActive.php | 4 + .../lib/Model/AbstractTransactionPending.php | 14 +- .../Model/AbstractWebhookListenerUpdate.php | 6 +- .../lib/Model/AbstractWebhookUrlUpdate.php | 6 +- postfinancecheckout-sdk/lib/Model/Account.php | 14 +- .../lib/Model/AccountCreate.php | 4 + .../lib/Model/AccountUpdate.php | 4 + postfinancecheckout-sdk/lib/Model/Address.php | 4 + .../lib/Model/AddressCreate.php | 4 + .../lib/Model/AnalyticsQuery.php | 480 +++++++ .../lib/Model/AnalyticsQueryExecution.php | 622 ++++++++ .../Model/AnalyticsQueryExecutionState.php | 58 + .../lib/Model/AnalyticsQueryResultBatch.php | 398 ++++++ .../lib/Model/AnalyticsSchemaColumn.php | 526 +++++++ .../lib/Model/AnalyticsSchemaTable.php | 366 +++++ .../lib/Model/ApplicationUser.php | 4 + .../lib/Model/ApplicationUserCreate.php | 4 + .../Model/ApplicationUserCreateWithMacKey.php | 4 + .../lib/Model/ApplicationUserUpdate.php | 4 + .../lib/Model/BankAccount.php | 14 +- .../lib/Model/BankAccountType.php | 10 +- .../lib/Model/BankTransaction.php | 16 +- .../lib/Model/BankTransactionSource.php | 10 +- .../lib/Model/BankTransactionType.php | 10 +- postfinancecheckout-sdk/lib/Model/Charge.php | 12 +- .../lib/Model/ChargeAttempt.php | 88 +- .../lib/Model/ChargeBankTransaction.php | 8 +- .../lib/Model/ChargeFlow.php | 14 +- .../lib/Model/ChargeFlowLevel.php | 12 +- .../Model/ChargeFlowLevelConfiguration.php | 14 +- .../ChargeFlowLevelConfigurationType.php | 10 +- .../lib/Model/ChargeFlowLevelPaymentLink.php | 4 + .../lib/Model/ClientError.php | 4 + .../lib/Model/CompletionLineItem.php | 4 + .../lib/Model/CompletionLineItemCreate.php | 4 + .../lib/Model/Condition.php | 14 +- .../lib/Model/ConditionType.php | 10 +- .../lib/Model/ConnectorInvocation.php | 10 +- .../lib/Model/CurrencyBankAccount.php | 10 +- .../lib/Model/Customer.php | 14 +- .../lib/Model/CustomerActive.php | 4 + .../lib/Model/CustomerAddress.php | 12 +- .../lib/Model/CustomerAddressActive.php | 4 + .../lib/Model/CustomerAddressCreate.php | 4 + .../lib/Model/CustomerComment.php | 12 +- .../lib/Model/CustomerCommentActive.php | 4 + .../lib/Model/CustomerCommentCreate.php | 4 + .../lib/Model/CustomerCreate.php | 4 + .../lib/Model/CustomerPostalAddress.php | 4 + .../lib/Model/CustomerPostalAddressCreate.php | 4 + .../lib/Model/DatabaseTranslatedString.php | 4 + .../Model/DatabaseTranslatedStringItem.php | 4 + .../lib/Model/DeliveryIndication.php | 10 +- .../DeliveryIndicationDecisionReason.php | 10 +- .../lib/Model/DocumentTemplate.php | 14 +- .../lib/Model/DocumentTemplateType.php | 6 +- .../lib/Model/DocumentTemplateTypeGroup.php | 6 +- .../lib/Model/EntityExportRequest.php | 4 + .../lib/Model/EntityQuery.php | 4 + .../lib/Model/EntityQueryFilter.php | 4 + .../lib/Model/EntityQueryOrderBy.php | 4 + .../Model/ExternalTransferBankTransaction.php | 10 +- .../lib/Model/FailureReason.php | 10 +- postfinancecheckout-sdk/lib/Model/Feature.php | 10 +- .../lib/Model/FeatureCategory.php | 10 +- .../lib/Model/HumanUser.php | 4 + .../lib/Model/HumanUserCreate.php | 4 + .../lib/Model/HumanUserUpdate.php | 4 + .../Model/InternalTransferBankTransaction.php | 10 +- .../lib/Model/InvoiceReconciliationRecord.php | 1256 +++++++++++++++++ ...InvoiceReconciliationRecordInvoiceLink.php | 462 ++++++ ...iceReconciliationRecordRejectionStatus.php | 56 + .../InvoiceReconciliationRecordState.php | 60 + .../Model/InvoiceReconciliationRecordType.php | 366 +++++ .../lib/Model/InvoiceReimbursement.php | 942 +++++++++++++ .../lib/Model/InvoiceReimbursementState.php | 60 + ...nvoiceReimbursementWithRefundReference.php | 296 ++++ postfinancecheckout-sdk/lib/Model/Label.php | 8 +- .../lib/Model/LabelDescriptor.php | 10 +- .../lib/Model/LabelDescriptorGroup.php | 10 +- .../lib/Model/LabelDescriptorType.php | 10 +- .../lib/Model/LegalOrganizationForm.php | 6 +- .../lib/Model/LineItem.php | 4 + .../lib/Model/LineItemAttribute.php | 4 + .../lib/Model/LineItemAttributeCreate.php | 4 + .../lib/Model/LineItemCreate.php | 4 + .../lib/Model/LineItemReduction.php | 4 + .../lib/Model/LineItemReductionCreate.php | 4 + .../lib/Model/LineItemType.php | 2 + .../lib/Model/LocalizedString.php | 4 + .../lib/Model/ManualTask.php | 14 +- .../lib/Model/ManualTaskAction.php | 6 +- .../lib/Model/ManualTaskType.php | 10 +- .../lib/Model/ModelResourcePath.php | 14 +- .../lib/Model/PaymentAdjustment.php | 4 + .../lib/Model/PaymentAdjustmentType.php | 10 +- .../lib/Model/PaymentConnector.php | 10 +- .../Model/PaymentConnectorConfiguration.php | 14 +- .../lib/Model/PaymentConnectorFeature.php | 6 +- .../lib/Model/PaymentContract.php | 12 +- .../lib/Model/PaymentContractType.php | 10 +- .../lib/Model/PaymentInformationHash.php | 6 +- .../lib/Model/PaymentInformationHashType.php | 6 +- .../lib/Model/PaymentInitiationAdviceFile.php | 590 ++++++++ .../PaymentInitiationAdviceFileState.php | 64 + .../lib/Model/PaymentLink.php | 14 +- .../lib/Model/PaymentLinkActive.php | 6 +- .../lib/Model/PaymentLinkCreate.php | 6 +- .../lib/Model/PaymentLinkUpdate.php | 4 + .../lib/Model/PaymentMethod.php | 10 +- .../lib/Model/PaymentMethodBrand.php | 10 +- .../lib/Model/PaymentMethodConfiguration.php | 14 +- .../lib/Model/PaymentProcessor.php | 10 +- .../Model/PaymentProcessorConfiguration.php | 46 +- .../lib/Model/PaymentTerminal.php | 14 +- .../lib/Model/PaymentTerminalAddress.php | 4 + .../Model/PaymentTerminalConfiguration.php | 14 +- .../PaymentTerminalConfigurationVersion.php | 16 +- .../PaymentTerminalDccTransactionSum.php | 526 +++++++ .../lib/Model/PaymentTerminalLocation.php | 14 +- .../Model/PaymentTerminalLocationVersion.php | 16 +- .../lib/Model/PaymentTerminalReceiptType.php | 10 +- .../Model/PaymentTerminalTransactionSum.php | 622 ++++++++ .../PaymentTerminalTransactionSummary.php | 590 ++++++++ ...TerminalTransactionSummaryFetchRequest.php | 372 +++++ .../lib/Model/PaymentTerminalType.php | 10 +- .../lib/Model/Permission.php | 10 +- postfinancecheckout-sdk/lib/Model/Refund.php | 18 +- .../lib/Model/RefundBankTransaction.php | 8 +- .../lib/Model/RefundComment.php | 12 +- .../lib/Model/RefundCommentActive.php | 4 + .../lib/Model/RefundCommentCreate.php | 4 + .../lib/Model/RefundCreate.php | 4 + .../Model/RefundRecoveryBankTransaction.php | 8 +- .../lib/Model/RenderedDocument.php | 4 + .../lib/Model/RenderedTerminalReceipt.php | 4 + ...=> RenderedTerminalTransactionSummary.php} | 71 +- .../lib/Model/RestAddressFormat.php | 4 + .../lib/Model/RestCountry.php | 4 + .../lib/Model/RestCountryState.php | 4 + .../lib/Model/RestCurrency.php | 4 + .../lib/Model/RestLanguage.php | 4 + postfinancecheckout-sdk/lib/Model/Role.php | 12 +- .../lib/Model/SalesChannel.php | 10 +- postfinancecheckout-sdk/lib/Model/Scope.php | 12 +- .../lib/Model/ServerError.php | 4 + .../lib/Model/ShopifyIntegration.php | 12 +- .../lib/Model/ShopifyRecurringOrder.php | 8 +- .../ShopifyRecurringOrderUpdateRequest.php | 4 + .../lib/Model/ShopifySubscriber.php | 30 +- .../lib/Model/ShopifySubscriberActive.php | 20 + .../lib/Model/ShopifySubscriberCreation.php | 4 + .../lib/Model/ShopifySubscription.php | 14 +- .../lib/Model/ShopifySubscriptionAddress.php | 4 + .../ShopifySubscriptionAddressCreate.php | 4 + .../ShopifySubscriptionCreationRequest.php | 4 + ...ySubscriptionModelBillingConfiguration.php | 4 + .../Model/ShopifySubscriptionModelItem.php | 4 + .../Model/ShopifySubscriptionModelTaxLine.php | 4 + .../lib/Model/ShopifySubscriptionProduct.php | 14 +- .../ShopifySubscriptionProductCreate.php | 4 + .../ShopifySubscriptionProductUpdate.php | 4 + .../Model/ShopifySubscriptionSuspension.php | 12 +- .../ShopifySubscriptionSuspensionCreate.php | 4 + ...pifySubscriptionUpdateAddressesRequest.php | 4 + .../ShopifySubscriptionUpdateRequest.php | 4 + .../lib/Model/ShopifySubscriptionVersion.php | 12 +- .../Model/ShopifySubscriptionVersionItem.php | 4 + .../lib/Model/ShopifyTaxLine.php | 8 +- .../lib/Model/ShopifyTransaction.php | 10 +- postfinancecheckout-sdk/lib/Model/Space.php | 14 +- .../lib/Model/SpaceAddress.php | 84 ++ .../lib/Model/SpaceAddressCreate.php | 84 ++ .../lib/Model/SpaceCreate.php | 4 + .../lib/Model/SpaceUpdate.php | 4 + .../lib/Model/SpaceView.php | 14 +- .../lib/Model/StaticValue.php | 10 +- postfinancecheckout-sdk/lib/Model/Tax.php | 4 + .../lib/Model/TaxCreate.php | 4 + .../lib/Model/TenantDatabase.php | 8 +- .../lib/Model/TerminalReceiptFetchRequest.php | 4 + postfinancecheckout-sdk/lib/Model/Token.php | 18 +- .../lib/Model/TokenCreate.php | 6 +- .../lib/Model/TokenUpdate.php | 4 + .../lib/Model/TokenVersion.php | 18 +- .../lib/Model/TokenVersionType.php | 10 +- .../lib/Model/Transaction.php | 70 +- .../lib/Model/TransactionAwareEntity.php | 8 +- .../lib/Model/TransactionComment.php | 12 +- .../lib/Model/TransactionCommentActive.php | 4 + .../lib/Model/TransactionCommentCreate.php | 4 + .../lib/Model/TransactionCompletion.php | 54 +- .../Model/TransactionCompletionRequest.php | 44 + .../lib/Model/TransactionCreate.php | 6 +- .../lib/Model/TransactionGroup.php | 14 +- .../lib/Model/TransactionInvoice.php | 12 +- .../lib/Model/TransactionInvoiceComment.php | 12 +- .../Model/TransactionInvoiceCommentActive.php | 4 + .../Model/TransactionInvoiceCommentCreate.php | 4 + .../Model/TransactionInvoiceReplacement.php | 4 + .../lib/Model/TransactionLineItemVersion.php | 300 +++- .../TransactionLineItemVersionCreate.php | 375 +++++ .../Model/TransactionLineItemVersionState.php | 60 + .../lib/Model/TransactionPending.php | 4 + .../lib/Model/TransactionVoid.php | 14 +- .../lib/Model/TwoFactorAuthenticationType.php | 10 +- postfinancecheckout-sdk/lib/Model/User.php | 12 +- .../lib/Model/UserAccountRole.php | 8 +- .../lib/Model/UserSpaceRole.php | 8 +- .../lib/Model/WalletType.php | 52 + .../lib/Model/WebhookIdentity.php | 14 +- .../lib/Model/WebhookListener.php | 14 +- .../lib/Model/WebhookListenerCreate.php | 4 + .../lib/Model/WebhookListenerEntity.php | 6 +- .../lib/Model/WebhookListenerUpdate.php | 4 + .../lib/Model/WebhookUrl.php | 14 +- .../lib/Model/WebhookUrlCreate.php | 4 + .../lib/Model/WebhookUrlUpdate.php | 4 + .../lib/Service/AccountService.php | 36 +- .../lib/Service/AnalyticsQueryService.php | 698 +++++++++ .../lib/Service/ApplicationUserService.php | 36 +- .../lib/Service/BankAccountService.php | 18 +- .../lib/Service/BankTransactionService.php | 18 +- .../lib/Service/ChargeAttemptService.php | 18 +- .../Service/ChargeBankTransactionService.php | 18 +- .../ChargeFlowLevelPaymentLinkService.php | 18 +- .../lib/Service/ChargeFlowLevelService.php | 24 +- .../lib/Service/ChargeFlowService.php | 256 +++- .../lib/Service/ConditionTypeService.php | 12 +- .../lib/Service/CountryService.php | 6 +- .../lib/Service/CountryStateService.php | 12 +- .../Service/CurrencyBankAccountService.php | 18 +- .../lib/Service/CurrencyService.php | 6 +- .../lib/Service/CustomerAddressService.php | 42 +- .../lib/Service/CustomerCommentService.php | 48 +- .../lib/Service/CustomerService.php | 36 +- .../lib/Service/DeliveryIndicationService.php | 30 +- .../lib/Service/DocumentTemplateService.php | 18 +- .../Service/DocumentTemplateTypeService.php | 12 +- ...ExternalTransferBankTransactionService.php | 18 +- .../lib/Service/HumanUserService.php | 42 +- ...InternalTransferBankTransactionService.php | 18 +- ...ReconciliationRecordInvoiceLinkService.php | 665 +++++++++ .../InvoiceReconciliationRecordService.php | 757 ++++++++++ .../Service/InvoiceReimbursementService.php | 653 +++++++++ .../Service/LabelDescriptionGroupService.php | 12 +- .../lib/Service/LabelDescriptionService.php | 12 +- .../lib/Service/LanguageService.php | 6 +- .../Service/LegalOrganizationFormService.php | 18 +- .../lib/Service/ManualTaskService.php | 18 +- .../PaymentConnectorConfigurationService.php | 18 +- .../lib/Service/PaymentConnectorService.php | 12 +- .../lib/Service/PaymentLinkService.php | 36 +- .../lib/Service/PaymentMethodBrandService.php | 12 +- .../PaymentMethodConfigurationService.php | 18 +- .../lib/Service/PaymentMethodService.php | 12 +- .../PaymentProcessorConfigurationService.php | 18 +- .../lib/Service/PaymentProcessorService.php | 12 +- .../lib/Service/PaymentTerminalService.php | 479 ++++++- .../Service/PaymentTerminalTillService.php | 22 +- ...ymentTerminalTransactionSummaryService.php | 523 +++++++ .../lib/Service/PermissionService.php | 12 +- .../Service/RefundBankTransactionService.php | 18 +- .../lib/Service/RefundCommentService.php | 42 +- .../RefundRecoveryBankTransactionService.php | 18 +- .../lib/Service/RefundService.php | 48 +- .../Service/ShopifyRecurringOrderService.php | 24 +- .../lib/Service/ShopifySubscriberService.php | 24 +- .../ShopifySubscriptionProductService.php | 30 +- .../Service/ShopifySubscriptionService.php | 42 +- .../ShopifySubscriptionSuspensionService.php | 30 +- .../ShopifySubscriptionVersionService.php | 18 +- .../lib/Service/ShopifyTransactionService.php | 18 +- .../lib/Service/SpaceService.php | 36 +- .../lib/Service/StaticValueService.php | 12 +- .../lib/Service/TokenService.php | 60 +- .../lib/Service/TokenVersionService.php | 24 +- .../lib/Service/TransactionCommentService.php | 42 +- .../Service/TransactionCompletionService.php | 42 +- .../lib/Service/TransactionIframeService.php | 6 +- .../TransactionInvoiceCommentService.php | 42 +- .../lib/Service/TransactionInvoiceService.php | 54 +- .../Service/TransactionLightboxService.php | 6 +- .../TransactionLineItemVersionService.php | 523 +++++++ .../Service/TransactionMobileSdkService.php | 6 +- .../Service/TransactionPaymentPageService.php | 6 +- .../lib/Service/TransactionService.php | 235 +-- .../Service/TransactionTerminalService.php | 12 +- .../lib/Service/TransactionVoidService.php | 30 +- .../lib/Service/UserAccountRoleService.php | 18 +- .../lib/Service/UserSpaceRoleService.php | 18 +- .../lib/Service/WebhookListenerService.php | 36 +- .../lib/Service/WebhookUrlService.php | 36 +- .../test/ApiClientTest.php | 24 +- .../test/RefundServiceTest.php | 3 +- .../test/TransactionCompletionServiceTest.php | 3 +- .../test/TransactionLightboxServiceTest.php | 3 +- .../TransactionPaymentPageServiceTest.php | 3 +- .../test/TransactionServiceTest.php | 9 +- readme.txt | 16 +- views/admin-notices/migration-failed.php | 2 +- views/admin-notices/plugin-deactivated.php | 2 +- woocommerce-postfinancecheckout.php | 4 +- 336 files changed, 16779 insertions(+), 1498 deletions(-) create mode 100644 postfinancecheckout-sdk/lib/Model/AnalyticsQuery.php create mode 100644 postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecution.php create mode 100644 postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecutionState.php create mode 100644 postfinancecheckout-sdk/lib/Model/AnalyticsQueryResultBatch.php create mode 100644 postfinancecheckout-sdk/lib/Model/AnalyticsSchemaColumn.php create mode 100644 postfinancecheckout-sdk/lib/Model/AnalyticsSchemaTable.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecord.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordInvoiceLink.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordRejectionStatus.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordState.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordType.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReimbursement.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReimbursementState.php create mode 100644 postfinancecheckout-sdk/lib/Model/InvoiceReimbursementWithRefundReference.php create mode 100644 postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFile.php create mode 100644 postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFileState.php create mode 100644 postfinancecheckout-sdk/lib/Model/PaymentTerminalDccTransactionSum.php create mode 100644 postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSum.php create mode 100644 postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummary.php create mode 100644 postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummaryFetchRequest.php rename postfinancecheckout-sdk/lib/Model/{TransactionLineItemUpdateRequest.php => RenderedTerminalTransactionSummary.php} (77%) create mode 100644 postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionCreate.php create mode 100644 postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionState.php create mode 100644 postfinancecheckout-sdk/lib/Model/WalletType.php create mode 100644 postfinancecheckout-sdk/lib/Service/AnalyticsQueryService.php create mode 100644 postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php create mode 100644 postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordService.php create mode 100644 postfinancecheckout-sdk/lib/Service/InvoiceReimbursementService.php create mode 100644 postfinancecheckout-sdk/lib/Service/PaymentTerminalTransactionSummaryService.php create mode 100644 postfinancecheckout-sdk/lib/Service/TransactionLineItemVersionService.php diff --git a/README.md b/README.md index 8e7d692..d7884f0 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This repository contains the PostFinance Checkout plugin that enables WooCommerc ## Documentation -* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.6/docs/en/documentation.html) +* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.7/docs/en/documentation.html) ## Support @@ -24,4 +24,4 @@ Support queries can be issued on the [PostFinance Checkout support site](https:/ ## License -Please see the [license file](https://github.com/pfpayments/woocommerce/blob/2.1.6/LICENSE) for more information. \ No newline at end of file +Please see the [license file](https://github.com/pfpayments/woocommerce/blob/2.1.7/LICENSE) for more information. \ No newline at end of file diff --git a/changelog.txt b/changelog.txt index de2c4e5..b1417fc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -504,3 +504,17 @@ Tested against: - Wordpress 6.1.1 - Woocommerce 7.3.0 +## Feature +- Upgrade the **PHP sdk version** to 3.2.0 to add compatibility with PHP 8.1 +- Support of Woocommerce 7.4.0 +- Loading jQuery BlockUI only if it is available + +## Bug +- Removal of *woocommerce* trademark from translations and error message + +## Tested Against +- PHP 8.1 +- Wordpress 6.1.1 +- Woocommerce 7.4.0 +- PHP sdk 3.2.0 + diff --git a/docs/en/documentation.html b/docs/en/documentation.html index 3bcca22..fdc9203 100644 --- a/docs/en/documentation.html +++ b/docs/en/documentation.html @@ -4,7 +4,7 @@ - + PostFinance Checkout WooCommerce @@ -22,7 +22,7 @@

Documentation

  • - + Source
  • @@ -408,7 +408,7 @@

    Plugin updates can be done directly in your Wordpress backend under Plugins. -Search for the plugin WooCommerce PostFinance Checkout and click on update now. To perform the update, WordPress will need to access your web server. You will therefore have to enter your FTP credentials to proceed.

    +Search for the plugin PostFinance Checkout and click on update now. To perform the update, WordPress will need to access your web server. You will therefore have to enter your FTP credentials to proceed.

    diff --git a/includes/admin/class-wc-postfinancecheckout-admin-order-completion.php b/includes/admin/class-wc-postfinancecheckout-admin-order-completion.php index 8eda645..8164bf5 100644 --- a/includes/admin/class-wc-postfinancecheckout-admin-order-completion.php +++ b/includes/admin/class-wc-postfinancecheckout-admin-order-completion.php @@ -100,22 +100,20 @@ public static function execute_completion() { wp_die( -1 ); } - $order_id = isset( $_POST['order_id'] ) ? absint( $_POST['order_id'] ) : null; - $completion_amount = isset( $_POST['completion_amount'] ) ? wc_format_decimal( sanitize_text_field( wp_unslash( $_POST['completion_amount'] ) ), wc_get_price_decimals() ) : null; + $order_id = isset( $_POST['order_id'] ) ? absint( $_POST['order_id'] ) : 0; + $completion_amount = isset( $_POST['completion_amount'] ) ? wc_format_decimal( sanitize_text_field( wp_unslash( $_POST['completion_amount'] ) ), wc_get_price_decimals() ) : 0; // phpcs:ignore - $line_item_qtys = isset( $_POST['line_item_qtys'] ) ? array_map('sanitize_text_field', json_decode( wp_unslash( $_POST['line_item_qtys'] ), true ) ) : null; + $line_item_qtys = isset( $_POST['line_item_qtys'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['line_item_qtys'] ) ), true ) : array(); // phpcs:ignore - $line_item_totals = isset( $_POST['line_item_totals'] ) ? array_map('sanitize_text_field', json_decode( wp_unslash( $_POST['line_item_totals'] ), true ) ) : null; - // phpcs:ignore - $line_item_tax_totals = isset( $_POST['line_item_tax_totals'] ) ? array_map('sanitize_text_field', json_decode( wp_unslash( $_POST['line_item_tax_totals'] ), true ) ): null; + $line_item_totals = isset( $_POST['line_item_totals'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['line_item_totals'] ) ), true ) : array(); + // phpcs:ignore + $line_item_tax_totals = isset( $_POST['line_item_tax_totals'] ) ? json_decode( sanitize_text_field( wp_unslash( $_POST['line_item_tax_totals'] ) ), true ) : array(); $restock_not_completed_items = isset( $_POST['restock_not_completed_items'] ) && 'true' === sanitize_text_field( wp_unslash( $_POST['restock_not_completed_items'] ) ); - $current_completion_id = null; - $transaction_info = null; try { // Prepare line items which we are completed. $line_items = array(); - $item_ids = array_unique( array_merge( array_keys( $line_item_qtys, $line_item_totals, true ) ) ); + $item_ids = array_unique( array_merge( array_keys( $line_item_qtys ), array_keys( $line_item_totals ) ) ); foreach ( $item_ids as $item_id ) { $line_items[ $item_id ] = array( 'qty' => 0, @@ -173,8 +171,7 @@ public static function execute_completion() { WC_PostFinanceCheckout_Helper::instance()->lock_by_transaction_id( $transaction_info->get_space_id(), $transaction_info->get_transaction_id() ); $transaction_info = WC_PostFinanceCheckout_Entity_Transaction_Info::load_by_transaction( $transaction_info->get_space_id(), - $transaction_info->get_transaction_id(), - $transaction_info->get_space_id() + $transaction_info->get_transaction_id() ); if ( $transaction_info->get_state() !== TransactionState::AUTHORIZED ) { diff --git a/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php b/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php index 28aadd2..af04242 100644 --- a/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php +++ b/includes/admin/class-wc-postfinancecheckout-admin-settings-page.php @@ -187,7 +187,7 @@ public function get_settings() { $settings = array( array( 'links' => array( - 'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.6/docs/en/documentation.html' => __( 'Documentation', 'woo-postfinancecheckout' ), + 'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.7/docs/en/documentation.html' => __( 'Documentation', 'woo-postfinancecheckout' ), 'https://checkout.postfinance.ch/en-ch/user/signup' => __( 'Sign Up', 'woo-postfinancecheckout' ), ), 'type' => 'postfinancecheckout_links', diff --git a/includes/class-wc-postfinancecheckout-gateway.php b/includes/class-wc-postfinancecheckout-gateway.php index 81c1e96..9de60a3 100644 --- a/includes/class-wc-postfinancecheckout-gateway.php +++ b/includes/class-wc-postfinancecheckout-gateway.php @@ -420,6 +420,7 @@ public function payment_fields() { WooCommerce_PostFinanceCheckout::instance()->plugin_url() . '/assets/js/frontend/checkout.js', array( 'jquery', + 'jquery-blockui', 'postfinancecheckout-remote-checkout-js', ), 1, diff --git a/includes/class-wc-postfinancecheckout-migration.php b/includes/class-wc-postfinancecheckout-migration.php index 37798a3..2cc3b35 100644 --- a/includes/class-wc-postfinancecheckout-migration.php +++ b/includes/class-wc-postfinancecheckout-migration.php @@ -140,7 +140,7 @@ private static function check_requirements() { } if ( ! empty( $errors ) ) { - $title = __( 'Could not activate plugin WooCommerce PostFinance Checkout.', 'woo-postfinancecheckout' ); + $title = __( 'Could not activate plugin PostFinance Checkout.', 'woo-postfinancecheckout' ); // phpcs:ignore $message = '

    ' . esc_html_e( $title ) . '


    ' . '

    ' . __( 'Please check the following requirements before activating:', 'woo-postfinancecheckout' ) . '

    ' . @@ -248,7 +248,7 @@ public static function check_version() { public static function plugin_row_meta( $links, $file ) { if ( WC_POSTFINANCECHECKOUT_PLUGIN_BASENAME === $file ) { $row_meta = array( - 'docs' => '' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '', + 'docs' => '' . esc_html__( 'Documentation', 'woo-postfinancecheckout' ) . '', ); return array_merge( $links, $row_meta ); diff --git a/includes/service/class-wc-postfinancecheckout-service-transaction.php b/includes/service/class-wc-postfinancecheckout-service-transaction.php index 8e162f7..709a945 100644 --- a/includes/service/class-wc-postfinancecheckout-service-transaction.php +++ b/includes/service/class-wc-postfinancecheckout-service-transaction.php @@ -69,6 +69,13 @@ class WC_PostFinanceCheckout_Service_Transaction extends WC_PostFinanceCheckout_ */ private $charge_attempt_service; + /** + * The charge attempt API service. + * + * @var \PostFinanceCheckout\Sdk\Service\TransactionLineItemVersionService + */ + private $transaction_line_item_version_service; + /** * Returns the transaction API service. * @@ -134,6 +141,19 @@ protected function get_charge_attempt_service() { return $this->charge_attempt_service; } + /** + * Returns the transaction line item version service. + * + * @return \PostFinanceCheckout\Sdk\Service\TransactionLineItemVersionService + * @throws Exception Exception. + */ + protected function get_transaction_line_item_version_service() { + if ( is_null( $this->transaction_line_item_version_service ) ) { + $this->transaction_line_item_version_service = new \PostFinanceCheckout\Sdk\Service\TransactionLineItemVersionService( WC_PostFinanceCheckout_Helper::instance()->get_api_client() ); + } + return $this->transaction_line_item_version_service; + } + /** * Clears the transaction cache * @@ -251,19 +271,20 @@ public function get_failed_charge_attempt( $space_id, $transaction_id ) { } /** - * Updates the line items of the given transaction. + * Updates the line items version of the given transaction. * - * @param int $space_id space id. - * @param int $transaction_id transaction id. - * @param \PostFinanceCheckout\Sdk\Model\LineItem[] $line_items line items. + * @param int $space_id space id. + * @param int $transaction_id transaction id. + * @param \PostFinanceCheckout\Sdk\Model\LineItemCreate[] $line_items line items. * @return \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion * @throws Exception Exception. */ public function update_line_items( $space_id, $transaction_id, $line_items ) { - $update_request = new \PostFinanceCheckout\Sdk\Model\TransactionLineItemUpdateRequest(); - $update_request->setTransactionId( $transaction_id ); - $update_request->setNewLineItems( $line_items ); - return $this->get_transaction_service()->updateTransactionLineItems( $space_id, $update_request ); + $line_item_version_create = new \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersionCreate(); + $line_item_version_create->setLineItems( $line_items ); + $line_item_version_create->setTransaction( $transaction_id ); + $line_item_version_create->setExternalId( uniqid( $transaction_id . '-' ) ); + return $this->get_transaction_line_item_version_service()->create( $space_id, $line_item_version_create ); } /** diff --git a/includes/webhook/class-wc-postfinancecheckout-webhook-transaction-completion.php b/includes/webhook/class-wc-postfinancecheckout-webhook-transaction-completion.php index 82f94c2..45a05cb 100644 --- a/includes/webhook/class-wc-postfinancecheckout-webhook-transaction-completion.php +++ b/includes/webhook/class-wc-postfinancecheckout-webhook-transaction-completion.php @@ -105,9 +105,9 @@ protected function success( \PostFinanceCheckout\Sdk\Model\TransactionCompletion $completion_job->set_state( WC_PostFinanceCheckout_Entity_Completion_Job::STATE_DONE ); if ( $completion_job->get_restock() ) { - $this->restock_non_completed_items( $completion_job->get_items(), $order ); + $this->restock_non_completed_items( (array) $completion_job->get_items(), $order ); } - $this->adapt_order_items( $completion_job->get_items(), $order ); + $this->adapt_order_items( (array) $completion_job->get_items(), $order ); $completion_job->save(); } diff --git a/languages/woo-postfinancecheckout-de_DE.mo b/languages/woo-postfinancecheckout-de_DE.mo index c48ed17125c8091f9149947e2a1db4d972410613..8b4249ac8f6c6477afc3e72fa83780c622f7733f 100644 GIT binary patch delta 2288 zcmXZc3rv+|9LMqhLGIU*ONQJsI3UTj1Oy?bB1Lh_7>kvWPUj&A3(^|dJ7#mZh>U|n zm#)=vE@A6(Hp7N%EgH3oEo;-|n(I2sMO&q#i`n45;$j{#5PaAt56L1!_ zvGdr0^QiSUa#Ppa6P)0LUG9b5r~!k>&kpmag-^KsDSVjz$8JB5rxeq#KyAo}ig*vQ zmJMS)zKq(~_gIOS@p1GzH=1SBID$(3SuDXTScLl(^!eWVn62HN`>QbR76P>4zJa6QKz69qp<;16K!sPD=Jeyw?B|g{%g2! zfD3wuA7MVm=I}nT9JTN%ti>O39eTaN4R)dy>_SDn7nRx(w|@*N2MZtvz~)fnzeCE- ze)BrP;}t<=Y~ey0^0VFi-HAs~@B9KP(qsxm6Z4Qdv|7|T??5f=!wB4q8t)+WYoj=f z6Uafb3M!pXh&4JiB56E?ieM+|!TV4T7)Pb-6e`8j*n{U#$Fi1mm0~L@vgc3{zl2&~ z5*5faM&rNOh!MA$9Ym*%2G6ofxCx`y1YboH-cA27YR8w5y0brVKPDCgkK;Ht(Vs#s z6j2ylxE__6cGPosqB1vuci@Mp`m;qEiXfH4%mnb4PM!bU+k@wS2vuw|*n-#b3v6M#)wqhY#p|<9 zY{G-6aTl-^S94UlZ~z~;%|A$zxZWNll)ST+)N}iElyXY4`?C7_d$&KD<$G*< zU}cm)#6Oyn6qt*d4ELD-?c!wr!177|JH<)<&ohbw-o&#}OZS(hKko@#&+vMddUaVt np)`^M3)zj4?zHsC&%mW0VHaMma_B@ehk9xx?`TkbSjg3Akb zvUPKd%EZ#9oy^);EN3GPU3S}O6m2>ebFGbVwL;eWv-8`s{%AWpujhGwzu)tHp6~Db zoO7*nd~5F!f0dcN;5IA3FR>h_u^w-aHOt0sEW~4&iDMXvt~fJpwOM!rrXU~7bNUsS zNWaz@Z^UT&Z8!@%flm`q70akdF=UrGe5!EJgIIQ44ws zwd3tbEPDx;;33q)e#J`s9iPM!|BYtpG~Pm`{tOml7*R{G6jO0MvQ~Q*Js80%b$=$t z;2Osktfk+9B+~|Q4xU3|+Bjz6pQyP0w42PLXe_~pu^x5f+sIn%B&tTv;6jXGd)i4A z>bb?JK+BM|*-A`9A6~;=oW?y#X05n8IkbR3Fh_gx+-!Cq7iw`x58(ay$St9r_F)PA zQ@8-HVhv`b5EM6{cKk6mV>sKr3tLe;J&ele1ym+y-Wu9a8fGh}YiOwGy0IQVz($Oi zYj!8D#|V5ARqcmSnK^;l`4FlIzeQzc6vOcnDkI~l`=*eoErwO-dKS9$PV;H#!BVWl zD)iuUPX7qbr$2>vVCp=MCN|(q+=Dt+&*MUT4av5Bg~YUR=X#{aY;PEgM{T%|N&Tm3 zoTs4)0=zh-@&Ky;Gb+#os%mp?qp+|Ex8MkBhxJqvui3n)Q?M0da0jYJ_Bs7mP?W)!y7F|Y!gkdJ-D*WLINss=pSp`AX4dT=9Bht`8S=Wn0_AIC@> zL}g|Osb~8hcj0fSc+cd7eqZ+cX+$w_5VeE%P!oTKnqUl-vI$g*!%2@1Q&7jW2TSl} z)Xs)cJ03xPqihnjk?_3GE2+i@=-1&+^dF$X+?JKkuNW@J8hjC#;txpOSyq8r7uKK$ z&!Q&2f(n#Z7|KKyYMxqDruJeP9zx2@Mo|l%M&7F5iaFGA3^bsQUo&c_AEGibjOBP4 zb&gYuLK&-fd=&NkI#k9sqBhipg<)n#9Y=Y%k#Tov==^WMN}d0H8ueVbh!?PowBlN<#k05$6ItyF>_paV!>EN%q2?>(4C{IWRubRdr9o`F zjH@t(65obf@Lrt62rTC)xN#9`r%N4IqcYI$T;GN&!kws^+J}kQkMr;ojKv?(A5G&5 z4HsU;I-EieE~^UtZTgTCYM&#Q>=$IMmd(+afsbQ6HX+He4piWGP(MJQqT-C9WfZ4x z_H6EG_deliY4Zl>L##=7h!kYdk3!?db`>ezst5x;H8iRd6gAS=i#f X{)$!-+)**||8dS0R0da9%@6wsetHttpClientType($httpClientType); + +//Setup a custom connection timeout if needed. (Default value is: 25 seconds) +$client->setConnectionTimeout(20); ``` You can also specify the HTTP client via the `PFC_HTTP_CLIENT` environment variable. The possible string values are `curl` or `socket`. diff --git a/postfinancecheckout-sdk/composer.json b/postfinancecheckout-sdk/composer.json index 1f5ebe1..4377857 100644 --- a/postfinancecheckout-sdk/composer.json +++ b/postfinancecheckout-sdk/composer.json @@ -1,6 +1,6 @@ { "name": "postfinancecheckout/sdk", - "version": "3.0.1", + "version": "3.2.0", "description": "PostFinance Checkout SDK for PHP", "keywords": [ "postfinancecheckout", @@ -23,7 +23,7 @@ "ext-mbstring": "*" }, "require-dev": { - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "~8" }, "autoload": { "psr-4": { "PostFinanceCheckout\\Sdk\\" : "lib/" } diff --git a/postfinancecheckout-sdk/lib/ApiClient.php b/postfinancecheckout-sdk/lib/ApiClient.php index 65a9cc9..92db1d3 100644 --- a/postfinancecheckout-sdk/lib/ApiClient.php +++ b/postfinancecheckout-sdk/lib/ApiClient.php @@ -47,14 +47,18 @@ final class ApiClient { * * @var array */ - private $defaultHeaders = []; + private $defaultHeaders = [ + 'x-meta-sdk-version' => "3.2.0", + 'x-meta-sdk-language' => 'php', + 'x-meta-sdk-provider' => "PostFinance Checkout", + ]; /** * The user agent that is sent with any request. * * @var string */ - private $userAgent = 'PHP-Client/3.0.1/php'; + private $userAgent = 'PHP-Client/3.2.0/php'; /** * The path to the certificate authority file. @@ -70,13 +74,19 @@ final class ApiClient { */ private $enableCertificateAuthorityCheck = true; - /** + /** + * the constant for the default connection time out + * + * @var integer + */ + const INITIAL_CONNECTION_TIMEOUT = 25; + + /** * The connection timeout in seconds. * * @var integer */ - private $connectionTimeout = 20; - CONST CONNECTION_TIMEOUT = 20; + private $connectionTimeout; /** * The http client type to use for communication. @@ -134,10 +144,12 @@ public function __construct($userId, $applicationKey) { $this->userId = $userId; $this->applicationKey = $applicationKey; + $this->connectionTimeout = self::INITIAL_CONNECTION_TIMEOUT; $this->certificateAuthority = dirname(__FILE__) . '/ca-bundle.crt'; $this->serializer = new ObjectSerializer(); $this->isDebuggingEnabled() ? $this->serializer->enableDebugging() : $this->serializer->disableDebugging(); $this->serializer->setDebugFile($this->getDebugFile()); + $this->addDefaultHeader('x-meta-sdk-language-version', phpversion()); } /** @@ -248,7 +260,7 @@ public function setConnectionTimeout($connectionTimeout) { * @return ApiClient */ public function resetConnectionTimeout() { - $this->connectionTimeout = self::CONNECTION_TIMEOUT; + $this->connectionTimeout = self::INITIAL_CONNECTION_TIMEOUT; return $this; } @@ -311,10 +323,20 @@ public function addDefaultHeader($key, $value) { throw new \InvalidArgumentException('The header key must be a string.'); } - $defaultHeaders[$key] = $value; + $this->defaultHeaders[$key] = $value; return $this; } + /** + * Gets the default headers that will be sent in the request. + * + * @since 3.1.2 + * @return string[] + */ + function getDefaultHeaders() { + return $this->defaultHeaders; + } + /** * Returns true, when debugging is enabled. * @@ -445,8 +467,11 @@ public function selectHeaderContentType($contentType) { * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException * @throws \PostFinanceCheckout\Sdk\VersioningException */ - public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null) { - $request = new HttpRequest($this->getSerializer(), $this->buildRequestUrl($resourcePath, $queryParams), $method, $this->generateUniqueToken()); + public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null, $timeOut = null) { + if ($timeOut === null) { + $timeOut = $this->getConnectionTimeout(); + } + $request = new HttpRequest($this->getSerializer(), $this->buildRequestUrl($resourcePath, $queryParams), $method, $this->generateUniqueToken(), $timeOut); $request->setUserAgent($this->getUserAgent()); $request->addHeaders(array_merge( (array)$this->defaultHeaders, @@ -560,6 +585,18 @@ public function getAccountService() { return $this->accountService; } + protected $analyticsQueryService; + + /** + * @return \PostFinanceCheckout\Sdk\Service\AnalyticsQueryService + */ + public function getAnalyticsQueryService() { + if(is_null($this->analyticsQueryService)){ + $this->analyticsQueryService = new \PostFinanceCheckout\Sdk\Service\AnalyticsQueryService($this); + } + return $this->analyticsQueryService; + } + protected $applicationUserService; /** @@ -824,6 +861,42 @@ public function getInternalTransferBankTransactionService() { return $this->internalTransferBankTransactionService; } + protected $invoiceReconciliationRecordInvoiceLinkService; + + /** + * @return \PostFinanceCheckout\Sdk\Service\InvoiceReconciliationRecordInvoiceLinkService + */ + public function getInvoiceReconciliationRecordInvoiceLinkService() { + if(is_null($this->invoiceReconciliationRecordInvoiceLinkService)){ + $this->invoiceReconciliationRecordInvoiceLinkService = new \PostFinanceCheckout\Sdk\Service\InvoiceReconciliationRecordInvoiceLinkService($this); + } + return $this->invoiceReconciliationRecordInvoiceLinkService; + } + + protected $invoiceReconciliationRecordService; + + /** + * @return \PostFinanceCheckout\Sdk\Service\InvoiceReconciliationRecordService + */ + public function getInvoiceReconciliationRecordService() { + if(is_null($this->invoiceReconciliationRecordService)){ + $this->invoiceReconciliationRecordService = new \PostFinanceCheckout\Sdk\Service\InvoiceReconciliationRecordService($this); + } + return $this->invoiceReconciliationRecordService; + } + + protected $invoiceReimbursementService; + + /** + * @return \PostFinanceCheckout\Sdk\Service\InvoiceReimbursementService + */ + public function getInvoiceReimbursementService() { + if(is_null($this->invoiceReimbursementService)){ + $this->invoiceReimbursementService = new \PostFinanceCheckout\Sdk\Service\InvoiceReimbursementService($this); + } + return $this->invoiceReimbursementService; + } + protected $labelDescriptionGroupService; /** @@ -1004,6 +1077,18 @@ public function getPaymentTerminalTillService() { return $this->paymentTerminalTillService; } + protected $paymentTerminalTransactionSummaryService; + + /** + * @return \PostFinanceCheckout\Sdk\Service\PaymentTerminalTransactionSummaryService + */ + public function getPaymentTerminalTransactionSummaryService() { + if(is_null($this->paymentTerminalTransactionSummaryService)){ + $this->paymentTerminalTransactionSummaryService = new \PostFinanceCheckout\Sdk\Service\PaymentTerminalTransactionSummaryService($this); + } + return $this->paymentTerminalTransactionSummaryService; + } + protected $permissionService; /** @@ -1268,6 +1353,18 @@ public function getTransactionLightboxService() { return $this->transactionLightboxService; } + protected $transactionLineItemVersionService; + + /** + * @return \PostFinanceCheckout\Sdk\Service\TransactionLineItemVersionService + */ + public function getTransactionLineItemVersionService() { + if(is_null($this->transactionLineItemVersionService)){ + $this->transactionLineItemVersionService = new \PostFinanceCheckout\Sdk\Service\TransactionLineItemVersionService($this); + } + return $this->transactionLineItemVersionService; + } + protected $transactionMobileSdkService; /** diff --git a/postfinancecheckout-sdk/lib/Configuration.php b/postfinancecheckout-sdk/lib/Configuration.php index ae1afdd..c922844 100644 --- a/postfinancecheckout-sdk/lib/Configuration.php +++ b/postfinancecheckout-sdk/lib/Configuration.php @@ -80,7 +80,7 @@ class Configuration * * @var string */ - protected $userAgent = 'PostFinanceCheckout\Sdk/3.0.1/php'; + protected $userAgent = 'PostFinanceCheckout\Sdk/3.2.0/php'; /** * Debug switch (default set to false) @@ -388,8 +388,8 @@ public static function toDebugReport() $report = 'PHP SDK (PostFinanceCheckout\Sdk) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 3.0.1' . PHP_EOL; - $report .= ' SDK Package Version: 3.0.1' . PHP_EOL; + $report .= ' OpenAPI Spec Version: 3.2.0' . PHP_EOL; + $report .= ' SDK Package Version: 3.2.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/postfinancecheckout-sdk/lib/Http/CurlHttpClient.php b/postfinancecheckout-sdk/lib/Http/CurlHttpClient.php index 23fa529..4d1360c 100644 --- a/postfinancecheckout-sdk/lib/Http/CurlHttpClient.php +++ b/postfinancecheckout-sdk/lib/Http/CurlHttpClient.php @@ -40,8 +40,8 @@ public function isSupported() { public function send(ApiClient $apiClient, HttpRequest $request) { $curl = curl_init(); // set timeout, if needed - if ($apiClient->getConnectionTimeout() !== 0) { - curl_setopt($curl, CURLOPT_TIMEOUT, $apiClient->getConnectionTimeout()); + if ($request->getTimeOut() !== 0) { + curl_setopt($curl, CURLOPT_TIMEOUT, $request->getTimeOut()); } // set life-time for DNS cache entries diff --git a/postfinancecheckout-sdk/lib/Http/HttpRequest.php b/postfinancecheckout-sdk/lib/Http/HttpRequest.php index 4b0efd9..508b481 100644 --- a/postfinancecheckout-sdk/lib/Http/HttpRequest.php +++ b/postfinancecheckout-sdk/lib/Http/HttpRequest.php @@ -166,6 +166,13 @@ final class HttpRequest { */ private $logToken; + /** + * The connection time out limit in seconds. + * + * @var integer + */ + private $timeOut; + /** * Constructor. * @@ -174,7 +181,7 @@ final class HttpRequest { * @param string $method the request method (typically GET or POST) * @param string $logToken the request's log token */ - public function __construct(ObjectSerializer $serializer, $url, $method, $logToken) { + public function __construct(ObjectSerializer $serializer, $url, $method, $logToken, $timeOut) { $this->serializer = $serializer; $this->url = $url; $this->method = strtoupper($method); @@ -184,6 +191,7 @@ public function __construct(ObjectSerializer $serializer, $url, $method, $logTok $this->port = parse_url($url, PHP_URL_PORT); $this->query = parse_url($url, PHP_URL_QUERY); $this->logToken = $logToken; + $this->timeOut = $timeOut; $this->addHeader(self::HEADER_KEY_HOST, $this->host); $this->addHeader(self::HEADER_LOG_TOKEN, $this->logToken); @@ -334,6 +342,15 @@ public function getLogToken() { return $this->logToken; } + /** + * Returns the time out. + * + * @return integer + */ + public function getTimeOut() { + return $this->timeOut; + } + /** * Returns the query part of the request as string. * diff --git a/postfinancecheckout-sdk/lib/Http/SocketHttpClient.php b/postfinancecheckout-sdk/lib/Http/SocketHttpClient.php index 47e20b5..372a218 100644 --- a/postfinancecheckout-sdk/lib/Http/SocketHttpClient.php +++ b/postfinancecheckout-sdk/lib/Http/SocketHttpClient.php @@ -80,7 +80,7 @@ private function readFromSocket(ApiClient $apiClient, HttpRequest $request, $soc $responseMessage = ''; $chunked = false; $chunkLength = false; - $maxTime = $this->getStartTime() + $apiClient->getConnectionTimeout(); + $maxTime = $this->getStartTime() + $request->getTimeOut(); $contentLength = -1; $endReached = false; while ($maxTime > time() && !feof($socket) && !$endReached) { diff --git a/postfinancecheckout-sdk/lib/Model/AbstractAccountUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractAccountUpdate.php index d8a56bc..67d860a 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractAccountUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractAccountUpdate.php @@ -234,7 +234,7 @@ public function getLastModifiedDate() /** * Sets last_modified_date * - * @param \DateTime $last_modified_date + * @param \DateTime $last_modified_date The date and time when the object was last modified. * * @return $this */ @@ -309,6 +309,7 @@ public function setSubaccountLimit($subaccount_limit) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -321,6 +322,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -334,6 +336,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -350,6 +353,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractApplicationUserUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractApplicationUserUpdate.php index 5f07da8..fde90ce 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractApplicationUserUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractApplicationUserUpdate.php @@ -284,7 +284,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -302,6 +302,7 @@ public function setState($state) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -314,6 +315,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -327,6 +329,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -343,6 +346,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractCustomerActive.php b/postfinancecheckout-sdk/lib/Model/AbstractCustomerActive.php index ccff13f..10f510c 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractCustomerActive.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractCustomerActive.php @@ -386,7 +386,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -454,6 +454,7 @@ public function setPreferredCurrency($preferred_currency) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -466,6 +467,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -479,6 +481,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -495,6 +498,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractCustomerAddressActive.php b/postfinancecheckout-sdk/lib/Model/AbstractCustomerAddressActive.php index 1c17d9d..26f1625 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractCustomerAddressActive.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractCustomerAddressActive.php @@ -262,6 +262,7 @@ public function setAddressType($address_type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -274,6 +275,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -287,6 +289,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -303,6 +306,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractCustomerCommentActive.php b/postfinancecheckout-sdk/lib/Model/AbstractCustomerCommentActive.php index 2ba9791..c66141b 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractCustomerCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractCustomerCommentActive.php @@ -238,6 +238,7 @@ public function setContent($content) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -250,6 +251,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -263,6 +265,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -279,6 +282,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractHumanUserUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractHumanUserUpdate.php index a6dbba3..be1ce38 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractHumanUserUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractHumanUserUpdate.php @@ -418,7 +418,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -486,6 +486,7 @@ public function setTwoFactorEnabled($two_factor_enabled) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -498,6 +499,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -511,6 +513,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -527,6 +530,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractPaymentLinkUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractPaymentLinkUpdate.php index 3227a3d..e3feab9 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractPaymentLinkUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractPaymentLinkUpdate.php @@ -558,6 +558,7 @@ public function setShippingAddressHandlingMode($shipping_address_handling_mode) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -570,6 +571,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -583,6 +585,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -599,6 +602,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractRefundCommentActive.php b/postfinancecheckout-sdk/lib/Model/AbstractRefundCommentActive.php index b276f1c..0148ccf 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractRefundCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractRefundCommentActive.php @@ -238,6 +238,7 @@ public function setContent($content) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -250,6 +251,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -263,6 +265,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -279,6 +282,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractShopifySubscriptionProductUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractShopifySubscriptionProductUpdate.php index ac76ce8..0d8f276 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractShopifySubscriptionProductUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractShopifySubscriptionProductUpdate.php @@ -646,6 +646,7 @@ public function setTerminationBillingCycles($termination_billing_cycles) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -658,6 +659,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -671,6 +673,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -687,6 +690,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractSpaceUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractSpaceUpdate.php index ec199e5..a4047e2 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractSpaceUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractSpaceUpdate.php @@ -269,7 +269,7 @@ public function getLastModifiedDate() /** * Sets last_modified_date * - * @param \DateTime $last_modified_date + * @param \DateTime $last_modified_date The date and time when the object was last modified. * * @return $this */ @@ -401,7 +401,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -469,6 +469,7 @@ public function setTimeZone($time_zone) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -481,6 +482,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -494,6 +496,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -510,6 +513,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractTokenUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractTokenUpdate.php index d47819e..57ff4df 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractTokenUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractTokenUpdate.php @@ -334,7 +334,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -406,6 +406,7 @@ public function setTokenReference($token_reference) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -418,6 +419,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -431,6 +433,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -447,6 +450,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractTransactionCommentActive.php b/postfinancecheckout-sdk/lib/Model/AbstractTransactionCommentActive.php index 0c58d59..c162f66 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractTransactionCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractTransactionCommentActive.php @@ -238,6 +238,7 @@ public function setContent($content) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -250,6 +251,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -263,6 +265,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -279,6 +282,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php b/postfinancecheckout-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php index 5ab9f5b..2354583 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php @@ -238,6 +238,7 @@ public function setContent($content) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -250,6 +251,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -263,6 +265,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -279,6 +282,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractTransactionPending.php b/postfinancecheckout-sdk/lib/Model/AbstractTransactionPending.php index 78d7f26..999d34d 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractTransactionPending.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractTransactionPending.php @@ -48,7 +48,7 @@ class AbstractTransactionPending implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'allowed_payment_method_brands' => '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[]', + 'allowed_payment_method_brands' => 'int[]', 'allowed_payment_method_configurations' => 'int[]', 'billing_address' => '\PostFinanceCheckout\Sdk\Model\AddressCreate', 'completion_behavior' => '\PostFinanceCheckout\Sdk\Model\TransactionCompletionBehavior', @@ -75,7 +75,7 @@ class AbstractTransactionPending implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'allowed_payment_method_brands' => null, + 'allowed_payment_method_brands' => 'int64', 'allowed_payment_method_configurations' => 'int64', 'billing_address' => null, 'completion_behavior' => null, @@ -360,7 +360,7 @@ public function valid() /** * Gets allowed_payment_method_brands * - * @return \PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[] + * @return int[] */ public function getAllowedPaymentMethodBrands() { @@ -370,7 +370,7 @@ public function getAllowedPaymentMethodBrands() /** * Sets allowed_payment_method_brands * - * @param \PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[] $allowed_payment_method_brands + * @param int[] $allowed_payment_method_brands * * @return $this */ @@ -610,7 +610,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -868,6 +868,7 @@ public function setTokenizationMode($tokenization_mode) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -880,6 +881,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -893,6 +895,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -909,6 +912,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractWebhookListenerUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractWebhookListenerUpdate.php index e752228..e003a57 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractWebhookListenerUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractWebhookListenerUpdate.php @@ -316,7 +316,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -334,6 +334,7 @@ public function setState($state) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -346,6 +347,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -359,6 +361,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -375,6 +378,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AbstractWebhookUrlUpdate.php b/postfinancecheckout-sdk/lib/Model/AbstractWebhookUrlUpdate.php index f98e702..8f22921 100644 --- a/postfinancecheckout-sdk/lib/Model/AbstractWebhookUrlUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AbstractWebhookUrlUpdate.php @@ -267,7 +267,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -317,6 +317,7 @@ public function setUrl($url) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -329,6 +330,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -342,6 +344,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -358,6 +361,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Account.php b/postfinancecheckout-sdk/lib/Model/Account.php index 1a388d7..996890b 100644 --- a/postfinancecheckout-sdk/lib/Model/Account.php +++ b/postfinancecheckout-sdk/lib/Model/Account.php @@ -483,7 +483,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -508,7 +508,7 @@ public function getLastModifiedDate() /** * Sets last_modified_date * - * @param \DateTime $last_modified_date + * @param \DateTime $last_modified_date The date and time when the object was last modified. * * @return $this */ @@ -590,7 +590,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -665,7 +665,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\AccountState $state + * @param \PostFinanceCheckout\Sdk\Model\AccountState $state The object's current state. * * @return $this */ @@ -740,7 +740,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -758,6 +758,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -770,6 +771,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -783,6 +785,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -799,6 +802,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AccountCreate.php b/postfinancecheckout-sdk/lib/Model/AccountCreate.php index b532984..1d979ac 100644 --- a/postfinancecheckout-sdk/lib/Model/AccountCreate.php +++ b/postfinancecheckout-sdk/lib/Model/AccountCreate.php @@ -268,6 +268,7 @@ public function setScope($scope) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -280,6 +281,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -293,6 +295,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -309,6 +312,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AccountUpdate.php b/postfinancecheckout-sdk/lib/Model/AccountUpdate.php index 67e1306..e5559cb 100644 --- a/postfinancecheckout-sdk/lib/Model/AccountUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/AccountUpdate.php @@ -271,6 +271,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -283,6 +284,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -296,6 +298,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -312,6 +315,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Address.php b/postfinancecheckout-sdk/lib/Model/Address.php index ea4d270..95f5610 100644 --- a/postfinancecheckout-sdk/lib/Model/Address.php +++ b/postfinancecheckout-sdk/lib/Model/Address.php @@ -959,6 +959,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -971,6 +972,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -984,6 +986,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1000,6 +1003,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AddressCreate.php b/postfinancecheckout-sdk/lib/Model/AddressCreate.php index 52f79b7..083b1ea 100644 --- a/postfinancecheckout-sdk/lib/Model/AddressCreate.php +++ b/postfinancecheckout-sdk/lib/Model/AddressCreate.php @@ -959,6 +959,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -971,6 +972,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -984,6 +986,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1000,6 +1003,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/AnalyticsQuery.php b/postfinancecheckout-sdk/lib/Model/AnalyticsQuery.php new file mode 100644 index 0000000..9888eb2 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/AnalyticsQuery.php @@ -0,0 +1,480 @@ + 'int', + 'external_id' => 'string', + 'max_cache_age' => 'int', + 'query_string' => 'string', + 'scanned_data_limit' => 'float', + 'space_ids' => 'int[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'account_id' => 'int64', + 'external_id' => null, + 'max_cache_age' => 'int32', + 'query_string' => null, + 'scanned_data_limit' => null, + 'space_ids' => 'int64' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', + 'external_id' => 'externalId', + 'max_cache_age' => 'maxCacheAge', + 'query_string' => 'queryString', + 'scanned_data_limit' => 'scannedDataLimit', + 'space_ids' => 'spaceIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', + 'external_id' => 'setExternalId', + 'max_cache_age' => 'setMaxCacheAge', + 'query_string' => 'setQueryString', + 'scanned_data_limit' => 'setScannedDataLimit', + 'space_ids' => 'setSpaceIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', + 'external_id' => 'getExternalId', + 'max_cache_age' => 'getMaxCacheAge', + 'query_string' => 'getQueryString', + 'scanned_data_limit' => 'getScannedDataLimit', + 'space_ids' => 'getSpaceIds' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + + $this->container['max_cache_age'] = isset($data['max_cache_age']) ? $data['max_cache_age'] : null; + + $this->container['query_string'] = isset($data['query_string']) ? $data['query_string'] : null; + + $this->container['scanned_data_limit'] = isset($data['scanned_data_limit']) ? $data['scanned_data_limit'] : null; + + $this->container['space_ids'] = isset($data['space_ids']) ? $data['space_ids'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['account_id'] === null) { + $invalidProperties[] = "'account_id' can't be null"; + } + if (!is_null($this->container['query_string']) && (mb_strlen($this->container['query_string']) > 4096)) { + $invalidProperties[] = "invalid value for 'query_string', the character length must be smaller than or equal to 4096."; + } + + if (!is_null($this->container['query_string']) && (mb_strlen($this->container['query_string']) < 1)) { + $invalidProperties[] = "invalid value for 'query_string', the character length must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets account_id + * + * @return int + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param int $account_id The mandatory ID of an account in which the query shall be executed. Must be a valid account ID greater than 0. + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id A client generated nonce which uniquely identifies the query to be executed. Subsequent submissions with the same external ID will not re-execute the query but instead return the existing execution with that ID. Either the External ID or a Maximal Cache Age greater than 0 must be specified. If both are specified the External ID will have precedence and the Maximal Cache Age will be ignored. + * + * @return $this + */ + public function setExternalId($external_id) + { + $this->container['external_id'] = $external_id; + + return $this; + } + + + /** + * Gets max_cache_age + * + * @return int + */ + public function getMaxCacheAge() + { + return $this->container['max_cache_age']; + } + + /** + * Sets max_cache_age + * + * @param int $max_cache_age The maximal age in minutes of cached query executions to return. If an equivalent query execution with the same Query String, Account ID and Spaces parameters not older than the specified age is already available that execution will be returned instead of a newly started execution. Set to 0 or null (and set a unique, previously unused External ID) to force a new query execution irrespective of previous executions. Either the External ID or a Cache Duration greater than 0 must be specified. If both are specified, the External ID will be preferred (and the Maximal Cache Age ignored). + * + * @return $this + */ + public function setMaxCacheAge($max_cache_age) + { + $this->container['max_cache_age'] = $max_cache_age; + + return $this; + } + + + /** + * Gets query_string + * + * @return string + */ + public function getQueryString() + { + return $this->container['query_string']; + } + + /** + * Sets query_string + * + * @param string $query_string The SQL statement which is being submitted for execution. Must be a valid PrestoDB/Athena SQL statement. + * + * @return $this + */ + public function setQueryString($query_string) + { + if (!is_null($query_string) && (mb_strlen($query_string) > 4096)) { + throw new \InvalidArgumentException('invalid length for $query_string when calling AnalyticsQuery., must be smaller than or equal to 4096.'); + } + if (!is_null($query_string) && (mb_strlen($query_string) < 1)) { + throw new \InvalidArgumentException('invalid length for $query_string when calling AnalyticsQuery., must be bigger than or equal to 1.'); + } + + $this->container['query_string'] = $query_string; + + return $this; + } + + + /** + * Gets scanned_data_limit + * + * @return float + */ + public function getScannedDataLimit() + { + return $this->container['scanned_data_limit']; + } + + /** + * Sets scanned_data_limit + * + * @param float $scanned_data_limit The maximal amount of scanned data that this query is allowed to scan. After this limit is reached query will be canceled by the system. + * + * @return $this + */ + public function setScannedDataLimit($scanned_data_limit) + { + $this->container['scanned_data_limit'] = $scanned_data_limit; + + return $this; + } + + + /** + * Gets space_ids + * + * @return int[] + */ + public function getSpaceIds() + { + return $this->container['space_ids']; + } + + /** + * Sets space_ids + * + * @param int[] $space_ids The IDs of the spaces in which the query shall be executed. At most 5 space IDs may be specified. All specified spaces must be owned by the account specified by the accountId property. The spaces property may be missing or empty to query all spaces of the specified account. + * + * @return $this + */ + public function setSpaceIds($space_ids) + { + $this->container['space_ids'] = $space_ids; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecution.php b/postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecution.php new file mode 100644 index 0000000..a94296b --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecution.php @@ -0,0 +1,622 @@ + 'int', + 'external_id' => 'string', + 'failure_reason' => '\PostFinanceCheckout\Sdk\Model\FailureReason', + 'id' => 'int', + 'processing_end_time' => '\DateTime', + 'processing_start_time' => '\DateTime', + 'query_string' => 'string', + 'scanned_data_in_gb' => 'float', + 'scanned_data_limit' => 'float', + 'spaces' => 'int[]', + 'state' => '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecutionState' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'account' => 'int64', + 'external_id' => null, + 'failure_reason' => null, + 'id' => 'int64', + 'processing_end_time' => 'date-time', + 'processing_start_time' => 'date-time', + 'query_string' => null, + 'scanned_data_in_gb' => null, + 'scanned_data_limit' => null, + 'spaces' => 'int64', + 'state' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account' => 'account', + 'external_id' => 'externalId', + 'failure_reason' => 'failureReason', + 'id' => 'id', + 'processing_end_time' => 'processingEndTime', + 'processing_start_time' => 'processingStartTime', + 'query_string' => 'queryString', + 'scanned_data_in_gb' => 'scannedDataInGb', + 'scanned_data_limit' => 'scannedDataLimit', + 'spaces' => 'spaces', + 'state' => 'state' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account' => 'setAccount', + 'external_id' => 'setExternalId', + 'failure_reason' => 'setFailureReason', + 'id' => 'setId', + 'processing_end_time' => 'setProcessingEndTime', + 'processing_start_time' => 'setProcessingStartTime', + 'query_string' => 'setQueryString', + 'scanned_data_in_gb' => 'setScannedDataInGb', + 'scanned_data_limit' => 'setScannedDataLimit', + 'spaces' => 'setSpaces', + 'state' => 'setState' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account' => 'getAccount', + 'external_id' => 'getExternalId', + 'failure_reason' => 'getFailureReason', + 'id' => 'getId', + 'processing_end_time' => 'getProcessingEndTime', + 'processing_start_time' => 'getProcessingStartTime', + 'query_string' => 'getQueryString', + 'scanned_data_in_gb' => 'getScannedDataInGb', + 'scanned_data_limit' => 'getScannedDataLimit', + 'spaces' => 'getSpaces', + 'state' => 'getState' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['account'] = isset($data['account']) ? $data['account'] : null; + + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + + $this->container['failure_reason'] = isset($data['failure_reason']) ? $data['failure_reason'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['processing_end_time'] = isset($data['processing_end_time']) ? $data['processing_end_time'] : null; + + $this->container['processing_start_time'] = isset($data['processing_start_time']) ? $data['processing_start_time'] : null; + + $this->container['query_string'] = isset($data['query_string']) ? $data['query_string'] : null; + + $this->container['scanned_data_in_gb'] = isset($data['scanned_data_in_gb']) ? $data['scanned_data_in_gb'] : null; + + $this->container['scanned_data_limit'] = isset($data['scanned_data_limit']) ? $data['scanned_data_limit'] : null; + + $this->container['spaces'] = isset($data['spaces']) ? $data['spaces'] : null; + + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets account + * + * @return int + */ + public function getAccount() + { + return $this->container['account']; + } + + /** + * Sets account + * + * @param int $account The account in which the query has been executed. + * + * @return $this + */ + public function setAccount($account) + { + $this->container['account'] = $account; + + return $this; + } + + + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id The External ID of the query if one had been specified; otherwise null. + * + * @return $this + */ + public function setExternalId($external_id) + { + $this->container['external_id'] = $external_id; + + return $this; + } + + + /** + * Gets failure_reason + * + * @return \PostFinanceCheckout\Sdk\Model\FailureReason + */ + public function getFailureReason() + { + return $this->container['failure_reason']; + } + + /** + * Sets failure_reason + * + * @param \PostFinanceCheckout\Sdk\Model\FailureReason $failure_reason The reason of the failure if and only if the query has failed, otherwise null. + * + * @return $this + */ + public function setFailureReason($failure_reason) + { + $this->container['failure_reason'] = $failure_reason; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets processing_end_time + * + * @return \DateTime + */ + public function getProcessingEndTime() + { + return $this->container['processing_end_time']; + } + + /** + * Sets processing_end_time + * + * @param \DateTime $processing_end_time The time at which processing of the query has finished (either successfully or by failure or by cancelation). Will be null if the query execution has not finished yet. + * + * @return $this + */ + public function setProcessingEndTime($processing_end_time) + { + $this->container['processing_end_time'] = $processing_end_time; + + return $this; + } + + + /** + * Gets processing_start_time + * + * @return \DateTime + */ + public function getProcessingStartTime() + { + return $this->container['processing_start_time']; + } + + /** + * Sets processing_start_time + * + * @param \DateTime $processing_start_time The time at which processing of the query has started (never null). + * + * @return $this + */ + public function setProcessingStartTime($processing_start_time) + { + $this->container['processing_start_time'] = $processing_start_time; + + return $this; + } + + + /** + * Gets query_string + * + * @return string + */ + public function getQueryString() + { + return $this->container['query_string']; + } + + /** + * Sets query_string + * + * @param string $query_string The SQL statement which has been submitted for execution. + * + * @return $this + */ + public function setQueryString($query_string) + { + $this->container['query_string'] = $query_string; + + return $this; + } + + + /** + * Gets scanned_data_in_gb + * + * @return float + */ + public function getScannedDataInGb() + { + return $this->container['scanned_data_in_gb']; + } + + /** + * Sets scanned_data_in_gb + * + * @param float $scanned_data_in_gb The amount of data scanned while processing the query (in GB). (Note that this amount may increase over time while the query is still being processed and not finished yet.) + * + * @return $this + */ + public function setScannedDataInGb($scanned_data_in_gb) + { + $this->container['scanned_data_in_gb'] = $scanned_data_in_gb; + + return $this; + } + + + /** + * Gets scanned_data_limit + * + * @return float + */ + public function getScannedDataLimit() + { + return $this->container['scanned_data_limit']; + } + + /** + * Sets scanned_data_limit + * + * @param float $scanned_data_limit The maximal amount of scanned data that this query is allowed to scan. After this limit is reached query will be canceled by the system. + * + * @return $this + */ + public function setScannedDataLimit($scanned_data_limit) + { + $this->container['scanned_data_limit'] = $scanned_data_limit; + + return $this; + } + + + /** + * Gets spaces + * + * @return int[] + */ + public function getSpaces() + { + return $this->container['spaces']; + } + + /** + * Sets spaces + * + * @param int[] $spaces The spaces in which the query has been executed. May be empty if all spaces of the specified account have been queried. + * + * @return $this + */ + public function setSpaces($spaces) + { + $this->container['spaces'] = $spaces; + + return $this; + } + + + /** + * Gets state + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecutionState + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecutionState $state The current state of the query execution. + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecutionState.php b/postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecutionState.php new file mode 100644 index 0000000..25e755f --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/AnalyticsQueryExecutionState.php @@ -0,0 +1,58 @@ + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[]', + 'next_token' => 'string', + 'query_execution' => '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + 'rows' => 'string[][]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'columns' => null, + 'next_token' => null, + 'query_execution' => null, + 'rows' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'columns' => 'columns', + 'next_token' => 'nextToken', + 'query_execution' => 'queryExecution', + 'rows' => 'rows' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'columns' => 'setColumns', + 'next_token' => 'setNextToken', + 'query_execution' => 'setQueryExecution', + 'rows' => 'setRows' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'columns' => 'getColumns', + 'next_token' => 'getNextToken', + 'query_execution' => 'getQueryExecution', + 'rows' => 'getRows' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['columns'] = isset($data['columns']) ? $data['columns'] : null; + + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + + $this->container['query_execution'] = isset($data['query_execution']) ? $data['query_execution'] : null; + + $this->container['rows'] = isset($data['rows']) ? $data['rows'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets columns + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] + */ + public function getColumns() + { + return $this->container['columns']; + } + + /** + * Sets columns + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] $columns The schemas of the columns returned by the query (in order). Will be null if the results of the query are not (yet) available. + * + * @return $this + */ + public function setColumns($columns) + { + $this->container['columns'] = $columns; + + return $this; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token The token to be provided to fetch the next batch of results. May be null if no more result batches are available. + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + + /** + * Gets query_execution + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution + */ + public function getQueryExecution() + { + return $this->container['query_execution']; + } + + /** + * Sets query_execution + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution $query_execution The query execution which produced the result. + * + * @return $this + */ + public function setQueryExecution($query_execution) + { + $this->container['query_execution'] = $query_execution; + + return $this; + } + + + /** + * Gets rows + * + * @return string[][] + */ + public function getRows() + { + return $this->container['rows']; + } + + /** + * Sets rows + * + * @param string[][] $rows The rows of the result set contained in this batch where each row is a list of column values (in order of the columns specified in the query). Will be null if the results of the query are not (yet) available. + * + * @return $this + */ + public function setRows($rows) + { + $this->container['rows'] = $rows; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/AnalyticsSchemaColumn.php b/postfinancecheckout-sdk/lib/Model/AnalyticsSchemaColumn.php new file mode 100644 index 0000000..edf6e3b --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/AnalyticsSchemaColumn.php @@ -0,0 +1,526 @@ + 'string', + 'column_name' => 'string', + 'description' => 'map[string,string]', + 'precision' => 'int', + 'referenced_table' => 'string', + 'scale' => 'int', + 'table_name' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'alias_name' => null, + 'column_name' => null, + 'description' => null, + 'precision' => 'int32', + 'referenced_table' => null, + 'scale' => 'int32', + 'table_name' => null, + 'type' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'alias_name' => 'aliasName', + 'column_name' => 'columnName', + 'description' => 'description', + 'precision' => 'precision', + 'referenced_table' => 'referencedTable', + 'scale' => 'scale', + 'table_name' => 'tableName', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'alias_name' => 'setAliasName', + 'column_name' => 'setColumnName', + 'description' => 'setDescription', + 'precision' => 'setPrecision', + 'referenced_table' => 'setReferencedTable', + 'scale' => 'setScale', + 'table_name' => 'setTableName', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'alias_name' => 'getAliasName', + 'column_name' => 'getColumnName', + 'description' => 'getDescription', + 'precision' => 'getPrecision', + 'referenced_table' => 'getReferencedTable', + 'scale' => 'getScale', + 'table_name' => 'getTableName', + 'type' => 'getType' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['alias_name'] = isset($data['alias_name']) ? $data['alias_name'] : null; + + $this->container['column_name'] = isset($data['column_name']) ? $data['column_name'] : null; + + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + + $this->container['precision'] = isset($data['precision']) ? $data['precision'] : null; + + $this->container['referenced_table'] = isset($data['referenced_table']) ? $data['referenced_table'] : null; + + $this->container['scale'] = isset($data['scale']) ? $data['scale'] : null; + + $this->container['table_name'] = isset($data['table_name']) ? $data['table_name'] : null; + + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets alias_name + * + * @return string + */ + public function getAliasName() + { + return $this->container['alias_name']; + } + + /** + * Sets alias_name + * + * @param string $alias_name The name of the alias defined for the column in the query or null if none is defined. + * + * @return $this + */ + public function setAliasName($alias_name) + { + $this->container['alias_name'] = $alias_name; + + return $this; + } + + + /** + * Gets column_name + * + * @return string + */ + public function getColumnName() + { + return $this->container['column_name']; + } + + /** + * Sets column_name + * + * @param string $column_name The name of the column in the table or null if this is a synthetic column which is the result of some SQL expression. + * + * @return $this + */ + public function setColumnName($column_name) + { + $this->container['column_name'] = $column_name; + + return $this; + } + + + /** + * Gets description + * + * @return map[string,string] + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param map[string,string] $description A human readable description of the property contained in this column or null if this is a synthetic column which is the result of some SQL expression. + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + + /** + * Gets precision + * + * @return int + */ + public function getPrecision() + { + return $this->container['precision']; + } + + /** + * Sets precision + * + * @param int $precision The precision (maximal number of digits) for decimal data types, otherwise 0. + * + * @return $this + */ + public function setPrecision($precision) + { + $this->container['precision'] = $precision; + + return $this; + } + + + /** + * Gets referenced_table + * + * @return string + */ + public function getReferencedTable() + { + return $this->container['referenced_table']; + } + + /** + * Sets referenced_table + * + * @param string $referenced_table The name of the referenced table if this column represents a foreign-key relation to the IDs of another table, otherwise null. + * + * @return $this + */ + public function setReferencedTable($referenced_table) + { + $this->container['referenced_table'] = $referenced_table; + + return $this; + } + + + /** + * Gets scale + * + * @return int + */ + public function getScale() + { + return $this->container['scale']; + } + + /** + * Sets scale + * + * @param int $scale The scale (maximal number number of digits in the fractional part) in case of a decimal data type, otherwise 0. + * + * @return $this + */ + public function setScale($scale) + { + $this->container['scale'] = $scale; + + return $this; + } + + + /** + * Gets table_name + * + * @return string + */ + public function getTableName() + { + return $this->container['table_name']; + } + + /** + * Sets table_name + * + * @param string $table_name The name of the table which defines this column. + * + * @return $this + */ + public function setTableName($table_name) + { + $this->container['table_name'] = $table_name; + + return $this; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type The ORC data type of the column value. + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/AnalyticsSchemaTable.php b/postfinancecheckout-sdk/lib/Model/AnalyticsSchemaTable.php new file mode 100644 index 0000000..4f53822 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/AnalyticsSchemaTable.php @@ -0,0 +1,366 @@ + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[]', + 'description' => 'map[string,string]', + 'table_name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'columns' => null, + 'description' => null, + 'table_name' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'columns' => 'columns', + 'description' => 'description', + 'table_name' => 'tableName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'columns' => 'setColumns', + 'description' => 'setDescription', + 'table_name' => 'setTableName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'columns' => 'getColumns', + 'description' => 'getDescription', + 'table_name' => 'getTableName' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['columns'] = isset($data['columns']) ? $data['columns'] : null; + + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + + $this->container['table_name'] = isset($data['table_name']) ? $data['table_name'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets columns + * + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] + */ + public function getColumns() + { + return $this->container['columns']; + } + + /** + * Sets columns + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaColumn[] $columns The schemas of all columns of this table. + * + * @return $this + */ + public function setColumns($columns) + { + $this->container['columns'] = $columns; + + return $this; + } + + + /** + * Gets description + * + * @return map[string,string] + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param map[string,string] $description A human readable description of the entity type contained in this table. + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + + /** + * Gets table_name + * + * @return string + */ + public function getTableName() + { + return $this->container['table_name']; + } + + /** + * Sets table_name + * + * @param string $table_name The name of this table. + * + * @return $this + */ + public function setTableName($table_name) + { + $this->container['table_name'] = $table_name; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/ApplicationUser.php b/postfinancecheckout-sdk/lib/Model/ApplicationUser.php index 9fa6cfb..e821c98 100644 --- a/postfinancecheckout-sdk/lib/Model/ApplicationUser.php +++ b/postfinancecheckout-sdk/lib/Model/ApplicationUser.php @@ -297,6 +297,7 @@ public function setRequestLimit($request_limit) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -309,6 +310,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -322,6 +324,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -338,6 +341,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ApplicationUserCreate.php b/postfinancecheckout-sdk/lib/Model/ApplicationUserCreate.php index f5da3f3..d150554 100644 --- a/postfinancecheckout-sdk/lib/Model/ApplicationUserCreate.php +++ b/postfinancecheckout-sdk/lib/Model/ApplicationUserCreate.php @@ -232,6 +232,7 @@ public function setPrimaryAccount($primary_account) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -244,6 +245,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -257,6 +259,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -273,6 +276,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ApplicationUserCreateWithMacKey.php b/postfinancecheckout-sdk/lib/Model/ApplicationUserCreateWithMacKey.php index 760135e..a22b7a6 100644 --- a/postfinancecheckout-sdk/lib/Model/ApplicationUserCreateWithMacKey.php +++ b/postfinancecheckout-sdk/lib/Model/ApplicationUserCreateWithMacKey.php @@ -229,6 +229,7 @@ public function setMacKey($mac_key) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -241,6 +242,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -254,6 +256,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -270,6 +273,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ApplicationUserUpdate.php b/postfinancecheckout-sdk/lib/Model/ApplicationUserUpdate.php index 46c6188..2b1cec0 100644 --- a/postfinancecheckout-sdk/lib/Model/ApplicationUserUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/ApplicationUserUpdate.php @@ -267,6 +267,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -279,6 +280,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -292,6 +294,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -308,6 +311,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/BankAccount.php b/postfinancecheckout-sdk/lib/Model/BankAccount.php index 16d2f2e..a5f5309 100644 --- a/postfinancecheckout-sdk/lib/Model/BankAccount.php +++ b/postfinancecheckout-sdk/lib/Model/BankAccount.php @@ -299,7 +299,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -353,7 +353,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -378,7 +378,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -403,7 +403,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\BankAccountState $state + * @param \PostFinanceCheckout\Sdk\Model\BankAccountState $state The object's current state. * * @return $this */ @@ -453,7 +453,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -471,6 +471,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -483,6 +484,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -496,6 +498,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -512,6 +515,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/BankAccountType.php b/postfinancecheckout-sdk/lib/Model/BankAccountType.php index aa9b52b..f6a2e7b 100644 --- a/postfinancecheckout-sdk/lib/Model/BankAccountType.php +++ b/postfinancecheckout-sdk/lib/Model/BankAccountType.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -259,7 +259,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/BankTransaction.php b/postfinancecheckout-sdk/lib/Model/BankTransaction.php index ebf56e4..84b9228 100644 --- a/postfinancecheckout-sdk/lib/Model/BankTransaction.php +++ b/postfinancecheckout-sdk/lib/Model/BankTransaction.php @@ -390,7 +390,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -497,7 +497,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -522,7 +522,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -547,7 +547,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -647,7 +647,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\BankTransactionState $state + * @param \PostFinanceCheckout\Sdk\Model\BankTransactionState $state The object's current state. * * @return $this */ @@ -772,7 +772,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -790,6 +790,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -802,6 +803,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -815,6 +817,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -831,6 +834,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/BankTransactionSource.php b/postfinancecheckout-sdk/lib/Model/BankTransactionSource.php index dd81b1c..b3888ac 100644 --- a/postfinancecheckout-sdk/lib/Model/BankTransactionSource.php +++ b/postfinancecheckout-sdk/lib/Model/BankTransactionSource.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/BankTransactionType.php b/postfinancecheckout-sdk/lib/Model/BankTransactionType.php index 5335337..cf3f124 100644 --- a/postfinancecheckout-sdk/lib/Model/BankTransactionType.php +++ b/postfinancecheckout-sdk/lib/Model/BankTransactionType.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Charge.php b/postfinancecheckout-sdk/lib/Model/Charge.php index dd47972..f95617d 100644 --- a/postfinancecheckout-sdk/lib/Model/Charge.php +++ b/postfinancecheckout-sdk/lib/Model/Charge.php @@ -334,7 +334,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -359,7 +359,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -409,7 +409,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ChargeState $state + * @param \PostFinanceCheckout\Sdk\Model\ChargeState $state The object's current state. * * @return $this */ @@ -559,7 +559,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -577,6 +577,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -589,6 +590,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -602,6 +604,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -618,6 +621,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ChargeAttempt.php b/postfinancecheckout-sdk/lib/Model/ChargeAttempt.php index 3f45629..da90e13 100644 --- a/postfinancecheckout-sdk/lib/Model/ChargeAttempt.php +++ b/postfinancecheckout-sdk/lib/Model/ChargeAttempt.php @@ -51,6 +51,7 @@ class ChargeAttempt extends TransactionAwareEntity 'completion_behavior' => '\PostFinanceCheckout\Sdk\Model\TransactionCompletionBehavior', 'connector_configuration' => '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration', 'created_on' => '\DateTime', + 'customers_presence' => '\PostFinanceCheckout\Sdk\Model\CustomersPresence', 'environment' => '\PostFinanceCheckout\Sdk\Model\ChargeAttemptEnvironment', 'failed_on' => '\DateTime', 'failure_reason' => '\PostFinanceCheckout\Sdk\Model\FailureReason', @@ -70,7 +71,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => '\DateTime', 'token_version' => '\PostFinanceCheckout\Sdk\Model\TokenVersion', 'user_failure_message' => 'string', - 'version' => 'int' + 'version' => 'int', + 'wallet_type' => '\PostFinanceCheckout\Sdk\Model\WalletType' ]; /** @@ -83,6 +85,7 @@ class ChargeAttempt extends TransactionAwareEntity 'completion_behavior' => null, 'connector_configuration' => null, 'created_on' => 'date-time', + 'customers_presence' => null, 'environment' => null, 'failed_on' => 'date-time', 'failure_reason' => null, @@ -102,7 +105,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'date-time', 'token_version' => null, 'user_failure_message' => null, - 'version' => 'int32' + 'version' => 'int32', + 'wallet_type' => null ]; /** @@ -116,6 +120,7 @@ class ChargeAttempt extends TransactionAwareEntity 'completion_behavior' => 'completionBehavior', 'connector_configuration' => 'connectorConfiguration', 'created_on' => 'createdOn', + 'customers_presence' => 'customersPresence', 'environment' => 'environment', 'failed_on' => 'failedOn', 'failure_reason' => 'failureReason', @@ -135,7 +140,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'timeoutOn', 'token_version' => 'tokenVersion', 'user_failure_message' => 'userFailureMessage', - 'version' => 'version' + 'version' => 'version', + 'wallet_type' => 'walletType' ]; /** @@ -148,6 +154,7 @@ class ChargeAttempt extends TransactionAwareEntity 'completion_behavior' => 'setCompletionBehavior', 'connector_configuration' => 'setConnectorConfiguration', 'created_on' => 'setCreatedOn', + 'customers_presence' => 'setCustomersPresence', 'environment' => 'setEnvironment', 'failed_on' => 'setFailedOn', 'failure_reason' => 'setFailureReason', @@ -167,7 +174,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'setTimeoutOn', 'token_version' => 'setTokenVersion', 'user_failure_message' => 'setUserFailureMessage', - 'version' => 'setVersion' + 'version' => 'setVersion', + 'wallet_type' => 'setWalletType' ]; /** @@ -180,6 +188,7 @@ class ChargeAttempt extends TransactionAwareEntity 'completion_behavior' => 'getCompletionBehavior', 'connector_configuration' => 'getConnectorConfiguration', 'created_on' => 'getCreatedOn', + 'customers_presence' => 'getCustomersPresence', 'environment' => 'getEnvironment', 'failed_on' => 'getFailedOn', 'failure_reason' => 'getFailureReason', @@ -199,7 +208,8 @@ class ChargeAttempt extends TransactionAwareEntity 'timeout_on' => 'getTimeoutOn', 'token_version' => 'getTokenVersion', 'user_failure_message' => 'getUserFailureMessage', - 'version' => 'getVersion' + 'version' => 'getVersion', + 'wallet_type' => 'getWalletType' ]; @@ -224,6 +234,8 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['customers_presence'] = isset($data['customers_presence']) ? $data['customers_presence'] : null; + $this->container['environment'] = isset($data['environment']) ? $data['environment'] : null; $this->container['failed_on'] = isset($data['failed_on']) ? $data['failed_on'] : null; @@ -264,6 +276,8 @@ public function __construct(array $data = null) $this->container['version'] = isset($data['version']) ? $data['version'] : null; + $this->container['wallet_type'] = isset($data['wallet_type']) ? $data['wallet_type'] : null; + } /** @@ -447,7 +461,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -459,6 +473,31 @@ public function setCreatedOn($created_on) } + /** + * Gets customers_presence + * + * @return \PostFinanceCheckout\Sdk\Model\CustomersPresence + */ + public function getCustomersPresence() + { + return $this->container['customers_presence']; + } + + /** + * Sets customers_presence + * + * @param \PostFinanceCheckout\Sdk\Model\CustomersPresence $customers_presence The customers presence indicates which kind of customer interaction was used during the charge attempt. + * + * @return $this + */ + public function setCustomersPresence($customers_presence) + { + $this->container['customers_presence'] = $customers_presence; + + return $this; + } + + /** * Gets environment * @@ -622,7 +661,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -672,7 +711,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -772,7 +811,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ChargeAttemptState $state + * @param \PostFinanceCheckout\Sdk\Model\ChargeAttemptState $state The object's current state. * * @return $this */ @@ -951,7 +990,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -962,6 +1001,31 @@ public function setVersion($version) return $this; } + + /** + * Gets wallet_type + * + * @return \PostFinanceCheckout\Sdk\Model\WalletType + */ + public function getWalletType() + { + return $this->container['wallet_type']; + } + + /** + * Sets wallet_type + * + * @param \PostFinanceCheckout\Sdk\Model\WalletType $wallet_type + * + * @return $this + */ + public function setWalletType($wallet_type) + { + $this->container['wallet_type'] = $wallet_type; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * @@ -969,6 +1033,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -981,6 +1046,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -994,6 +1060,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1010,6 +1077,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ChargeBankTransaction.php b/postfinancecheckout-sdk/lib/Model/ChargeBankTransaction.php index 4f0907f..ecd8d33 100644 --- a/postfinancecheckout-sdk/lib/Model/ChargeBankTransaction.php +++ b/postfinancecheckout-sdk/lib/Model/ChargeBankTransaction.php @@ -306,7 +306,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -431,7 +431,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -449,6 +449,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -461,6 +462,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -474,6 +476,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -490,6 +493,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ChargeFlow.php b/postfinancecheckout-sdk/lib/Model/ChargeFlow.php index bbce790..55c7612 100644 --- a/postfinancecheckout-sdk/lib/Model/ChargeFlow.php +++ b/postfinancecheckout-sdk/lib/Model/ChargeFlow.php @@ -287,7 +287,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -312,7 +312,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -362,7 +362,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -412,7 +412,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -437,7 +437,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -455,6 +455,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -467,6 +468,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -480,6 +482,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -496,6 +499,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevel.php b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevel.php index 460886c..5772d54 100644 --- a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevel.php +++ b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevel.php @@ -320,7 +320,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -345,7 +345,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -370,7 +370,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ChargeFlowLevelState $state + * @param \PostFinanceCheckout\Sdk\Model\ChargeFlowLevelState $state The object's current state. * * @return $this */ @@ -495,7 +495,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -513,6 +513,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -525,6 +526,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -538,6 +540,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -554,6 +557,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfiguration.php b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfiguration.php index 2e98c08..f2e69b7 100644 --- a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfiguration.php +++ b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfiguration.php @@ -305,7 +305,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -330,7 +330,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -409,7 +409,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -459,7 +459,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -509,7 +509,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -527,6 +527,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -539,6 +540,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -552,6 +554,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -568,6 +571,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfigurationType.php b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfigurationType.php index 99fed8f..1d99492 100644 --- a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfigurationType.php +++ b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfigurationType.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -259,7 +259,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelPaymentLink.php b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelPaymentLink.php index 5e6da47..f1bbfa0 100644 --- a/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelPaymentLink.php +++ b/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelPaymentLink.php @@ -257,6 +257,7 @@ public function setPaymentLink($payment_link) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -269,6 +270,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -282,6 +284,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -298,6 +301,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ClientError.php b/postfinancecheckout-sdk/lib/Model/ClientError.php index c5a2425..9dd9549 100644 --- a/postfinancecheckout-sdk/lib/Model/ClientError.php +++ b/postfinancecheckout-sdk/lib/Model/ClientError.php @@ -359,6 +359,7 @@ public function setType($type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CompletionLineItem.php b/postfinancecheckout-sdk/lib/Model/CompletionLineItem.php index f701320..a13fc5f 100644 --- a/postfinancecheckout-sdk/lib/Model/CompletionLineItem.php +++ b/postfinancecheckout-sdk/lib/Model/CompletionLineItem.php @@ -303,6 +303,7 @@ public function setUniqueId($unique_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -315,6 +316,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -328,6 +330,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -344,6 +347,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CompletionLineItemCreate.php b/postfinancecheckout-sdk/lib/Model/CompletionLineItemCreate.php index c09d5ad..a18648e 100644 --- a/postfinancecheckout-sdk/lib/Model/CompletionLineItemCreate.php +++ b/postfinancecheckout-sdk/lib/Model/CompletionLineItemCreate.php @@ -312,6 +312,7 @@ public function setUniqueId($unique_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -324,6 +325,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -337,6 +339,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -353,6 +356,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Condition.php b/postfinancecheckout-sdk/lib/Model/Condition.php index d9a8dc8..3f301a4 100644 --- a/postfinancecheckout-sdk/lib/Model/Condition.php +++ b/postfinancecheckout-sdk/lib/Model/Condition.php @@ -284,7 +284,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -363,7 +363,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -388,7 +388,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -413,7 +413,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -431,6 +431,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -443,6 +444,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -456,6 +458,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -472,6 +475,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ConditionType.php b/postfinancecheckout-sdk/lib/Model/ConditionType.php index b268f03..3e21f0e 100644 --- a/postfinancecheckout-sdk/lib/Model/ConditionType.php +++ b/postfinancecheckout-sdk/lib/Model/ConditionType.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ConnectorInvocation.php b/postfinancecheckout-sdk/lib/Model/ConnectorInvocation.php index fdbb07b..30a8e26 100644 --- a/postfinancecheckout-sdk/lib/Model/ConnectorInvocation.php +++ b/postfinancecheckout-sdk/lib/Model/ConnectorInvocation.php @@ -242,7 +242,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -267,7 +267,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -367,7 +367,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -385,6 +385,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -397,6 +398,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -410,6 +412,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -426,6 +429,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CurrencyBankAccount.php b/postfinancecheckout-sdk/lib/Model/CurrencyBankAccount.php index 5cd713b..931806a 100644 --- a/postfinancecheckout-sdk/lib/Model/CurrencyBankAccount.php +++ b/postfinancecheckout-sdk/lib/Model/CurrencyBankAccount.php @@ -323,7 +323,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -348,7 +348,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -373,7 +373,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -391,6 +391,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +404,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +418,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +435,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Customer.php b/postfinancecheckout-sdk/lib/Model/Customer.php index 3684257..fdb173c 100644 --- a/postfinancecheckout-sdk/lib/Model/Customer.php +++ b/postfinancecheckout-sdk/lib/Model/Customer.php @@ -299,7 +299,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -440,7 +440,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -465,7 +465,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -490,7 +490,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -565,7 +565,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -583,6 +583,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -595,6 +596,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -608,6 +610,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -624,6 +627,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerActive.php b/postfinancecheckout-sdk/lib/Model/CustomerActive.php index b37506f..99eca0b 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerActive.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerActive.php @@ -279,6 +279,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -291,6 +292,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -304,6 +306,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -320,6 +323,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerAddress.php b/postfinancecheckout-sdk/lib/Model/CustomerAddress.php index 76718c5..4a04be5 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerAddress.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerAddress.php @@ -312,7 +312,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -387,7 +387,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -412,7 +412,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -437,7 +437,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -455,6 +455,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -467,6 +468,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -480,6 +482,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -496,6 +499,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerAddressActive.php b/postfinancecheckout-sdk/lib/Model/CustomerAddressActive.php index fe99e96..498b598 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerAddressActive.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerAddressActive.php @@ -263,6 +263,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -275,6 +276,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -288,6 +290,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -304,6 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerAddressCreate.php b/postfinancecheckout-sdk/lib/Model/CustomerAddressCreate.php index f7298d0..47cf349 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerAddressCreate.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerAddressCreate.php @@ -228,6 +228,7 @@ public function setCustomer($customer) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -240,6 +241,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -253,6 +255,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -269,6 +272,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerComment.php b/postfinancecheckout-sdk/lib/Model/CustomerComment.php index 88ce6f7..3b726e8 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerComment.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerComment.php @@ -334,7 +334,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -434,7 +434,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -459,7 +459,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -509,7 +509,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -527,6 +527,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -539,6 +540,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -552,6 +554,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -568,6 +571,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerCommentActive.php b/postfinancecheckout-sdk/lib/Model/CustomerCommentActive.php index 68a13a8..76f44cf 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerCommentActive.php @@ -267,6 +267,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -279,6 +280,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -292,6 +294,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -308,6 +311,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerCommentCreate.php b/postfinancecheckout-sdk/lib/Model/CustomerCommentCreate.php index eb6f8cd..8ae4526 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerCommentCreate.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerCommentCreate.php @@ -232,6 +232,7 @@ public function setCustomer($customer) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -244,6 +245,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -257,6 +259,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -273,6 +276,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerCreate.php b/postfinancecheckout-sdk/lib/Model/CustomerCreate.php index 93ebbdc..007f46f 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerCreate.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerCreate.php @@ -214,6 +214,7 @@ public function valid() * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -226,6 +227,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -239,6 +241,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -255,6 +258,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerPostalAddress.php b/postfinancecheckout-sdk/lib/Model/CustomerPostalAddress.php index 34fcd1d..8305d7c 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerPostalAddress.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerPostalAddress.php @@ -959,6 +959,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -971,6 +972,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -984,6 +986,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1000,6 +1003,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/CustomerPostalAddressCreate.php b/postfinancecheckout-sdk/lib/Model/CustomerPostalAddressCreate.php index d616447..ef905f3 100644 --- a/postfinancecheckout-sdk/lib/Model/CustomerPostalAddressCreate.php +++ b/postfinancecheckout-sdk/lib/Model/CustomerPostalAddressCreate.php @@ -959,6 +959,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -971,6 +972,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -984,6 +986,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1000,6 +1003,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedString.php b/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedString.php index 39de90c..092badb 100644 --- a/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedString.php +++ b/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedString.php @@ -295,6 +295,7 @@ public function setItems($items) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedStringItem.php b/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedStringItem.php index e48afc6..b575827 100644 --- a/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedStringItem.php +++ b/postfinancecheckout-sdk/lib/Model/DatabaseTranslatedStringItem.php @@ -303,6 +303,7 @@ public function setTranslation($translation) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -315,6 +316,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -328,6 +330,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -344,6 +347,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/DeliveryIndication.php b/postfinancecheckout-sdk/lib/Model/DeliveryIndication.php index 9250cd0..318ecf6 100644 --- a/postfinancecheckout-sdk/lib/Model/DeliveryIndication.php +++ b/postfinancecheckout-sdk/lib/Model/DeliveryIndication.php @@ -352,7 +352,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -452,7 +452,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -477,7 +477,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\DeliveryIndicationState $state + * @param \PostFinanceCheckout\Sdk\Model\DeliveryIndicationState $state The object's current state. * * @return $this */ @@ -545,6 +545,7 @@ public function setTransaction($transaction) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -557,6 +558,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -570,6 +572,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -586,6 +589,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/DeliveryIndicationDecisionReason.php b/postfinancecheckout-sdk/lib/Model/DeliveryIndicationDecisionReason.php index f6cf313..f04f0f4 100644 --- a/postfinancecheckout-sdk/lib/Model/DeliveryIndicationDecisionReason.php +++ b/postfinancecheckout-sdk/lib/Model/DeliveryIndicationDecisionReason.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/DocumentTemplate.php b/postfinancecheckout-sdk/lib/Model/DocumentTemplate.php index f829013..1719046 100644 --- a/postfinancecheckout-sdk/lib/Model/DocumentTemplate.php +++ b/postfinancecheckout-sdk/lib/Model/DocumentTemplate.php @@ -337,7 +337,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -362,7 +362,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -416,7 +416,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -466,7 +466,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -541,7 +541,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -559,6 +559,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -571,6 +572,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -584,6 +586,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -600,6 +603,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/DocumentTemplateType.php b/postfinancecheckout-sdk/lib/Model/DocumentTemplateType.php index 09eef43..04f2c89 100644 --- a/postfinancecheckout-sdk/lib/Model/DocumentTemplateType.php +++ b/postfinancecheckout-sdk/lib/Model/DocumentTemplateType.php @@ -316,7 +316,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -359,6 +359,7 @@ public function setTitle($title) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/DocumentTemplateTypeGroup.php b/postfinancecheckout-sdk/lib/Model/DocumentTemplateTypeGroup.php index b059c0d..fb759fe 100644 --- a/postfinancecheckout-sdk/lib/Model/DocumentTemplateTypeGroup.php +++ b/postfinancecheckout-sdk/lib/Model/DocumentTemplateTypeGroup.php @@ -220,7 +220,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -263,6 +263,7 @@ public function setTitle($title) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -275,6 +276,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -288,6 +290,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -304,6 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/EntityExportRequest.php b/postfinancecheckout-sdk/lib/Model/EntityExportRequest.php index 799a744..9d881c5 100644 --- a/postfinancecheckout-sdk/lib/Model/EntityExportRequest.php +++ b/postfinancecheckout-sdk/lib/Model/EntityExportRequest.php @@ -266,6 +266,7 @@ public function setQuery($query) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -278,6 +279,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -291,6 +293,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -307,6 +310,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/EntityQuery.php b/postfinancecheckout-sdk/lib/Model/EntityQuery.php index b89e253..72bf718 100644 --- a/postfinancecheckout-sdk/lib/Model/EntityQuery.php +++ b/postfinancecheckout-sdk/lib/Model/EntityQuery.php @@ -359,6 +359,7 @@ public function setStartingEntity($starting_entity) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/EntityQueryFilter.php b/postfinancecheckout-sdk/lib/Model/EntityQueryFilter.php index 9296539..f394c02 100644 --- a/postfinancecheckout-sdk/lib/Model/EntityQueryFilter.php +++ b/postfinancecheckout-sdk/lib/Model/EntityQueryFilter.php @@ -362,6 +362,7 @@ public function setValue($value) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -374,6 +375,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -387,6 +389,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -403,6 +406,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/EntityQueryOrderBy.php b/postfinancecheckout-sdk/lib/Model/EntityQueryOrderBy.php index 4122f54..a2832f5 100644 --- a/postfinancecheckout-sdk/lib/Model/EntityQueryOrderBy.php +++ b/postfinancecheckout-sdk/lib/Model/EntityQueryOrderBy.php @@ -269,6 +269,7 @@ public function setSorting($sorting) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -281,6 +282,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -294,6 +296,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -310,6 +313,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ExternalTransferBankTransaction.php b/postfinancecheckout-sdk/lib/Model/ExternalTransferBankTransaction.php index 3797e53..16925e9 100644 --- a/postfinancecheckout-sdk/lib/Model/ExternalTransferBankTransaction.php +++ b/postfinancecheckout-sdk/lib/Model/ExternalTransferBankTransaction.php @@ -355,7 +355,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -380,7 +380,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -405,7 +405,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -423,6 +423,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -435,6 +436,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -448,6 +450,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -464,6 +467,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/FailureReason.php b/postfinancecheckout-sdk/lib/Model/FailureReason.php index de5cb49..4fd1064 100644 --- a/postfinancecheckout-sdk/lib/Model/FailureReason.php +++ b/postfinancecheckout-sdk/lib/Model/FailureReason.php @@ -266,7 +266,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -316,7 +316,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -341,7 +341,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -359,6 +359,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Feature.php b/postfinancecheckout-sdk/lib/Model/Feature.php index d7f483d..3c8207a 100644 --- a/postfinancecheckout-sdk/lib/Model/Feature.php +++ b/postfinancecheckout-sdk/lib/Model/Feature.php @@ -319,7 +319,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -344,7 +344,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -394,7 +394,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -487,6 +487,7 @@ public function setVisible($visible) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -499,6 +500,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -512,6 +514,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -528,6 +531,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/FeatureCategory.php b/postfinancecheckout-sdk/lib/Model/FeatureCategory.php index fed7665..c6001db 100644 --- a/postfinancecheckout-sdk/lib/Model/FeatureCategory.php +++ b/postfinancecheckout-sdk/lib/Model/FeatureCategory.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -259,7 +259,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -284,7 +284,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setOrderWeight($order_weight) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/HumanUser.php b/postfinancecheckout-sdk/lib/Model/HumanUser.php index 8788fc1..efeb6ae 100644 --- a/postfinancecheckout-sdk/lib/Model/HumanUser.php +++ b/postfinancecheckout-sdk/lib/Model/HumanUser.php @@ -615,6 +615,7 @@ public function setTwoFactorType($two_factor_type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -627,6 +628,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -640,6 +642,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -656,6 +659,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/HumanUserCreate.php b/postfinancecheckout-sdk/lib/Model/HumanUserCreate.php index 76a20e4..48db538 100644 --- a/postfinancecheckout-sdk/lib/Model/HumanUserCreate.php +++ b/postfinancecheckout-sdk/lib/Model/HumanUserCreate.php @@ -241,6 +241,7 @@ public function setPrimaryAccount($primary_account) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -253,6 +254,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -266,6 +268,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -282,6 +285,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/HumanUserUpdate.php b/postfinancecheckout-sdk/lib/Model/HumanUserUpdate.php index 7b50148..9d90b4c 100644 --- a/postfinancecheckout-sdk/lib/Model/HumanUserUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/HumanUserUpdate.php @@ -279,6 +279,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -291,6 +292,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -304,6 +306,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -320,6 +323,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/InternalTransferBankTransaction.php b/postfinancecheckout-sdk/lib/Model/InternalTransferBankTransaction.php index 3d672f5..ed78ecb 100644 --- a/postfinancecheckout-sdk/lib/Model/InternalTransferBankTransaction.php +++ b/postfinancecheckout-sdk/lib/Model/InternalTransferBankTransaction.php @@ -241,7 +241,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -266,7 +266,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -341,7 +341,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -359,6 +359,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecord.php b/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecord.php new file mode 100644 index 0000000..55f4b2c --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecord.php @@ -0,0 +1,1256 @@ + 'string', + 'amount' => 'float', + 'city' => 'string', + 'country' => 'string', + 'created_on' => '\DateTime', + 'currency' => 'string', + 'discarded_by' => 'int', + 'discarded_on' => '\DateTime', + 'environment' => '\PostFinanceCheckout\Sdk\Model\ChargeAttemptEnvironment', + 'family_name' => 'string', + 'given_name' => 'string', + 'iban' => 'string', + 'last_resolution_failure' => '\PostFinanceCheckout\Sdk\Model\FailureReason', + 'participant_number' => 'string', + 'payment_fee_amount' => 'float', + 'payment_fee_currency' => 'string', + 'payment_reason' => 'string', + 'planned_purge_date' => '\DateTime', + 'post_code' => 'string', + 'reference_number' => 'string', + 'rejection_status' => '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordRejectionStatus', + 'resolved_by' => 'int', + 'resolved_on' => '\DateTime', + 'sender_bank_account' => 'string', + 'state' => '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordState', + 'street' => 'string', + 'type' => '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordType', + 'unique_id' => 'string', + 'value_date' => '\DateTime', + 'version' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'address' => null, + 'amount' => null, + 'city' => null, + 'country' => null, + 'created_on' => 'date-time', + 'currency' => null, + 'discarded_by' => 'int64', + 'discarded_on' => 'date-time', + 'environment' => null, + 'family_name' => null, + 'given_name' => null, + 'iban' => null, + 'last_resolution_failure' => null, + 'participant_number' => null, + 'payment_fee_amount' => null, + 'payment_fee_currency' => null, + 'payment_reason' => null, + 'planned_purge_date' => 'date-time', + 'post_code' => null, + 'reference_number' => null, + 'rejection_status' => null, + 'resolved_by' => 'int64', + 'resolved_on' => 'date-time', + 'sender_bank_account' => null, + 'state' => null, + 'street' => null, + 'type' => null, + 'unique_id' => null, + 'value_date' => 'date-time', + 'version' => 'int32' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'address' => 'address', + 'amount' => 'amount', + 'city' => 'city', + 'country' => 'country', + 'created_on' => 'createdOn', + 'currency' => 'currency', + 'discarded_by' => 'discardedBy', + 'discarded_on' => 'discardedOn', + 'environment' => 'environment', + 'family_name' => 'familyName', + 'given_name' => 'givenName', + 'iban' => 'iban', + 'last_resolution_failure' => 'lastResolutionFailure', + 'participant_number' => 'participantNumber', + 'payment_fee_amount' => 'paymentFeeAmount', + 'payment_fee_currency' => 'paymentFeeCurrency', + 'payment_reason' => 'paymentReason', + 'planned_purge_date' => 'plannedPurgeDate', + 'post_code' => 'postCode', + 'reference_number' => 'referenceNumber', + 'rejection_status' => 'rejectionStatus', + 'resolved_by' => 'resolvedBy', + 'resolved_on' => 'resolvedOn', + 'sender_bank_account' => 'senderBankAccount', + 'state' => 'state', + 'street' => 'street', + 'type' => 'type', + 'unique_id' => 'uniqueId', + 'value_date' => 'valueDate', + 'version' => 'version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'address' => 'setAddress', + 'amount' => 'setAmount', + 'city' => 'setCity', + 'country' => 'setCountry', + 'created_on' => 'setCreatedOn', + 'currency' => 'setCurrency', + 'discarded_by' => 'setDiscardedBy', + 'discarded_on' => 'setDiscardedOn', + 'environment' => 'setEnvironment', + 'family_name' => 'setFamilyName', + 'given_name' => 'setGivenName', + 'iban' => 'setIban', + 'last_resolution_failure' => 'setLastResolutionFailure', + 'participant_number' => 'setParticipantNumber', + 'payment_fee_amount' => 'setPaymentFeeAmount', + 'payment_fee_currency' => 'setPaymentFeeCurrency', + 'payment_reason' => 'setPaymentReason', + 'planned_purge_date' => 'setPlannedPurgeDate', + 'post_code' => 'setPostCode', + 'reference_number' => 'setReferenceNumber', + 'rejection_status' => 'setRejectionStatus', + 'resolved_by' => 'setResolvedBy', + 'resolved_on' => 'setResolvedOn', + 'sender_bank_account' => 'setSenderBankAccount', + 'state' => 'setState', + 'street' => 'setStreet', + 'type' => 'setType', + 'unique_id' => 'setUniqueId', + 'value_date' => 'setValueDate', + 'version' => 'setVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'address' => 'getAddress', + 'amount' => 'getAmount', + 'city' => 'getCity', + 'country' => 'getCountry', + 'created_on' => 'getCreatedOn', + 'currency' => 'getCurrency', + 'discarded_by' => 'getDiscardedBy', + 'discarded_on' => 'getDiscardedOn', + 'environment' => 'getEnvironment', + 'family_name' => 'getFamilyName', + 'given_name' => 'getGivenName', + 'iban' => 'getIban', + 'last_resolution_failure' => 'getLastResolutionFailure', + 'participant_number' => 'getParticipantNumber', + 'payment_fee_amount' => 'getPaymentFeeAmount', + 'payment_fee_currency' => 'getPaymentFeeCurrency', + 'payment_reason' => 'getPaymentReason', + 'planned_purge_date' => 'getPlannedPurgeDate', + 'post_code' => 'getPostCode', + 'reference_number' => 'getReferenceNumber', + 'rejection_status' => 'getRejectionStatus', + 'resolved_by' => 'getResolvedBy', + 'resolved_on' => 'getResolvedOn', + 'sender_bank_account' => 'getSenderBankAccount', + 'state' => 'getState', + 'street' => 'getStreet', + 'type' => 'getType', + 'unique_id' => 'getUniqueId', + 'value_date' => 'getValueDate', + 'version' => 'getVersion' + ]; + + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + + $this->container['address'] = isset($data['address']) ? $data['address'] : null; + + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + + $this->container['country'] = isset($data['country']) ? $data['country'] : null; + + $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + + $this->container['discarded_by'] = isset($data['discarded_by']) ? $data['discarded_by'] : null; + + $this->container['discarded_on'] = isset($data['discarded_on']) ? $data['discarded_on'] : null; + + $this->container['environment'] = isset($data['environment']) ? $data['environment'] : null; + + $this->container['family_name'] = isset($data['family_name']) ? $data['family_name'] : null; + + $this->container['given_name'] = isset($data['given_name']) ? $data['given_name'] : null; + + $this->container['iban'] = isset($data['iban']) ? $data['iban'] : null; + + $this->container['last_resolution_failure'] = isset($data['last_resolution_failure']) ? $data['last_resolution_failure'] : null; + + $this->container['participant_number'] = isset($data['participant_number']) ? $data['participant_number'] : null; + + $this->container['payment_fee_amount'] = isset($data['payment_fee_amount']) ? $data['payment_fee_amount'] : null; + + $this->container['payment_fee_currency'] = isset($data['payment_fee_currency']) ? $data['payment_fee_currency'] : null; + + $this->container['payment_reason'] = isset($data['payment_reason']) ? $data['payment_reason'] : null; + + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; + + $this->container['post_code'] = isset($data['post_code']) ? $data['post_code'] : null; + + $this->container['reference_number'] = isset($data['reference_number']) ? $data['reference_number'] : null; + + $this->container['rejection_status'] = isset($data['rejection_status']) ? $data['rejection_status'] : null; + + $this->container['resolved_by'] = isset($data['resolved_by']) ? $data['resolved_by'] : null; + + $this->container['resolved_on'] = isset($data['resolved_on']) ? $data['resolved_on'] : null; + + $this->container['sender_bank_account'] = isset($data['sender_bank_account']) ? $data['sender_bank_account'] : null; + + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + + $this->container['street'] = isset($data['street']) ? $data['street'] : null; + + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + + $this->container['unique_id'] = isset($data['unique_id']) ? $data['unique_id'] : null; + + $this->container['value_date'] = isset($data['value_date']) ? $data['value_date'] : null; + + $this->container['version'] = isset($data['version']) ? $data['version'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if (!is_null($this->container['iban']) && (mb_strlen($this->container['iban']) > 100)) { + $invalidProperties[] = "invalid value for 'iban', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['participant_number']) && (mb_strlen($this->container['participant_number']) > 100)) { + $invalidProperties[] = "invalid value for 'participant_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['reference_number']) && (mb_strlen($this->container['reference_number']) > 255)) { + $invalidProperties[] = "invalid value for 'reference_number', the character length must be smaller than or equal to 255."; + } + + if (!is_null($this->container['unique_id']) && (mb_strlen($this->container['unique_id']) > 500)) { + $invalidProperties[] = "invalid value for 'unique_id', the character length must be smaller than or equal to 500."; + } + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes + parent::swaggerTypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats + parent::swaggerFormats(); + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets address + * + * @return string + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string $address + * + * @return $this + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city + * + * @return $this + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + + /** + * Gets country + * + * @return string + */ + public function getCountry() + { + return $this->container['country']; + } + + /** + * Sets country + * + * @param string $country + * + * @return $this + */ + public function setCountry($country) + { + $this->container['country'] = $country; + + return $this; + } + + + /** + * Gets created_on + * + * @return \DateTime + */ + public function getCreatedOn() + { + return $this->container['created_on']; + } + + /** + * Sets created_on + * + * @param \DateTime $created_on The date and time when the object was created. + * + * @return $this + */ + public function setCreatedOn($created_on) + { + $this->container['created_on'] = $created_on; + + return $this; + } + + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + + /** + * Gets discarded_by + * + * @return int + */ + public function getDiscardedBy() + { + return $this->container['discarded_by']; + } + + /** + * Sets discarded_by + * + * @param int $discarded_by + * + * @return $this + */ + public function setDiscardedBy($discarded_by) + { + $this->container['discarded_by'] = $discarded_by; + + return $this; + } + + + /** + * Gets discarded_on + * + * @return \DateTime + */ + public function getDiscardedOn() + { + return $this->container['discarded_on']; + } + + /** + * Sets discarded_on + * + * @param \DateTime $discarded_on The discarded on date indicates when the bank transaction has been discarded. + * + * @return $this + */ + public function setDiscardedOn($discarded_on) + { + $this->container['discarded_on'] = $discarded_on; + + return $this; + } + + + /** + * Gets environment + * + * @return \PostFinanceCheckout\Sdk\Model\ChargeAttemptEnvironment + */ + public function getEnvironment() + { + return $this->container['environment']; + } + + /** + * Sets environment + * + * @param \PostFinanceCheckout\Sdk\Model\ChargeAttemptEnvironment $environment + * + * @return $this + */ + public function setEnvironment($environment) + { + $this->container['environment'] = $environment; + + return $this; + } + + + /** + * Gets family_name + * + * @return string + */ + public function getFamilyName() + { + return $this->container['family_name']; + } + + /** + * Sets family_name + * + * @param string $family_name + * + * @return $this + */ + public function setFamilyName($family_name) + { + $this->container['family_name'] = $family_name; + + return $this; + } + + + /** + * Gets given_name + * + * @return string + */ + public function getGivenName() + { + return $this->container['given_name']; + } + + /** + * Sets given_name + * + * @param string $given_name + * + * @return $this + */ + public function setGivenName($given_name) + { + $this->container['given_name'] = $given_name; + + return $this; + } + + + /** + * Gets iban + * + * @return string + */ + public function getIban() + { + return $this->container['iban']; + } + + /** + * Sets iban + * + * @param string $iban + * + * @return $this + */ + public function setIban($iban) + { + if (!is_null($iban) && (mb_strlen($iban) > 100)) { + throw new \InvalidArgumentException('invalid length for $iban when calling InvoiceReconciliationRecord., must be smaller than or equal to 100.'); + } + + $this->container['iban'] = $iban; + + return $this; + } + + + /** + * Gets last_resolution_failure + * + * @return \PostFinanceCheckout\Sdk\Model\FailureReason + */ + public function getLastResolutionFailure() + { + return $this->container['last_resolution_failure']; + } + + /** + * Sets last_resolution_failure + * + * @param \PostFinanceCheckout\Sdk\Model\FailureReason $last_resolution_failure + * + * @return $this + */ + public function setLastResolutionFailure($last_resolution_failure) + { + $this->container['last_resolution_failure'] = $last_resolution_failure; + + return $this; + } + + + /** + * Gets participant_number + * + * @return string + */ + public function getParticipantNumber() + { + return $this->container['participant_number']; + } + + /** + * Sets participant_number + * + * @param string $participant_number + * + * @return $this + */ + public function setParticipantNumber($participant_number) + { + if (!is_null($participant_number) && (mb_strlen($participant_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $participant_number when calling InvoiceReconciliationRecord., must be smaller than or equal to 100.'); + } + + $this->container['participant_number'] = $participant_number; + + return $this; + } + + + /** + * Gets payment_fee_amount + * + * @return float + */ + public function getPaymentFeeAmount() + { + return $this->container['payment_fee_amount']; + } + + /** + * Sets payment_fee_amount + * + * @param float $payment_fee_amount + * + * @return $this + */ + public function setPaymentFeeAmount($payment_fee_amount) + { + $this->container['payment_fee_amount'] = $payment_fee_amount; + + return $this; + } + + + /** + * Gets payment_fee_currency + * + * @return string + */ + public function getPaymentFeeCurrency() + { + return $this->container['payment_fee_currency']; + } + + /** + * Sets payment_fee_currency + * + * @param string $payment_fee_currency + * + * @return $this + */ + public function setPaymentFeeCurrency($payment_fee_currency) + { + $this->container['payment_fee_currency'] = $payment_fee_currency; + + return $this; + } + + + /** + * Gets payment_reason + * + * @return string + */ + public function getPaymentReason() + { + return $this->container['payment_reason']; + } + + /** + * Sets payment_reason + * + * @param string $payment_reason + * + * @return $this + */ + public function setPaymentReason($payment_reason) + { + $this->container['payment_reason'] = $payment_reason; + + return $this; + } + + + /** + * Gets planned_purge_date + * + * @return \DateTime + */ + public function getPlannedPurgeDate() + { + return $this->container['planned_purge_date']; + } + + /** + * Sets planned_purge_date + * + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. + * + * @return $this + */ + public function setPlannedPurgeDate($planned_purge_date) + { + $this->container['planned_purge_date'] = $planned_purge_date; + + return $this; + } + + + /** + * Gets post_code + * + * @return string + */ + public function getPostCode() + { + return $this->container['post_code']; + } + + /** + * Sets post_code + * + * @param string $post_code + * + * @return $this + */ + public function setPostCode($post_code) + { + $this->container['post_code'] = $post_code; + + return $this; + } + + + /** + * Gets reference_number + * + * @return string + */ + public function getReferenceNumber() + { + return $this->container['reference_number']; + } + + /** + * Sets reference_number + * + * @param string $reference_number + * + * @return $this + */ + public function setReferenceNumber($reference_number) + { + if (!is_null($reference_number) && (mb_strlen($reference_number) > 255)) { + throw new \InvalidArgumentException('invalid length for $reference_number when calling InvoiceReconciliationRecord., must be smaller than or equal to 255.'); + } + + $this->container['reference_number'] = $reference_number; + + return $this; + } + + + /** + * Gets rejection_status + * + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordRejectionStatus + */ + public function getRejectionStatus() + { + return $this->container['rejection_status']; + } + + /** + * Sets rejection_status + * + * @param \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordRejectionStatus $rejection_status + * + * @return $this + */ + public function setRejectionStatus($rejection_status) + { + $this->container['rejection_status'] = $rejection_status; + + return $this; + } + + + /** + * Gets resolved_by + * + * @return int + */ + public function getResolvedBy() + { + return $this->container['resolved_by']; + } + + /** + * Sets resolved_by + * + * @param int $resolved_by + * + * @return $this + */ + public function setResolvedBy($resolved_by) + { + $this->container['resolved_by'] = $resolved_by; + + return $this; + } + + + /** + * Gets resolved_on + * + * @return \DateTime + */ + public function getResolvedOn() + { + return $this->container['resolved_on']; + } + + /** + * Sets resolved_on + * + * @param \DateTime $resolved_on The resolved on date indicates when the bank transaction has been resolved. + * + * @return $this + */ + public function setResolvedOn($resolved_on) + { + $this->container['resolved_on'] = $resolved_on; + + return $this; + } + + + /** + * Gets sender_bank_account + * + * @return string + */ + public function getSenderBankAccount() + { + return $this->container['sender_bank_account']; + } + + /** + * Sets sender_bank_account + * + * @param string $sender_bank_account + * + * @return $this + */ + public function setSenderBankAccount($sender_bank_account) + { + $this->container['sender_bank_account'] = $sender_bank_account; + + return $this; + } + + + /** + * Gets state + * + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordState + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordState $state The object's current state. + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + + /** + * Gets street + * + * @return string + */ + public function getStreet() + { + return $this->container['street']; + } + + /** + * Sets street + * + * @param string $street + * + * @return $this + */ + public function setStreet($street) + { + $this->container['street'] = $street; + + return $this; + } + + + /** + * Gets type + * + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordType + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordType $type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + + /** + * Gets unique_id + * + * @return string + */ + public function getUniqueId() + { + return $this->container['unique_id']; + } + + /** + * Sets unique_id + * + * @param string $unique_id + * + * @return $this + */ + public function setUniqueId($unique_id) + { + if (!is_null($unique_id) && (mb_strlen($unique_id) > 500)) { + throw new \InvalidArgumentException('invalid length for $unique_id when calling InvoiceReconciliationRecord., must be smaller than or equal to 500.'); + } + + $this->container['unique_id'] = $unique_id; + + return $this; + } + + + /** + * Gets value_date + * + * @return \DateTime + */ + public function getValueDate() + { + return $this->container['value_date']; + } + + /** + * Sets value_date + * + * @param \DateTime $value_date + * + * @return $this + */ + public function setValueDate($value_date) + { + $this->container['value_date'] = $value_date; + + return $this; + } + + + /** + * Gets version + * + * @return int + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. + * + * @return $this + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordInvoiceLink.php b/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordInvoiceLink.php new file mode 100644 index 0000000..34c92c7 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordInvoiceLink.php @@ -0,0 +1,462 @@ + 'float', + 'created_on' => '\DateTime', + 'id' => 'int', + 'invoice' => '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', + 'linked_space_id' => 'int', + 'record' => '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'amount' => null, + 'created_on' => 'date-time', + 'id' => 'int64', + 'invoice' => null, + 'linked_space_id' => 'int64', + 'record' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'amount' => 'amount', + 'created_on' => 'createdOn', + 'id' => 'id', + 'invoice' => 'invoice', + 'linked_space_id' => 'linkedSpaceId', + 'record' => 'record' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'amount' => 'setAmount', + 'created_on' => 'setCreatedOn', + 'id' => 'setId', + 'invoice' => 'setInvoice', + 'linked_space_id' => 'setLinkedSpaceId', + 'record' => 'setRecord' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'amount' => 'getAmount', + 'created_on' => 'getCreatedOn', + 'id' => 'getId', + 'invoice' => 'getInvoice', + 'linked_space_id' => 'getLinkedSpaceId', + 'record' => 'getRecord' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + + $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['invoice'] = isset($data['invoice']) ? $data['invoice'] : null; + + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + + $this->container['record'] = isset($data['record']) ? $data['record'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + + /** + * Gets created_on + * + * @return \DateTime + */ + public function getCreatedOn() + { + return $this->container['created_on']; + } + + /** + * Sets created_on + * + * @param \DateTime $created_on The date and time when the object was created. + * + * @return $this + */ + public function setCreatedOn($created_on) + { + $this->container['created_on'] = $created_on; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets invoice + * + * @return \PostFinanceCheckout\Sdk\Model\TransactionInvoice + */ + public function getInvoice() + { + return $this->container['invoice']; + } + + /** + * Sets invoice + * + * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoice $invoice + * + * @return $this + */ + public function setInvoice($invoice) + { + $this->container['invoice'] = $invoice; + + return $this; + } + + + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The ID of the space this object belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + + /** + * Gets record + * + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord + */ + public function getRecord() + { + return $this->container['record']; + } + + /** + * Sets record + * + * @param \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord $record + * + * @return $this + */ + public function setRecord($record) + { + $this->container['record'] = $record; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordRejectionStatus.php b/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordRejectionStatus.php new file mode 100644 index 0000000..b48138a --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/InvoiceReconciliationRecordRejectionStatus.php @@ -0,0 +1,56 @@ + 'map[string,string]', + 'id' => 'int', + 'name' => 'map[string,string]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'description' => null, + 'id' => 'int64', + 'name' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'description' => 'description', + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'description' => 'setDescription', + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'description' => 'getDescription', + 'id' => 'getId', + 'name' => 'getName' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets description + * + * @return map[string,string] + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param map[string,string] $description The description of the object translated into different languages. + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets name + * + * @return map[string,string] + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param map[string,string] $name The name of the object translated into different languages. + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/InvoiceReimbursement.php b/postfinancecheckout-sdk/lib/Model/InvoiceReimbursement.php new file mode 100644 index 0000000..2674cf9 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/InvoiceReimbursement.php @@ -0,0 +1,942 @@ + 'float', + 'created_on' => '\DateTime', + 'currency' => 'string', + 'discarded_by' => 'int', + 'discarded_on' => '\DateTime', + 'id' => 'int', + 'linked_space_id' => 'int', + 'payment_connector_configuration' => '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration', + 'payment_initiation_advice_file' => '\PostFinanceCheckout\Sdk\Model\PaymentInitiationAdviceFile', + 'processed_by' => 'int', + 'processed_on' => '\DateTime', + 'recipient_city' => 'string', + 'recipient_country' => 'string', + 'recipient_family_name' => 'string', + 'recipient_given_name' => 'string', + 'recipient_iban' => 'string', + 'recipient_postcode' => 'string', + 'recipient_street' => 'string', + 'sender_iban' => 'string', + 'state' => '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursementState', + 'version' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'amount' => null, + 'created_on' => 'date-time', + 'currency' => null, + 'discarded_by' => 'int64', + 'discarded_on' => 'date-time', + 'id' => 'int64', + 'linked_space_id' => 'int64', + 'payment_connector_configuration' => null, + 'payment_initiation_advice_file' => null, + 'processed_by' => 'int64', + 'processed_on' => 'date-time', + 'recipient_city' => null, + 'recipient_country' => null, + 'recipient_family_name' => null, + 'recipient_given_name' => null, + 'recipient_iban' => null, + 'recipient_postcode' => null, + 'recipient_street' => null, + 'sender_iban' => null, + 'state' => null, + 'version' => 'int32' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'amount' => 'amount', + 'created_on' => 'createdOn', + 'currency' => 'currency', + 'discarded_by' => 'discardedBy', + 'discarded_on' => 'discardedOn', + 'id' => 'id', + 'linked_space_id' => 'linkedSpaceId', + 'payment_connector_configuration' => 'paymentConnectorConfiguration', + 'payment_initiation_advice_file' => 'paymentInitiationAdviceFile', + 'processed_by' => 'processedBy', + 'processed_on' => 'processedOn', + 'recipient_city' => 'recipientCity', + 'recipient_country' => 'recipientCountry', + 'recipient_family_name' => 'recipientFamilyName', + 'recipient_given_name' => 'recipientGivenName', + 'recipient_iban' => 'recipientIban', + 'recipient_postcode' => 'recipientPostcode', + 'recipient_street' => 'recipientStreet', + 'sender_iban' => 'senderIban', + 'state' => 'state', + 'version' => 'version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'amount' => 'setAmount', + 'created_on' => 'setCreatedOn', + 'currency' => 'setCurrency', + 'discarded_by' => 'setDiscardedBy', + 'discarded_on' => 'setDiscardedOn', + 'id' => 'setId', + 'linked_space_id' => 'setLinkedSpaceId', + 'payment_connector_configuration' => 'setPaymentConnectorConfiguration', + 'payment_initiation_advice_file' => 'setPaymentInitiationAdviceFile', + 'processed_by' => 'setProcessedBy', + 'processed_on' => 'setProcessedOn', + 'recipient_city' => 'setRecipientCity', + 'recipient_country' => 'setRecipientCountry', + 'recipient_family_name' => 'setRecipientFamilyName', + 'recipient_given_name' => 'setRecipientGivenName', + 'recipient_iban' => 'setRecipientIban', + 'recipient_postcode' => 'setRecipientPostcode', + 'recipient_street' => 'setRecipientStreet', + 'sender_iban' => 'setSenderIban', + 'state' => 'setState', + 'version' => 'setVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'amount' => 'getAmount', + 'created_on' => 'getCreatedOn', + 'currency' => 'getCurrency', + 'discarded_by' => 'getDiscardedBy', + 'discarded_on' => 'getDiscardedOn', + 'id' => 'getId', + 'linked_space_id' => 'getLinkedSpaceId', + 'payment_connector_configuration' => 'getPaymentConnectorConfiguration', + 'payment_initiation_advice_file' => 'getPaymentInitiationAdviceFile', + 'processed_by' => 'getProcessedBy', + 'processed_on' => 'getProcessedOn', + 'recipient_city' => 'getRecipientCity', + 'recipient_country' => 'getRecipientCountry', + 'recipient_family_name' => 'getRecipientFamilyName', + 'recipient_given_name' => 'getRecipientGivenName', + 'recipient_iban' => 'getRecipientIban', + 'recipient_postcode' => 'getRecipientPostcode', + 'recipient_street' => 'getRecipientStreet', + 'sender_iban' => 'getSenderIban', + 'state' => 'getState', + 'version' => 'getVersion' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + + $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + + $this->container['discarded_by'] = isset($data['discarded_by']) ? $data['discarded_by'] : null; + + $this->container['discarded_on'] = isset($data['discarded_on']) ? $data['discarded_on'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + + $this->container['payment_connector_configuration'] = isset($data['payment_connector_configuration']) ? $data['payment_connector_configuration'] : null; + + $this->container['payment_initiation_advice_file'] = isset($data['payment_initiation_advice_file']) ? $data['payment_initiation_advice_file'] : null; + + $this->container['processed_by'] = isset($data['processed_by']) ? $data['processed_by'] : null; + + $this->container['processed_on'] = isset($data['processed_on']) ? $data['processed_on'] : null; + + $this->container['recipient_city'] = isset($data['recipient_city']) ? $data['recipient_city'] : null; + + $this->container['recipient_country'] = isset($data['recipient_country']) ? $data['recipient_country'] : null; + + $this->container['recipient_family_name'] = isset($data['recipient_family_name']) ? $data['recipient_family_name'] : null; + + $this->container['recipient_given_name'] = isset($data['recipient_given_name']) ? $data['recipient_given_name'] : null; + + $this->container['recipient_iban'] = isset($data['recipient_iban']) ? $data['recipient_iban'] : null; + + $this->container['recipient_postcode'] = isset($data['recipient_postcode']) ? $data['recipient_postcode'] : null; + + $this->container['recipient_street'] = isset($data['recipient_street']) ? $data['recipient_street'] : null; + + $this->container['sender_iban'] = isset($data['sender_iban']) ? $data['sender_iban'] : null; + + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + + $this->container['version'] = isset($data['version']) ? $data['version'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + + /** + * Gets created_on + * + * @return \DateTime + */ + public function getCreatedOn() + { + return $this->container['created_on']; + } + + /** + * Sets created_on + * + * @param \DateTime $created_on The date and time when the object was created. + * + * @return $this + */ + public function setCreatedOn($created_on) + { + $this->container['created_on'] = $created_on; + + return $this; + } + + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + + /** + * Gets discarded_by + * + * @return int + */ + public function getDiscardedBy() + { + return $this->container['discarded_by']; + } + + /** + * Sets discarded_by + * + * @param int $discarded_by + * + * @return $this + */ + public function setDiscardedBy($discarded_by) + { + $this->container['discarded_by'] = $discarded_by; + + return $this; + } + + + /** + * Gets discarded_on + * + * @return \DateTime + */ + public function getDiscardedOn() + { + return $this->container['discarded_on']; + } + + /** + * Sets discarded_on + * + * @param \DateTime $discarded_on + * + * @return $this + */ + public function setDiscardedOn($discarded_on) + { + $this->container['discarded_on'] = $discarded_on; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The ID of the space this object belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + + /** + * Gets payment_connector_configuration + * + * @return \PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration + */ + public function getPaymentConnectorConfiguration() + { + return $this->container['payment_connector_configuration']; + } + + /** + * Sets payment_connector_configuration + * + * @param \PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration $payment_connector_configuration + * + * @return $this + */ + public function setPaymentConnectorConfiguration($payment_connector_configuration) + { + $this->container['payment_connector_configuration'] = $payment_connector_configuration; + + return $this; + } + + + /** + * Gets payment_initiation_advice_file + * + * @return \PostFinanceCheckout\Sdk\Model\PaymentInitiationAdviceFile + */ + public function getPaymentInitiationAdviceFile() + { + return $this->container['payment_initiation_advice_file']; + } + + /** + * Sets payment_initiation_advice_file + * + * @param \PostFinanceCheckout\Sdk\Model\PaymentInitiationAdviceFile $payment_initiation_advice_file + * + * @return $this + */ + public function setPaymentInitiationAdviceFile($payment_initiation_advice_file) + { + $this->container['payment_initiation_advice_file'] = $payment_initiation_advice_file; + + return $this; + } + + + /** + * Gets processed_by + * + * @return int + */ + public function getProcessedBy() + { + return $this->container['processed_by']; + } + + /** + * Sets processed_by + * + * @param int $processed_by + * + * @return $this + */ + public function setProcessedBy($processed_by) + { + $this->container['processed_by'] = $processed_by; + + return $this; + } + + + /** + * Gets processed_on + * + * @return \DateTime + */ + public function getProcessedOn() + { + return $this->container['processed_on']; + } + + /** + * Sets processed_on + * + * @param \DateTime $processed_on + * + * @return $this + */ + public function setProcessedOn($processed_on) + { + $this->container['processed_on'] = $processed_on; + + return $this; + } + + + /** + * Gets recipient_city + * + * @return string + */ + public function getRecipientCity() + { + return $this->container['recipient_city']; + } + + /** + * Sets recipient_city + * + * @param string $recipient_city + * + * @return $this + */ + public function setRecipientCity($recipient_city) + { + $this->container['recipient_city'] = $recipient_city; + + return $this; + } + + + /** + * Gets recipient_country + * + * @return string + */ + public function getRecipientCountry() + { + return $this->container['recipient_country']; + } + + /** + * Sets recipient_country + * + * @param string $recipient_country + * + * @return $this + */ + public function setRecipientCountry($recipient_country) + { + $this->container['recipient_country'] = $recipient_country; + + return $this; + } + + + /** + * Gets recipient_family_name + * + * @return string + */ + public function getRecipientFamilyName() + { + return $this->container['recipient_family_name']; + } + + /** + * Sets recipient_family_name + * + * @param string $recipient_family_name + * + * @return $this + */ + public function setRecipientFamilyName($recipient_family_name) + { + $this->container['recipient_family_name'] = $recipient_family_name; + + return $this; + } + + + /** + * Gets recipient_given_name + * + * @return string + */ + public function getRecipientGivenName() + { + return $this->container['recipient_given_name']; + } + + /** + * Sets recipient_given_name + * + * @param string $recipient_given_name + * + * @return $this + */ + public function setRecipientGivenName($recipient_given_name) + { + $this->container['recipient_given_name'] = $recipient_given_name; + + return $this; + } + + + /** + * Gets recipient_iban + * + * @return string + */ + public function getRecipientIban() + { + return $this->container['recipient_iban']; + } + + /** + * Sets recipient_iban + * + * @param string $recipient_iban + * + * @return $this + */ + public function setRecipientIban($recipient_iban) + { + $this->container['recipient_iban'] = $recipient_iban; + + return $this; + } + + + /** + * Gets recipient_postcode + * + * @return string + */ + public function getRecipientPostcode() + { + return $this->container['recipient_postcode']; + } + + /** + * Sets recipient_postcode + * + * @param string $recipient_postcode + * + * @return $this + */ + public function setRecipientPostcode($recipient_postcode) + { + $this->container['recipient_postcode'] = $recipient_postcode; + + return $this; + } + + + /** + * Gets recipient_street + * + * @return string + */ + public function getRecipientStreet() + { + return $this->container['recipient_street']; + } + + /** + * Sets recipient_street + * + * @param string $recipient_street + * + * @return $this + */ + public function setRecipientStreet($recipient_street) + { + $this->container['recipient_street'] = $recipient_street; + + return $this; + } + + + /** + * Gets sender_iban + * + * @return string + */ + public function getSenderIban() + { + return $this->container['sender_iban']; + } + + /** + * Sets sender_iban + * + * @param string $sender_iban + * + * @return $this + */ + public function setSenderIban($sender_iban) + { + $this->container['sender_iban'] = $sender_iban; + + return $this; + } + + + /** + * Gets state + * + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReimbursementState + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param \PostFinanceCheckout\Sdk\Model\InvoiceReimbursementState $state The object's current state. + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + + /** + * Gets version + * + * @return int + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. + * + * @return $this + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/InvoiceReimbursementState.php b/postfinancecheckout-sdk/lib/Model/InvoiceReimbursementState.php new file mode 100644 index 0000000..37478d1 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/InvoiceReimbursementState.php @@ -0,0 +1,60 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'refund_merchant_reference' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'refund_merchant_reference' => 'refundMerchantReference' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'refund_merchant_reference' => 'setRefundMerchantReference' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'refund_merchant_reference' => 'getRefundMerchantReference' + ]; + + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + + $this->container['refund_merchant_reference'] = isset($data['refund_merchant_reference']) ? $data['refund_merchant_reference'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes + parent::swaggerTypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats + parent::swaggerFormats(); + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets refund_merchant_reference + * + * @return string + */ + public function getRefundMerchantReference() + { + return $this->container['refund_merchant_reference']; + } + + /** + * Sets refund_merchant_reference + * + * @param string $refund_merchant_reference + * + * @return $this + */ + public function setRefundMerchantReference($refund_merchant_reference) + { + $this->container['refund_merchant_reference'] = $refund_merchant_reference; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/Label.php b/postfinancecheckout-sdk/lib/Model/Label.php index 7272826..4958912 100644 --- a/postfinancecheckout-sdk/lib/Model/Label.php +++ b/postfinancecheckout-sdk/lib/Model/Label.php @@ -316,7 +316,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -341,7 +341,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -359,6 +359,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LabelDescriptor.php b/postfinancecheckout-sdk/lib/Model/LabelDescriptor.php index f1b861f..a552c63 100644 --- a/postfinancecheckout-sdk/lib/Model/LabelDescriptor.php +++ b/postfinancecheckout-sdk/lib/Model/LabelDescriptor.php @@ -287,7 +287,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -362,7 +362,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -387,7 +387,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -455,6 +455,7 @@ public function setWeight($weight) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -467,6 +468,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -480,6 +482,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -496,6 +499,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LabelDescriptorGroup.php b/postfinancecheckout-sdk/lib/Model/LabelDescriptorGroup.php index d52bad5..0e9e486 100644 --- a/postfinancecheckout-sdk/lib/Model/LabelDescriptorGroup.php +++ b/postfinancecheckout-sdk/lib/Model/LabelDescriptorGroup.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -259,7 +259,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -284,7 +284,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setWeight($weight) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LabelDescriptorType.php b/postfinancecheckout-sdk/lib/Model/LabelDescriptorType.php index 6a2c169..7e16e0c 100644 --- a/postfinancecheckout-sdk/lib/Model/LabelDescriptorType.php +++ b/postfinancecheckout-sdk/lib/Model/LabelDescriptorType.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LegalOrganizationForm.php b/postfinancecheckout-sdk/lib/Model/LegalOrganizationForm.php index d3a01de..1106a86 100644 --- a/postfinancecheckout-sdk/lib/Model/LegalOrganizationForm.php +++ b/postfinancecheckout-sdk/lib/Model/LegalOrganizationForm.php @@ -316,7 +316,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -359,6 +359,7 @@ public function setShortcut($shortcut) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LineItem.php b/postfinancecheckout-sdk/lib/Model/LineItem.php index b857ca4..720d47f 100644 --- a/postfinancecheckout-sdk/lib/Model/LineItem.php +++ b/postfinancecheckout-sdk/lib/Model/LineItem.php @@ -902,6 +902,7 @@ public function setUnitPriceIncludingTax($unit_price_including_tax) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -914,6 +915,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -927,6 +929,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -943,6 +946,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LineItemAttribute.php b/postfinancecheckout-sdk/lib/Model/LineItemAttribute.php index 818313c..e8e5c55 100644 --- a/postfinancecheckout-sdk/lib/Model/LineItemAttribute.php +++ b/postfinancecheckout-sdk/lib/Model/LineItemAttribute.php @@ -279,6 +279,7 @@ public function setValue($value) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -291,6 +292,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -304,6 +306,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -320,6 +323,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LineItemAttributeCreate.php b/postfinancecheckout-sdk/lib/Model/LineItemAttributeCreate.php index ff4e1f7..3e6337b 100644 --- a/postfinancecheckout-sdk/lib/Model/LineItemAttributeCreate.php +++ b/postfinancecheckout-sdk/lib/Model/LineItemAttributeCreate.php @@ -285,6 +285,7 @@ public function setValue($value) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -297,6 +298,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -310,6 +312,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -326,6 +329,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LineItemCreate.php b/postfinancecheckout-sdk/lib/Model/LineItemCreate.php index 3ed7d96..cc4a7db 100644 --- a/postfinancecheckout-sdk/lib/Model/LineItemCreate.php +++ b/postfinancecheckout-sdk/lib/Model/LineItemCreate.php @@ -565,6 +565,7 @@ public function setUniqueId($unique_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -577,6 +578,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -590,6 +592,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -606,6 +609,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LineItemReduction.php b/postfinancecheckout-sdk/lib/Model/LineItemReduction.php index 08c6c5d..4e03207 100644 --- a/postfinancecheckout-sdk/lib/Model/LineItemReduction.php +++ b/postfinancecheckout-sdk/lib/Model/LineItemReduction.php @@ -303,6 +303,7 @@ public function setUnitPriceReduction($unit_price_reduction) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -315,6 +316,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -328,6 +330,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -344,6 +347,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LineItemReductionCreate.php b/postfinancecheckout-sdk/lib/Model/LineItemReductionCreate.php index 63f98e3..c30375c 100644 --- a/postfinancecheckout-sdk/lib/Model/LineItemReductionCreate.php +++ b/postfinancecheckout-sdk/lib/Model/LineItemReductionCreate.php @@ -312,6 +312,7 @@ public function setUnitPriceReduction($unit_price_reduction) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -324,6 +325,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -337,6 +339,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -353,6 +356,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/LineItemType.php b/postfinancecheckout-sdk/lib/Model/LineItemType.php index 6aee0a4..2bfa1b1 100644 --- a/postfinancecheckout-sdk/lib/Model/LineItemType.php +++ b/postfinancecheckout-sdk/lib/Model/LineItemType.php @@ -39,6 +39,7 @@ class LineItemType const DISCOUNT = 'DISCOUNT'; const FEE = 'FEE'; const PRODUCT = 'PRODUCT'; + const TIP = 'TIP'; /** * Gets allowable values of the enum @@ -51,6 +52,7 @@ public static function getAllowableEnumValues() self::DISCOUNT, self::FEE, self::PRODUCT, + self::TIP, ]; } } diff --git a/postfinancecheckout-sdk/lib/Model/LocalizedString.php b/postfinancecheckout-sdk/lib/Model/LocalizedString.php index ae17ca9..8c2f725 100644 --- a/postfinancecheckout-sdk/lib/Model/LocalizedString.php +++ b/postfinancecheckout-sdk/lib/Model/LocalizedString.php @@ -295,6 +295,7 @@ public function setString($string) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ManualTask.php b/postfinancecheckout-sdk/lib/Model/ManualTask.php index 43bfb76..aaf519b 100644 --- a/postfinancecheckout-sdk/lib/Model/ManualTask.php +++ b/postfinancecheckout-sdk/lib/Model/ManualTask.php @@ -326,7 +326,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -376,7 +376,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -401,7 +401,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -426,7 +426,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -476,7 +476,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ManualTaskState $state + * @param \PostFinanceCheckout\Sdk\Model\ManualTaskState $state The object's current state. * * @return $this */ @@ -519,6 +519,7 @@ public function setType($type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -531,6 +532,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -544,6 +546,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -560,6 +563,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ManualTaskAction.php b/postfinancecheckout-sdk/lib/Model/ManualTaskAction.php index 741cb2a..abcbc2d 100644 --- a/postfinancecheckout-sdk/lib/Model/ManualTaskAction.php +++ b/postfinancecheckout-sdk/lib/Model/ManualTaskAction.php @@ -234,7 +234,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -327,6 +327,7 @@ public function setTaskType($task_type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ManualTaskType.php b/postfinancecheckout-sdk/lib/Model/ManualTaskType.php index 86862f0..fa4bba5 100644 --- a/postfinancecheckout-sdk/lib/Model/ManualTaskType.php +++ b/postfinancecheckout-sdk/lib/Model/ManualTaskType.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -284,7 +284,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ModelResourcePath.php b/postfinancecheckout-sdk/lib/Model/ModelResourcePath.php index 6f0fcfb..567956b 100644 --- a/postfinancecheckout-sdk/lib/Model/ModelResourcePath.php +++ b/postfinancecheckout-sdk/lib/Model/ModelResourcePath.php @@ -263,7 +263,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -288,7 +288,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -345,7 +345,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -395,7 +395,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ResourceState $state + * @param \PostFinanceCheckout\Sdk\Model\ResourceState $state The object's current state. * * @return $this */ @@ -420,7 +420,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -438,6 +438,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -450,6 +451,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -463,6 +465,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -479,6 +482,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentAdjustment.php b/postfinancecheckout-sdk/lib/Model/PaymentAdjustment.php index 4927b15..7dd05f8 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentAdjustment.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentAdjustment.php @@ -359,6 +359,7 @@ public function setType($type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentAdjustmentType.php b/postfinancecheckout-sdk/lib/Model/PaymentAdjustmentType.php index 9e3fbb8..2188782 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentAdjustmentType.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentAdjustmentType.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentConnector.php b/postfinancecheckout-sdk/lib/Model/PaymentConnector.php index fb32e41..5d6dbb9 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentConnector.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentConnector.php @@ -372,7 +372,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -422,7 +422,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -447,7 +447,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -615,6 +615,7 @@ public function setSupportedFeatures($supported_features) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -627,6 +628,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -640,6 +642,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -656,6 +659,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentConnectorConfiguration.php b/postfinancecheckout-sdk/lib/Model/PaymentConnectorConfiguration.php index bb36cc3..8fe8845 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentConnectorConfiguration.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentConnectorConfiguration.php @@ -433,7 +433,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -458,7 +458,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -537,7 +537,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -612,7 +612,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -637,7 +637,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -655,6 +655,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -667,6 +668,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -680,6 +682,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -696,6 +699,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentConnectorFeature.php b/postfinancecheckout-sdk/lib/Model/PaymentConnectorFeature.php index c3a62d1..6b80148 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentConnectorFeature.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentConnectorFeature.php @@ -277,7 +277,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -295,6 +295,7 @@ public function setId($id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentContract.php b/postfinancecheckout-sdk/lib/Model/PaymentContract.php index 4aa9965..2193f52 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentContract.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentContract.php @@ -436,7 +436,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -486,7 +486,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -586,7 +586,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\PaymentContractState $state + * @param \PostFinanceCheckout\Sdk\Model\PaymentContractState $state The object's current state. * * @return $this */ @@ -661,7 +661,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -679,6 +679,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -691,6 +692,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -704,6 +706,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -720,6 +723,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentContractType.php b/postfinancecheckout-sdk/lib/Model/PaymentContractType.php index 130faf3..7abc0f2 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentContractType.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentContractType.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -284,7 +284,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentInformationHash.php b/postfinancecheckout-sdk/lib/Model/PaymentInformationHash.php index dcd8e8f..1f3ddcf 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentInformationHash.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentInformationHash.php @@ -227,7 +227,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -295,6 +295,7 @@ public function setValue($value) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentInformationHashType.php b/postfinancecheckout-sdk/lib/Model/PaymentInformationHashType.php index 3aba6ae..bfc9306 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentInformationHashType.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentInformationHashType.php @@ -220,7 +220,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -263,6 +263,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -275,6 +276,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -288,6 +290,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -304,6 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFile.php b/postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFile.php new file mode 100644 index 0000000..6235c94 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFile.php @@ -0,0 +1,590 @@ + '\DateTime', + 'failure_message' => 'string', + 'file_generated_on' => '\DateTime', + 'forwarded_on' => '\DateTime', + 'id' => 'int', + 'linked_space_id' => 'int', + 'name' => 'string', + 'processed_on' => '\DateTime', + 'processor' => '\PostFinanceCheckout\Sdk\Model\PaymentProcessor', + 'state' => '\PostFinanceCheckout\Sdk\Model\PaymentInitiationAdviceFileState' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'created_on' => 'date-time', + 'failure_message' => null, + 'file_generated_on' => 'date-time', + 'forwarded_on' => 'date-time', + 'id' => 'int64', + 'linked_space_id' => 'int64', + 'name' => null, + 'processed_on' => 'date-time', + 'processor' => null, + 'state' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'created_on' => 'createdOn', + 'failure_message' => 'failureMessage', + 'file_generated_on' => 'fileGeneratedOn', + 'forwarded_on' => 'forwardedOn', + 'id' => 'id', + 'linked_space_id' => 'linkedSpaceId', + 'name' => 'name', + 'processed_on' => 'processedOn', + 'processor' => 'processor', + 'state' => 'state' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'created_on' => 'setCreatedOn', + 'failure_message' => 'setFailureMessage', + 'file_generated_on' => 'setFileGeneratedOn', + 'forwarded_on' => 'setForwardedOn', + 'id' => 'setId', + 'linked_space_id' => 'setLinkedSpaceId', + 'name' => 'setName', + 'processed_on' => 'setProcessedOn', + 'processor' => 'setProcessor', + 'state' => 'setState' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'created_on' => 'getCreatedOn', + 'failure_message' => 'getFailureMessage', + 'file_generated_on' => 'getFileGeneratedOn', + 'forwarded_on' => 'getForwardedOn', + 'id' => 'getId', + 'linked_space_id' => 'getLinkedSpaceId', + 'name' => 'getName', + 'processed_on' => 'getProcessedOn', + 'processor' => 'getProcessor', + 'state' => 'getState' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + + $this->container['failure_message'] = isset($data['failure_message']) ? $data['failure_message'] : null; + + $this->container['file_generated_on'] = isset($data['file_generated_on']) ? $data['file_generated_on'] : null; + + $this->container['forwarded_on'] = isset($data['forwarded_on']) ? $data['forwarded_on'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + + $this->container['processed_on'] = isset($data['processed_on']) ? $data['processed_on'] : null; + + $this->container['processor'] = isset($data['processor']) ? $data['processor'] : null; + + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets created_on + * + * @return \DateTime + */ + public function getCreatedOn() + { + return $this->container['created_on']; + } + + /** + * Sets created_on + * + * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * + * @return $this + */ + public function setCreatedOn($created_on) + { + $this->container['created_on'] = $created_on; + + return $this; + } + + + /** + * Gets failure_message + * + * @return string + */ + public function getFailureMessage() + { + return $this->container['failure_message']; + } + + /** + * Sets failure_message + * + * @param string $failure_message + * + * @return $this + */ + public function setFailureMessage($failure_message) + { + $this->container['failure_message'] = $failure_message; + + return $this; + } + + + /** + * Gets file_generated_on + * + * @return \DateTime + */ + public function getFileGeneratedOn() + { + return $this->container['file_generated_on']; + } + + /** + * Sets file_generated_on + * + * @param \DateTime $file_generated_on + * + * @return $this + */ + public function setFileGeneratedOn($file_generated_on) + { + $this->container['file_generated_on'] = $file_generated_on; + + return $this; + } + + + /** + * Gets forwarded_on + * + * @return \DateTime + */ + public function getForwardedOn() + { + return $this->container['forwarded_on']; + } + + /** + * Sets forwarded_on + * + * @param \DateTime $forwarded_on The shipping date indicates the date on which the pain file was transferred to an external processing system. + * + * @return $this + */ + public function setForwardedOn($forwarded_on) + { + $this->container['forwarded_on'] = $forwarded_on; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The ID of the space this object belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + + /** + * Gets processed_on + * + * @return \DateTime + */ + public function getProcessedOn() + { + return $this->container['processed_on']; + } + + /** + * Sets processed_on + * + * @param \DateTime $processed_on + * + * @return $this + */ + public function setProcessedOn($processed_on) + { + $this->container['processed_on'] = $processed_on; + + return $this; + } + + + /** + * Gets processor + * + * @return \PostFinanceCheckout\Sdk\Model\PaymentProcessor + */ + public function getProcessor() + { + return $this->container['processor']; + } + + /** + * Sets processor + * + * @param \PostFinanceCheckout\Sdk\Model\PaymentProcessor $processor + * + * @return $this + */ + public function setProcessor($processor) + { + $this->container['processor'] = $processor; + + return $this; + } + + + /** + * Gets state + * + * @return \PostFinanceCheckout\Sdk\Model\PaymentInitiationAdviceFileState + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param \PostFinanceCheckout\Sdk\Model\PaymentInitiationAdviceFileState $state The object's current state. + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFileState.php b/postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFileState.php new file mode 100644 index 0000000..224ee15 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/PaymentInitiationAdviceFileState.php @@ -0,0 +1,64 @@ +container[$offset]); @@ -827,6 +828,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -840,6 +842,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -856,6 +859,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentLinkActive.php b/postfinancecheckout-sdk/lib/Model/PaymentLinkActive.php index 90378d2..966bcda 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentLinkActive.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentLinkActive.php @@ -217,7 +217,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -235,6 +235,7 @@ public function setState($state) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -247,6 +248,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -260,6 +262,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -276,6 +279,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentLinkCreate.php b/postfinancecheckout-sdk/lib/Model/PaymentLinkCreate.php index b00796b..6e21689 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentLinkCreate.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentLinkCreate.php @@ -228,7 +228,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -296,6 +296,7 @@ public function setProtectionMode($protection_mode) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -308,6 +309,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -321,6 +323,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -337,6 +340,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentLinkUpdate.php b/postfinancecheckout-sdk/lib/Model/PaymentLinkUpdate.php index 07c1fcf..8c02793 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentLinkUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentLinkUpdate.php @@ -629,6 +629,7 @@ public function setShippingAddressHandlingMode($shipping_address_handling_mode) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -641,6 +642,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -654,6 +656,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -670,6 +673,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentMethod.php b/postfinancecheckout-sdk/lib/Model/PaymentMethod.php index a8bce3a..d945db0 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentMethod.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentMethod.php @@ -280,7 +280,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -305,7 +305,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -380,7 +380,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -423,6 +423,7 @@ public function setSupportedCurrencies($supported_currencies) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -435,6 +436,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -448,6 +450,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -464,6 +467,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentMethodBrand.php b/postfinancecheckout-sdk/lib/Model/PaymentMethodBrand.php index afaa7b2..74a88a7 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentMethodBrand.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentMethodBrand.php @@ -248,7 +248,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -298,7 +298,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -348,7 +348,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -391,6 +391,7 @@ public function setPaymentMethod($payment_method) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +404,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +418,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +435,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentMethodConfiguration.php b/postfinancecheckout-sdk/lib/Model/PaymentMethodConfiguration.php index 0aa444c..1f1ae49 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentMethodConfiguration.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentMethodConfiguration.php @@ -379,7 +379,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -429,7 +429,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -533,7 +533,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -683,7 +683,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -733,7 +733,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -751,6 +751,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -763,6 +764,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -776,6 +778,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -792,6 +795,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentProcessor.php b/postfinancecheckout-sdk/lib/Model/PaymentProcessor.php index 93b5490..5103c28 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentProcessor.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentProcessor.php @@ -287,7 +287,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -362,7 +362,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -412,7 +412,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -455,6 +455,7 @@ public function setProductName($product_name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -467,6 +468,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -480,6 +482,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -496,6 +499,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentProcessorConfiguration.php b/postfinancecheckout-sdk/lib/Model/PaymentProcessorConfiguration.php index b0381d3..e30d28e 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentProcessorConfiguration.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentProcessorConfiguration.php @@ -49,6 +49,7 @@ class PaymentProcessorConfiguration implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'application_managed' => 'bool', 'contract_id' => 'int', 'id' => 'int', 'linked_space_id' => 'int', @@ -65,6 +66,7 @@ class PaymentProcessorConfiguration implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'application_managed' => null, 'contract_id' => 'int64', 'id' => 'int64', 'linked_space_id' => 'int64', @@ -82,6 +84,7 @@ class PaymentProcessorConfiguration implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ + 'application_managed' => 'applicationManaged', 'contract_id' => 'contractId', 'id' => 'id', 'linked_space_id' => 'linkedSpaceId', @@ -98,6 +101,7 @@ class PaymentProcessorConfiguration implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ + 'application_managed' => 'setApplicationManaged', 'contract_id' => 'setContractId', 'id' => 'setId', 'linked_space_id' => 'setLinkedSpaceId', @@ -114,6 +118,7 @@ class PaymentProcessorConfiguration implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ + 'application_managed' => 'getApplicationManaged', 'contract_id' => 'getContractId', 'id' => 'getId', 'linked_space_id' => 'getLinkedSpaceId', @@ -142,6 +147,8 @@ class PaymentProcessorConfiguration implements ModelInterface, ArrayAccess public function __construct(array $data = null) { + $this->container['application_managed'] = isset($data['application_managed']) ? $data['application_managed'] : null; + $this->container['contract_id'] = isset($data['contract_id']) ? $data['contract_id'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; @@ -253,6 +260,31 @@ public function valid() + /** + * Gets application_managed + * + * @return bool + */ + public function getApplicationManaged() + { + return $this->container['application_managed']; + } + + /** + * Sets application_managed + * + * @param bool $application_managed The configuration is managed by the application and cannot be changed via the user interface. + * + * @return $this + */ + public function setApplicationManaged($application_managed) + { + $this->container['application_managed'] = $application_managed; + + return $this; + } + + /** * Gets contract_id * @@ -291,7 +323,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -316,7 +348,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -370,7 +402,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -420,7 +452,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -445,7 +477,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -463,6 +495,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -475,6 +508,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -488,6 +522,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -504,6 +539,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminal.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminal.php index 398922a..c324fe1 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminal.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminal.php @@ -369,7 +369,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -419,7 +419,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -498,7 +498,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -523,7 +523,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalState $state + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalState $state The object's current state. * * @return $this */ @@ -573,7 +573,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -591,6 +591,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -603,6 +604,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -616,6 +618,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -632,6 +635,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalAddress.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalAddress.php index f4035d9..792ecdf 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminalAddress.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalAddress.php @@ -687,6 +687,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -699,6 +700,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -712,6 +714,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -728,6 +731,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfiguration.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfiguration.php index 33e607b..3d8770a 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfiguration.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfiguration.php @@ -259,7 +259,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -284,7 +284,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -338,7 +338,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -363,7 +363,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalConfigurationState $state + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalConfigurationState $state The object's current state. * * @return $this */ @@ -413,7 +413,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -431,6 +431,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -443,6 +444,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -456,6 +458,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -472,6 +475,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfigurationVersion.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfigurationVersion.php index 5149160..b663c03 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfigurationVersion.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfigurationVersion.php @@ -379,7 +379,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -429,7 +429,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -454,7 +454,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -529,7 +529,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -554,7 +554,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalConfigurationVersionState $state + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalConfigurationVersionState $state The object's current state. * * @return $this */ @@ -604,7 +604,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -647,6 +647,7 @@ public function setVersionAppliedImmediately($version_applied_immediately) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -659,6 +660,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -672,6 +674,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -688,6 +691,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalDccTransactionSum.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalDccTransactionSum.php new file mode 100644 index 0000000..3424b30 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalDccTransactionSum.php @@ -0,0 +1,526 @@ + 'string', + 'dcc_amount' => 'float', + 'dcc_currency' => 'string', + 'id' => 'int', + 'transaction_amount' => 'float', + 'transaction_count' => 'int', + 'transaction_currency' => 'string', + 'version' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'brand' => null, + 'dcc_amount' => null, + 'dcc_currency' => null, + 'id' => 'int64', + 'transaction_amount' => null, + 'transaction_count' => 'int32', + 'transaction_currency' => null, + 'version' => 'int32' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'brand' => 'brand', + 'dcc_amount' => 'dccAmount', + 'dcc_currency' => 'dccCurrency', + 'id' => 'id', + 'transaction_amount' => 'transactionAmount', + 'transaction_count' => 'transactionCount', + 'transaction_currency' => 'transactionCurrency', + 'version' => 'version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'brand' => 'setBrand', + 'dcc_amount' => 'setDccAmount', + 'dcc_currency' => 'setDccCurrency', + 'id' => 'setId', + 'transaction_amount' => 'setTransactionAmount', + 'transaction_count' => 'setTransactionCount', + 'transaction_currency' => 'setTransactionCurrency', + 'version' => 'setVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'brand' => 'getBrand', + 'dcc_amount' => 'getDccAmount', + 'dcc_currency' => 'getDccCurrency', + 'id' => 'getId', + 'transaction_amount' => 'getTransactionAmount', + 'transaction_count' => 'getTransactionCount', + 'transaction_currency' => 'getTransactionCurrency', + 'version' => 'getVersion' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null; + + $this->container['dcc_amount'] = isset($data['dcc_amount']) ? $data['dcc_amount'] : null; + + $this->container['dcc_currency'] = isset($data['dcc_currency']) ? $data['dcc_currency'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['transaction_amount'] = isset($data['transaction_amount']) ? $data['transaction_amount'] : null; + + $this->container['transaction_count'] = isset($data['transaction_count']) ? $data['transaction_count'] : null; + + $this->container['transaction_currency'] = isset($data['transaction_currency']) ? $data['transaction_currency'] : null; + + $this->container['version'] = isset($data['version']) ? $data['version'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets brand + * + * @return string + */ + public function getBrand() + { + return $this->container['brand']; + } + + /** + * Sets brand + * + * @param string $brand + * + * @return $this + */ + public function setBrand($brand) + { + $this->container['brand'] = $brand; + + return $this; + } + + + /** + * Gets dcc_amount + * + * @return float + */ + public function getDccAmount() + { + return $this->container['dcc_amount']; + } + + /** + * Sets dcc_amount + * + * @param float $dcc_amount + * + * @return $this + */ + public function setDccAmount($dcc_amount) + { + $this->container['dcc_amount'] = $dcc_amount; + + return $this; + } + + + /** + * Gets dcc_currency + * + * @return string + */ + public function getDccCurrency() + { + return $this->container['dcc_currency']; + } + + /** + * Sets dcc_currency + * + * @param string $dcc_currency + * + * @return $this + */ + public function setDccCurrency($dcc_currency) + { + $this->container['dcc_currency'] = $dcc_currency; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets transaction_amount + * + * @return float + */ + public function getTransactionAmount() + { + return $this->container['transaction_amount']; + } + + /** + * Sets transaction_amount + * + * @param float $transaction_amount + * + * @return $this + */ + public function setTransactionAmount($transaction_amount) + { + $this->container['transaction_amount'] = $transaction_amount; + + return $this; + } + + + /** + * Gets transaction_count + * + * @return int + */ + public function getTransactionCount() + { + return $this->container['transaction_count']; + } + + /** + * Sets transaction_count + * + * @param int $transaction_count + * + * @return $this + */ + public function setTransactionCount($transaction_count) + { + $this->container['transaction_count'] = $transaction_count; + + return $this; + } + + + /** + * Gets transaction_currency + * + * @return string + */ + public function getTransactionCurrency() + { + return $this->container['transaction_currency']; + } + + /** + * Sets transaction_currency + * + * @param string $transaction_currency + * + * @return $this + */ + public function setTransactionCurrency($transaction_currency) + { + $this->container['transaction_currency'] = $transaction_currency; + + return $this; + } + + + /** + * Gets version + * + * @return int + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. + * + * @return $this + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocation.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocation.php index de368d2..4f6d1eb 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocation.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocation.php @@ -284,7 +284,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -363,7 +363,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -388,7 +388,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalLocationState $state + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalLocationState $state The object's current state. * * @return $this */ @@ -413,7 +413,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -431,6 +431,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -443,6 +444,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -456,6 +458,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -472,6 +475,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocationVersion.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocationVersion.php index 15b9065..a2fca31 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocationVersion.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalLocationVersion.php @@ -358,7 +358,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -383,7 +383,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -408,7 +408,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -458,7 +458,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -483,7 +483,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalLocationVersionState $state + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalLocationVersionState $state The object's current state. * * @return $this */ @@ -508,7 +508,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -551,6 +551,7 @@ public function setVersionAppliedImmediately($version_applied_immediately) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -563,6 +564,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -576,6 +578,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -592,6 +595,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalReceiptType.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalReceiptType.php index 0c37d8f..e1b3175 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminalReceiptType.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalReceiptType.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSum.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSum.php new file mode 100644 index 0000000..44ac062 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSum.php @@ -0,0 +1,622 @@ + 'string', + 'dcc_tip_amount' => 'float', + 'dcc_transaction_amount' => 'float', + 'dcc_transaction_count' => 'int', + 'id' => 'int', + 'product' => 'string', + 'transaction_amount' => 'float', + 'transaction_count' => 'int', + 'transaction_currency' => 'string', + 'transaction_tip_amount' => 'float', + 'version' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'brand' => null, + 'dcc_tip_amount' => null, + 'dcc_transaction_amount' => null, + 'dcc_transaction_count' => 'int32', + 'id' => 'int64', + 'product' => null, + 'transaction_amount' => null, + 'transaction_count' => 'int32', + 'transaction_currency' => null, + 'transaction_tip_amount' => null, + 'version' => 'int32' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'brand' => 'brand', + 'dcc_tip_amount' => 'dccTipAmount', + 'dcc_transaction_amount' => 'dccTransactionAmount', + 'dcc_transaction_count' => 'dccTransactionCount', + 'id' => 'id', + 'product' => 'product', + 'transaction_amount' => 'transactionAmount', + 'transaction_count' => 'transactionCount', + 'transaction_currency' => 'transactionCurrency', + 'transaction_tip_amount' => 'transactionTipAmount', + 'version' => 'version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'brand' => 'setBrand', + 'dcc_tip_amount' => 'setDccTipAmount', + 'dcc_transaction_amount' => 'setDccTransactionAmount', + 'dcc_transaction_count' => 'setDccTransactionCount', + 'id' => 'setId', + 'product' => 'setProduct', + 'transaction_amount' => 'setTransactionAmount', + 'transaction_count' => 'setTransactionCount', + 'transaction_currency' => 'setTransactionCurrency', + 'transaction_tip_amount' => 'setTransactionTipAmount', + 'version' => 'setVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'brand' => 'getBrand', + 'dcc_tip_amount' => 'getDccTipAmount', + 'dcc_transaction_amount' => 'getDccTransactionAmount', + 'dcc_transaction_count' => 'getDccTransactionCount', + 'id' => 'getId', + 'product' => 'getProduct', + 'transaction_amount' => 'getTransactionAmount', + 'transaction_count' => 'getTransactionCount', + 'transaction_currency' => 'getTransactionCurrency', + 'transaction_tip_amount' => 'getTransactionTipAmount', + 'version' => 'getVersion' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null; + + $this->container['dcc_tip_amount'] = isset($data['dcc_tip_amount']) ? $data['dcc_tip_amount'] : null; + + $this->container['dcc_transaction_amount'] = isset($data['dcc_transaction_amount']) ? $data['dcc_transaction_amount'] : null; + + $this->container['dcc_transaction_count'] = isset($data['dcc_transaction_count']) ? $data['dcc_transaction_count'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['product'] = isset($data['product']) ? $data['product'] : null; + + $this->container['transaction_amount'] = isset($data['transaction_amount']) ? $data['transaction_amount'] : null; + + $this->container['transaction_count'] = isset($data['transaction_count']) ? $data['transaction_count'] : null; + + $this->container['transaction_currency'] = isset($data['transaction_currency']) ? $data['transaction_currency'] : null; + + $this->container['transaction_tip_amount'] = isset($data['transaction_tip_amount']) ? $data['transaction_tip_amount'] : null; + + $this->container['version'] = isset($data['version']) ? $data['version'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets brand + * + * @return string + */ + public function getBrand() + { + return $this->container['brand']; + } + + /** + * Sets brand + * + * @param string $brand + * + * @return $this + */ + public function setBrand($brand) + { + $this->container['brand'] = $brand; + + return $this; + } + + + /** + * Gets dcc_tip_amount + * + * @return float + */ + public function getDccTipAmount() + { + return $this->container['dcc_tip_amount']; + } + + /** + * Sets dcc_tip_amount + * + * @param float $dcc_tip_amount + * + * @return $this + */ + public function setDccTipAmount($dcc_tip_amount) + { + $this->container['dcc_tip_amount'] = $dcc_tip_amount; + + return $this; + } + + + /** + * Gets dcc_transaction_amount + * + * @return float + */ + public function getDccTransactionAmount() + { + return $this->container['dcc_transaction_amount']; + } + + /** + * Sets dcc_transaction_amount + * + * @param float $dcc_transaction_amount + * + * @return $this + */ + public function setDccTransactionAmount($dcc_transaction_amount) + { + $this->container['dcc_transaction_amount'] = $dcc_transaction_amount; + + return $this; + } + + + /** + * Gets dcc_transaction_count + * + * @return int + */ + public function getDccTransactionCount() + { + return $this->container['dcc_transaction_count']; + } + + /** + * Sets dcc_transaction_count + * + * @param int $dcc_transaction_count + * + * @return $this + */ + public function setDccTransactionCount($dcc_transaction_count) + { + $this->container['dcc_transaction_count'] = $dcc_transaction_count; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets product + * + * @return string + */ + public function getProduct() + { + return $this->container['product']; + } + + /** + * Sets product + * + * @param string $product + * + * @return $this + */ + public function setProduct($product) + { + $this->container['product'] = $product; + + return $this; + } + + + /** + * Gets transaction_amount + * + * @return float + */ + public function getTransactionAmount() + { + return $this->container['transaction_amount']; + } + + /** + * Sets transaction_amount + * + * @param float $transaction_amount + * + * @return $this + */ + public function setTransactionAmount($transaction_amount) + { + $this->container['transaction_amount'] = $transaction_amount; + + return $this; + } + + + /** + * Gets transaction_count + * + * @return int + */ + public function getTransactionCount() + { + return $this->container['transaction_count']; + } + + /** + * Sets transaction_count + * + * @param int $transaction_count + * + * @return $this + */ + public function setTransactionCount($transaction_count) + { + $this->container['transaction_count'] = $transaction_count; + + return $this; + } + + + /** + * Gets transaction_currency + * + * @return string + */ + public function getTransactionCurrency() + { + return $this->container['transaction_currency']; + } + + /** + * Sets transaction_currency + * + * @param string $transaction_currency + * + * @return $this + */ + public function setTransactionCurrency($transaction_currency) + { + $this->container['transaction_currency'] = $transaction_currency; + + return $this; + } + + + /** + * Gets transaction_tip_amount + * + * @return float + */ + public function getTransactionTipAmount() + { + return $this->container['transaction_tip_amount']; + } + + /** + * Sets transaction_tip_amount + * + * @param float $transaction_tip_amount + * + * @return $this + */ + public function setTransactionTipAmount($transaction_tip_amount) + { + $this->container['transaction_tip_amount'] = $transaction_tip_amount; + + return $this; + } + + + /** + * Gets version + * + * @return int + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. + * + * @return $this + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummary.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummary.php new file mode 100644 index 0000000..587ee39 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummary.php @@ -0,0 +1,590 @@ + '\PostFinanceCheckout\Sdk\Model\PaymentTerminalDccTransactionSum[]', + 'ended_on' => '\DateTime', + 'id' => 'int', + 'linked_space_id' => 'int', + 'number_of_transactions' => 'int', + 'payment_terminal' => 'int', + 'receipt' => 'string', + 'started_on' => '\DateTime', + 'transaction_sums' => '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSum[]', + 'version' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'dcc_transaction_sums' => null, + 'ended_on' => 'date-time', + 'id' => 'int64', + 'linked_space_id' => 'int64', + 'number_of_transactions' => 'int32', + 'payment_terminal' => 'int64', + 'receipt' => null, + 'started_on' => 'date-time', + 'transaction_sums' => null, + 'version' => 'int32' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'dcc_transaction_sums' => 'dccTransactionSums', + 'ended_on' => 'endedOn', + 'id' => 'id', + 'linked_space_id' => 'linkedSpaceId', + 'number_of_transactions' => 'numberOfTransactions', + 'payment_terminal' => 'paymentTerminal', + 'receipt' => 'receipt', + 'started_on' => 'startedOn', + 'transaction_sums' => 'transactionSums', + 'version' => 'version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'dcc_transaction_sums' => 'setDccTransactionSums', + 'ended_on' => 'setEndedOn', + 'id' => 'setId', + 'linked_space_id' => 'setLinkedSpaceId', + 'number_of_transactions' => 'setNumberOfTransactions', + 'payment_terminal' => 'setPaymentTerminal', + 'receipt' => 'setReceipt', + 'started_on' => 'setStartedOn', + 'transaction_sums' => 'setTransactionSums', + 'version' => 'setVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'dcc_transaction_sums' => 'getDccTransactionSums', + 'ended_on' => 'getEndedOn', + 'id' => 'getId', + 'linked_space_id' => 'getLinkedSpaceId', + 'number_of_transactions' => 'getNumberOfTransactions', + 'payment_terminal' => 'getPaymentTerminal', + 'receipt' => 'getReceipt', + 'started_on' => 'getStartedOn', + 'transaction_sums' => 'getTransactionSums', + 'version' => 'getVersion' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['dcc_transaction_sums'] = isset($data['dcc_transaction_sums']) ? $data['dcc_transaction_sums'] : null; + + $this->container['ended_on'] = isset($data['ended_on']) ? $data['ended_on'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + + $this->container['number_of_transactions'] = isset($data['number_of_transactions']) ? $data['number_of_transactions'] : null; + + $this->container['payment_terminal'] = isset($data['payment_terminal']) ? $data['payment_terminal'] : null; + + $this->container['receipt'] = isset($data['receipt']) ? $data['receipt'] : null; + + $this->container['started_on'] = isset($data['started_on']) ? $data['started_on'] : null; + + $this->container['transaction_sums'] = isset($data['transaction_sums']) ? $data['transaction_sums'] : null; + + $this->container['version'] = isset($data['version']) ? $data['version'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets dcc_transaction_sums + * + * @return \PostFinanceCheckout\Sdk\Model\PaymentTerminalDccTransactionSum[] + */ + public function getDccTransactionSums() + { + return $this->container['dcc_transaction_sums']; + } + + /** + * Sets dcc_transaction_sums + * + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalDccTransactionSum[] $dcc_transaction_sums + * + * @return $this + */ + public function setDccTransactionSums($dcc_transaction_sums) + { + $this->container['dcc_transaction_sums'] = $dcc_transaction_sums; + + return $this; + } + + + /** + * Gets ended_on + * + * @return \DateTime + */ + public function getEndedOn() + { + return $this->container['ended_on']; + } + + /** + * Sets ended_on + * + * @param \DateTime $ended_on + * + * @return $this + */ + public function setEndedOn($ended_on) + { + $this->container['ended_on'] = $ended_on; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id A unique identifier for the object. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The ID of the space this object belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + + /** + * Gets number_of_transactions + * + * @return int + */ + public function getNumberOfTransactions() + { + return $this->container['number_of_transactions']; + } + + /** + * Sets number_of_transactions + * + * @param int $number_of_transactions + * + * @return $this + */ + public function setNumberOfTransactions($number_of_transactions) + { + $this->container['number_of_transactions'] = $number_of_transactions; + + return $this; + } + + + /** + * Gets payment_terminal + * + * @return int + */ + public function getPaymentTerminal() + { + return $this->container['payment_terminal']; + } + + /** + * Sets payment_terminal + * + * @param int $payment_terminal + * + * @return $this + */ + public function setPaymentTerminal($payment_terminal) + { + $this->container['payment_terminal'] = $payment_terminal; + + return $this; + } + + + /** + * Gets receipt + * + * @return string + */ + public function getReceipt() + { + return $this->container['receipt']; + } + + /** + * Sets receipt + * + * @param string $receipt + * + * @return $this + */ + public function setReceipt($receipt) + { + $this->container['receipt'] = $receipt; + + return $this; + } + + + /** + * Gets started_on + * + * @return \DateTime + */ + public function getStartedOn() + { + return $this->container['started_on']; + } + + /** + * Sets started_on + * + * @param \DateTime $started_on + * + * @return $this + */ + public function setStartedOn($started_on) + { + $this->container['started_on'] = $started_on; + + return $this; + } + + + /** + * Gets transaction_sums + * + * @return \PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSum[] + */ + public function getTransactionSums() + { + return $this->container['transaction_sums']; + } + + /** + * Sets transaction_sums + * + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSum[] $transaction_sums + * + * @return $this + */ + public function setTransactionSums($transaction_sums) + { + $this->container['transaction_sums'] = $transaction_sums; + + return $this; + } + + + /** + * Gets version + * + * @return int + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. + * + * @return $this + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummaryFetchRequest.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummaryFetchRequest.php new file mode 100644 index 0000000..3c44e12 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalTransactionSummaryFetchRequest.php @@ -0,0 +1,372 @@ + '\PostFinanceCheckout\Sdk\Model\TerminalReceiptFormat', + 'summary_id' => 'int', + 'width' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'format' => null, + 'summary_id' => 'int64', + 'width' => 'int32' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'format' => 'format', + 'summary_id' => 'summaryId', + 'width' => 'width' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'format' => 'setFormat', + 'summary_id' => 'setSummaryId', + 'width' => 'setWidth' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'format' => 'getFormat', + 'summary_id' => 'getSummaryId', + 'width' => 'getWidth' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['format'] = isset($data['format']) ? $data['format'] : null; + + $this->container['summary_id'] = isset($data['summary_id']) ? $data['summary_id'] : null; + + $this->container['width'] = isset($data['width']) ? $data['width'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['format'] === null) { + $invalidProperties[] = "'format' can't be null"; + } + if ($this->container['summary_id'] === null) { + $invalidProperties[] = "'summary_id' can't be null"; + } + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets format + * + * @return \PostFinanceCheckout\Sdk\Model\TerminalReceiptFormat + */ + public function getFormat() + { + return $this->container['format']; + } + + /** + * Sets format + * + * @param \PostFinanceCheckout\Sdk\Model\TerminalReceiptFormat $format The format determines in what format the receipt will be returned in. + * + * @return $this + */ + public function setFormat($format) + { + $this->container['format'] = $format; + + return $this; + } + + + /** + * Gets summary_id + * + * @return int + */ + public function getSummaryId() + { + return $this->container['summary_id']; + } + + /** + * Sets summary_id + * + * @param int $summary_id The id of the transaction summary receipt whose content should be returned. + * + * @return $this + */ + public function setSummaryId($summary_id) + { + $this->container['summary_id'] = $summary_id; + + return $this; + } + + + /** + * Gets width + * + * @return int + */ + public function getWidth() + { + return $this->container['width']; + } + + /** + * Sets width + * + * @param int $width The width controls how width the document will be rendered. In case of the PDF format the width is in mm. In case of the text format the width is in the number of chars per line. + * + * @return $this + */ + public function setWidth($width) + { + $this->container['width'] = $width; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/PaymentTerminalType.php b/postfinancecheckout-sdk/lib/Model/PaymentTerminalType.php index 8ac1bfc..5f0b6ec 100644 --- a/postfinancecheckout-sdk/lib/Model/PaymentTerminalType.php +++ b/postfinancecheckout-sdk/lib/Model/PaymentTerminalType.php @@ -227,7 +227,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -252,7 +252,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -277,7 +277,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -295,6 +295,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Permission.php b/postfinancecheckout-sdk/lib/Model/Permission.php index 9ff9c8d..168398b 100644 --- a/postfinancecheckout-sdk/lib/Model/Permission.php +++ b/postfinancecheckout-sdk/lib/Model/Permission.php @@ -283,7 +283,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -358,7 +358,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -408,7 +408,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -551,6 +551,7 @@ public function setWebAppEnabled($web_app_enabled) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -563,6 +564,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -576,6 +578,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -592,6 +595,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Refund.php b/postfinancecheckout-sdk/lib/Model/Refund.php index cd74a59..e8b9297 100644 --- a/postfinancecheckout-sdk/lib/Model/Refund.php +++ b/postfinancecheckout-sdk/lib/Model/Refund.php @@ -546,7 +546,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -678,7 +678,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -728,7 +728,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -778,7 +778,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -857,7 +857,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -986,7 +986,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\RefundState $state + * @param \PostFinanceCheckout\Sdk\Model\RefundState $state The object's current state. * * @return $this */ @@ -1236,7 +1236,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -1254,6 +1254,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -1266,6 +1267,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -1279,6 +1281,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1295,6 +1298,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RefundBankTransaction.php b/postfinancecheckout-sdk/lib/Model/RefundBankTransaction.php index 514b282..64a2aee 100644 --- a/postfinancecheckout-sdk/lib/Model/RefundBankTransaction.php +++ b/postfinancecheckout-sdk/lib/Model/RefundBankTransaction.php @@ -274,7 +274,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -399,7 +399,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -417,6 +417,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -429,6 +430,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -442,6 +444,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -458,6 +461,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RefundComment.php b/postfinancecheckout-sdk/lib/Model/RefundComment.php index cb8c338..ccb2d41 100644 --- a/postfinancecheckout-sdk/lib/Model/RefundComment.php +++ b/postfinancecheckout-sdk/lib/Model/RefundComment.php @@ -334,7 +334,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -409,7 +409,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -434,7 +434,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -509,7 +509,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -527,6 +527,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -539,6 +540,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -552,6 +554,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -568,6 +571,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RefundCommentActive.php b/postfinancecheckout-sdk/lib/Model/RefundCommentActive.php index d0b2d16..f145ffc 100644 --- a/postfinancecheckout-sdk/lib/Model/RefundCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/RefundCommentActive.php @@ -267,6 +267,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -279,6 +280,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -292,6 +294,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -308,6 +311,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RefundCommentCreate.php b/postfinancecheckout-sdk/lib/Model/RefundCommentCreate.php index 5933379..31f818d 100644 --- a/postfinancecheckout-sdk/lib/Model/RefundCommentCreate.php +++ b/postfinancecheckout-sdk/lib/Model/RefundCommentCreate.php @@ -232,6 +232,7 @@ public function setRefund($refund) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -244,6 +245,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -257,6 +259,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -273,6 +276,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RefundCreate.php b/postfinancecheckout-sdk/lib/Model/RefundCreate.php index beac338..9d94ca2 100644 --- a/postfinancecheckout-sdk/lib/Model/RefundCreate.php +++ b/postfinancecheckout-sdk/lib/Model/RefundCreate.php @@ -452,6 +452,7 @@ public function setType($type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -464,6 +465,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -477,6 +479,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -493,6 +496,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RefundRecoveryBankTransaction.php b/postfinancecheckout-sdk/lib/Model/RefundRecoveryBankTransaction.php index 1ef203b..d12121d 100644 --- a/postfinancecheckout-sdk/lib/Model/RefundRecoveryBankTransaction.php +++ b/postfinancecheckout-sdk/lib/Model/RefundRecoveryBankTransaction.php @@ -281,7 +281,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -431,7 +431,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -449,6 +449,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -461,6 +462,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -474,6 +476,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -490,6 +493,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RenderedDocument.php b/postfinancecheckout-sdk/lib/Model/RenderedDocument.php index 09b4c8d..36e463e 100644 --- a/postfinancecheckout-sdk/lib/Model/RenderedDocument.php +++ b/postfinancecheckout-sdk/lib/Model/RenderedDocument.php @@ -329,6 +329,7 @@ public function setTitle($title) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -341,6 +342,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -354,6 +356,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -370,6 +373,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RenderedTerminalReceipt.php b/postfinancecheckout-sdk/lib/Model/RenderedTerminalReceipt.php index 54a36b7..a492249 100644 --- a/postfinancecheckout-sdk/lib/Model/RenderedTerminalReceipt.php +++ b/postfinancecheckout-sdk/lib/Model/RenderedTerminalReceipt.php @@ -329,6 +329,7 @@ public function setReceiptType($receipt_type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -341,6 +342,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -354,6 +356,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -370,6 +373,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionLineItemUpdateRequest.php b/postfinancecheckout-sdk/lib/Model/RenderedTerminalTransactionSummary.php similarity index 77% rename from postfinancecheckout-sdk/lib/Model/TransactionLineItemUpdateRequest.php rename to postfinancecheckout-sdk/lib/Model/RenderedTerminalTransactionSummary.php index bfbbddd..7594685 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionLineItemUpdateRequest.php +++ b/postfinancecheckout-sdk/lib/Model/RenderedTerminalTransactionSummary.php @@ -24,7 +24,7 @@ use \PostFinanceCheckout\Sdk\ObjectSerializer; /** - * TransactionLineItemUpdateRequest model + * RenderedTerminalTransactionSummary model * * @category Class * @description @@ -32,7 +32,7 @@ * @author customweb GmbH * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 */ -class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess +class RenderedTerminalTransactionSummary implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; @@ -41,7 +41,7 @@ class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess * * @var string */ - protected static $swaggerModelName = 'TransactionLineItemUpdateRequest'; + protected static $swaggerModelName = 'RenderedTerminalTransactionSummary'; /** * Array of property to type mappings. Used for (de)serialization @@ -49,8 +49,8 @@ class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'new_line_items' => '\PostFinanceCheckout\Sdk\Model\LineItemCreate[]', - 'transaction_id' => 'int' + 'data' => 'string', + 'mime_type' => 'string' ]; /** @@ -59,8 +59,8 @@ class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'new_line_items' => null, - 'transaction_id' => 'int64' + 'data' => 'byte', + 'mime_type' => null ]; /** @@ -70,8 +70,8 @@ class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ - 'new_line_items' => 'newLineItems', - 'transaction_id' => 'transactionId' + 'data' => 'data', + 'mime_type' => 'mimeType' ]; /** @@ -80,8 +80,8 @@ class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ - 'new_line_items' => 'setNewLineItems', - 'transaction_id' => 'setTransactionId' + 'data' => 'setData', + 'mime_type' => 'setMimeType' ]; /** @@ -90,8 +90,8 @@ class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ - 'new_line_items' => 'getNewLineItems', - 'transaction_id' => 'getTransactionId' + 'data' => 'getData', + 'mime_type' => 'getMimeType' ]; @@ -112,9 +112,9 @@ class TransactionLineItemUpdateRequest implements ModelInterface, ArrayAccess public function __construct(array $data = null) { - $this->container['new_line_items'] = isset($data['new_line_items']) ? $data['new_line_items'] : null; + $this->container['data'] = isset($data['data']) ? $data['data'] : null; - $this->container['transaction_id'] = isset($data['transaction_id']) ? $data['transaction_id'] : null; + $this->container['mime_type'] = isset($data['mime_type']) ? $data['mime_type'] : null; } @@ -127,9 +127,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['transaction_id'] === null) { - $invalidProperties[] = "'transaction_id' can't be null"; - } return $invalidProperties; } @@ -211,50 +208,52 @@ public function valid() /** - * Gets new_line_items + * Gets data * - * @return \PostFinanceCheckout\Sdk\Model\LineItemCreate[] + * @return string */ - public function getNewLineItems() + public function getData() { - return $this->container['new_line_items']; + return $this->container['data']; } /** - * Sets new_line_items + * Sets data * - * @param \PostFinanceCheckout\Sdk\Model\LineItemCreate[] $new_line_items + * @param string $data data * * @return $this */ - public function setNewLineItems($new_line_items) + public function setData($data) { - $this->container['new_line_items'] = $new_line_items; + + + $this->container['data'] = $data; return $this; } /** - * Gets transaction_id + * Gets mime_type * - * @return int + * @return string */ - public function getTransactionId() + public function getMimeType() { - return $this->container['transaction_id']; + return $this->container['mime_type']; } /** - * Sets transaction_id + * Sets mime_type * - * @param int $transaction_id + * @param string $mime_type The mime type indicates the format of the receipt document. The mime type depends on the requested receipt format. * * @return $this */ - public function setTransactionId($transaction_id) + public function setMimeType($mime_type) { - $this->container['transaction_id'] = $transaction_id; + $this->container['mime_type'] = $mime_type; return $this; } @@ -266,6 +265,7 @@ public function setTransactionId($transaction_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -278,6 +278,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -291,6 +292,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -307,6 +309,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RestAddressFormat.php b/postfinancecheckout-sdk/lib/Model/RestAddressFormat.php index 1e5ab38..68f2c1b 100644 --- a/postfinancecheckout-sdk/lib/Model/RestAddressFormat.php +++ b/postfinancecheckout-sdk/lib/Model/RestAddressFormat.php @@ -327,6 +327,7 @@ public function setUsedFields($used_fields) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RestCountry.php b/postfinancecheckout-sdk/lib/Model/RestCountry.php index 1a867cb..f154f52 100644 --- a/postfinancecheckout-sdk/lib/Model/RestCountry.php +++ b/postfinancecheckout-sdk/lib/Model/RestCountry.php @@ -391,6 +391,7 @@ public function setStateCodes($state_codes) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +404,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +418,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +435,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RestCountryState.php b/postfinancecheckout-sdk/lib/Model/RestCountryState.php index 005a61e..b929a83 100644 --- a/postfinancecheckout-sdk/lib/Model/RestCountryState.php +++ b/postfinancecheckout-sdk/lib/Model/RestCountryState.php @@ -327,6 +327,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RestCurrency.php b/postfinancecheckout-sdk/lib/Model/RestCurrency.php index d54b94d..ead10d4 100644 --- a/postfinancecheckout-sdk/lib/Model/RestCurrency.php +++ b/postfinancecheckout-sdk/lib/Model/RestCurrency.php @@ -295,6 +295,7 @@ public function setNumericCode($numeric_code) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/RestLanguage.php b/postfinancecheckout-sdk/lib/Model/RestLanguage.php index 16caca8..244b3cf 100644 --- a/postfinancecheckout-sdk/lib/Model/RestLanguage.php +++ b/postfinancecheckout-sdk/lib/Model/RestLanguage.php @@ -391,6 +391,7 @@ public function setPrimaryOfGroup($primary_of_group) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +404,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +418,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +435,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Role.php b/postfinancecheckout-sdk/lib/Model/Role.php index b8eee15..8ef96c6 100644 --- a/postfinancecheckout-sdk/lib/Model/Role.php +++ b/postfinancecheckout-sdk/lib/Model/Role.php @@ -287,7 +287,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -362,7 +362,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -387,7 +387,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\RoleState $state + * @param \PostFinanceCheckout\Sdk\Model\RoleState $state The object's current state. * * @return $this */ @@ -437,7 +437,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -455,6 +455,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -467,6 +468,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -480,6 +482,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -496,6 +499,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/SalesChannel.php b/postfinancecheckout-sdk/lib/Model/SalesChannel.php index 2bfad44..1703dfb 100644 --- a/postfinancecheckout-sdk/lib/Model/SalesChannel.php +++ b/postfinancecheckout-sdk/lib/Model/SalesChannel.php @@ -248,7 +248,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -298,7 +298,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -323,7 +323,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -391,6 +391,7 @@ public function setSortOrder($sort_order) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +404,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +418,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +435,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Scope.php b/postfinancecheckout-sdk/lib/Model/Scope.php index aef3bfe..e7d94cc 100644 --- a/postfinancecheckout-sdk/lib/Model/Scope.php +++ b/postfinancecheckout-sdk/lib/Model/Scope.php @@ -356,7 +356,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -439,7 +439,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -514,7 +514,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -589,7 +589,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -607,6 +607,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -619,6 +620,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -632,6 +634,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -648,6 +651,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ServerError.php b/postfinancecheckout-sdk/lib/Model/ServerError.php index b0007a8..3dc7a8f 100644 --- a/postfinancecheckout-sdk/lib/Model/ServerError.php +++ b/postfinancecheckout-sdk/lib/Model/ServerError.php @@ -295,6 +295,7 @@ public function setMessage($message) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifyIntegration.php b/postfinancecheckout-sdk/lib/Model/ShopifyIntegration.php index c4b4816..6671073 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifyIntegration.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifyIntegration.php @@ -486,7 +486,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -694,7 +694,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -873,7 +873,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -973,7 +973,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -991,6 +991,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -1003,6 +1004,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -1016,6 +1018,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1032,6 +1035,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrder.php b/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrder.php index d86b9e2..1607304 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrder.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrder.php @@ -473,7 +473,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -573,7 +573,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrderState $state + * @param \PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrderState $state The object's current state. * * @return $this */ @@ -641,6 +641,7 @@ public function setTransaction($transaction) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -653,6 +654,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -666,6 +668,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -682,6 +685,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrderUpdateRequest.php b/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrderUpdateRequest.php index a4f92cf..c8e93cf 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrderUpdateRequest.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifyRecurringOrderUpdateRequest.php @@ -263,6 +263,7 @@ public function setRecurringOrderId($recurring_order_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -275,6 +276,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -288,6 +290,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -304,6 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriber.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriber.php index 9471a78..b886234 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriber.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriber.php @@ -183,6 +183,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 254)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 254."; + } + return $invalidProperties; } @@ -307,6 +315,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling ShopifySubscriber., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -351,7 +363,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -376,7 +388,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -407,6 +419,10 @@ public function getPhoneNumber() */ public function setPhoneNumber($phone_number) { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 254)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling ShopifySubscriber., must be smaller than or equal to 254.'); + } + $this->container['phone_number'] = $phone_number; return $this; @@ -426,7 +442,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -476,7 +492,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriberState $state + * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriberState $state The object's current state. * * @return $this */ @@ -501,7 +517,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -519,6 +535,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -531,6 +548,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -544,6 +562,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -560,6 +579,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriberActive.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriberActive.php index f2a70d8..6c7b64b 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriberActive.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriberActive.php @@ -154,6 +154,14 @@ public function listInvalidProperties() if ($this->container['version'] === null) { $invalidProperties[] = "'version' can't be null"; } + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 254)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 254."; + } + return $invalidProperties; } @@ -303,6 +311,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling ShopifySubscriberActive., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -353,6 +365,10 @@ public function getPhoneNumber() */ public function setPhoneNumber($phone_number) { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 254)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling ShopifySubscriberActive., must be smaller than or equal to 254.'); + } + $this->container['phone_number'] = $phone_number; return $this; @@ -365,6 +381,7 @@ public function setPhoneNumber($phone_number) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -377,6 +394,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -390,6 +408,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -406,6 +425,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriberCreation.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriberCreation.php index c541412..1f79bbc 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriberCreation.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriberCreation.php @@ -298,6 +298,7 @@ public function setShopifyCustomerId($shopify_customer_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -310,6 +311,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -323,6 +325,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -339,6 +342,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscription.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscription.php index 42a0d4e..5cce0d2 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscription.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscription.php @@ -415,7 +415,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -515,7 +515,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -540,7 +540,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -615,7 +615,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionState $state + * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionState $state The object's current state. * * @return $this */ @@ -740,7 +740,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -758,6 +758,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -770,6 +771,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -783,6 +785,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -799,6 +802,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddress.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddress.php index 91123e8..f18a2e8 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddress.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddress.php @@ -242,6 +242,7 @@ public function valid() * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -254,6 +255,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -267,6 +269,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -283,6 +286,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddressCreate.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddressCreate.php index 67f5a74..c8f2563 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddressCreate.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionAddressCreate.php @@ -927,6 +927,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -939,6 +940,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -952,6 +954,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -968,6 +971,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionCreationRequest.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionCreationRequest.php index e3708ac..ad5087e 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionCreationRequest.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionCreationRequest.php @@ -671,6 +671,7 @@ public function setSubscriberSuspensionAllowed($subscriber_suspension_allowed) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -683,6 +684,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -696,6 +698,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -712,6 +715,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php index 3935e1b..3ebbaf7 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php @@ -487,6 +487,7 @@ public function setTerminationBillingCycles($termination_billing_cycles) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -499,6 +500,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -512,6 +514,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -528,6 +531,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelItem.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelItem.php index 5d5e6a7..c680ea1 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelItem.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelItem.php @@ -359,6 +359,7 @@ public function setTaxLines($tax_lines) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelTaxLine.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelTaxLine.php index 9d0b16b..34b30f9 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelTaxLine.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionModelTaxLine.php @@ -263,6 +263,7 @@ public function setTitle($title) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -275,6 +276,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -288,6 +290,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -304,6 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProduct.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProduct.php index 04a1f01..10953fd 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProduct.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProduct.php @@ -559,7 +559,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -584,7 +584,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -684,7 +684,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -959,7 +959,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProductState $state + * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProductState $state The object's current state. * * @return $this */ @@ -1109,7 +1109,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -1127,6 +1127,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -1139,6 +1140,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -1152,6 +1154,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1168,6 +1171,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductCreate.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductCreate.php index 9e23824..01e7eb7 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductCreate.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductCreate.php @@ -298,6 +298,7 @@ public function setShop($shop) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -310,6 +311,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -323,6 +325,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -339,6 +342,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductUpdate.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductUpdate.php index e710e47..87d9994 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionProductUpdate.php @@ -263,6 +263,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -275,6 +276,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -288,6 +290,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -304,6 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspension.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspension.php index bb90434..7f395f8 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspension.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspension.php @@ -397,7 +397,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -447,7 +447,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -522,7 +522,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspensionState $state + * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspensionState $state The object's current state. * * @return $this */ @@ -597,7 +597,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -615,6 +615,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -627,6 +628,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -640,6 +642,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -656,6 +659,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspensionCreate.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspensionCreate.php index 36ad366..836a38c 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspensionCreate.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionSuspensionCreate.php @@ -304,6 +304,7 @@ public function setType($type) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -316,6 +317,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -329,6 +331,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -345,6 +348,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateAddressesRequest.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateAddressesRequest.php index db52f16..bd95442 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateAddressesRequest.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateAddressesRequest.php @@ -295,6 +295,7 @@ public function setShippingAddress($shipping_address) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php index 7feaa29..aa12263 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php @@ -359,6 +359,7 @@ public function setSubscriberSuspensionAllowed($subscriber_suspension_allowed) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersion.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersion.php index 6b4a29f..17b224c 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersion.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersion.php @@ -677,7 +677,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -727,7 +727,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -927,7 +927,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersionState $state + * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersionState $state The object's current state. * * @return $this */ @@ -1077,7 +1077,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -1095,6 +1095,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -1107,6 +1108,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -1120,6 +1122,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1136,6 +1139,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersionItem.php b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersionItem.php index d2d2c7c..dc62a4d 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersionItem.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifySubscriptionVersionItem.php @@ -359,6 +359,7 @@ public function setTaxLines($tax_lines) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifyTaxLine.php b/postfinancecheckout-sdk/lib/Model/ShopifyTaxLine.php index 5e8d6a3..40b6c19 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifyTaxLine.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifyTaxLine.php @@ -266,7 +266,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -341,7 +341,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -359,6 +359,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/ShopifyTransaction.php b/postfinancecheckout-sdk/lib/Model/ShopifyTransaction.php index 7db32cf..656a86d 100644 --- a/postfinancecheckout-sdk/lib/Model/ShopifyTransaction.php +++ b/postfinancecheckout-sdk/lib/Model/ShopifyTransaction.php @@ -288,7 +288,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -388,7 +388,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -463,7 +463,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -481,6 +481,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -493,6 +494,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -506,6 +508,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -522,6 +525,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Space.php b/postfinancecheckout-sdk/lib/Model/Space.php index d630052..67673d9 100644 --- a/postfinancecheckout-sdk/lib/Model/Space.php +++ b/postfinancecheckout-sdk/lib/Model/Space.php @@ -554,7 +554,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -579,7 +579,7 @@ public function getLastModifiedDate() /** * Sets last_modified_date * - * @param \DateTime $last_modified_date + * @param \DateTime $last_modified_date The date and time when the object was last modified. * * @return $this */ @@ -636,7 +636,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -761,7 +761,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -836,7 +836,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -854,6 +854,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -866,6 +867,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -879,6 +881,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -895,6 +898,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/SpaceAddress.php b/postfinancecheckout-sdk/lib/Model/SpaceAddress.php index dd41bc9..586a5a7 100644 --- a/postfinancecheckout-sdk/lib/Model/SpaceAddress.php +++ b/postfinancecheckout-sdk/lib/Model/SpaceAddress.php @@ -55,7 +55,9 @@ class SpaceAddress implements ModelInterface, ArrayAccess 'email_address' => 'string', 'family_name' => 'string', 'given_name' => 'string', + 'mobile_phone_number' => 'string', 'organization_name' => 'string', + 'phone_number' => 'string', 'postal_state' => 'string', 'postcode' => 'string', 'sales_tax_number' => 'string', @@ -76,7 +78,9 @@ class SpaceAddress implements ModelInterface, ArrayAccess 'email_address' => null, 'family_name' => null, 'given_name' => null, + 'mobile_phone_number' => null, 'organization_name' => null, + 'phone_number' => null, 'postal_state' => null, 'postcode' => null, 'sales_tax_number' => null, @@ -98,7 +102,9 @@ class SpaceAddress implements ModelInterface, ArrayAccess 'email_address' => 'emailAddress', 'family_name' => 'familyName', 'given_name' => 'givenName', + 'mobile_phone_number' => 'mobilePhoneNumber', 'organization_name' => 'organizationName', + 'phone_number' => 'phoneNumber', 'postal_state' => 'postalState', 'postcode' => 'postcode', 'sales_tax_number' => 'salesTaxNumber', @@ -119,7 +125,9 @@ class SpaceAddress implements ModelInterface, ArrayAccess 'email_address' => 'setEmailAddress', 'family_name' => 'setFamilyName', 'given_name' => 'setGivenName', + 'mobile_phone_number' => 'setMobilePhoneNumber', 'organization_name' => 'setOrganizationName', + 'phone_number' => 'setPhoneNumber', 'postal_state' => 'setPostalState', 'postcode' => 'setPostcode', 'sales_tax_number' => 'setSalesTaxNumber', @@ -140,7 +148,9 @@ class SpaceAddress implements ModelInterface, ArrayAccess 'email_address' => 'getEmailAddress', 'family_name' => 'getFamilyName', 'given_name' => 'getGivenName', + 'mobile_phone_number' => 'getMobilePhoneNumber', 'organization_name' => 'getOrganizationName', + 'phone_number' => 'getPhoneNumber', 'postal_state' => 'getPostalState', 'postcode' => 'getPostcode', 'sales_tax_number' => 'getSalesTaxNumber', @@ -179,8 +189,12 @@ public function __construct(array $data = null) $this->container['given_name'] = isset($data['given_name']) ? $data['given_name'] : null; + $this->container['mobile_phone_number'] = isset($data['mobile_phone_number']) ? $data['mobile_phone_number'] : null; + $this->container['organization_name'] = isset($data['organization_name']) ? $data['organization_name'] : null; + $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; + $this->container['postal_state'] = isset($data['postal_state']) ? $data['postal_state'] : null; $this->container['postcode'] = isset($data['postcode']) ? $data['postcode'] : null; @@ -216,10 +230,18 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; } + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; } + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; } @@ -474,6 +496,35 @@ public function setGivenName($given_name) } + /** + * Gets mobile_phone_number + * + * @return string + */ + public function getMobilePhoneNumber() + { + return $this->container['mobile_phone_number']; + } + + /** + * Sets mobile_phone_number + * + * @param string $mobile_phone_number + * + * @return $this + */ + public function setMobilePhoneNumber($mobile_phone_number) + { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling SpaceAddress., must be smaller than or equal to 100.'); + } + + $this->container['mobile_phone_number'] = $mobile_phone_number; + + return $this; + } + + /** * Gets organization_name * @@ -503,6 +554,35 @@ public function setOrganizationName($organization_name) } + /** + * Gets phone_number + * + * @return string + */ + public function getPhoneNumber() + { + return $this->container['phone_number']; + } + + /** + * Sets phone_number + * + * @param string $phone_number + * + * @return $this + */ + public function setPhoneNumber($phone_number) + { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling SpaceAddress., must be smaller than or equal to 100.'); + } + + $this->container['phone_number'] = $phone_number; + + return $this; + } + + /** * Gets postal_state * @@ -671,6 +751,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -683,6 +764,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -696,6 +778,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -712,6 +795,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/SpaceAddressCreate.php b/postfinancecheckout-sdk/lib/Model/SpaceAddressCreate.php index b294197..2c7fe12 100644 --- a/postfinancecheckout-sdk/lib/Model/SpaceAddressCreate.php +++ b/postfinancecheckout-sdk/lib/Model/SpaceAddressCreate.php @@ -55,7 +55,9 @@ class SpaceAddressCreate implements ModelInterface, ArrayAccess 'email_address' => 'string', 'family_name' => 'string', 'given_name' => 'string', + 'mobile_phone_number' => 'string', 'organization_name' => 'string', + 'phone_number' => 'string', 'postal_state' => 'string', 'postcode' => 'string', 'sales_tax_number' => 'string', @@ -76,7 +78,9 @@ class SpaceAddressCreate implements ModelInterface, ArrayAccess 'email_address' => null, 'family_name' => null, 'given_name' => null, + 'mobile_phone_number' => null, 'organization_name' => null, + 'phone_number' => null, 'postal_state' => null, 'postcode' => null, 'sales_tax_number' => null, @@ -98,7 +102,9 @@ class SpaceAddressCreate implements ModelInterface, ArrayAccess 'email_address' => 'emailAddress', 'family_name' => 'familyName', 'given_name' => 'givenName', + 'mobile_phone_number' => 'mobilePhoneNumber', 'organization_name' => 'organizationName', + 'phone_number' => 'phoneNumber', 'postal_state' => 'postalState', 'postcode' => 'postcode', 'sales_tax_number' => 'salesTaxNumber', @@ -119,7 +125,9 @@ class SpaceAddressCreate implements ModelInterface, ArrayAccess 'email_address' => 'setEmailAddress', 'family_name' => 'setFamilyName', 'given_name' => 'setGivenName', + 'mobile_phone_number' => 'setMobilePhoneNumber', 'organization_name' => 'setOrganizationName', + 'phone_number' => 'setPhoneNumber', 'postal_state' => 'setPostalState', 'postcode' => 'setPostcode', 'sales_tax_number' => 'setSalesTaxNumber', @@ -140,7 +148,9 @@ class SpaceAddressCreate implements ModelInterface, ArrayAccess 'email_address' => 'getEmailAddress', 'family_name' => 'getFamilyName', 'given_name' => 'getGivenName', + 'mobile_phone_number' => 'getMobilePhoneNumber', 'organization_name' => 'getOrganizationName', + 'phone_number' => 'getPhoneNumber', 'postal_state' => 'getPostalState', 'postcode' => 'getPostcode', 'sales_tax_number' => 'getSalesTaxNumber', @@ -179,8 +189,12 @@ public function __construct(array $data = null) $this->container['given_name'] = isset($data['given_name']) ? $data['given_name'] : null; + $this->container['mobile_phone_number'] = isset($data['mobile_phone_number']) ? $data['mobile_phone_number'] : null; + $this->container['organization_name'] = isset($data['organization_name']) ? $data['organization_name'] : null; + $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; + $this->container['postal_state'] = isset($data['postal_state']) ? $data['postal_state'] : null; $this->container['postcode'] = isset($data['postcode']) ? $data['postcode'] : null; @@ -216,10 +230,18 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; } + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; } + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; } @@ -474,6 +496,35 @@ public function setGivenName($given_name) } + /** + * Gets mobile_phone_number + * + * @return string + */ + public function getMobilePhoneNumber() + { + return $this->container['mobile_phone_number']; + } + + /** + * Sets mobile_phone_number + * + * @param string $mobile_phone_number + * + * @return $this + */ + public function setMobilePhoneNumber($mobile_phone_number) + { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['mobile_phone_number'] = $mobile_phone_number; + + return $this; + } + + /** * Gets organization_name * @@ -503,6 +554,35 @@ public function setOrganizationName($organization_name) } + /** + * Gets phone_number + * + * @return string + */ + public function getPhoneNumber() + { + return $this->container['phone_number']; + } + + /** + * Sets phone_number + * + * @param string $phone_number + * + * @return $this + */ + public function setPhoneNumber($phone_number) + { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['phone_number'] = $phone_number; + + return $this; + } + + /** * Gets postal_state * @@ -671,6 +751,7 @@ public function setStreet($street) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -683,6 +764,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -696,6 +778,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -712,6 +795,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/SpaceCreate.php b/postfinancecheckout-sdk/lib/Model/SpaceCreate.php index acc3be5..34c8481 100644 --- a/postfinancecheckout-sdk/lib/Model/SpaceCreate.php +++ b/postfinancecheckout-sdk/lib/Model/SpaceCreate.php @@ -236,6 +236,7 @@ public function setAccount($account) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -248,6 +249,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -261,6 +263,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -277,6 +280,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/SpaceUpdate.php b/postfinancecheckout-sdk/lib/Model/SpaceUpdate.php index 8118af4..265e55e 100644 --- a/postfinancecheckout-sdk/lib/Model/SpaceUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/SpaceUpdate.php @@ -271,6 +271,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -283,6 +284,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -296,6 +298,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -312,6 +315,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/SpaceView.php b/postfinancecheckout-sdk/lib/Model/SpaceView.php index ccc4b29..c36bbc4 100644 --- a/postfinancecheckout-sdk/lib/Model/SpaceView.php +++ b/postfinancecheckout-sdk/lib/Model/SpaceView.php @@ -263,7 +263,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -288,7 +288,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -345,7 +345,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -395,7 +395,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -420,7 +420,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -438,6 +438,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -450,6 +451,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -463,6 +465,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -479,6 +482,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/StaticValue.php b/postfinancecheckout-sdk/lib/Model/StaticValue.php index 1cf4778..d4f6e6f 100644 --- a/postfinancecheckout-sdk/lib/Model/StaticValue.php +++ b/postfinancecheckout-sdk/lib/Model/StaticValue.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -284,7 +284,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Tax.php b/postfinancecheckout-sdk/lib/Model/Tax.php index c7ea89a..565379c 100644 --- a/postfinancecheckout-sdk/lib/Model/Tax.php +++ b/postfinancecheckout-sdk/lib/Model/Tax.php @@ -278,6 +278,7 @@ public function setTitle($title) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -290,6 +291,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -303,6 +305,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -319,6 +322,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TaxCreate.php b/postfinancecheckout-sdk/lib/Model/TaxCreate.php index 02fb28b..fbc0a3e 100644 --- a/postfinancecheckout-sdk/lib/Model/TaxCreate.php +++ b/postfinancecheckout-sdk/lib/Model/TaxCreate.php @@ -284,6 +284,7 @@ public function setTitle($title) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -296,6 +297,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -309,6 +311,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -325,6 +328,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TenantDatabase.php b/postfinancecheckout-sdk/lib/Model/TenantDatabase.php index 125d2be..fc1e883 100644 --- a/postfinancecheckout-sdk/lib/Model/TenantDatabase.php +++ b/postfinancecheckout-sdk/lib/Model/TenantDatabase.php @@ -231,7 +231,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -285,7 +285,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -303,6 +303,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -315,6 +316,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -328,6 +330,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -344,6 +347,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TerminalReceiptFetchRequest.php b/postfinancecheckout-sdk/lib/Model/TerminalReceiptFetchRequest.php index 86d3703..0f6ec61 100644 --- a/postfinancecheckout-sdk/lib/Model/TerminalReceiptFetchRequest.php +++ b/postfinancecheckout-sdk/lib/Model/TerminalReceiptFetchRequest.php @@ -301,6 +301,7 @@ public function setWidth($width) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -313,6 +314,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -326,6 +328,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -342,6 +345,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Token.php b/postfinancecheckout-sdk/lib/Model/Token.php index 180a79a..a782f6d 100644 --- a/postfinancecheckout-sdk/lib/Model/Token.php +++ b/postfinancecheckout-sdk/lib/Model/Token.php @@ -305,7 +305,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -434,7 +434,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -459,7 +459,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -484,7 +484,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -509,7 +509,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -534,7 +534,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -613,7 +613,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -631,6 +631,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -643,6 +644,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -656,6 +658,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -672,6 +675,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TokenCreate.php b/postfinancecheckout-sdk/lib/Model/TokenCreate.php index 0d707d6..7ca0dde 100644 --- a/postfinancecheckout-sdk/lib/Model/TokenCreate.php +++ b/postfinancecheckout-sdk/lib/Model/TokenCreate.php @@ -250,7 +250,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -268,6 +268,7 @@ public function setState($state) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -280,6 +281,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -293,6 +295,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -309,6 +312,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TokenUpdate.php b/postfinancecheckout-sdk/lib/Model/TokenUpdate.php index dfe1aef..a299d7b 100644 --- a/postfinancecheckout-sdk/lib/Model/TokenUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/TokenUpdate.php @@ -271,6 +271,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -283,6 +284,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -296,6 +298,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -312,6 +315,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TokenVersion.php b/postfinancecheckout-sdk/lib/Model/TokenVersion.php index c507b76..5c507ff 100644 --- a/postfinancecheckout-sdk/lib/Model/TokenVersion.php +++ b/postfinancecheckout-sdk/lib/Model/TokenVersion.php @@ -425,7 +425,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -525,7 +525,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -575,7 +575,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -600,7 +600,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -779,7 +779,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -858,7 +858,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\TokenVersionState $state + * @param \PostFinanceCheckout\Sdk\Model\TokenVersionState $state The object's current state. * * @return $this */ @@ -933,7 +933,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -951,6 +951,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -963,6 +964,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -976,6 +978,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -992,6 +995,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TokenVersionType.php b/postfinancecheckout-sdk/lib/Model/TokenVersionType.php index 83d1636..06941ba 100644 --- a/postfinancecheckout-sdk/lib/Model/TokenVersionType.php +++ b/postfinancecheckout-sdk/lib/Model/TokenVersionType.php @@ -234,7 +234,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -284,7 +284,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -309,7 +309,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -327,6 +327,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -339,6 +340,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -352,6 +354,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -368,6 +371,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/Transaction.php b/postfinancecheckout-sdk/lib/Model/Transaction.php index 803b2bb..f08de24 100644 --- a/postfinancecheckout-sdk/lib/Model/Transaction.php +++ b/postfinancecheckout-sdk/lib/Model/Transaction.php @@ -51,7 +51,7 @@ class Transaction implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'accept_header' => 'string', 'accept_language_header' => 'string', - 'allowed_payment_method_brands' => '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[]', + 'allowed_payment_method_brands' => 'int[]', 'allowed_payment_method_configurations' => 'int[]', 'authorization_amount' => 'float', 'authorization_environment' => '\PostFinanceCheckout\Sdk\Model\ChargeAttemptEnvironment', @@ -117,7 +117,8 @@ class Transaction implements ModelInterface, ArrayAccess 'user_interface_type' => '\PostFinanceCheckout\Sdk\Model\TransactionUserInterfaceType', 'version' => 'int', 'window_height' => 'string', - 'window_width' => 'string' + 'window_width' => 'string', + 'years_to_keep' => 'int' ]; /** @@ -128,7 +129,7 @@ class Transaction implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'accept_header' => null, 'accept_language_header' => null, - 'allowed_payment_method_brands' => null, + 'allowed_payment_method_brands' => 'int64', 'allowed_payment_method_configurations' => 'int64', 'authorization_amount' => null, 'authorization_environment' => null, @@ -194,7 +195,8 @@ class Transaction implements ModelInterface, ArrayAccess 'user_interface_type' => null, 'version' => 'int32', 'window_height' => null, - 'window_width' => null + 'window_width' => null, + 'years_to_keep' => 'int32' ]; /** @@ -272,7 +274,8 @@ class Transaction implements ModelInterface, ArrayAccess 'user_interface_type' => 'userInterfaceType', 'version' => 'version', 'window_height' => 'windowHeight', - 'window_width' => 'windowWidth' + 'window_width' => 'windowWidth', + 'years_to_keep' => 'yearsToKeep' ]; /** @@ -349,7 +352,8 @@ class Transaction implements ModelInterface, ArrayAccess 'user_interface_type' => 'setUserInterfaceType', 'version' => 'setVersion', 'window_height' => 'setWindowHeight', - 'window_width' => 'setWindowWidth' + 'window_width' => 'setWindowWidth', + 'years_to_keep' => 'setYearsToKeep' ]; /** @@ -426,7 +430,8 @@ class Transaction implements ModelInterface, ArrayAccess 'user_interface_type' => 'getUserInterfaceType', 'version' => 'getVersion', 'window_height' => 'getWindowHeight', - 'window_width' => 'getWindowWidth' + 'window_width' => 'getWindowWidth', + 'years_to_keep' => 'getYearsToKeep' ]; @@ -585,6 +590,8 @@ public function __construct(array $data = null) $this->container['window_width'] = isset($data['window_width']) ? $data['window_width'] : null; + $this->container['years_to_keep'] = isset($data['years_to_keep']) ? $data['years_to_keep'] : null; + } /** @@ -769,7 +776,7 @@ public function setAcceptLanguageHeader($accept_language_header) /** * Gets allowed_payment_method_brands * - * @return \PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[] + * @return int[] */ public function getAllowedPaymentMethodBrands() { @@ -779,7 +786,7 @@ public function getAllowedPaymentMethodBrands() /** * Sets allowed_payment_method_brands * - * @param \PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[] $allowed_payment_method_brands + * @param int[] $allowed_payment_method_brands * * @return $this */ @@ -1204,7 +1211,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -1308,7 +1315,7 @@ public function getCustomersPresence() /** * Sets customers_presence * - * @param \PostFinanceCheckout\Sdk\Model\CustomersPresence $customers_presence The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. + * @param \PostFinanceCheckout\Sdk\Model\CustomersPresence $customers_presence The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. * * @return $this */ @@ -1597,7 +1604,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -1726,7 +1733,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -1776,7 +1783,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -1905,7 +1912,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -2134,7 +2141,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\TransactionState $state + * @param \PostFinanceCheckout\Sdk\Model\TransactionState $state The object's current state. * * @return $this */ @@ -2416,7 +2423,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -2477,6 +2484,31 @@ public function setWindowWidth($window_width) return $this; } + + /** + * Gets years_to_keep + * + * @return int + */ + public function getYearsToKeep() + { + return $this->container['years_to_keep']; + } + + /** + * Sets years_to_keep + * + * @param int $years_to_keep The number of years the transaction will be stored after it has been authorized. + * + * @return $this + */ + public function setYearsToKeep($years_to_keep) + { + $this->container['years_to_keep'] = $years_to_keep; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * @@ -2484,6 +2516,7 @@ public function setWindowWidth($window_width) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -2496,6 +2529,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -2509,6 +2543,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -2525,6 +2560,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionAwareEntity.php b/postfinancecheckout-sdk/lib/Model/TransactionAwareEntity.php index 21e421b..2f72e09 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionAwareEntity.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionAwareEntity.php @@ -227,7 +227,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -252,7 +252,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -295,6 +295,7 @@ public function setLinkedTransaction($linked_transaction) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionComment.php b/postfinancecheckout-sdk/lib/Model/TransactionComment.php index 7957315..5d30d70 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionComment.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionComment.php @@ -334,7 +334,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -409,7 +409,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -434,7 +434,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -509,7 +509,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -527,6 +527,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -539,6 +540,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -552,6 +554,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -568,6 +571,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionCommentActive.php b/postfinancecheckout-sdk/lib/Model/TransactionCommentActive.php index 383a74c..c95fa7e 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionCommentActive.php @@ -267,6 +267,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -279,6 +280,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -292,6 +294,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -308,6 +311,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionCommentCreate.php b/postfinancecheckout-sdk/lib/Model/TransactionCommentCreate.php index c31b304..3c8710a 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionCommentCreate.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionCommentCreate.php @@ -232,6 +232,7 @@ public function setTransaction($transaction) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -244,6 +245,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -257,6 +259,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -273,6 +276,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionCompletion.php b/postfinancecheckout-sdk/lib/Model/TransactionCompletion.php index 0e158f3..6dce989 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionCompletion.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionCompletion.php @@ -69,6 +69,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => '\PostFinanceCheckout\Sdk\Model\LineItem[]', 'space_view_id' => 'int', 'state' => '\PostFinanceCheckout\Sdk\Model\TransactionCompletionState', + 'statement_descriptor' => 'string', 'succeeded_on' => '\DateTime', 'tax_amount' => 'float', 'time_zone' => 'string', @@ -104,6 +105,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => null, 'space_view_id' => 'int64', 'state' => null, + 'statement_descriptor' => null, 'succeeded_on' => 'date-time', 'tax_amount' => null, 'time_zone' => null, @@ -140,6 +142,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => 'remainingLineItems', 'space_view_id' => 'spaceViewId', 'state' => 'state', + 'statement_descriptor' => 'statementDescriptor', 'succeeded_on' => 'succeededOn', 'tax_amount' => 'taxAmount', 'time_zone' => 'timeZone', @@ -175,6 +178,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => 'setRemainingLineItems', 'space_view_id' => 'setSpaceViewId', 'state' => 'setState', + 'statement_descriptor' => 'setStatementDescriptor', 'succeeded_on' => 'setSucceededOn', 'tax_amount' => 'setTaxAmount', 'time_zone' => 'setTimeZone', @@ -210,6 +214,7 @@ class TransactionCompletion extends TransactionAwareEntity 'remaining_line_items' => 'getRemainingLineItems', 'space_view_id' => 'getSpaceViewId', 'state' => 'getState', + 'statement_descriptor' => 'getStatementDescriptor', 'succeeded_on' => 'getSucceededOn', 'tax_amount' => 'getTaxAmount', 'time_zone' => 'getTimeZone', @@ -275,6 +280,8 @@ public function __construct(array $data = null) $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['statement_descriptor'] = isset($data['statement_descriptor']) ? $data['statement_descriptor'] : null; + $this->container['succeeded_on'] = isset($data['succeeded_on']) ? $data['succeeded_on'] : null; $this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null; @@ -308,6 +315,10 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'invoice_merchant_reference', the character length must be smaller than or equal to 100."; } + if (!is_null($this->container['statement_descriptor']) && (mb_strlen($this->container['statement_descriptor']) > 80)) { + $invalidProperties[] = "invalid value for 'statement_descriptor', the character length must be smaller than or equal to 80."; + } + return $invalidProperties; } @@ -476,7 +487,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -637,7 +648,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -812,7 +823,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -937,7 +948,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionState $state + * @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionState $state The object's current state. * * @return $this */ @@ -949,6 +960,35 @@ public function setState($state) } + /** + * Gets statement_descriptor + * + * @return string + */ + public function getStatementDescriptor() + { + return $this->container['statement_descriptor']; + } + + /** + * Sets statement_descriptor + * + * @param string $statement_descriptor The statement descriptor explain charges or payments on bank statements. + * + * @return $this + */ + public function setStatementDescriptor($statement_descriptor) + { + if (!is_null($statement_descriptor) && (mb_strlen($statement_descriptor) > 80)) { + throw new \InvalidArgumentException('invalid length for $statement_descriptor when calling TransactionCompletion., must be smaller than or equal to 80.'); + } + + $this->container['statement_descriptor'] = $statement_descriptor; + + return $this; + } + + /** * Gets succeeded_on * @@ -1062,7 +1102,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -1080,6 +1120,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -1092,6 +1133,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -1105,6 +1147,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -1121,6 +1164,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionCompletionRequest.php b/postfinancecheckout-sdk/lib/Model/TransactionCompletionRequest.php index 57b4e7f..50122c5 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionCompletionRequest.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionCompletionRequest.php @@ -53,6 +53,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'string', 'last_completion' => 'bool', 'line_items' => '\PostFinanceCheckout\Sdk\Model\CompletionLineItemCreate[]', + 'statement_descriptor' => 'string', 'transaction_id' => 'int' ]; @@ -66,6 +67,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => null, 'last_completion' => null, 'line_items' => null, + 'statement_descriptor' => null, 'transaction_id' => 'int64' ]; @@ -80,6 +82,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'invoiceMerchantReference', 'last_completion' => 'lastCompletion', 'line_items' => 'lineItems', + 'statement_descriptor' => 'statementDescriptor', 'transaction_id' => 'transactionId' ]; @@ -93,6 +96,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'setInvoiceMerchantReference', 'last_completion' => 'setLastCompletion', 'line_items' => 'setLineItems', + 'statement_descriptor' => 'setStatementDescriptor', 'transaction_id' => 'setTransactionId' ]; @@ -106,6 +110,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess 'invoice_merchant_reference' => 'getInvoiceMerchantReference', 'last_completion' => 'getLastCompletion', 'line_items' => 'getLineItems', + 'statement_descriptor' => 'getStatementDescriptor', 'transaction_id' => 'getTransactionId' ]; @@ -135,6 +140,8 @@ public function __construct(array $data = null) $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + $this->container['statement_descriptor'] = isset($data['statement_descriptor']) ? $data['statement_descriptor'] : null; + $this->container['transaction_id'] = isset($data['transaction_id']) ? $data['transaction_id'] : null; } @@ -166,6 +173,10 @@ public function listInvalidProperties() if ($this->container['last_completion'] === null) { $invalidProperties[] = "'last_completion' can't be null"; } + if (!is_null($this->container['statement_descriptor']) && (mb_strlen($this->container['statement_descriptor']) > 80)) { + $invalidProperties[] = "invalid value for 'statement_descriptor', the character length must be smaller than or equal to 80."; + } + if ($this->container['transaction_id'] === null) { $invalidProperties[] = "'transaction_id' can't be null"; } @@ -360,6 +371,35 @@ public function setLineItems($line_items) } + /** + * Gets statement_descriptor + * + * @return string + */ + public function getStatementDescriptor() + { + return $this->container['statement_descriptor']; + } + + /** + * Sets statement_descriptor + * + * @param string $statement_descriptor The statement descriptor explain charges or payments on bank statements. + * + * @return $this + */ + public function setStatementDescriptor($statement_descriptor) + { + if (!is_null($statement_descriptor) && (mb_strlen($statement_descriptor) > 80)) { + throw new \InvalidArgumentException('invalid length for $statement_descriptor when calling TransactionCompletionRequest., must be smaller than or equal to 80.'); + } + + $this->container['statement_descriptor'] = $statement_descriptor; + + return $this; + } + + /** * Gets transaction_id * @@ -391,6 +431,7 @@ public function setTransactionId($transaction_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +444,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +458,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +475,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionCreate.php b/postfinancecheckout-sdk/lib/Model/TransactionCreate.php index 844bf65..78c29bf 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionCreate.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionCreate.php @@ -349,7 +349,7 @@ public function getCustomersPresence() /** * Sets customers_presence * - * @param \PostFinanceCheckout\Sdk\Model\CustomersPresence $customers_presence The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. + * @param \PostFinanceCheckout\Sdk\Model\CustomersPresence $customers_presence The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. * * @return $this */ @@ -499,6 +499,7 @@ public function setSpaceViewId($space_view_id) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -511,6 +512,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -524,6 +526,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -540,6 +543,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionGroup.php b/postfinancecheckout-sdk/lib/Model/TransactionGroup.php index e70235c..1fbe7ca 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionGroup.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionGroup.php @@ -345,7 +345,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -370,7 +370,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -395,7 +395,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -420,7 +420,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\TransactionGroupState $state + * @param \PostFinanceCheckout\Sdk\Model\TransactionGroupState $state The object's current state. * * @return $this */ @@ -445,7 +445,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -463,6 +463,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -475,6 +476,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -488,6 +490,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -504,6 +507,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionInvoice.php b/postfinancecheckout-sdk/lib/Model/TransactionInvoice.php index a04543b..595ca0a 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionInvoice.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionInvoice.php @@ -584,7 +584,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -713,7 +713,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -763,7 +763,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceState $state + * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceState $state The object's current state. * * @return $this */ @@ -838,7 +838,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -856,6 +856,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -868,6 +869,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -881,6 +883,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -897,6 +900,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceComment.php b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceComment.php index 2880e88..9aa279b 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceComment.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceComment.php @@ -334,7 +334,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -409,7 +409,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -434,7 +434,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -509,7 +509,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -527,6 +527,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -539,6 +540,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -552,6 +554,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -568,6 +571,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentActive.php b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentActive.php index 81243db..4257375 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentActive.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentActive.php @@ -267,6 +267,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -279,6 +280,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -292,6 +294,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -308,6 +311,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentCreate.php b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentCreate.php index da4de0d..1efb19e 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentCreate.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceCommentCreate.php @@ -232,6 +232,7 @@ public function setTransactionInvoice($transaction_invoice) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -244,6 +245,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -257,6 +259,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -273,6 +276,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceReplacement.php b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceReplacement.php index 820e13b..4222735 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionInvoiceReplacement.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionInvoiceReplacement.php @@ -420,6 +420,7 @@ public function setSentToCustomer($sent_to_customer) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -432,6 +433,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -445,6 +447,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -461,6 +464,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersion.php b/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersion.php index a94b7fe..e11153b 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersion.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersion.php @@ -50,11 +50,20 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'amount' => 'float', 'created_by' => 'int', 'created_on' => '\DateTime', + 'external_id' => 'string', + 'failed_on' => '\DateTime', + 'failure_reason' => '\PostFinanceCheckout\Sdk\Model\FailureReason', + 'labels' => '\PostFinanceCheckout\Sdk\Model\Label[]', 'language' => 'string', 'line_items' => '\PostFinanceCheckout\Sdk\Model\LineItem[]', + 'next_update_on' => '\DateTime', 'planned_purge_date' => '\DateTime', + 'processing_on' => '\DateTime', 'space_view_id' => 'int', + 'state' => '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersionState', + 'succeeded_on' => '\DateTime', 'tax_amount' => 'float', + 'timeout_on' => '\DateTime', 'transaction' => '\PostFinanceCheckout\Sdk\Model\Transaction', 'version' => 'int' ]; @@ -68,11 +77,20 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'amount' => null, 'created_by' => 'int64', 'created_on' => 'date-time', + 'external_id' => null, + 'failed_on' => 'date-time', + 'failure_reason' => null, + 'labels' => null, 'language' => null, 'line_items' => null, + 'next_update_on' => 'date-time', 'planned_purge_date' => 'date-time', + 'processing_on' => 'date-time', 'space_view_id' => 'int64', + 'state' => null, + 'succeeded_on' => 'date-time', 'tax_amount' => null, + 'timeout_on' => 'date-time', 'transaction' => null, 'version' => 'int32' ]; @@ -87,11 +105,20 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'amount' => 'amount', 'created_by' => 'createdBy', 'created_on' => 'createdOn', + 'external_id' => 'externalId', + 'failed_on' => 'failedOn', + 'failure_reason' => 'failureReason', + 'labels' => 'labels', 'language' => 'language', 'line_items' => 'lineItems', + 'next_update_on' => 'nextUpdateOn', 'planned_purge_date' => 'plannedPurgeDate', + 'processing_on' => 'processingOn', 'space_view_id' => 'spaceViewId', + 'state' => 'state', + 'succeeded_on' => 'succeededOn', 'tax_amount' => 'taxAmount', + 'timeout_on' => 'timeoutOn', 'transaction' => 'transaction', 'version' => 'version' ]; @@ -105,11 +132,20 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'amount' => 'setAmount', 'created_by' => 'setCreatedBy', 'created_on' => 'setCreatedOn', + 'external_id' => 'setExternalId', + 'failed_on' => 'setFailedOn', + 'failure_reason' => 'setFailureReason', + 'labels' => 'setLabels', 'language' => 'setLanguage', 'line_items' => 'setLineItems', + 'next_update_on' => 'setNextUpdateOn', 'planned_purge_date' => 'setPlannedPurgeDate', + 'processing_on' => 'setProcessingOn', 'space_view_id' => 'setSpaceViewId', + 'state' => 'setState', + 'succeeded_on' => 'setSucceededOn', 'tax_amount' => 'setTaxAmount', + 'timeout_on' => 'setTimeoutOn', 'transaction' => 'setTransaction', 'version' => 'setVersion' ]; @@ -123,11 +159,20 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'amount' => 'getAmount', 'created_by' => 'getCreatedBy', 'created_on' => 'getCreatedOn', + 'external_id' => 'getExternalId', + 'failed_on' => 'getFailedOn', + 'failure_reason' => 'getFailureReason', + 'labels' => 'getLabels', 'language' => 'getLanguage', 'line_items' => 'getLineItems', + 'next_update_on' => 'getNextUpdateOn', 'planned_purge_date' => 'getPlannedPurgeDate', + 'processing_on' => 'getProcessingOn', 'space_view_id' => 'getSpaceViewId', + 'state' => 'getState', + 'succeeded_on' => 'getSucceededOn', 'tax_amount' => 'getTaxAmount', + 'timeout_on' => 'getTimeoutOn', 'transaction' => 'getTransaction', 'version' => 'getVersion' ]; @@ -152,16 +197,34 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + + $this->container['failed_on'] = isset($data['failed_on']) ? $data['failed_on'] : null; + + $this->container['failure_reason'] = isset($data['failure_reason']) ? $data['failure_reason'] : null; + + $this->container['labels'] = isset($data['labels']) ? $data['labels'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : null; $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + $this->container['next_update_on'] = isset($data['next_update_on']) ? $data['next_update_on'] : null; + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; + $this->container['processing_on'] = isset($data['processing_on']) ? $data['processing_on'] : null; + $this->container['space_view_id'] = isset($data['space_view_id']) ? $data['space_view_id'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + + $this->container['succeeded_on'] = isset($data['succeeded_on']) ? $data['succeeded_on'] : null; + $this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null; + $this->container['timeout_on'] = isset($data['timeout_on']) ? $data['timeout_on'] : null; + $this->container['transaction'] = isset($data['transaction']) ? $data['transaction'] : null; $this->container['version'] = isset($data['version']) ? $data['version'] : null; @@ -320,7 +383,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -332,6 +395,106 @@ public function setCreatedOn($created_on) } + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead. + * + * @return $this + */ + public function setExternalId($external_id) + { + $this->container['external_id'] = $external_id; + + return $this; + } + + + /** + * Gets failed_on + * + * @return \DateTime + */ + public function getFailedOn() + { + return $this->container['failed_on']; + } + + /** + * Sets failed_on + * + * @param \DateTime $failed_on + * + * @return $this + */ + public function setFailedOn($failed_on) + { + $this->container['failed_on'] = $failed_on; + + return $this; + } + + + /** + * Gets failure_reason + * + * @return \PostFinanceCheckout\Sdk\Model\FailureReason + */ + public function getFailureReason() + { + return $this->container['failure_reason']; + } + + /** + * Sets failure_reason + * + * @param \PostFinanceCheckout\Sdk\Model\FailureReason $failure_reason + * + * @return $this + */ + public function setFailureReason($failure_reason) + { + $this->container['failure_reason'] = $failure_reason; + + return $this; + } + + + /** + * Gets labels + * + * @return \PostFinanceCheckout\Sdk\Model\Label[] + */ + public function getLabels() + { + return $this->container['labels']; + } + + /** + * Sets labels + * + * @param \PostFinanceCheckout\Sdk\Model\Label[] $labels + * + * @return $this + */ + public function setLabels($labels) + { + $this->container['labels'] = $labels; + + return $this; + } + + /** * Gets language * @@ -345,7 +508,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -382,6 +545,31 @@ public function setLineItems($line_items) } + /** + * Gets next_update_on + * + * @return \DateTime + */ + public function getNextUpdateOn() + { + return $this->container['next_update_on']; + } + + /** + * Sets next_update_on + * + * @param \DateTime $next_update_on + * + * @return $this + */ + public function setNextUpdateOn($next_update_on) + { + $this->container['next_update_on'] = $next_update_on; + + return $this; + } + + /** * Gets planned_purge_date * @@ -395,7 +583,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -407,6 +595,31 @@ public function setPlannedPurgeDate($planned_purge_date) } + /** + * Gets processing_on + * + * @return \DateTime + */ + public function getProcessingOn() + { + return $this->container['processing_on']; + } + + /** + * Sets processing_on + * + * @param \DateTime $processing_on + * + * @return $this + */ + public function setProcessingOn($processing_on) + { + $this->container['processing_on'] = $processing_on; + + return $this; + } + + /** * Gets space_view_id * @@ -432,6 +645,56 @@ public function setSpaceViewId($space_view_id) } + /** + * Gets state + * + * @return \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersionState + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersionState $state The object's current state. + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + + /** + * Gets succeeded_on + * + * @return \DateTime + */ + public function getSucceededOn() + { + return $this->container['succeeded_on']; + } + + /** + * Sets succeeded_on + * + * @param \DateTime $succeeded_on + * + * @return $this + */ + public function setSucceededOn($succeeded_on) + { + $this->container['succeeded_on'] = $succeeded_on; + + return $this; + } + + /** * Gets tax_amount * @@ -457,6 +720,31 @@ public function setTaxAmount($tax_amount) } + /** + * Gets timeout_on + * + * @return \DateTime + */ + public function getTimeoutOn() + { + return $this->container['timeout_on']; + } + + /** + * Sets timeout_on + * + * @param \DateTime $timeout_on + * + * @return $this + */ + public function setTimeoutOn($timeout_on) + { + $this->container['timeout_on'] = $timeout_on; + + return $this; + } + + /** * Gets transaction * @@ -495,7 +783,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -513,6 +801,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -525,6 +814,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -538,6 +828,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -554,6 +845,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionCreate.php b/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionCreate.php new file mode 100644 index 0000000..14fa5e6 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionCreate.php @@ -0,0 +1,375 @@ + 'string', + 'line_items' => '\PostFinanceCheckout\Sdk\Model\LineItemCreate[]', + 'transaction' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'external_id' => null, + 'line_items' => null, + 'transaction' => 'int64' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'external_id' => 'externalId', + 'line_items' => 'lineItems', + 'transaction' => 'transaction' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'external_id' => 'setExternalId', + 'line_items' => 'setLineItems', + 'transaction' => 'setTransaction' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'external_id' => 'getExternalId', + 'line_items' => 'getLineItems', + 'transaction' => 'getTransaction' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + + $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + + $this->container['transaction'] = isset($data['transaction']) ? $data['transaction'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['external_id'] === null) { + $invalidProperties[] = "'external_id' can't be null"; + } + if ($this->container['line_items'] === null) { + $invalidProperties[] = "'line_items' can't be null"; + } + if ($this->container['transaction'] === null) { + $invalidProperties[] = "'transaction' can't be null"; + } + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead. + * + * @return $this + */ + public function setExternalId($external_id) + { + $this->container['external_id'] = $external_id; + + return $this; + } + + + /** + * Gets line_items + * + * @return \PostFinanceCheckout\Sdk\Model\LineItemCreate[] + */ + public function getLineItems() + { + return $this->container['line_items']; + } + + /** + * Sets line_items + * + * @param \PostFinanceCheckout\Sdk\Model\LineItemCreate[] $line_items + * + * @return $this + */ + public function setLineItems($line_items) + { + $this->container['line_items'] = $line_items; + + return $this; + } + + + /** + * Gets transaction + * + * @return int + */ + public function getTransaction() + { + return $this->container['transaction']; + } + + /** + * Sets transaction + * + * @param int $transaction + * + * @return $this + */ + public function setTransaction($transaction) + { + $this->container['transaction'] = $transaction; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionState.php b/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionState.php new file mode 100644 index 0000000..d17755e --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/TransactionLineItemVersionState.php @@ -0,0 +1,60 @@ +container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TransactionVoid.php b/postfinancecheckout-sdk/lib/Model/TransactionVoid.php index 9c7212e..b9f9fa0 100644 --- a/postfinancecheckout-sdk/lib/Model/TransactionVoid.php +++ b/postfinancecheckout-sdk/lib/Model/TransactionVoid.php @@ -337,7 +337,7 @@ public function getCreatedOn() /** * Sets created_on * - * @param \DateTime $created_on The created on date indicates the date on which the entity was stored into the database. + * @param \DateTime $created_on The date and time when the object was created. * * @return $this */ @@ -437,7 +437,7 @@ public function getLanguage() /** * Sets language * - * @param string $language + * @param string $language The language that is linked to the object. * * @return $this */ @@ -512,7 +512,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -587,7 +587,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\TransactionVoidState $state + * @param \PostFinanceCheckout\Sdk\Model\TransactionVoidState $state The object's current state. * * @return $this */ @@ -687,7 +687,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -705,6 +705,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -717,6 +718,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -730,6 +732,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -746,6 +749,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/TwoFactorAuthenticationType.php b/postfinancecheckout-sdk/lib/Model/TwoFactorAuthenticationType.php index 208069d..2acef47 100644 --- a/postfinancecheckout-sdk/lib/Model/TwoFactorAuthenticationType.php +++ b/postfinancecheckout-sdk/lib/Model/TwoFactorAuthenticationType.php @@ -241,7 +241,7 @@ public function getDescription() /** * Sets description * - * @param map[string,string] $description + * @param map[string,string] $description The description of the object translated into different languages. * * @return $this */ @@ -316,7 +316,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -341,7 +341,7 @@ public function getName() /** * Sets name * - * @param map[string,string] $name + * @param map[string,string] $name The name of the object translated into different languages. * * @return $this */ @@ -359,6 +359,7 @@ public function setName($name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/User.php b/postfinancecheckout-sdk/lib/Model/User.php index 6881001..65bba96 100644 --- a/postfinancecheckout-sdk/lib/Model/User.php +++ b/postfinancecheckout-sdk/lib/Model/User.php @@ -248,7 +248,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -273,7 +273,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -323,7 +323,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -373,7 +373,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -391,6 +391,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +404,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +418,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +435,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/UserAccountRole.php b/postfinancecheckout-sdk/lib/Model/UserAccountRole.php index 3fbbccb..53b0dbb 100644 --- a/postfinancecheckout-sdk/lib/Model/UserAccountRole.php +++ b/postfinancecheckout-sdk/lib/Model/UserAccountRole.php @@ -298,7 +298,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -373,7 +373,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -391,6 +391,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -403,6 +404,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -416,6 +418,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -432,6 +435,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/UserSpaceRole.php b/postfinancecheckout-sdk/lib/Model/UserSpaceRole.php index 58f3ca5..dc858e4 100644 --- a/postfinancecheckout-sdk/lib/Model/UserSpaceRole.php +++ b/postfinancecheckout-sdk/lib/Model/UserSpaceRole.php @@ -241,7 +241,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -341,7 +341,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -359,6 +359,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -371,6 +372,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -384,6 +386,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -400,6 +403,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WalletType.php b/postfinancecheckout-sdk/lib/Model/WalletType.php new file mode 100644 index 0000000..f83b5c8 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Model/WalletType.php @@ -0,0 +1,52 @@ +container[$offset]); @@ -411,6 +412,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -424,6 +426,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -440,6 +443,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WebhookListener.php b/postfinancecheckout-sdk/lib/Model/WebhookListener.php index 0dd8754..8b5a19e 100644 --- a/postfinancecheckout-sdk/lib/Model/WebhookListener.php +++ b/postfinancecheckout-sdk/lib/Model/WebhookListener.php @@ -337,7 +337,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -387,7 +387,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -466,7 +466,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -491,7 +491,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -541,7 +541,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -559,6 +559,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -571,6 +572,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -584,6 +586,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -600,6 +603,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WebhookListenerCreate.php b/postfinancecheckout-sdk/lib/Model/WebhookListenerCreate.php index 2140c39..b04a013 100644 --- a/postfinancecheckout-sdk/lib/Model/WebhookListenerCreate.php +++ b/postfinancecheckout-sdk/lib/Model/WebhookListenerCreate.php @@ -299,6 +299,7 @@ public function setUrl($url) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -311,6 +312,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -324,6 +326,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -340,6 +343,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WebhookListenerEntity.php b/postfinancecheckout-sdk/lib/Model/WebhookListenerEntity.php index efac906..29d57b1 100644 --- a/postfinancecheckout-sdk/lib/Model/WebhookListenerEntity.php +++ b/postfinancecheckout-sdk/lib/Model/WebhookListenerEntity.php @@ -227,7 +227,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -295,6 +295,7 @@ public function setTechnicalName($technical_name) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -307,6 +308,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -320,6 +322,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -336,6 +339,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WebhookListenerUpdate.php b/postfinancecheckout-sdk/lib/Model/WebhookListenerUpdate.php index feb322c..d932d14 100644 --- a/postfinancecheckout-sdk/lib/Model/WebhookListenerUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/WebhookListenerUpdate.php @@ -267,6 +267,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -279,6 +280,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -292,6 +294,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -308,6 +311,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WebhookUrl.php b/postfinancecheckout-sdk/lib/Model/WebhookUrl.php index 4d89657..504e5f0 100644 --- a/postfinancecheckout-sdk/lib/Model/WebhookUrl.php +++ b/postfinancecheckout-sdk/lib/Model/WebhookUrl.php @@ -299,7 +299,7 @@ public function getId() /** * Sets id * - * @param int $id The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @param int $id A unique identifier for the object. * * @return $this */ @@ -324,7 +324,7 @@ public function getLinkedSpaceId() /** * Sets linked_space_id * - * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * @param int $linked_space_id The ID of the space this object belongs to. * * @return $this */ @@ -378,7 +378,7 @@ public function getPlannedPurgeDate() /** * Sets planned_purge_date * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \DateTime $planned_purge_date The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * * @return $this */ @@ -403,7 +403,7 @@ public function getState() /** * Sets state * - * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state + * @param \PostFinanceCheckout\Sdk\Model\CreationEntityState $state The object's current state. * * @return $this */ @@ -460,7 +460,7 @@ public function getVersion() /** * Sets version * - * @param int $version The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @param int $version The version is used for optimistic locking and incremented whenever the object is updated. * * @return $this */ @@ -478,6 +478,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -490,6 +491,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -503,6 +505,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -519,6 +522,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WebhookUrlCreate.php b/postfinancecheckout-sdk/lib/Model/WebhookUrlCreate.php index 9a047e3..18de5a8 100644 --- a/postfinancecheckout-sdk/lib/Model/WebhookUrlCreate.php +++ b/postfinancecheckout-sdk/lib/Model/WebhookUrlCreate.php @@ -210,6 +210,7 @@ public function valid() * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -222,6 +223,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -235,6 +237,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -251,6 +254,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Model/WebhookUrlUpdate.php b/postfinancecheckout-sdk/lib/Model/WebhookUrlUpdate.php index d4d5549..66028ba 100644 --- a/postfinancecheckout-sdk/lib/Model/WebhookUrlUpdate.php +++ b/postfinancecheckout-sdk/lib/Model/WebhookUrlUpdate.php @@ -275,6 +275,7 @@ public function setVersion($version) * * @return boolean */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->container[$offset]); @@ -287,6 +288,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; @@ -300,6 +302,7 @@ public function offsetGet($offset) * * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -316,6 +319,7 @@ public function offsetSet($offset, $value) * * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->container[$offset]); diff --git a/postfinancecheckout-sdk/lib/Service/AccountService.php b/postfinancecheckout-sdk/lib/Service/AccountService.php index f025d2f..a6acca0 100644 --- a/postfinancecheckout-sdk/lib/Service/AccountService.php +++ b/postfinancecheckout-sdk/lib/Service/AccountService.php @@ -85,7 +85,8 @@ public function count($filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -126,7 +127,6 @@ public function countWithHttpInfo($filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -135,7 +135,7 @@ public function countWithHttpInfo($filter = null) { $headerParams, 'int', '/account/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -187,7 +187,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\AccountCreate $entity The account object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,7 +233,6 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -241,7 +241,7 @@ public function createWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Account', '/account/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Account', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -293,7 +293,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,7 +339,6 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -347,7 +347,7 @@ public function deleteWithHttpInfo($id) { $headerParams, null, '/account/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -399,7 +399,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the account which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -442,7 +443,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -451,7 +451,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Account', '/account/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Account', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -503,7 +503,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the accounts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,7 +549,6 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -557,7 +557,7 @@ public function searchWithHttpInfo($query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Account[]', '/account/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Account[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -609,7 +609,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\AccountUpdate $entity The account object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,7 +655,6 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -663,7 +663,7 @@ public function updateWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Account', '/account/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Account', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/AnalyticsQueryService.php b/postfinancecheckout-sdk/lib/Service/AnalyticsQueryService.php new file mode 100644 index 0000000..842000a --- /dev/null +++ b/postfinancecheckout-sdk/lib/Service/AnalyticsQueryService.php @@ -0,0 +1,698 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation cancelExecution + * + * Cancel Execution + * + * @param int $id The ID of the query execution to cancel. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function cancelExecution($id) { + return $this->cancelExecutionWithHttpInfo($id)->getData(); + } + + /** + * Operation cancelExecutionWithHttpInfo + * + * Cancel Execution + + * + * @param int $id The ID of the query execution to cancel. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function cancelExecutionWithHttpInfo($id) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling cancelExecution'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/analytics-query/cancel-execution'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/analytics-query/cancel-execution' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation fetchResult + * + * Fetch Result + * + * @param int $id The ID of the query execution for which to fetch the result. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @param int $max_rows The maximum number of rows to return per batch. (Between 1 and 999. The default is 999.) (optional) + * @param string $next_token The next-token of the preceding batch to get the next result batch or null to get the first result batch. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch + */ + public function fetchResult($id, $timeout = null, $max_rows = null, $next_token = null) { + return $this->fetchResultWithHttpInfo($id, $timeout, $max_rows, $next_token)->getData(); + } + + /** + * Operation fetchResultWithHttpInfo + * + * Fetch Result + + * + * @param int $id The ID of the query execution for which to fetch the result. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @param int $max_rows The maximum number of rows to return per batch. (Between 1 and 999. The default is 999.) (optional) + * @param string $next_token The next-token of the preceding batch to get the next result batch or null to get the first result batch. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function fetchResultWithHttpInfo($id, $timeout = null, $max_rows = null, $next_token = null) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling fetchResult'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + if (!is_null($timeout)) { + $queryParams['timeout'] = $this->apiClient->getSerializer()->toQueryValue($timeout); + } + if (!is_null($max_rows)) { + $queryParams['maxRows'] = $this->apiClient->getSerializer()->toQueryValue($max_rows); + } + if (!is_null($next_token)) { + $queryParams['nextToken'] = $this->apiClient->getSerializer()->toQueryValue($next_token); + } + + // path params + $resourcePath = '/analytics-query/fetch-result'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch', + '/analytics-query/fetch-result' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryResultBatch', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation generateDownloadUrl + * + * Generate Download URL + * + * @param int $id The ID of the query execution for which to generate the download URL. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return string + */ + public function generateDownloadUrl($id, $timeout = null) { + return $this->generateDownloadUrlWithHttpInfo($id, $timeout)->getData(); + } + + /** + * Operation generateDownloadUrlWithHttpInfo + * + * Generate Download URL + + * + * @param int $id The ID of the query execution for which to generate the download URL. (required) + * @param int $timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function generateDownloadUrlWithHttpInfo($id, $timeout = null) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling generateDownloadUrl'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['text/plain']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + if (!is_null($timeout)) { + $queryParams['timeout'] = $this->apiClient->getSerializer()->toQueryValue($timeout); + } + + // path params + $resourcePath = '/analytics-query/generate-download-url'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + 'string', + '/analytics-query/generate-download-url' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation schema + * + * Get Schemas + * + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[] + */ + public function schema() { + return $this->schemaWithHttpInfo()->getData(); + } + + /** + * Operation schemaWithHttpInfo + * + * Get Schemas + + * + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function schemaWithHttpInfo() { + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + + // path params + $resourcePath = '/analytics-query/schema'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[]', + '/analytics-query/schema' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsSchemaTable[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation status + * + * Execution Status + * + * @param int $id The ID of the query execution for which to get the status. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution + */ + public function status($id) { + return $this->statusWithHttpInfo($id)->getData(); + } + + /** + * Operation statusWithHttpInfo + * + * Execution Status + + * + * @param int $id The ID of the query execution for which to get the status. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function statusWithHttpInfo($id) { + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling status'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/analytics-query/status'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + '/analytics-query/status' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitQuery + * + * Submit Query + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQuery $query The query to submit. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution + */ + public function submitQuery($query) { + return $this->submitQueryWithHttpInfo($query)->getData(); + } + + /** + * Operation submitQueryWithHttpInfo + * + * Submit Query + + * + * @param \PostFinanceCheckout\Sdk\Model\AnalyticsQuery $query The query to submit. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function submitQueryWithHttpInfo($query) { + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling submitQuery'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + + // path params + $resourcePath = '/analytics-query/submit-query'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + '/analytics-query/submit-query' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\AnalyticsQueryExecution', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/postfinancecheckout-sdk/lib/Service/ApplicationUserService.php b/postfinancecheckout-sdk/lib/Service/ApplicationUserService.php index 92e5b8a..34b157a 100644 --- a/postfinancecheckout-sdk/lib/Service/ApplicationUserService.php +++ b/postfinancecheckout-sdk/lib/Service/ApplicationUserService.php @@ -85,7 +85,8 @@ public function count($filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -126,7 +127,6 @@ public function countWithHttpInfo($filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -135,7 +135,7 @@ public function countWithHttpInfo($filter = null) { $headerParams, 'int', '/application-user/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -187,7 +187,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\ApplicationUserCreate $entity The user object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,7 +233,6 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -241,7 +241,7 @@ public function createWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ApplicationUserCreateWithMacKey', '/application-user/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ApplicationUserCreateWithMacKey', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -293,7 +293,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,7 +339,6 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -347,7 +347,7 @@ public function deleteWithHttpInfo($id) { $headerParams, null, '/application-user/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -399,7 +399,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the application user which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -442,7 +443,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -451,7 +451,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ApplicationUser', '/application-user/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ApplicationUser', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -503,7 +503,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the application users which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,7 +549,6 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -557,7 +557,7 @@ public function searchWithHttpInfo($query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ApplicationUser[]', '/application-user/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ApplicationUser[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -609,7 +609,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\ApplicationUserUpdate $entity The application user entity with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,7 +655,6 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -663,7 +663,7 @@ public function updateWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ApplicationUser', '/application-user/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ApplicationUser', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/BankAccountService.php b/postfinancecheckout-sdk/lib/Service/BankAccountService.php index c5e0b0b..377c9bb 100644 --- a/postfinancecheckout-sdk/lib/Service/BankAccountService.php +++ b/postfinancecheckout-sdk/lib/Service/BankAccountService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/bank-account/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the bank account which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\BankAccount', '/bank-account/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\BankAccount', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the bank accounts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\BankAccount[]', '/bank-account/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\BankAccount[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/BankTransactionService.php b/postfinancecheckout-sdk/lib/Service/BankTransactionService.php index 990db96..ecab135 100644 --- a/postfinancecheckout-sdk/lib/Service/BankTransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/BankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/bank-transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\BankTransaction', '/bank-transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\BankTransaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\BankTransaction[]', '/bank-transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\BankTransaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ChargeAttemptService.php b/postfinancecheckout-sdk/lib/Service/ChargeAttemptService.php index 6acebd6..ef1a507 100644 --- a/postfinancecheckout-sdk/lib/Service/ChargeAttemptService.php +++ b/postfinancecheckout-sdk/lib/Service/ChargeAttemptService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/charge-attempt/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the charge attempt which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeAttempt', '/charge-attempt/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeAttempt', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge attempts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeAttempt[]', '/charge-attempt/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeAttempt[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ChargeBankTransactionService.php b/postfinancecheckout-sdk/lib/Service/ChargeBankTransactionService.php index ca1236e..97728f9 100644 --- a/postfinancecheckout-sdk/lib/Service/ChargeBankTransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/ChargeBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/charge-bank-transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the charge bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeBankTransaction', '/charge-bank-transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeBankTransaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeBankTransaction[]', '/charge-bank-transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeBankTransaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php b/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php index cff564e..e3d75a8 100644 --- a/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php +++ b/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/charge-flow-level-payment-link/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the charge flow level payment link which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevelPaymentLink', '/charge-flow-level-payment-link/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevelPaymentLink', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge flow level payment links which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevelPaymentLink[]', '/charge-flow-level-payment-link/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevelPaymentLink[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelService.php b/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelService.php index 2a0bb80..5c4b6d0 100644 --- a/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelService.php +++ b/postfinancecheckout-sdk/lib/Service/ChargeFlowLevelService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/charge-flow-level/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment flow level which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel', '/charge-flow-level/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment flow levels which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel[]', '/charge-flow-level/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -425,7 +425,8 @@ public function sendMessage($space_id, $id) { * Operation sendMessageWithHttpInfo * * Send Payment Link - * + + * * @param int $space_id (required) * @param int $id The id of the charge flow level whose payment link should be sent. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,7 +477,6 @@ public function sendMessageWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -485,7 +485,7 @@ public function sendMessageWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel', '/charge-flow-level/sendMessage' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeFlowLevel', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ChargeFlowService.php b/postfinancecheckout-sdk/lib/Service/ChargeFlowService.php index 576c4ec..9d5d3a6 100644 --- a/postfinancecheckout-sdk/lib/Service/ChargeFlowService.php +++ b/postfinancecheckout-sdk/lib/Service/ChargeFlowService.php @@ -86,7 +86,8 @@ public function applyFlow($space_id, $id) { * Operation applyFlowWithHttpInfo * * applyFlow - * + + * * @param int $space_id (required) * @param int $id The transaction id of the transaction which should be process asynchronously. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function applyFlowWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -146,7 +146,120 @@ public function applyFlowWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/charge-flow/applyFlow' - ); + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\Transaction', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelChargeFlow + * + * Cancel Charge Flow + * + * @param int $space_id (required) + * @param int $id The ID of the transaction for which the charge flow should be canceled. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\Transaction + */ + public function cancelChargeFlow($space_id, $id) { + return $this->cancelChargeFlowWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation cancelChargeFlowWithHttpInfo + * + * Cancel Charge Flow + + * + * @param int $space_id (required) + * @param int $id The ID of the transaction for which the charge flow should be canceled. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function cancelChargeFlowWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling cancelChargeFlow'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling cancelChargeFlow'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/charge-flow/cancel-charge-flow'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\Transaction', + '/charge-flow/cancel-charge-flow' + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -199,7 +312,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +362,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -257,7 +370,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/charge-flow/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -290,6 +403,119 @@ public function countWithHttpInfo($space_id, $filter = null) { } } + /** + * Operation fetchChargeFlowPaymentPageUrl + * + * Fetch Charge Flow Payment Page URL + * + * @param int $space_id (required) + * @param int $id The transaction id of the transaction for which the URL of the charge flow should be fetched. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return string + */ + public function fetchChargeFlowPaymentPageUrl($space_id, $id) { + return $this->fetchChargeFlowPaymentPageUrlWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation fetchChargeFlowPaymentPageUrlWithHttpInfo + * + * Fetch Charge Flow Payment Page URL + + * + * @param int $space_id (required) + * @param int $id The transaction id of the transaction for which the URL of the charge flow should be fetched. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function fetchChargeFlowPaymentPageUrlWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling fetchChargeFlowPaymentPageUrl'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling fetchChargeFlowPaymentPageUrl'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json', 'text/plain;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/charge-flow/fetch-charge-flow-payment-page-url'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + 'string', + '/charge-flow/fetch-charge-flow-payment-page-url' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** * Operation read * @@ -310,7 +536,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the charge flow which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -361,7 +588,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -370,7 +596,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeFlow', '/charge-flow/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeFlow', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -423,7 +649,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the charge flows which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,7 +703,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -485,7 +711,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ChargeFlow[]', '/charge-flow/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ChargeFlow[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +766,8 @@ public function updateRecipient($space_id, $transaction_id, $type, $recipient) { * Operation updateRecipientWithHttpInfo * * updateRecipient - * + + * * @param int $space_id (required) * @param int $transaction_id The transaction id of the transaction whose recipient should be updated. (required) * @param int $type The id of the charge flow configuration type to recipient should be updated for. (required) @@ -607,7 +834,6 @@ public function updateRecipientWithHttpInfo($space_id, $transaction_id, $type, $ } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -616,7 +842,7 @@ public function updateRecipientWithHttpInfo($space_id, $transaction_id, $type, $ $headerParams, null, '/charge-flow/updateRecipient' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ConditionTypeService.php b/postfinancecheckout-sdk/lib/Service/ConditionTypeService.php index d98fe1e..b20559f 100644 --- a/postfinancecheckout-sdk/lib/Service/ConditionTypeService.php +++ b/postfinancecheckout-sdk/lib/Service/ConditionTypeService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\ConditionType[]', '/condition-type/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ConditionType[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the condition type which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ConditionType', '/condition-type/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ConditionType', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/CountryService.php b/postfinancecheckout-sdk/lib/Service/CountryService.php index 32794b4..8c4a15e 100644 --- a/postfinancecheckout-sdk/lib/Service/CountryService.php +++ b/postfinancecheckout-sdk/lib/Service/CountryService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\RestCountry[]', '/country/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RestCountry[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/CountryStateService.php b/postfinancecheckout-sdk/lib/Service/CountryStateService.php index b7bf7ad..f6b8347 100644 --- a/postfinancecheckout-sdk/lib/Service/CountryStateService.php +++ b/postfinancecheckout-sdk/lib/Service/CountryStateService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\RestCountryState[]', '/country-state/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RestCountryState[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function country($code) { * Operation countryWithHttpInfo * * Find by Country - * + + * * @param string $code The country code in ISO code two letter format for which all states should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function countryWithHttpInfo($code) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function countryWithHttpInfo($code) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RestCountryState[]', '/country-state/country' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RestCountryState[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/CurrencyBankAccountService.php b/postfinancecheckout-sdk/lib/Service/CurrencyBankAccountService.php index 85cd839..5b05eb3 100644 --- a/postfinancecheckout-sdk/lib/Service/CurrencyBankAccountService.php +++ b/postfinancecheckout-sdk/lib/Service/CurrencyBankAccountService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/currency-bank-account/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the currency bank account which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CurrencyBankAccount', '/currency-bank-account/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CurrencyBankAccount', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the currency bank accounts which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CurrencyBankAccount[]', '/currency-bank-account/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CurrencyBankAccount[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/CurrencyService.php b/postfinancecheckout-sdk/lib/Service/CurrencyService.php index 36fa83a..1cf0d93 100644 --- a/postfinancecheckout-sdk/lib/Service/CurrencyService.php +++ b/postfinancecheckout-sdk/lib/Service/CurrencyService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\RestCurrency[]', '/currency/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RestCurrency[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/CustomerAddressService.php b/postfinancecheckout-sdk/lib/Service/CustomerAddressService.php index adc46ff..c6a2ccc 100644 --- a/postfinancecheckout-sdk/lib/Service/CustomerAddressService.php +++ b/postfinancecheckout-sdk/lib/Service/CustomerAddressService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/customer-address/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerAddressCreate $entity The customer object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerAddress', '/customer-address/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerAddress', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/customer-address/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the customer which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerAddress', '/customer-address/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerAddress', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the customers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,7 +594,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -602,7 +602,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerAddress[]', '/customer-address/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerAddress[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -655,7 +655,8 @@ public function selectDefaultAddress($space_id, $id) { * Operation selectDefaultAddressWithHttpInfo * * selectDefaultAddress - * + + * * @param int $space_id (required) * @param int $id The id of the customer address to set as default. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -706,7 +707,6 @@ public function selectDefaultAddressWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -715,7 +715,7 @@ public function selectDefaultAddressWithHttpInfo($space_id, $id) { $headerParams, null, '/customer-address/select-default-address' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -768,7 +768,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerAddressActive $entity The customer object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -821,7 +822,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -830,7 +830,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerAddress', '/customer-address/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerAddress', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/CustomerCommentService.php b/postfinancecheckout-sdk/lib/Service/CustomerCommentService.php index 248d27c..df4a47d 100644 --- a/postfinancecheckout-sdk/lib/Service/CustomerCommentService.php +++ b/postfinancecheckout-sdk/lib/Service/CustomerCommentService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/customer-comment/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerCommentCreate $entity The customer object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerComment', '/customer-comment/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/customer-comment/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function pinComment($space_id, $id) { * Operation pinCommentWithHttpInfo * * pinComment - * + + * * @param int $space_id (required) * @param int $id The id of the customer comment to pin to the top. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function pinCommentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function pinCommentWithHttpInfo($space_id, $id) { $headerParams, null, '/customer-comment/pin-comment' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the customer which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,7 +592,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -600,7 +600,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerComment', '/customer-comment/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -653,7 +653,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the customers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -706,7 +707,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -715,7 +715,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerComment[]', '/customer-comment/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerComment[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -768,7 +768,8 @@ public function unpinComment($space_id, $id) { * Operation unpinCommentWithHttpInfo * * unpinComment - * + + * * @param int $space_id (required) * @param int $id The id of the customer comment to unpin. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,7 +820,6 @@ public function unpinCommentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -828,7 +828,7 @@ public function unpinCommentWithHttpInfo($space_id, $id) { $headerParams, null, '/customer-comment/unpin-comment' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -881,7 +881,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerCommentActive $entity The customer object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -934,7 +935,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -943,7 +943,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\CustomerComment', '/customer-comment/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\CustomerComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/CustomerService.php b/postfinancecheckout-sdk/lib/Service/CustomerService.php index b84fa7f..8f98be7 100644 --- a/postfinancecheckout-sdk/lib/Service/CustomerService.php +++ b/postfinancecheckout-sdk/lib/Service/CustomerService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/customer/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerCreate $entity The customer object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Customer', '/customer/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Customer', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/customer/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the customer which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Customer', '/customer/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Customer', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the customers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,7 +594,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -602,7 +602,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Customer[]', '/customer/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Customer[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -655,7 +655,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\CustomerActive $entity The customer object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,7 +709,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -717,7 +717,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Customer', '/customer/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Customer', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/DeliveryIndicationService.php b/postfinancecheckout-sdk/lib/Service/DeliveryIndicationService.php index 896f5ce..6d2dcc6 100644 --- a/postfinancecheckout-sdk/lib/Service/DeliveryIndicationService.php +++ b/postfinancecheckout-sdk/lib/Service/DeliveryIndicationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/delivery-indication/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function markAsNotSuitable($space_id, $delivery_indication_id) { * Operation markAsNotSuitableWithHttpInfo * * markAsNotSuitable - * + + * * @param int $space_id (required) * @param int $delivery_indication_id The delivery indication id which should be marked as not suitable. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function markAsNotSuitableWithHttpInfo($space_id, $delivery_indication_id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function markAsNotSuitableWithHttpInfo($space_id, $delivery_indication_id $headerParams, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', '/delivery-indication/markAsNotSuitable' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function markAsSuitable($space_id, $delivery_indication_id) { * Operation markAsSuitableWithHttpInfo * * markAsSuitable - * + + * * @param int $space_id (required) * @param int $delivery_indication_id The delivery indication id which should be marked as suitable. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function markAsSuitableWithHttpInfo($space_id, $delivery_indication_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function markAsSuitableWithHttpInfo($space_id, $delivery_indication_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', '/delivery-indication/markAsSuitable' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the delivery indication which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', '/delivery-indication/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DeliveryIndication', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the delivery indications which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,7 +594,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -602,7 +602,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\DeliveryIndication[]', '/delivery-indication/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DeliveryIndication[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/DocumentTemplateService.php b/postfinancecheckout-sdk/lib/Service/DocumentTemplateService.php index 6608c4d..506661e 100644 --- a/postfinancecheckout-sdk/lib/Service/DocumentTemplateService.php +++ b/postfinancecheckout-sdk/lib/Service/DocumentTemplateService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/document-template/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the document template which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\DocumentTemplate', '/document-template/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DocumentTemplate', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the document templates which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\DocumentTemplate[]', '/document-template/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DocumentTemplate[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/DocumentTemplateTypeService.php b/postfinancecheckout-sdk/lib/Service/DocumentTemplateTypeService.php index 8629ac2..63f8ec1 100644 --- a/postfinancecheckout-sdk/lib/Service/DocumentTemplateTypeService.php +++ b/postfinancecheckout-sdk/lib/Service/DocumentTemplateTypeService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\DocumentTemplateType[]', '/document-template-type/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DocumentTemplateType[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the document template type which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\DocumentTemplateType', '/document-template-type/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\DocumentTemplateType', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ExternalTransferBankTransactionService.php b/postfinancecheckout-sdk/lib/Service/ExternalTransferBankTransactionService.php index c515c8e..dc3ede5 100644 --- a/postfinancecheckout-sdk/lib/Service/ExternalTransferBankTransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/ExternalTransferBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/external-transfer-bank-transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the external transfer bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ExternalTransferBankTransaction', '/external-transfer-bank-transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ExternalTransferBankTransaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the external transfer bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ExternalTransferBankTransaction[]', '/external-transfer-bank-transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ExternalTransferBankTransaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/HumanUserService.php b/postfinancecheckout-sdk/lib/Service/HumanUserService.php index 48c114f..d2299f6 100644 --- a/postfinancecheckout-sdk/lib/Service/HumanUserService.php +++ b/postfinancecheckout-sdk/lib/Service/HumanUserService.php @@ -85,7 +85,8 @@ public function count($filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -126,7 +127,6 @@ public function countWithHttpInfo($filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -135,7 +135,7 @@ public function countWithHttpInfo($filter = null) { $headerParams, 'int', '/human-user/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -187,7 +187,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\HumanUserCreate $entity The human user object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,7 +233,6 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -241,7 +241,7 @@ public function createWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\HumanUser', '/human-user/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\HumanUser', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -293,7 +293,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,7 +339,6 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -347,7 +347,7 @@ public function deleteWithHttpInfo($id) { $headerParams, null, '/human-user/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -399,7 +399,8 @@ public function export($request) { * Operation exportWithHttpInfo * * Export - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityExportRequest $request The request controls the entries which are exported. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -444,7 +445,6 @@ public function exportWithHttpInfo($request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -453,7 +453,7 @@ public function exportWithHttpInfo($request) { $headerParams, 'string', '/human-user/export' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -505,7 +505,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the human user which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,7 +549,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -557,7 +557,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\HumanUser', '/human-user/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\HumanUser', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -609,7 +609,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the human users which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,7 +655,6 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -663,7 +663,7 @@ public function searchWithHttpInfo($query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\HumanUser[]', '/human-user/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\HumanUser[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -715,7 +715,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\HumanUserUpdate $entity The object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -760,7 +761,6 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -769,7 +769,7 @@ public function updateWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\HumanUser', '/human-user/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\HumanUser', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/InternalTransferBankTransactionService.php b/postfinancecheckout-sdk/lib/Service/InternalTransferBankTransactionService.php index 6c58693..d06be24 100644 --- a/postfinancecheckout-sdk/lib/Service/InternalTransferBankTransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/InternalTransferBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/internal-transfer-bank-transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the internal transfer bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\InternalTransferBankTransaction', '/internal-transfer-bank-transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InternalTransferBankTransaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the internal transfer bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\InternalTransferBankTransaction[]', '/internal-transfer-bank-transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InternalTransferBankTransaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php b/postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php new file mode 100644 index 0000000..5f79ff3 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordInvoiceLinkService.php @@ -0,0 +1,665 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation count + * + * Count + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return int + */ + public function count($space_id, $filter = null) { + return $this->countWithHttpInfo($space_id, $filter)->getData(); + } + + /** + * Operation countWithHttpInfo + * + * Count + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function countWithHttpInfo($space_id, $filter = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling count'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-invoice-link-service/count'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($filter)) { + $tempBody = $filter; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + 'int', + '/invoice-reconciliation-record-invoice-link-service/count' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation link + * + * Link Invoice + * + * @param int $space_id (required) + * @param int $record_id The ID of the invoice reconciliation record which should be linked. (required) + * @param int $completion_id The ID of the completion which should be linked. (required) + * @param float $amount The amount of the invoice reconciliation record linked completion which should be changed. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink + */ + public function link($space_id, $record_id, $completion_id, $amount = null) { + return $this->linkWithHttpInfo($space_id, $record_id, $completion_id, $amount)->getData(); + } + + /** + * Operation linkWithHttpInfo + * + * Link Invoice + + * + * @param int $space_id (required) + * @param int $record_id The ID of the invoice reconciliation record which should be linked. (required) + * @param int $completion_id The ID of the completion which should be linked. (required) + * @param float $amount The amount of the invoice reconciliation record linked completion which should be changed. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function linkWithHttpInfo($space_id, $record_id, $completion_id, $amount = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling link'); + } + // verify the required parameter 'record_id' is set + if (is_null($record_id)) { + throw new \InvalidArgumentException('Missing the required parameter $record_id when calling link'); + } + // verify the required parameter 'completion_id' is set + if (is_null($completion_id)) { + throw new \InvalidArgumentException('Missing the required parameter $completion_id when calling link'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($record_id)) { + $queryParams['recordId'] = $this->apiClient->getSerializer()->toQueryValue($record_id); + } + if (!is_null($completion_id)) { + $queryParams['completionId'] = $this->apiClient->getSerializer()->toQueryValue($completion_id); + } + if (!is_null($amount)) { + $queryParams['amount'] = $this->apiClient->getSerializer()->toQueryValue($amount); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-invoice-link-service/link'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', + '/invoice-reconciliation-record-invoice-link-service/link' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation read + * + * Read + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record invoice link which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink + */ + public function read($space_id, $id) { + return $this->readWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation readWithHttpInfo + * + * Read + + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record invoice link which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function readWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling read'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling read'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-invoice-link-service/read'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', + '/invoice-reconciliation-record-invoice-link-service/read' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation search + * + * Search + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reconciliation record invoice link which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink[] + */ + public function search($space_id, $query) { + return $this->searchWithHttpInfo($space_id, $query)->getData(); + } + + /** + * Operation searchWithHttpInfo + * + * Search + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reconciliation record invoice link which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function searchWithHttpInfo($space_id, $query) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling search'); + } + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling search'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-invoice-link-service/search'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink[]', + '/invoice-reconciliation-record-invoice-link-service/search' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecordInvoiceLink[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation unlinkTransaction + * + * Unlink Invoice + * + * @param int $space_id (required) + * @param int $record_id The ID of the invoice reconciliation record which should be unlinked. (required) + * @param int $completion_id The ID of the completion which should be unlinked. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function unlinkTransaction($space_id, $record_id, $completion_id) { + return $this->unlinkTransactionWithHttpInfo($space_id, $record_id, $completion_id)->getData(); + } + + /** + * Operation unlinkTransactionWithHttpInfo + * + * Unlink Invoice + + * + * @param int $space_id (required) + * @param int $record_id The ID of the invoice reconciliation record which should be unlinked. (required) + * @param int $completion_id The ID of the completion which should be unlinked. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function unlinkTransactionWithHttpInfo($space_id, $record_id, $completion_id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling unlinkTransaction'); + } + // verify the required parameter 'record_id' is set + if (is_null($record_id)) { + throw new \InvalidArgumentException('Missing the required parameter $record_id when calling unlinkTransaction'); + } + // verify the required parameter 'completion_id' is set + if (is_null($completion_id)) { + throw new \InvalidArgumentException('Missing the required parameter $completion_id when calling unlinkTransaction'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($record_id)) { + $queryParams['recordId'] = $this->apiClient->getSerializer()->toQueryValue($record_id); + } + if (!is_null($completion_id)) { + $queryParams['completionId'] = $this->apiClient->getSerializer()->toQueryValue($completion_id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-invoice-link-service/unlink-transaction'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/invoice-reconciliation-record-invoice-link-service/unlink-transaction' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordService.php b/postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordService.php new file mode 100644 index 0000000..08bbd9c --- /dev/null +++ b/postfinancecheckout-sdk/lib/Service/InvoiceReconciliationRecordService.php @@ -0,0 +1,757 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation count + * + * Count + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return int + */ + public function count($space_id, $filter = null) { + return $this->countWithHttpInfo($space_id, $filter)->getData(); + } + + /** + * Operation countWithHttpInfo + * + * Count + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function countWithHttpInfo($space_id, $filter = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling count'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-service/count'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($filter)) { + $tempBody = $filter; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + 'int', + '/invoice-reconciliation-record-service/count' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation discard + * + * Discard + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record which should be discarded. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function discard($space_id, $id) { + return $this->discardWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation discardWithHttpInfo + * + * Discard + + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record which should be discarded. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function discardWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling discard'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling discard'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-service/discard'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/invoice-reconciliation-record-service/discard' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation read + * + * Read + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord + */ + public function read($space_id, $id) { + return $this->readWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation readWithHttpInfo + * + * Read + + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function readWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling read'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling read'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-service/read'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord', + '/invoice-reconciliation-record-service/read' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation resolve + * + * Resolve + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record which should be resolved. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function resolve($space_id, $id) { + return $this->resolveWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation resolveWithHttpInfo + * + * Resolve + + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reconciliation record which should be resolved. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function resolveWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling resolve'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling resolve'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-service/resolve'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/invoice-reconciliation-record-service/resolve' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation search + * + * Search + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reconciliation records which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord[] + */ + public function search($space_id, $query) { + return $this->searchWithHttpInfo($space_id, $query)->getData(); + } + + /** + * Operation searchWithHttpInfo + * + * Search + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reconciliation records which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function searchWithHttpInfo($space_id, $query) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling search'); + } + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling search'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-service/search'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord[]', + '/invoice-reconciliation-record-service/search' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\InvoiceReconciliationRecord[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation searchForInvoicesByQuery + * + * Search for matchable invoices by query + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoices which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\TransactionInvoice[] + */ + public function searchForInvoicesByQuery($space_id, $query) { + return $this->searchForInvoicesByQueryWithHttpInfo($space_id, $query)->getData(); + } + + /** + * Operation searchForInvoicesByQueryWithHttpInfo + * + * Search for matchable invoices by query + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoices which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function searchForInvoicesByQueryWithHttpInfo($space_id, $query) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling searchForInvoicesByQuery'); + } + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling searchForInvoicesByQuery'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/invoice-reconciliation-record-service/search-for-invoices-by-query'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\TransactionInvoice[]', + '/invoice-reconciliation-record-service/search-for-invoices-by-query' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoice[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\TransactionInvoice[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/postfinancecheckout-sdk/lib/Service/InvoiceReimbursementService.php b/postfinancecheckout-sdk/lib/Service/InvoiceReimbursementService.php new file mode 100644 index 0000000..b91b18b --- /dev/null +++ b/postfinancecheckout-sdk/lib/Service/InvoiceReimbursementService.php @@ -0,0 +1,653 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation count + * + * Count + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return int + */ + public function count($space_id, $filter = null) { + return $this->countWithHttpInfo($space_id, $filter)->getData(); + } + + /** + * Operation countWithHttpInfo + * + * Count + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function countWithHttpInfo($space_id, $filter = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling count'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/invoice-reimbursement-service/count'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($filter)) { + $tempBody = $filter; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + 'int', + '/invoice-reimbursement-service/count' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation read + * + * Read + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reimbursement which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReimbursement + */ + public function read($space_id, $id) { + return $this->readWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation readWithHttpInfo + * + * Read + + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reimbursement which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function readWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling read'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling read'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/invoice-reimbursement-service/read'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursement', + '/invoice-reimbursement-service/read' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursement', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursement', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation search + * + * Search + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reimbursements which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\InvoiceReimbursementWithRefundReference[] + */ + public function search($space_id, $query) { + return $this->searchWithHttpInfo($space_id, $query)->getData(); + } + + /** + * Operation searchWithHttpInfo + * + * Search + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the invoice reimbursements which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function searchWithHttpInfo($space_id, $query) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling search'); + } + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling search'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/invoice-reimbursement-service/search'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursementWithRefundReference[]', + '/invoice-reimbursement-service/search' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursementWithRefundReference[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\InvoiceReimbursementWithRefundReference[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateConnector + * + * Update payment connector configuration + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reimbursement of which connector should be updated. (required) + * @param int $payment_connector_configuration_id (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function updateConnector($space_id, $id, $payment_connector_configuration_id) { + return $this->updateConnectorWithHttpInfo($space_id, $id, $payment_connector_configuration_id)->getData(); + } + + /** + * Operation updateConnectorWithHttpInfo + * + * Update payment connector configuration + + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reimbursement of which connector should be updated. (required) + * @param int $payment_connector_configuration_id (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function updateConnectorWithHttpInfo($space_id, $id, $payment_connector_configuration_id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling updateConnector'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling updateConnector'); + } + // verify the required parameter 'payment_connector_configuration_id' is set + if (is_null($payment_connector_configuration_id)) { + throw new \InvalidArgumentException('Missing the required parameter $payment_connector_configuration_id when calling updateConnector'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + if (!is_null($payment_connector_configuration_id)) { + $queryParams['paymentConnectorConfigurationId'] = $this->apiClient->getSerializer()->toQueryValue($payment_connector_configuration_id); + } + + // path params + $resourcePath = '/invoice-reimbursement-service/update-connector'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/invoice-reimbursement-service/update-connector' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateIban + * + * Update IBAN + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reimbursement of which IBANs should be updated. (required) + * @param string $recipient_iban (optional) + * @param string $sender_iban (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function updateIban($space_id, $id, $recipient_iban = null, $sender_iban = null) { + return $this->updateIbanWithHttpInfo($space_id, $id, $recipient_iban, $sender_iban)->getData(); + } + + /** + * Operation updateIbanWithHttpInfo + * + * Update IBAN + + * + * @param int $space_id (required) + * @param int $id The ID of the invoice reimbursement of which IBANs should be updated. (required) + * @param string $recipient_iban (optional) + * @param string $sender_iban (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function updateIbanWithHttpInfo($space_id, $id, $recipient_iban = null, $sender_iban = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling updateIban'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling updateIban'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + if (!is_null($recipient_iban)) { + $queryParams['recipientIban'] = $this->apiClient->getSerializer()->toQueryValue($recipient_iban); + } + if (!is_null($sender_iban)) { + $queryParams['senderIban'] = $this->apiClient->getSerializer()->toQueryValue($sender_iban); + } + + // path params + $resourcePath = '/invoice-reimbursement-service/update-iban'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/invoice-reimbursement-service/update-iban' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/postfinancecheckout-sdk/lib/Service/LabelDescriptionGroupService.php b/postfinancecheckout-sdk/lib/Service/LabelDescriptionGroupService.php index 0860cb8..6b34819 100644 --- a/postfinancecheckout-sdk/lib/Service/LabelDescriptionGroupService.php +++ b/postfinancecheckout-sdk/lib/Service/LabelDescriptionGroupService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\LabelDescriptorGroup[]', '/label-description-group-service/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\LabelDescriptorGroup[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the label descriptor group which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\LabelDescriptorGroup', '/label-description-group-service/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\LabelDescriptorGroup', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/LabelDescriptionService.php b/postfinancecheckout-sdk/lib/Service/LabelDescriptionService.php index 39b8d74..cb9b406 100644 --- a/postfinancecheckout-sdk/lib/Service/LabelDescriptionService.php +++ b/postfinancecheckout-sdk/lib/Service/LabelDescriptionService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\LabelDescriptor[]', '/label-description-service/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\LabelDescriptor[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the label descriptor which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\LabelDescriptor', '/label-description-service/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\LabelDescriptor', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/LanguageService.php b/postfinancecheckout-sdk/lib/Service/LanguageService.php index 7478ddc..c4d9232 100644 --- a/postfinancecheckout-sdk/lib/Service/LanguageService.php +++ b/postfinancecheckout-sdk/lib/Service/LanguageService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\RestLanguage[]', '/language/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RestLanguage[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/LegalOrganizationFormService.php b/postfinancecheckout-sdk/lib/Service/LegalOrganizationFormService.php index abc59cf..5b2bc72 100644 --- a/postfinancecheckout-sdk/lib/Service/LegalOrganizationFormService.php +++ b/postfinancecheckout-sdk/lib/Service/LegalOrganizationFormService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm[]', '/legal-organization-form/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function country($code) { * Operation countryWithHttpInfo * * Find by Country - * + + * * @param string $code The country in ISO 3166-1 alpha-2 format, for which all legal organization forms should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function countryWithHttpInfo($code) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function countryWithHttpInfo($code) { $headerParams, '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm[]', '/legal-organization-form/country' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -284,7 +284,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the legal organization form which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -327,7 +328,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -336,7 +336,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm', '/legal-organization-form/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\LegalOrganizationForm', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ManualTaskService.php b/postfinancecheckout-sdk/lib/Service/ManualTaskService.php index 0bd1d72..75fe2c8 100644 --- a/postfinancecheckout-sdk/lib/Service/ManualTaskService.php +++ b/postfinancecheckout-sdk/lib/Service/ManualTaskService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/manual-task/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the manual task which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ManualTask', '/manual-task/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ManualTask', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the manual tasks which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ManualTask[]', '/manual-task/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ManualTask[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentConnectorConfigurationService.php b/postfinancecheckout-sdk/lib/Service/PaymentConnectorConfigurationService.php index d451494..ce9d17d 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentConnectorConfigurationService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentConnectorConfigurationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/payment-connector-configuration/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment connector configuration which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration', '/payment-connector-configuration/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment connector configuration which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration[]', '/payment-connector-configuration/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentConnectorConfiguration[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentConnectorService.php b/postfinancecheckout-sdk/lib/Service/PaymentConnectorService.php index 8d3049e..1439cfe 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentConnectorService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentConnectorService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentConnector[]', '/payment-connector/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentConnector[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the connector which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentConnector', '/payment-connector/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentConnector', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentLinkService.php b/postfinancecheckout-sdk/lib/Service/PaymentLinkService.php index 036da48..abb8c1c 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentLinkService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentLinkService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/payment-link/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\PaymentLinkCreate $entity The payment link object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentLink', '/payment-link/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentLink', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/payment-link/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment links which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentLink', '/payment-link/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentLink', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment links which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,7 +594,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -602,7 +602,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentLink[]', '/payment-link/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentLink[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -655,7 +655,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\PaymentLinkUpdate $entity The object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,7 +709,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -717,7 +717,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentLink', '/payment-link/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentLink', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentMethodBrandService.php b/postfinancecheckout-sdk/lib/Service/PaymentMethodBrandService.php index aa6905a..45d641d 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentMethodBrandService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentMethodBrandService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[]', '/payment-method-brand/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the payment method brand which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand', '/payment-method-brand/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethodBrand', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentMethodConfigurationService.php b/postfinancecheckout-sdk/lib/Service/PaymentMethodConfigurationService.php index c0985e0..58de95f 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentMethodConfigurationService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentMethodConfigurationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/payment-method-configuration/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment method configuration which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration', '/payment-method-configuration/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment method configuration which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', '/payment-method-configuration/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentMethodService.php b/postfinancecheckout-sdk/lib/Service/PaymentMethodService.php index cd09325..b0ed3ee 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentMethodService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentMethodService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethod[]', '/payment-method/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethod[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the payment method which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethod', '/payment-method/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethod', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentProcessorConfigurationService.php b/postfinancecheckout-sdk/lib/Service/PaymentProcessorConfigurationService.php index a4dc958..f456920 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentProcessorConfigurationService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentProcessorConfigurationService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/payment-processor-configuration/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment processor configuration which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentProcessorConfiguration', '/payment-processor-configuration/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentProcessorConfiguration', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment processor configuration which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentProcessorConfiguration[]', '/payment-processor-configuration/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentProcessorConfiguration[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentProcessorService.php b/postfinancecheckout-sdk/lib/Service/PaymentProcessorService.php index 8a95056..4f41796 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentProcessorService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentProcessorService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentProcessor[]', '/payment-processor/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentProcessor[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the processor which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentProcessor', '/payment-processor/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentProcessor', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentTerminalService.php b/postfinancecheckout-sdk/lib/Service/PaymentTerminalService.php index 7c426fe..f0b2155 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentTerminalService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentTerminalService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/payment-terminal/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -177,6 +177,128 @@ public function countWithHttpInfo($space_id, $filter = null) { } } + /** + * Operation link + * + * Link Device With Terminal + * + * @param int $space_id (required) + * @param int $terminal_id (required) + * @param string $serial_number (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function link($space_id, $terminal_id, $serial_number) { + return $this->linkWithHttpInfo($space_id, $terminal_id, $serial_number)->getData(); + } + + /** + * Operation linkWithHttpInfo + * + * Link Device With Terminal + + * + * @param int $space_id (required) + * @param int $terminal_id (required) + * @param string $serial_number (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function linkWithHttpInfo($space_id, $terminal_id, $serial_number) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling link'); + } + // verify the required parameter 'terminal_id' is set + if (is_null($terminal_id)) { + throw new \InvalidArgumentException('Missing the required parameter $terminal_id when calling link'); + } + // verify the required parameter 'serial_number' is set + if (is_null($serial_number)) { + throw new \InvalidArgumentException('Missing the required parameter $serial_number when calling link'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($terminal_id)) { + $queryParams['terminalId'] = $this->apiClient->getSerializer()->toQueryValue($terminal_id); + } + if (!is_null($serial_number)) { + $queryParams['serialNumber'] = $this->apiClient->getSerializer()->toQueryValue($serial_number); + } + + // path params + $resourcePath = '/payment-terminal/link'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/payment-terminal/link' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** * Operation read * @@ -197,7 +319,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the payment terminal which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +371,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +379,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentTerminal', '/payment-terminal/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentTerminal', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +432,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the payment terminals which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +486,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +494,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentTerminal[]', '/payment-terminal/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentTerminal[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -405,4 +527,343 @@ public function searchWithHttpInfo($space_id, $query) { } } + /** + * Operation triggerFinalBalance + * + * Remotely Trigger Final Balance + * + * @param int $space_id (required) + * @param int $terminal_id (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function triggerFinalBalance($space_id, $terminal_id) { + return $this->triggerFinalBalanceWithHttpInfo($space_id, $terminal_id)->getData(); + } + + /** + * Operation triggerFinalBalanceWithHttpInfo + * + * Remotely Trigger Final Balance + + * + * @param int $space_id (required) + * @param int $terminal_id (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function triggerFinalBalanceWithHttpInfo($space_id, $terminal_id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling triggerFinalBalance'); + } + // verify the required parameter 'terminal_id' is set + if (is_null($terminal_id)) { + throw new \InvalidArgumentException('Missing the required parameter $terminal_id when calling triggerFinalBalance'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($terminal_id)) { + $queryParams['terminalId'] = $this->apiClient->getSerializer()->toQueryValue($terminal_id); + } + + // path params + $resourcePath = '/payment-terminal/trigger-final-balance'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/payment-terminal/trigger-final-balance' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation triggerFinalBalanceByIdentifier + * + * Remotely Trigger Final Balance By Identifier + * + * @param int $space_id (required) + * @param string $terminal_identifier (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function triggerFinalBalanceByIdentifier($space_id, $terminal_identifier) { + return $this->triggerFinalBalanceByIdentifierWithHttpInfo($space_id, $terminal_identifier)->getData(); + } + + /** + * Operation triggerFinalBalanceByIdentifierWithHttpInfo + * + * Remotely Trigger Final Balance By Identifier + + * + * @param int $space_id (required) + * @param string $terminal_identifier (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function triggerFinalBalanceByIdentifierWithHttpInfo($space_id, $terminal_identifier) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling triggerFinalBalanceByIdentifier'); + } + // verify the required parameter 'terminal_identifier' is set + if (is_null($terminal_identifier)) { + throw new \InvalidArgumentException('Missing the required parameter $terminal_identifier when calling triggerFinalBalanceByIdentifier'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($terminal_identifier)) { + $queryParams['terminalIdentifier'] = $this->apiClient->getSerializer()->toQueryValue($terminal_identifier); + } + + // path params + $resourcePath = '/payment-terminal/trigger-final-balance-by-identifier'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/payment-terminal/trigger-final-balance-by-identifier' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation unlink + * + * Unlink Device With Terminal + * + * @param int $space_id (required) + * @param int $terminal_id (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return void + */ + public function unlink($space_id, $terminal_id) { + return $this->unlinkWithHttpInfo($space_id, $terminal_id)->getData(); + } + + /** + * Operation unlinkWithHttpInfo + * + * Unlink Device With Terminal + + * + * @param int $space_id (required) + * @param int $terminal_id (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function unlinkWithHttpInfo($space_id, $terminal_id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling unlink'); + } + // verify the required parameter 'terminal_id' is set + if (is_null($terminal_id)) { + throw new \InvalidArgumentException('Missing the required parameter $terminal_id when calling unlink'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept([]); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($terminal_id)) { + $queryParams['terminalId'] = $this->apiClient->getSerializer()->toQueryValue($terminal_id); + } + + // path params + $resourcePath = '/payment-terminal/unlink'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/payment-terminal/unlink' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders()); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + } diff --git a/postfinancecheckout-sdk/lib/Service/PaymentTerminalTillService.php b/postfinancecheckout-sdk/lib/Service/PaymentTerminalTillService.php index 0fadc57..6e01a3e 100644 --- a/postfinancecheckout-sdk/lib/Service/PaymentTerminalTillService.php +++ b/postfinancecheckout-sdk/lib/Service/PaymentTerminalTillService.php @@ -88,7 +88,8 @@ public function performTransaction($space_id, $transaction_id, $terminal_id, $la * Operation performTransactionWithHttpInfo * * Perform Payment Terminal Transaction - * + * (Time out for this request is 90 seconds.) + * * @param int $space_id (required) * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) * @param int $terminal_id The ID of the terminal which should be used to process the transaction. (required) @@ -117,7 +118,7 @@ public function performTransactionWithHttpInfo($space_id, $transaction_id, $term if (!is_null($headerAccept)) { $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; } - $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); // query params $queryParams = []; @@ -151,7 +152,6 @@ public function performTransactionWithHttpInfo($space_id, $transaction_id, $term } // make the API Call try { - $this->apiClient->setConnectionTimeout(90); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -159,8 +159,9 @@ public function performTransactionWithHttpInfo($space_id, $transaction_id, $term $httpBody, $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', - '/payment-terminal-till/perform-transaction' - ); + '/payment-terminal-till/perform-transaction', + 90 + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -231,7 +232,8 @@ public function performTransactionByIdentifier($space_id, $transaction_id, $term * Operation performTransactionByIdentifierWithHttpInfo * * Perform Payment Terminal Transaction (using TID) - * + * (Time out for this request is 90 seconds.) + * * @param int $space_id (required) * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) * @param string $terminal_identifier The identifier (aka TID) of the terminal which should be used to process the transaction. (required) @@ -260,7 +262,7 @@ public function performTransactionByIdentifierWithHttpInfo($space_id, $transacti if (!is_null($headerAccept)) { $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; } - $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); // query params $queryParams = []; @@ -294,7 +296,6 @@ public function performTransactionByIdentifierWithHttpInfo($space_id, $transacti } // make the API Call try { - $this->apiClient->setConnectionTimeout(90); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -302,8 +303,9 @@ public function performTransactionByIdentifierWithHttpInfo($space_id, $transacti $httpBody, $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', - '/payment-terminal-till/perform-transaction-by-identifier' - ); + '/payment-terminal-till/perform-transaction-by-identifier', + 90 + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/PaymentTerminalTransactionSummaryService.php b/postfinancecheckout-sdk/lib/Service/PaymentTerminalTransactionSummaryService.php new file mode 100644 index 0000000..6f22f8c --- /dev/null +++ b/postfinancecheckout-sdk/lib/Service/PaymentTerminalTransactionSummaryService.php @@ -0,0 +1,523 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation count + * + * Count + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return int + */ + public function count($space_id, $filter = null) { + return $this->countWithHttpInfo($space_id, $filter)->getData(); + } + + /** + * Operation countWithHttpInfo + * + * Count + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function countWithHttpInfo($space_id, $filter = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling count'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/payment-terminal-transaction-summary/count'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($filter)) { + $tempBody = $filter; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + 'int', + '/payment-terminal-transaction-summary/count' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation fetchReceipt + * + * Fetch Receipt + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummaryFetchRequest $request (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\RenderedTerminalTransactionSummary + */ + public function fetchReceipt($space_id, $request) { + return $this->fetchReceiptWithHttpInfo($space_id, $request)->getData(); + } + + /** + * Operation fetchReceiptWithHttpInfo + * + * Fetch Receipt + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummaryFetchRequest $request (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function fetchReceiptWithHttpInfo($space_id, $request) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling fetchReceipt'); + } + // verify the required parameter 'request' is set + if (is_null($request)) { + throw new \InvalidArgumentException('Missing the required parameter $request when calling fetchReceipt'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/payment-terminal-transaction-summary/fetch-receipt'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($request)) { + $tempBody = $request; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\RenderedTerminalTransactionSummary', + '/payment-terminal-transaction-summary/fetch-receipt' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedTerminalTransactionSummary', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\RenderedTerminalTransactionSummary', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation read + * + * Read + * + * @param int $space_id (required) + * @param int $id The id of the transaction summary report which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary + */ + public function read($space_id, $id) { + return $this->readWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation readWithHttpInfo + * + * Read + + * + * @param int $space_id (required) + * @param int $id The id of the transaction summary report which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function readWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling read'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling read'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/payment-terminal-transaction-summary/read'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary', + '/payment-terminal-transaction-summary/read' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation search + * + * Search + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction summary reports which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary[] + */ + public function search($space_id, $query) { + return $this->searchWithHttpInfo($space_id, $query)->getData(); + } + + /** + * Operation searchWithHttpInfo + * + * Search + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction summary reports which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function searchWithHttpInfo($space_id, $query) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling search'); + } + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling search'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/payment-terminal-transaction-summary/search'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary[]', + '/payment-terminal-transaction-summary/search' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\PaymentTerminalTransactionSummary[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/postfinancecheckout-sdk/lib/Service/PermissionService.php b/postfinancecheckout-sdk/lib/Service/PermissionService.php index 026a405..5888b8d 100644 --- a/postfinancecheckout-sdk/lib/Service/PermissionService.php +++ b/postfinancecheckout-sdk/lib/Service/PermissionService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\Permission[]', '/permission/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Permission[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the permission which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Permission', '/permission/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Permission', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/RefundBankTransactionService.php b/postfinancecheckout-sdk/lib/Service/RefundBankTransactionService.php index c197ed5..eae7f26 100644 --- a/postfinancecheckout-sdk/lib/Service/RefundBankTransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/RefundBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/refund-bank-transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the refund bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundBankTransaction', '/refund-bank-transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundBankTransaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the refund bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundBankTransaction[]', '/refund-bank-transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundBankTransaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/RefundCommentService.php b/postfinancecheckout-sdk/lib/Service/RefundCommentService.php index 21a9dc1..bce04a2 100644 --- a/postfinancecheckout-sdk/lib/Service/RefundCommentService.php +++ b/postfinancecheckout-sdk/lib/Service/RefundCommentService.php @@ -86,7 +86,8 @@ public function all($space_id, $refund_id) { * Operation allWithHttpInfo * * Find by refund - * + + * * @param int $space_id (required) * @param int $refund_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function allWithHttpInfo($space_id, $refund_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -146,7 +146,7 @@ public function allWithHttpInfo($space_id, $refund_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundComment[]', '/refund-comment/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundComment[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -199,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\RefundCommentCreate $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -252,7 +253,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -261,7 +261,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundComment', '/refund-comment/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -314,7 +314,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/refund-comment/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function pin($space_id, $id) { * Operation pinWithHttpInfo * * Pin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function pinWithHttpInfo($space_id, $id) { $headerParams, null, '/refund-comment/pin' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,7 +592,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -600,7 +600,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundComment', '/refund-comment/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -653,7 +653,8 @@ public function unpin($space_id, $id) { * Operation unpinWithHttpInfo * * Unpin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,7 +705,6 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -713,7 +713,7 @@ public function unpinWithHttpInfo($space_id, $id) { $headerParams, null, '/refund-comment/unpin' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -766,7 +766,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\RefundCommentActive $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,7 +820,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -828,7 +828,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundComment', '/refund-comment/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/RefundRecoveryBankTransactionService.php b/postfinancecheckout-sdk/lib/Service/RefundRecoveryBankTransactionService.php index ffa3dca..4c8d02a 100644 --- a/postfinancecheckout-sdk/lib/Service/RefundRecoveryBankTransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/RefundRecoveryBankTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/refund-recovery-bank-transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The ID of the refund recovery bank transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundRecoveryBankTransaction', '/refund-recovery-bank-transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundRecoveryBankTransaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the refund recovery bank transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RefundRecoveryBankTransaction[]', '/refund-recovery-bank-transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RefundRecoveryBankTransaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/RefundService.php b/postfinancecheckout-sdk/lib/Service/RefundService.php index a356425..5c252c2 100644 --- a/postfinancecheckout-sdk/lib/Service/RefundService.php +++ b/postfinancecheckout-sdk/lib/Service/RefundService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/refund/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function fail($space_id, $refund_id) { * Operation failWithHttpInfo * * fail - * + + * * @param int $space_id (required) * @param int $refund_id The id of the refund which should be marked as failed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function failWithHttpInfo($space_id, $refund_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -257,7 +257,7 @@ public function failWithHttpInfo($space_id, $refund_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/fail' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Refund', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function getRefundDocument($space_id, $id) { * Operation getRefundDocumentWithHttpInfo * * getRefundDocument - * + + * * @param int $space_id (required) * @param int $id The id of the refund to get the document for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -361,7 +362,6 @@ public function getRefundDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -370,7 +370,7 @@ public function getRefundDocumentWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/refund/getRefundDocument' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedDocument', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -424,7 +424,8 @@ public function getRefundDocumentWithTargetMediaType($space_id, $id, $target_med * Operation getRefundDocumentWithTargetMediaTypeWithHttpInfo * * getRefundDocumentWithTargetMediaType - * + + * * @param int $space_id (required) * @param int $id The id of the refund to get the document for. (required) * @param int $target_media_type_id The id of the target media type for which the refund should be generated for. (required) @@ -483,7 +484,6 @@ public function getRefundDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id, } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -492,7 +492,7 @@ public function getRefundDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id, $headerParams, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/refund/getRefundDocumentWithTargetMediaType' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedDocument', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -545,7 +545,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the refund which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -596,7 +597,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -605,7 +605,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Refund', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -658,7 +658,8 @@ public function refund($space_id, $refund) { * Operation refundWithHttpInfo * * create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\RefundCreate $refund The refund object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -711,7 +712,6 @@ public function refundWithHttpInfo($space_id, $refund) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -720,7 +720,7 @@ public function refundWithHttpInfo($space_id, $refund) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/refund' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Refund', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -773,7 +773,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the refunds which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -826,7 +827,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -835,7 +835,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Refund[]', '/refund/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Refund[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -888,7 +888,8 @@ public function succeed($space_id, $refund_id) { * Operation succeedWithHttpInfo * * succeed - * + + * * @param int $space_id (required) * @param int $refund_id The id of the refund which should be marked as successful. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -939,7 +940,6 @@ public function succeedWithHttpInfo($space_id, $refund_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -948,7 +948,7 @@ public function succeedWithHttpInfo($space_id, $refund_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Refund', '/refund/succeed' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Refund', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ShopifyRecurringOrderService.php b/postfinancecheckout-sdk/lib/Service/ShopifyRecurringOrderService.php index 020913a..4232ec0 100644 --- a/postfinancecheckout-sdk/lib/Service/ShopifyRecurringOrderService.php +++ b/postfinancecheckout-sdk/lib/Service/ShopifyRecurringOrderService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/shopify-recurring-order/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify recurring order which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrder', '/shopify-recurring-order/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrder', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify recurring orders which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrder[]', '/shopify-recurring-order/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrder[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -425,7 +425,8 @@ public function update($space_id, $update_request) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifyRecurringOrderUpdateRequest $update_request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function updateWithHttpInfo($space_id, $update_request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -487,7 +487,7 @@ public function updateWithHttpInfo($space_id, $update_request) { $headerParams, null, '/shopify-recurring-order/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ShopifySubscriberService.php b/postfinancecheckout-sdk/lib/Service/ShopifySubscriberService.php index fe62b08..703f9a2 100644 --- a/postfinancecheckout-sdk/lib/Service/ShopifySubscriberService.php +++ b/postfinancecheckout-sdk/lib/Service/ShopifySubscriberService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/shopify-subscriber/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscriber which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber', '/shopify-subscriber/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscribers which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber[]', '/shopify-subscriber/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -425,7 +425,8 @@ public function update($space_id, $query) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriberActive $query The Shopify subscriber object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function updateWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -487,7 +487,7 @@ public function updateWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber', '/shopify-subscriber/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriber', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionProductService.php b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionProductService.php index dd6765b..355ff5c 100644 --- a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionProductService.php +++ b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionProductService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/shopify-subscription-product/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProductCreate $entity The Shopify subscription product object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', '/shopify-subscription-product/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription product which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -372,7 +372,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', '/shopify-subscription-product/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -425,7 +425,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscription products which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -487,7 +487,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct[]', '/shopify-subscription-product/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProductUpdate $entity The Shopify subscription product object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,7 +594,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -602,7 +602,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', '/shopify-subscription-product/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionProduct', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionService.php b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionService.php index 62beb6b..569e265 100644 --- a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionService.php +++ b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/shopify-subscription/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $creation_request) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionCreationRequest $creation_request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $creation_request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $creation_request) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -372,7 +372,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscription', '/shopify-subscription/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscription', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -425,7 +425,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscriptions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -487,7 +487,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscription[]', '/shopify-subscription/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscription[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -541,7 +541,8 @@ public function terminate($space_id, $subscription_id, $respect_termination_peri * Operation terminateWithHttpInfo * * Terminate - * + + * * @param int $space_id (required) * @param int $subscription_id The ID identifies the Shopify subscription which should be terminated. (required) * @param bool $respect_termination_period The respect termination period controls whether the termination period configured on the product version should be respected or if the operation should take effect immediately. (required) @@ -600,7 +601,6 @@ public function terminateWithHttpInfo($space_id, $subscription_id, $respect_term } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -609,7 +609,7 @@ public function terminateWithHttpInfo($space_id, $subscription_id, $respect_term $headerParams, null, '/shopify-subscription/terminate' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -654,7 +654,8 @@ public function update($space_id, $subscription) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionUpdateRequest $subscription (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -707,7 +708,6 @@ public function updateWithHttpInfo($space_id, $subscription) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -716,7 +716,7 @@ public function updateWithHttpInfo($space_id, $subscription) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -769,7 +769,8 @@ public function updateAddresses($space_id, $update_request) { * Operation updateAddressesWithHttpInfo * * Update Addresses - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionUpdateAddressesRequest $update_request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -822,7 +823,6 @@ public function updateAddressesWithHttpInfo($space_id, $update_request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -831,7 +831,7 @@ public function updateAddressesWithHttpInfo($space_id, $update_request) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription/update-addresses' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionSuspensionService.php b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionSuspensionService.php index ee2c1b0..b3751f8 100644 --- a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionSuspensionService.php +++ b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionSuspensionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/shopify-subscription-suspension/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function reactivate($space_id, $subscription_id) { * Operation reactivateWithHttpInfo * * Reactivate - * + + * * @param int $space_id (required) * @param int $subscription_id The ID identifies the suspended Shopify subscription which should be reactivated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function reactivateWithHttpInfo($space_id, $subscription_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -257,7 +257,7 @@ public function reactivateWithHttpInfo($space_id, $subscription_id) { $headerParams, null, '/shopify-subscription-suspension/reactivate' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -302,7 +302,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription suspension which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -353,7 +354,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -362,7 +362,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension', '/shopify-subscription-suspension/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -415,7 +415,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscription suspensions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -468,7 +469,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -477,7 +477,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension[]', '/shopify-subscription-suspension/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -530,7 +530,8 @@ public function suspend($space_id, $suspension) { * Operation suspendWithHttpInfo * * Suspend - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspensionCreate $suspension (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -583,7 +584,6 @@ public function suspendWithHttpInfo($space_id, $suspension) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -592,7 +592,7 @@ public function suspendWithHttpInfo($space_id, $suspension) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension', '/shopify-subscription-suspension/suspend' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionSuspension', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionVersionService.php b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionVersionService.php index a291727..f26e98f 100644 --- a/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionVersionService.php +++ b/postfinancecheckout-sdk/lib/Service/ShopifySubscriptionVersionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/shopify-subscription-version/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify subscription version which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', '/shopify-subscription-version/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify subscription versions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion[]', '/shopify-subscription-version/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifySubscriptionVersion[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/ShopifyTransactionService.php b/postfinancecheckout-sdk/lib/Service/ShopifyTransactionService.php index 92683ae..8ab758d 100644 --- a/postfinancecheckout-sdk/lib/Service/ShopifyTransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/ShopifyTransactionService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/shopify-transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the Shopify transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifyTransaction', '/shopify-transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifyTransaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the Shopify transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\ShopifyTransaction[]', '/shopify-transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\ShopifyTransaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/SpaceService.php b/postfinancecheckout-sdk/lib/Service/SpaceService.php index 2481921..c03ea83 100644 --- a/postfinancecheckout-sdk/lib/Service/SpaceService.php +++ b/postfinancecheckout-sdk/lib/Service/SpaceService.php @@ -85,7 +85,8 @@ public function count($filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -126,7 +127,6 @@ public function countWithHttpInfo($filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -135,7 +135,7 @@ public function countWithHttpInfo($filter = null) { $headerParams, 'int', '/space/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -187,7 +187,8 @@ public function create($entity) { * Operation createWithHttpInfo * * Create - * + + * * @param \PostFinanceCheckout\Sdk\Model\SpaceCreate $entity The space object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -232,7 +233,6 @@ public function createWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -241,7 +241,7 @@ public function createWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Space', '/space/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Space', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -293,7 +293,8 @@ public function delete($id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -338,7 +339,6 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -347,7 +347,7 @@ public function deleteWithHttpInfo($id) { $headerParams, null, '/space/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -399,7 +399,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the space which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -442,7 +443,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -451,7 +451,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Space', '/space/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Space', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -503,7 +503,8 @@ public function search($query) { * Operation searchWithHttpInfo * * Search - * + + * * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the spaces which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -548,7 +549,6 @@ public function searchWithHttpInfo($query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -557,7 +557,7 @@ public function searchWithHttpInfo($query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Space[]', '/space/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Space[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -609,7 +609,8 @@ public function update($entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param \PostFinanceCheckout\Sdk\Model\SpaceUpdate $entity The space object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -654,7 +655,6 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -663,7 +663,7 @@ public function updateWithHttpInfo($entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Space', '/space/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Space', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/StaticValueService.php b/postfinancecheckout-sdk/lib/Service/StaticValueService.php index 99d5f4d..56bb889 100644 --- a/postfinancecheckout-sdk/lib/Service/StaticValueService.php +++ b/postfinancecheckout-sdk/lib/Service/StaticValueService.php @@ -84,7 +84,8 @@ public function all() { * Operation allWithHttpInfo * * All - * + + * * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException @@ -119,7 +120,6 @@ public function allWithHttpInfo() { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -128,7 +128,7 @@ public function allWithHttpInfo() { $headerParams, '\PostFinanceCheckout\Sdk\Model\StaticValue[]', '/static-value-service/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\StaticValue[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -180,7 +180,8 @@ public function read($id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $id The id of the static value which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -223,7 +224,6 @@ public function readWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -232,7 +232,7 @@ public function readWithHttpInfo($id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\StaticValue', '/static-value-service/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\StaticValue', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TokenService.php b/postfinancecheckout-sdk/lib/Service/TokenService.php index 5649511..f28fd20 100644 --- a/postfinancecheckout-sdk/lib/Service/TokenService.php +++ b/postfinancecheckout-sdk/lib/Service/TokenService.php @@ -86,7 +86,8 @@ public function checkTokenCreationPossible($space_id, $transaction_id) { * Operation checkTokenCreationPossibleWithHttpInfo * * Check If Token Creation Is Possible - * + + * * @param int $space_id (required) * @param int $transaction_id The id of the transaction for which we want to check if the token can be created or not. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function checkTokenCreationPossibleWithHttpInfo($space_id, $transaction_i } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -146,7 +146,7 @@ public function checkTokenCreationPossibleWithHttpInfo($space_id, $transaction_i $headerParams, 'bool', '/token/check-token-creation-possible' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'bool', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -199,7 +199,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -257,7 +257,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/token/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TokenCreate $entity The token object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Token', '/token/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Token', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -425,7 +425,8 @@ public function createTokenBasedOnTransaction($space_id, $transaction_id) { * Operation createTokenBasedOnTransactionWithHttpInfo * * Create Token Based On Transaction - * + + * * @param int $space_id (required) * @param int $transaction_id The id of the transaction for which we want to create the token. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,7 +477,6 @@ public function createTokenBasedOnTransactionWithHttpInfo($space_id, $transactio } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -485,7 +485,7 @@ public function createTokenBasedOnTransactionWithHttpInfo($space_id, $transactio $headerParams, '\PostFinanceCheckout\Sdk\Model\TokenVersion', '/token/create-token-based-on-transaction' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TokenVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -538,7 +538,8 @@ public function createTransactionForTokenUpdate($space_id, $token_id) { * Operation createTransactionForTokenUpdateWithHttpInfo * * Create Transaction for Token Update - * + + * * @param int $space_id (required) * @param int $token_id The id of the token which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -589,7 +590,6 @@ public function createTransactionForTokenUpdateWithHttpInfo($space_id, $token_id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -598,7 +598,7 @@ public function createTransactionForTokenUpdateWithHttpInfo($space_id, $token_id $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/token/createTransactionForTokenUpdate' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -651,7 +651,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,7 +705,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -713,7 +713,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/token/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -766,7 +766,8 @@ public function processTransaction($space_id, $transaction_id) { * Operation processTransactionWithHttpInfo * * Process Transaction - * + + * * @param int $space_id (required) * @param int $transaction_id The id of the transaction for which we want to check if the token can be created or not. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -817,7 +818,6 @@ public function processTransactionWithHttpInfo($space_id, $transaction_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -826,7 +826,7 @@ public function processTransactionWithHttpInfo($space_id, $transaction_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Charge', '/token/process-transaction' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Charge', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -879,7 +879,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the token which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -930,7 +931,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -939,7 +939,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Token', '/token/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Token', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -992,7 +992,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the tokens which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1045,7 +1046,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1054,7 +1054,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Token[]', '/token/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Token[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1107,7 +1107,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TokenUpdate $entity The object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1160,7 +1161,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1169,7 +1169,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Token', '/token/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Token', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TokenVersionService.php b/postfinancecheckout-sdk/lib/Service/TokenVersionService.php index 3541b96..42d95dc 100644 --- a/postfinancecheckout-sdk/lib/Service/TokenVersionService.php +++ b/postfinancecheckout-sdk/lib/Service/TokenVersionService.php @@ -86,7 +86,8 @@ public function activeVersion($space_id, $id) { * Operation activeVersionWithHttpInfo * * Active Version - * + + * * @param int $space_id (required) * @param int $id The id of a token for which you want to look up the current active token version. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function activeVersionWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -146,7 +146,7 @@ public function activeVersionWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TokenVersion', '/token-version/active-version' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TokenVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -199,7 +199,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -257,7 +257,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/token-version/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the token version which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -361,7 +362,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -370,7 +370,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TokenVersion', '/token-version/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TokenVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -423,7 +423,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the token versions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,7 +477,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -485,7 +485,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TokenVersion[]', '/token-version/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TokenVersion[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionCommentService.php b/postfinancecheckout-sdk/lib/Service/TransactionCommentService.php index 4f9ee70..74ea126 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionCommentService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionCommentService.php @@ -86,7 +86,8 @@ public function all($space_id, $transaction_id) { * Operation allWithHttpInfo * * Find by transaction - * + + * * @param int $space_id (required) * @param int $transaction_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function allWithHttpInfo($space_id, $transaction_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -146,7 +146,7 @@ public function allWithHttpInfo($space_id, $transaction_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionComment[]', '/transaction-comment/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionComment[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -199,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCommentCreate $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -252,7 +253,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -261,7 +261,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionComment', '/transaction-comment/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -314,7 +314,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/transaction-comment/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function pin($space_id, $id) { * Operation pinWithHttpInfo * * Pin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function pinWithHttpInfo($space_id, $id) { $headerParams, null, '/transaction-comment/pin' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,7 +592,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -600,7 +600,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionComment', '/transaction-comment/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -653,7 +653,8 @@ public function unpin($space_id, $id) { * Operation unpinWithHttpInfo * * Unpin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,7 +705,6 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -713,7 +713,7 @@ public function unpinWithHttpInfo($space_id, $id) { $headerParams, null, '/transaction-comment/unpin' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -766,7 +766,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCommentActive $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,7 +820,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -828,7 +828,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionComment', '/transaction-comment/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionCompletionService.php b/postfinancecheckout-sdk/lib/Service/TransactionCompletionService.php index 3672dbc..319c46f 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionCompletionService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionCompletionService.php @@ -86,7 +86,8 @@ public function completeOffline($space_id, $id) { * Operation completeOfflineWithHttpInfo * * completeOffline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be completed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function completeOfflineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -146,7 +146,7 @@ public function completeOfflineWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completeOffline' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -199,7 +199,8 @@ public function completeOnline($space_id, $id) { * Operation completeOnlineWithHttpInfo * * completeOnline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be completed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function completeOnlineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function completeOnlineWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completeOnline' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function completePartiallyOffline($space_id, $completion) { * Operation completePartiallyOfflineWithHttpInfo * * completePartiallyOffline - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionRequest $completion (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function completePartiallyOfflineWithHttpInfo($space_id, $completion) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function completePartiallyOfflineWithHttpInfo($space_id, $completion) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completePartiallyOffline' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function completePartiallyOnline($space_id, $completion) { * Operation completePartiallyOnlineWithHttpInfo * * completePartiallyOnline - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionRequest $completion (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -480,7 +481,6 @@ public function completePartiallyOnlineWithHttpInfo($space_id, $completion) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -489,7 +489,7 @@ public function completePartiallyOnlineWithHttpInfo($space_id, $completion) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/completePartiallyOnline' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -542,7 +542,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,7 +592,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -600,7 +600,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/transaction-completion/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -653,7 +653,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction completions which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,7 +705,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -713,7 +713,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', '/transaction-completion/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionCompletion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -766,7 +766,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction completions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,7 +820,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -828,7 +828,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionCompletion[]', '/transaction-completion/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionCompletion[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionIframeService.php b/postfinancecheckout-sdk/lib/Service/TransactionIframeService.php index 0060c3c..83aa275 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionIframeService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionIframeService.php @@ -86,7 +86,8 @@ public function javascriptUrl($space_id, $id) { * Operation javascriptUrlWithHttpInfo * * Build JavaScript URL - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function javascriptUrlWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -146,7 +146,7 @@ public function javascriptUrlWithHttpInfo($space_id, $id) { $headerParams, 'string', '/transaction-iframe/javascript-url' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionInvoiceCommentService.php b/postfinancecheckout-sdk/lib/Service/TransactionInvoiceCommentService.php index bfbd846..ab4057d 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionInvoiceCommentService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionInvoiceCommentService.php @@ -86,7 +86,8 @@ public function all($space_id, $invoice_id) { * Operation allWithHttpInfo * * Find by invoice - * + + * * @param int $space_id (required) * @param int $invoice_id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function allWithHttpInfo($space_id, $invoice_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -146,7 +146,7 @@ public function allWithHttpInfo($space_id, $invoice_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment[]', '/transaction-invoice-comment/all' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -199,7 +199,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceCommentCreate $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -252,7 +253,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -261,7 +261,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', '/transaction-invoice-comment/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -314,7 +314,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/transaction-invoice-comment/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function pin($space_id, $id) { * Operation pinWithHttpInfo * * Pin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function pinWithHttpInfo($space_id, $id) { $headerParams, null, '/transaction-invoice-comment/pin' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -591,7 +592,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -600,7 +600,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', '/transaction-invoice-comment/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -653,7 +653,8 @@ public function unpin($space_id, $id) { * Operation unpinWithHttpInfo * * Unpin - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -704,7 +705,6 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -713,7 +713,7 @@ public function unpinWithHttpInfo($space_id, $id) { $headerParams, null, '/transaction-invoice-comment/unpin' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -766,7 +766,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceCommentActive $entity (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -819,7 +820,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -828,7 +828,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', '/transaction-invoice-comment/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoiceComment', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionInvoiceService.php b/postfinancecheckout-sdk/lib/Service/TransactionInvoiceService.php index 53741d3..de287c6 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionInvoiceService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionInvoiceService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/transaction-invoice/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function getInvoiceDocument($space_id, $id) { * Operation getInvoiceDocumentWithHttpInfo * * getInvoiceDocument - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice to get the document for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction-invoice/getInvoiceDocument' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedDocument', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -311,7 +311,8 @@ public function getInvoiceDocumentWithTargetMediaType($space_id, $id, $target_me * Operation getInvoiceDocumentWithTargetMediaTypeWithHttpInfo * * getInvoiceDocumentWithTargetMediaType - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice to get the document for. (required) * @param int $target_media_type_id The id of the target media type for which the invoice should be generated for. (required) @@ -370,7 +371,6 @@ public function getInvoiceDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -379,7 +379,7 @@ public function getInvoiceDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id $headerParams, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction-invoice/getInvoiceDocumentWithTargetMediaType' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedDocument', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -432,7 +432,8 @@ public function isReplacementPossible($space_id, $id) { * Operation isReplacementPossibleWithHttpInfo * * isReplacementPossible - * + + * * @param int $space_id (required) * @param int $id The invoice which should be checked if a replacement is possible. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -483,7 +484,6 @@ public function isReplacementPossibleWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -492,7 +492,7 @@ public function isReplacementPossibleWithHttpInfo($space_id, $id) { $headerParams, 'bool', '/transaction-invoice/isReplacementPossible' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'bool', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -545,7 +545,8 @@ public function markAsDerecognized($space_id, $id) { * Operation markAsDerecognizedWithHttpInfo * * Mark as Derecognized - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice which should be marked as derecognized. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -596,7 +597,6 @@ public function markAsDerecognizedWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -605,7 +605,7 @@ public function markAsDerecognizedWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/markAsDerecognized' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -658,7 +658,8 @@ public function markAsPaid($space_id, $id) { * Operation markAsPaidWithHttpInfo * * Mark as Paid - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoice which should be marked as paid. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -709,7 +710,6 @@ public function markAsPaidWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -718,7 +718,7 @@ public function markAsPaidWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/markAsPaid' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -771,7 +771,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoices which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -822,7 +823,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -831,7 +831,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -885,7 +885,8 @@ public function replace($space_id, $id, $replacement) { * Operation replaceWithHttpInfo * * replace - * + + * * @param int $space_id (required) * @param int $id The id of the transaction invoices which should be replaced. (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionInvoiceReplacement $replacement (required) @@ -946,7 +947,6 @@ public function replaceWithHttpInfo($space_id, $id, $replacement) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -955,7 +955,7 @@ public function replaceWithHttpInfo($space_id, $id, $replacement) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', '/transaction-invoice/replace' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoice', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1008,7 +1008,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction invoices which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1061,7 +1062,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1070,7 +1070,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionInvoice[]', '/transaction-invoice/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionInvoice[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionLightboxService.php b/postfinancecheckout-sdk/lib/Service/TransactionLightboxService.php index 4abf47b..c4fe37e 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionLightboxService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionLightboxService.php @@ -86,7 +86,8 @@ public function javascriptUrl($space_id, $id) { * Operation javascriptUrlWithHttpInfo * * Build JavaScript URL - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function javascriptUrlWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -146,7 +146,7 @@ public function javascriptUrlWithHttpInfo($space_id, $id) { $headerParams, 'string', '/transaction-lightbox/javascript-url' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionLineItemVersionService.php b/postfinancecheckout-sdk/lib/Service/TransactionLineItemVersionService.php new file mode 100644 index 0000000..81b2b27 --- /dev/null +++ b/postfinancecheckout-sdk/lib/Service/TransactionLineItemVersionService.php @@ -0,0 +1,523 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation count + * + * Count + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return int + */ + public function count($space_id, $filter = null) { + return $this->countWithHttpInfo($space_id, $filter)->getData(); + } + + /** + * Operation countWithHttpInfo + * + * Count + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function countWithHttpInfo($space_id, $filter = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling count'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/transaction-line-item-version/count'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($filter)) { + $tempBody = $filter; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + 'int', + '/transaction-line-item-version/count' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation create + * + * create + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersionCreate $line_item_version The line item version object which should be created. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion + */ + public function create($space_id, $line_item_version) { + return $this->createWithHttpInfo($space_id, $line_item_version)->getData(); + } + + /** + * Operation createWithHttpInfo + * + * create + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersionCreate $line_item_version The line item version object which should be created. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function createWithHttpInfo($space_id, $line_item_version) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling create'); + } + // verify the required parameter 'line_item_version' is set + if (is_null($line_item_version)) { + throw new \InvalidArgumentException('Missing the required parameter $line_item_version when calling create'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/transaction-line-item-version/create'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($line_item_version)) { + $tempBody = $line_item_version; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', + '/transaction-line-item-version/create' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation read + * + * Read + * + * @param int $space_id (required) + * @param int $id The ID of the line item version which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion + */ + public function read($space_id, $id) { + return $this->readWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation readWithHttpInfo + * + * Read + + * + * @param int $space_id (required) + * @param int $id The ID of the line item version which should be returned. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function readWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling read'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling read'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/transaction-line-item-version/read'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', + '/transaction-line-item-version/read' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation search + * + * Search + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts line item versions which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion[] + */ + public function search($space_id, $query) { + return $this->searchWithHttpInfo($space_id, $query)->getData(); + } + + /** + * Operation searchWithHttpInfo + * + * Search + + * + * @param int $space_id (required) + * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts line item versions which are returned by the search. (required) + * @throws \PostFinanceCheckout\Sdk\ApiException + * @throws \PostFinanceCheckout\Sdk\VersioningException + * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function searchWithHttpInfo($space_id, $query) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling search'); + } + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling search'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/transaction-line-item-version/search'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion[]', + '/transaction-line-item-version/search' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\PostFinanceCheckout\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/postfinancecheckout-sdk/lib/Service/TransactionMobileSdkService.php b/postfinancecheckout-sdk/lib/Service/TransactionMobileSdkService.php index ec858ed..e5a6338 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionMobileSdkService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionMobileSdkService.php @@ -85,7 +85,8 @@ public function paymentFormUrl($credentials) { * Operation paymentFormUrlWithHttpInfo * * Build Mobile SDK URL - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -128,7 +129,6 @@ public function paymentFormUrlWithHttpInfo($credentials) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -137,7 +137,7 @@ public function paymentFormUrlWithHttpInfo($credentials) { $headerParams, 'string', '/transaction-mobile-sdk/payment-form-url' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionPaymentPageService.php b/postfinancecheckout-sdk/lib/Service/TransactionPaymentPageService.php index 5cd2b4f..7757065 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionPaymentPageService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionPaymentPageService.php @@ -86,7 +86,8 @@ public function paymentPageUrl($space_id, $id) { * Operation paymentPageUrlWithHttpInfo * * Build Payment Page URL - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -137,7 +138,6 @@ public function paymentPageUrlWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -146,7 +146,7 @@ public function paymentPageUrlWithHttpInfo($space_id, $id) { $headerParams, 'string', '/transaction-payment-page/payment-page-url' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionService.php b/postfinancecheckout-sdk/lib/Service/TransactionService.php index c159be1..cd7a0f3 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionService.php @@ -86,7 +86,8 @@ public function confirm($space_id, $transaction_model) { * Operation confirmWithHttpInfo * * Confirm - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionPending $transaction_model The transaction JSON object to update and confirm. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -139,7 +140,6 @@ public function confirmWithHttpInfo($space_id, $transaction_model) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -148,7 +148,7 @@ public function confirmWithHttpInfo($space_id, $transaction_model) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/confirm' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -209,7 +209,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -258,7 +259,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -267,7 +267,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/transaction/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -320,7 +320,8 @@ public function create($space_id, $transaction) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionCreate $transaction The transaction object which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -373,7 +374,6 @@ public function createWithHttpInfo($space_id, $transaction) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -382,7 +382,7 @@ public function createWithHttpInfo($space_id, $transaction) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -435,7 +435,8 @@ public function createTransactionCredentials($space_id, $id) { * Operation createTransactionCredentialsWithHttpInfo * * Create Transaction Credentials - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -486,7 +487,6 @@ public function createTransactionCredentialsWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -495,7 +495,7 @@ public function createTransactionCredentialsWithHttpInfo($space_id, $id) { $headerParams, 'string', '/transaction/createTransactionCredentials' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -548,7 +548,8 @@ public function deleteOneClickTokenWithCredentials($credentials, $token_id) { * Operation deleteOneClickTokenWithCredentialsWithHttpInfo * * Delete One-Click Token with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @param int $token_id The token ID will be used to find the token which should be removed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -599,7 +600,6 @@ public function deleteOneClickTokenWithCredentialsWithHttpInfo($credentials, $to } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -608,7 +608,7 @@ public function deleteOneClickTokenWithCredentialsWithHttpInfo($credentials, $to $headerParams, null, '/transaction/deleteOneClickTokenWithCredentials' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -653,7 +653,8 @@ public function export($space_id, $request) { * Operation exportWithHttpInfo * * Export - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityExportRequest $request The request controls the entries which are exported. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -706,7 +707,6 @@ public function exportWithHttpInfo($space_id, $request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -715,7 +715,7 @@ public function exportWithHttpInfo($space_id, $request) { $headerParams, 'string', '/transaction/export' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -767,7 +767,8 @@ public function fetchOneClickTokensWithCredentials($credentials) { * Operation fetchOneClickTokensWithCredentialsWithHttpInfo * * Fetch One Click Tokens with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -810,7 +811,6 @@ public function fetchOneClickTokensWithCredentialsWithHttpInfo($credentials) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -819,7 +819,7 @@ public function fetchOneClickTokensWithCredentialsWithHttpInfo($credentials) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TokenVersion[]', '/transaction/fetchOneClickTokensWithCredentials' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TokenVersion[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -873,7 +873,8 @@ public function fetchPaymentMethods($space_id, $id, $integration_mode) { * Operation fetchPaymentMethodsWithHttpInfo * * Fetch Possible Payment Methods - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) @@ -932,7 +933,6 @@ public function fetchPaymentMethodsWithHttpInfo($space_id, $id, $integration_mod } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -941,7 +941,7 @@ public function fetchPaymentMethodsWithHttpInfo($space_id, $id, $integration_mod $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', '/transaction/fetch-payment-methods' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -994,7 +994,8 @@ public function fetchPaymentMethodsWithCredentials($credentials, $integration_mo * Operation fetchPaymentMethodsWithCredentialsWithHttpInfo * * Fetch Possible Payment Methods with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1045,7 +1046,6 @@ public function fetchPaymentMethodsWithCredentialsWithHttpInfo($credentials, $in } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1054,7 +1054,7 @@ public function fetchPaymentMethodsWithCredentialsWithHttpInfo($credentials, $in $headerParams, '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', '/transaction/fetch-payment-methods-with-credentials' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\PaymentMethodConfiguration[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1107,7 +1107,8 @@ public function getInvoiceDocument($space_id, $id) { * Operation getInvoiceDocumentWithHttpInfo * * getInvoiceDocument - * + + * * @param int $space_id (required) * @param int $id The id of the transaction to get the invoice document for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1158,7 +1159,6 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1167,7 +1167,7 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction/getInvoiceDocument' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedDocument', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1203,7 +1203,7 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { /** * Operation getLatestTransactionLineItemVersion * - * getLatestTransactionLineItemVersion + * getLatestSuccessfulTransactionLineItemVersion * * @param int $space_id (required) * @param int $id The id of the transaction to get the latest line item version for. (required) @@ -1219,8 +1219,9 @@ public function getLatestTransactionLineItemVersion($space_id, $id) { /** * Operation getLatestTransactionLineItemVersionWithHttpInfo * - * getLatestTransactionLineItemVersion - * + * getLatestSuccessfulTransactionLineItemVersion + + * * @param int $space_id (required) * @param int $id The id of the transaction to get the latest line item version for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1271,7 +1272,6 @@ public function getLatestTransactionLineItemVersionWithHttpInfo($space_id, $id) } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1280,7 +1280,7 @@ public function getLatestTransactionLineItemVersionWithHttpInfo($space_id, $id) $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', '/transaction/getLatestTransactionLineItemVersion' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1333,7 +1333,8 @@ public function getPackingSlip($space_id, $id) { * Operation getPackingSlipWithHttpInfo * * getPackingSlip - * + + * * @param int $space_id (required) * @param int $id The id of the transaction to get the packing slip for. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1384,7 +1385,6 @@ public function getPackingSlipWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1393,7 +1393,7 @@ public function getPackingSlipWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RenderedDocument', '/transaction/getPackingSlip' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedDocument', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1446,7 +1446,8 @@ public function processOneClickTokenAndRedirectWithCredentials($credentials, $to * Operation processOneClickTokenAndRedirectWithCredentialsWithHttpInfo * * Process One-Click Token with Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @param int $token_id The token ID is used to load the corresponding token and to process the transaction with it. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1497,7 +1498,6 @@ public function processOneClickTokenAndRedirectWithCredentialsWithHttpInfo($cred } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1506,7 +1506,7 @@ public function processOneClickTokenAndRedirectWithCredentialsWithHttpInfo($cred $headerParams, 'string', '/transaction/processOneClickTokenAndRedirectWithCredentials' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1559,7 +1559,8 @@ public function processWithoutUserInteraction($space_id, $id) { * Operation processWithoutUserInteractionWithHttpInfo * * Process Without User Interaction - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be processed. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1610,7 +1611,6 @@ public function processWithoutUserInteractionWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1619,7 +1619,7 @@ public function processWithoutUserInteractionWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/processWithoutUserInteraction' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1672,7 +1672,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1723,7 +1724,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1732,7 +1732,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1784,7 +1784,8 @@ public function readWithCredentials($credentials) { * Operation readWithCredentialsWithHttpInfo * * Read With Credentials - * + + * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -1827,7 +1828,6 @@ public function readWithCredentialsWithHttpInfo($credentials) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1836,7 +1836,7 @@ public function readWithCredentialsWithHttpInfo($credentials) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/readWithCredentials' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -1889,7 +1889,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transactions which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -1942,7 +1943,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1951,7 +1951,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction[]', '/transaction/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -2004,7 +2004,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TransactionPending $entity The transaction object with the properties which should be updated. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -2057,7 +2058,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -2066,7 +2066,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\Transaction', '/transaction/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\Transaction', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -2107,127 +2107,4 @@ public function updateWithHttpInfo($space_id, $entity) { } } - /** - * Operation updateTransactionLineItems - * - * updateTransactionLineItems - * - * @param int $space_id (required) - * @param \PostFinanceCheckout\Sdk\Model\TransactionLineItemUpdateRequest $update_request (required) - * @throws \PostFinanceCheckout\Sdk\ApiException - * @throws \PostFinanceCheckout\Sdk\VersioningException - * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException - * @return \PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion - */ - public function updateTransactionLineItems($space_id, $update_request) { - return $this->updateTransactionLineItemsWithHttpInfo($space_id, $update_request)->getData(); - } - - /** - * Operation updateTransactionLineItemsWithHttpInfo - * - * updateTransactionLineItems - * - * @param int $space_id (required) - * @param \PostFinanceCheckout\Sdk\Model\TransactionLineItemUpdateRequest $update_request (required) - * @throws \PostFinanceCheckout\Sdk\ApiException - * @throws \PostFinanceCheckout\Sdk\VersioningException - * @throws \PostFinanceCheckout\Sdk\Http\ConnectionException - * @return ApiResponse - */ - public function updateTransactionLineItemsWithHttpInfo($space_id, $update_request) { - // verify the required parameter 'space_id' is set - if (is_null($space_id)) { - throw new \InvalidArgumentException('Missing the required parameter $space_id when calling updateTransactionLineItems'); - } - // verify the required parameter 'update_request' is set - if (is_null($update_request)) { - throw new \InvalidArgumentException('Missing the required parameter $update_request when calling updateTransactionLineItems'); - } - // header params - $headerParams = []; - $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); - if (!is_null($headerAccept)) { - $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; - } - $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); - - // query params - $queryParams = []; - if (!is_null($space_id)) { - $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); - } - - // path params - $resourcePath = '/transaction/updateTransactionLineItems'; - // default format to json - $resourcePath = str_replace('{format}', 'json', $resourcePath); - - // form params - $formParams = []; - // body params - $tempBody = null; - if (isset($update_request)) { - $tempBody = $update_request; - } - - // for model (json/xml) - $httpBody = ''; - if (isset($tempBody)) { - $httpBody = $tempBody; // $tempBody is the method argument, if present - } elseif (!empty($formParams)) { - $httpBody = $formParams; // for HTTP post (form) - } - // make the API Call - try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); - $response = $this->apiClient->callApi( - $resourcePath, - 'POST', - $queryParams, - $httpBody, - $headerParams, - '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', - '/transaction/updateTransactionLineItems' - ); - return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', $response->getHeaders())); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\PostFinanceCheckout\Sdk\Model\TransactionLineItemVersion', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 409: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\PostFinanceCheckout\Sdk\Model\ClientError', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 442: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\PostFinanceCheckout\Sdk\Model\ClientError', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 542: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\PostFinanceCheckout\Sdk\Model\ServerError', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - } diff --git a/postfinancecheckout-sdk/lib/Service/TransactionTerminalService.php b/postfinancecheckout-sdk/lib/Service/TransactionTerminalService.php index b6918ef..4bc5d55 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionTerminalService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionTerminalService.php @@ -86,7 +86,8 @@ public function fetchReceipts($space_id, $request) { * Operation fetchReceiptsWithHttpInfo * * Fetch Receipts - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\TerminalReceiptFetchRequest $request (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -139,7 +140,6 @@ public function fetchReceiptsWithHttpInfo($space_id, $request) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -148,7 +148,7 @@ public function fetchReceiptsWithHttpInfo($space_id, $request) { $headerParams, '\PostFinanceCheckout\Sdk\Model\RenderedTerminalReceipt[]', '/transaction-terminal/fetch-receipts' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\RenderedTerminalReceipt[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -203,7 +203,8 @@ public function tillConnectionCredentials($space_id, $transaction_id, $terminal_ * Operation tillConnectionCredentialsWithHttpInfo * * Create Till Connection Credentials - * + + * * @param int $space_id (required) * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) * @param int $terminal_id The ID of the terminal which should be used to process the transaction. (required) @@ -266,7 +267,6 @@ public function tillConnectionCredentialsWithHttpInfo($space_id, $transaction_id } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -275,7 +275,7 @@ public function tillConnectionCredentialsWithHttpInfo($space_id, $transaction_id $headerParams, 'string', '/transaction-terminal/till-connection-credentials' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'string', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/TransactionVoidService.php b/postfinancecheckout-sdk/lib/Service/TransactionVoidService.php index f2a98f8..81345ac 100644 --- a/postfinancecheckout-sdk/lib/Service/TransactionVoidService.php +++ b/postfinancecheckout-sdk/lib/Service/TransactionVoidService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/transaction-void/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the transaction voids which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -248,7 +249,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -257,7 +257,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionVoid', '/transaction-void/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionVoid', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -310,7 +310,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the transaction voids which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -363,7 +364,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,7 +372,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionVoid[]', '/transaction-void/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionVoid[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -425,7 +425,8 @@ public function voidOffline($space_id, $id) { * Operation voidOfflineWithHttpInfo * * voidOffline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be voided. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -476,7 +477,6 @@ public function voidOfflineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -485,7 +485,7 @@ public function voidOfflineWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionVoid', '/transaction-void/voidOffline' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionVoid', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -538,7 +538,8 @@ public function voidOnline($space_id, $id) { * Operation voidOnlineWithHttpInfo * * voidOnline - * + + * * @param int $space_id (required) * @param int $id The id of the transaction which should be voided. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -589,7 +590,6 @@ public function voidOnlineWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -598,7 +598,7 @@ public function voidOnlineWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\TransactionVoid', '/transaction-void/voidOnline' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\TransactionVoid', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/UserAccountRoleService.php b/postfinancecheckout-sdk/lib/Service/UserAccountRoleService.php index 28648e1..963fedb 100644 --- a/postfinancecheckout-sdk/lib/Service/UserAccountRoleService.php +++ b/postfinancecheckout-sdk/lib/Service/UserAccountRoleService.php @@ -88,7 +88,8 @@ public function addRole($user_id, $account_id, $role_id, $applies_on_subaccount * Operation addRoleWithHttpInfo * * Add Role - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $account_id The account to which the role is mapped. (required) * @param int $role_id The role which is mapped to the user and account. (required) @@ -151,7 +152,6 @@ public function addRoleWithHttpInfo($user_id, $account_id, $role_id, $applies_on } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -160,7 +160,7 @@ public function addRoleWithHttpInfo($user_id, $account_id, $role_id, $applies_on $headerParams, '\PostFinanceCheckout\Sdk\Model\UserAccountRole', '/user-account-role/addRole' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\UserAccountRole', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -213,7 +213,8 @@ public function callList($user_id, $account_id) { * Operation callListWithHttpInfo * * List Roles - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $account_id The account to which the role is mapped. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -264,7 +265,6 @@ public function callListWithHttpInfo($user_id, $account_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -273,7 +273,7 @@ public function callListWithHttpInfo($user_id, $account_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\UserAccountRole[]', '/user-account-role/list' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\UserAccountRole[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -325,7 +325,8 @@ public function removeRole($id) { * Operation removeRoleWithHttpInfo * * Remove Role - * + + * * @param int $id The id of user account role which should be removed (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -368,7 +369,6 @@ public function removeRoleWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -377,7 +377,7 @@ public function removeRoleWithHttpInfo($id) { $headerParams, null, '/user-account-role/removeRole' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/UserSpaceRoleService.php b/postfinancecheckout-sdk/lib/Service/UserSpaceRoleService.php index a058f74..fc5bfda 100644 --- a/postfinancecheckout-sdk/lib/Service/UserSpaceRoleService.php +++ b/postfinancecheckout-sdk/lib/Service/UserSpaceRoleService.php @@ -87,7 +87,8 @@ public function addRole($user_id, $space_id, $role_id) { * Operation addRoleWithHttpInfo * * Add Role - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $space_id The space to which the role is mapped. (required) * @param int $role_id The role which is mapped to the user and space. (required) @@ -146,7 +147,6 @@ public function addRoleWithHttpInfo($user_id, $space_id, $role_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -155,7 +155,7 @@ public function addRoleWithHttpInfo($user_id, $space_id, $role_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\UserSpaceRole', '/user-space-role/addRole' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\UserSpaceRole', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -208,7 +208,8 @@ public function callList($user_id, $space_id) { * Operation callListWithHttpInfo * * List Roles - * + + * * @param int $user_id The id of the user to whom the role is assigned. (required) * @param int $space_id The space to which the role is mapped. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -259,7 +260,6 @@ public function callListWithHttpInfo($user_id, $space_id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -268,7 +268,7 @@ public function callListWithHttpInfo($user_id, $space_id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\UserSpaceRole[]', '/user-space-role/list' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\UserSpaceRole[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -328,7 +328,8 @@ public function removeRole($id) { * Operation removeRoleWithHttpInfo * * Remove Role - * + + * * @param int $id The id of user space role which should be removed (required) * @throws \PostFinanceCheckout\Sdk\ApiException * @throws \PostFinanceCheckout\Sdk\VersioningException @@ -371,7 +372,6 @@ public function removeRoleWithHttpInfo($id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -380,7 +380,7 @@ public function removeRoleWithHttpInfo($id) { $headerParams, null, '/user-space-role/removeRole' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/WebhookListenerService.php b/postfinancecheckout-sdk/lib/Service/WebhookListenerService.php index 3a5a2f0..9292213 100644 --- a/postfinancecheckout-sdk/lib/Service/WebhookListenerService.php +++ b/postfinancecheckout-sdk/lib/Service/WebhookListenerService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/webhook-listener/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookListenerCreate $entity The webhook listener object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookListener', '/webhook-listener/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookListener', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/webhook-listener/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the webhook listener which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookListener', '/webhook-listener/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookListener', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the webhook listeners which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,7 +594,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -602,7 +602,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookListener[]', '/webhook-listener/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookListener[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -655,7 +655,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookListenerUpdate $entity The webhook listener object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,7 +709,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -717,7 +717,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookListener', '/webhook-listener/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookListener', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/lib/Service/WebhookUrlService.php b/postfinancecheckout-sdk/lib/Service/WebhookUrlService.php index 568e279..e11a8f1 100644 --- a/postfinancecheckout-sdk/lib/Service/WebhookUrlService.php +++ b/postfinancecheckout-sdk/lib/Service/WebhookUrlService.php @@ -86,7 +86,8 @@ public function count($space_id, $filter = null) { * Operation countWithHttpInfo * * Count - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -135,7 +136,6 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -144,7 +144,7 @@ public function countWithHttpInfo($space_id, $filter = null) { $headerParams, 'int', '/webhook-url/count' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -197,7 +197,8 @@ public function create($space_id, $entity) { * Operation createWithHttpInfo * * Create - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookUrlCreate $entity The webhook url object with the properties which should be created. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -250,7 +251,6 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -259,7 +259,7 @@ public function createWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookUrl', '/webhook-url/create' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookUrl', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -312,7 +312,8 @@ public function delete($space_id, $id) { * Operation deleteWithHttpInfo * * Delete - * + + * * @param int $space_id (required) * @param int $id (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -365,7 +366,6 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -374,7 +374,7 @@ public function deleteWithHttpInfo($space_id, $id) { $headerParams, null, '/webhook-url/delete' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders()); } catch (ApiException $e) { switch ($e->getCode()) { @@ -427,7 +427,8 @@ public function read($space_id, $id) { * Operation readWithHttpInfo * * Read - * + + * * @param int $space_id (required) * @param int $id The id of the webhook url which should be returned. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -478,7 +479,6 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -487,7 +487,7 @@ public function readWithHttpInfo($space_id, $id) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookUrl', '/webhook-url/read' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookUrl', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -540,7 +540,8 @@ public function search($space_id, $query) { * Operation searchWithHttpInfo * * Search - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\EntityQuery $query The query restricts the webhook urls which are returned by the search. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -593,7 +594,6 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -602,7 +602,7 @@ public function searchWithHttpInfo($space_id, $query) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookUrl[]', '/webhook-url/search' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookUrl[]', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { @@ -655,7 +655,8 @@ public function update($space_id, $entity) { * Operation updateWithHttpInfo * * Update - * + + * * @param int $space_id (required) * @param \PostFinanceCheckout\Sdk\Model\WebhookUrlUpdate $entity The webhook url object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \PostFinanceCheckout\Sdk\ApiException @@ -708,7 +709,6 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { - $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -717,7 +717,7 @@ public function updateWithHttpInfo($space_id, $entity) { $headerParams, '\PostFinanceCheckout\Sdk\Model\WebhookUrl', '/webhook-url/update' - ); + ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\PostFinanceCheckout\Sdk\Model\WebhookUrl', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { diff --git a/postfinancecheckout-sdk/test/ApiClientTest.php b/postfinancecheckout-sdk/test/ApiClientTest.php index 1514f56..b6008da 100644 --- a/postfinancecheckout-sdk/test/ApiClientTest.php +++ b/postfinancecheckout-sdk/test/ApiClientTest.php @@ -48,8 +48,9 @@ final class ApiClientTest extends TestCase /** * Setup before running each test case + * @return void */ - public function setUp() + public function setUp() : void { parent::setUp(); $userId = getenv('APPLICATION_USER_ID') ? getenv('APPLICATION_USER_ID') : 512; @@ -63,8 +64,9 @@ public function setUp() /** * Clean up after running each test case + * @return void */ - public function tearDown() + public function tearDown(): void { $this->apiClient = null; } @@ -130,5 +132,23 @@ public function testEmptyResponseWithCurlClient() $this->apiClient->getTransactionService()->read($this->spaceId, 1); } + /** + * Tests that the headers in the response contain headers with SDK information by default. + * + * @since 3.1.2 + * @return void + */ + public function testSdkHeaders() + { + $headers = $this->apiClient->getDefaultHeaders(); + $this->assertGreaterThanOrEqual(4, count($headers)); + + // Check SDK default header values. + $this->assertEquals($headers['x-meta-sdk-version'], "3.2.0"); + $this->assertEquals($headers['x-meta-sdk-language'], 'php'); + $this->assertEquals($headers['x-meta-sdk-provider'], "PostFinance Checkout"); + $this->assertEquals($headers['x-meta-sdk-language-version'], phpversion()); + } + } diff --git a/postfinancecheckout-sdk/test/RefundServiceTest.php b/postfinancecheckout-sdk/test/RefundServiceTest.php index 7e29668..70e1c1f 100644 --- a/postfinancecheckout-sdk/test/RefundServiceTest.php +++ b/postfinancecheckout-sdk/test/RefundServiceTest.php @@ -70,8 +70,9 @@ class RefundServiceTest extends TestCase /** * Setup before running each test case + * @return void */ - public function setUp() + public function setUp() : void { parent::setUp(); diff --git a/postfinancecheckout-sdk/test/TransactionCompletionServiceTest.php b/postfinancecheckout-sdk/test/TransactionCompletionServiceTest.php index f8302f6..346b1d2 100644 --- a/postfinancecheckout-sdk/test/TransactionCompletionServiceTest.php +++ b/postfinancecheckout-sdk/test/TransactionCompletionServiceTest.php @@ -67,8 +67,9 @@ class TransactionCompletionServiceTest extends TestCase /** * Setup before running each test case + * @return void */ - public function setUp() + public function setUp() : void { parent::setUp(); diff --git a/postfinancecheckout-sdk/test/TransactionLightboxServiceTest.php b/postfinancecheckout-sdk/test/TransactionLightboxServiceTest.php index f96b942..d70447e 100644 --- a/postfinancecheckout-sdk/test/TransactionLightboxServiceTest.php +++ b/postfinancecheckout-sdk/test/TransactionLightboxServiceTest.php @@ -66,8 +66,9 @@ class TransactionLightboxServiceTest extends TestCase /** * Setup before running each test case + * @return void */ - public function setUp() + public function setUp() : void { parent::setUp(); diff --git a/postfinancecheckout-sdk/test/TransactionPaymentPageServiceTest.php b/postfinancecheckout-sdk/test/TransactionPaymentPageServiceTest.php index 8ef5a9e..e681f68 100644 --- a/postfinancecheckout-sdk/test/TransactionPaymentPageServiceTest.php +++ b/postfinancecheckout-sdk/test/TransactionPaymentPageServiceTest.php @@ -68,8 +68,9 @@ class TransactionPaymentPageServiceTest extends TestCase /** * Setup before running each test case + * @return void */ - public function setUp() + public function setUp() : void { parent::setUp(); diff --git a/postfinancecheckout-sdk/test/TransactionServiceTest.php b/postfinancecheckout-sdk/test/TransactionServiceTest.php index 59455ff..ea9d332 100644 --- a/postfinancecheckout-sdk/test/TransactionServiceTest.php +++ b/postfinancecheckout-sdk/test/TransactionServiceTest.php @@ -73,8 +73,9 @@ class TransactionServiceTest extends TestCase /** * Setup before running each test case + * @return void */ - public function setUp() + public function setUp() : void { parent::setUp(); @@ -151,15 +152,17 @@ private function getHttpClient() /** * Clean up after running each test case + * @return void */ - public function tearDown() + public function tearDown(): void { } /** * Clean up after running all test cases + * @return void */ - public static function tearDownAfterClass() + public static function tearDownAfterClass(): void { } diff --git a/readme.txt b/readme.txt index a17b663..9020e61 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: customwebgmbh Tags: woocommerce PostFinance Checkout, woocommerce, PostFinance Checkout, payment, e-commerce, webshop, psp, invoice, packing slips, pdf, customer invoice, processing Requires at least: 4.7 Tested up to: 6.1 -Stable tag: 2.1.6 +Stable tag: 2.1.7 License: Apache 2 License URI: http://www.apache.org/licenses/LICENSE-2.0 @@ -23,7 +23,7 @@ To use this extension, a PostFinance Checkout account is required. Sign up on [P == Documentation == -Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.6/docs/en/documentation.html). +Additional documentation for this plugin is available [here](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/2.1.7/docs/en/documentation.html). == Support == @@ -57,9 +57,15 @@ Support queries can be issued on the [PostFinance Checkout support site](https:/ ## Feature -- Make the latest version of the plugin available on the marketplace +- Upgrade the **PHP sdk version** to 3.2.0 to add compatibility with PHP 8.1 +- Support of Woocommerce 7.4.0 +- Loading jQuery BlockUI only if it is available + +## Bug +- Removal of *woocommerce* trademark from translations and error message ## Tested Against -- PHP 7.4.32 +- PHP 8.1 - Wordpress 6.1.1 -- Woocommerce 7.3.0 +- Woocommerce 7.4.0 +- PHP sdk 3.2.0 diff --git a/views/admin-notices/migration-failed.php b/views/admin-notices/migration-failed.php index c97f33e..0d97d56 100644 --- a/views/admin-notices/migration-failed.php +++ b/views/admin-notices/migration-failed.php @@ -15,5 +15,5 @@ } ?>
    -

    +

    diff --git a/views/admin-notices/plugin-deactivated.php b/views/admin-notices/plugin-deactivated.php index 5e2a12e..467ea05 100644 --- a/views/admin-notices/plugin-deactivated.php +++ b/views/admin-notices/plugin-deactivated.php @@ -14,4 +14,4 @@ exit(); } ?> -

    +

    diff --git a/woocommerce-postfinancecheckout.php b/woocommerce-postfinancecheckout.php index 7f8f819..118c0ae 100644 --- a/woocommerce-postfinancecheckout.php +++ b/woocommerce-postfinancecheckout.php @@ -3,7 +3,7 @@ * Plugin Name: PostFinance Checkout * Plugin URI: https://wordpress.org/plugins/woo-postfinancecheckout * Description: Process WooCommerce payments with PostFinance Checkout. - * Version: 2.1.6 + * Version: 2.1.7 * License: Apache2 * License URI: http://www.apache.org/licenses/LICENSE-2.0 * Author: wallee AG @@ -45,7 +45,7 @@ final class WooCommerce_PostFinanceCheckout { * * @var string */ - private $version = '2.1.6'; + private $version = '2.1.7'; /** * The single instance of the class.