From cbbffbdfec3feedb1d5176c5bb0e1d0e7d12f451 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Wed, 29 Nov 2023 07:18:13 +0000 Subject: [PATCH] Generated Xendit php SDK --- .github/workflows/generate-release-tag.yml | 61 +- .openapi-generator/FILES | 9 + README.md | 4 +- composer.json | 6 +- composer.lock | 4261 ----------------- docs/BalanceApi.md | 3 +- docs/CustomerApi.md | 3 +- docs/Invoice/InvoiceCallback.md | 42 + docs/Invoice/InvoiceCallbackItem.md | 19 + docs/Invoice/PaymentDetails.md | 16 + docs/InvoiceApi.md | 55 +- docs/PaymentMethod/PaymentMethodCallback.md | 18 + docs/PaymentMethodApi.md | 68 +- docs/PaymentRequest/InvoicePartnerMetadata.md | 15 + docs/PaymentRequest/PaymentCallback.md | 18 + docs/PaymentRequest/PaymentCallbackData.md | 29 + docs/PaymentRequestApi.md | 86 +- docs/PayoutApi.md | 3 +- docs/Refund/RefundCallback.md | 18 + docs/Refund/RefundCallbackData.md | 30 + docs/RefundApi.md | 51 +- docs/TransactionApi.md | 3 +- lib/BalanceAndTransaction/Balance.php | 2 +- lib/BalanceAndTransaction/BalanceApi.php | 4 +- .../ChannelsCategories.php | 2 +- lib/BalanceAndTransaction/Currency.php | 2 +- lib/BalanceAndTransaction/DateRangeFilter.php | 2 +- lib/BalanceAndTransaction/FeeResponse.php | 2 +- lib/BalanceAndTransaction/LinkItem.php | 2 +- lib/BalanceAndTransaction/ServerError.php | 2 +- lib/BalanceAndTransaction/TransactionApi.php | 6 +- .../TransactionResponse.php | 2 +- .../TransactionResponseType.php | 2 +- .../TransactionStatuses.php | 2 +- .../TransactionTypes.php | 2 +- .../TransactionsResponse.php | 2 +- lib/BalanceAndTransaction/ValidationError.php | 2 +- lib/Configuration.php | 8 +- lib/Customer/CustomerApi.php | 8 +- lib/HeaderSelector.php | 2 +- lib/Invoice/InvoiceApi.php | 8 +- lib/Invoice/InvoiceCallback.php | 1348 ++++++ lib/Invoice/InvoiceCallbackItem.php | 557 +++ lib/Invoice/PaymentDetails.php | 437 ++ lib/Model/ModelInterface.php | 2 +- lib/ObjectSerializer.php | 2 +- lib/PaymentMethod/PaymentMethodApi.php | 16 +- lib/PaymentMethod/PaymentMethodCallback.php | 514 ++ lib/PaymentRequest/Capture.php | 2 +- lib/PaymentRequest/CaptureListResponse.php | 2 +- lib/PaymentRequest/CaptureParameters.php | 2 +- lib/PaymentRequest/Card.php | 2 +- lib/PaymentRequest/CardChannelProperties.php | 2 +- lib/PaymentRequest/CardInformation.php | 2 +- .../CardVerificationResults.php | 2 +- .../CardVerificationResultsThreeDSecure.php | 2 +- lib/PaymentRequest/DirectDebit.php | 2 +- lib/PaymentRequest/DirectDebitAllOf.php | 2 +- lib/PaymentRequest/DirectDebitBankAccount.php | 2 +- lib/PaymentRequest/DirectDebitChannelCode.php | 2 +- .../DirectDebitChannelProperties.php | 2 +- ...irectDebitChannelPropertiesBankAccount.php | 2 +- ...rectDebitChannelPropertiesBankRedirect.php | 2 +- .../DirectDebitChannelPropertiesDebitCard.php | 2 +- lib/PaymentRequest/DirectDebitDebitCard.php | 2 +- lib/PaymentRequest/DirectDebitParameters.php | 2 +- lib/PaymentRequest/DirectDebitType.php | 2 +- lib/PaymentRequest/EWallet.php | 2 +- lib/PaymentRequest/EWalletAccount.php | 2 +- lib/PaymentRequest/EWalletAllOf.php | 2 +- lib/PaymentRequest/EWalletChannelCode.php | 2 +- .../EWalletChannelProperties.php | 2 +- lib/PaymentRequest/EWalletParameters.php | 2 +- lib/PaymentRequest/Error.php | 2 +- lib/PaymentRequest/InvoicePartnerMetadata.php | 402 ++ lib/PaymentRequest/OverTheCounter.php | 2 +- .../OverTheCounterChannelCode.php | 2 +- .../OverTheCounterChannelProperties.php | 2 +- .../OverTheCounterParameters.php | 2 +- lib/PaymentRequest/PaymentCallback.php | 514 ++ lib/PaymentRequest/PaymentCallbackData.php | 948 ++++ lib/PaymentRequest/PaymentMethod.php | 2 +- .../PaymentMethodParameters.php | 2 +- .../PaymentMethodReusability.php | 2 +- lib/PaymentRequest/PaymentMethodStatus.php | 2 +- lib/PaymentRequest/PaymentMethodType.php | 2 +- lib/PaymentRequest/PaymentRequest.php | 2 +- lib/PaymentRequest/PaymentRequestAction.php | 2 +- lib/PaymentRequest/PaymentRequestApi.php | 16 +- .../PaymentRequestAuthParameters.php | 2 +- .../PaymentRequestBasketItem.php | 2 +- .../PaymentRequestCaptureMethod.php | 2 +- .../PaymentRequestCardVerificationResults.php | 2 +- ...tCardVerificationResultsThreeDeeSecure.php | 2 +- .../PaymentRequestChannelProperties.php | 2 +- lib/PaymentRequest/PaymentRequestCountry.php | 2 +- lib/PaymentRequest/PaymentRequestCurrency.php | 2 +- .../PaymentRequestInitiator.php | 2 +- .../PaymentRequestListResponse.php | 2 +- .../PaymentRequestParameters.php | 2 +- ...mentRequestParametersChannelProperties.php | 2 +- ...equestParametersChannelPropertiesAllOf.php | 2 +- .../PaymentRequestShippingInformation.php | 2 +- lib/PaymentRequest/PaymentRequestStatus.php | 2 +- lib/PaymentRequest/QRCode.php | 2 +- lib/PaymentRequest/QRCodeChannelCode.php | 2 +- .../QRCodeChannelProperties.php | 2 +- lib/PaymentRequest/QRCodeParameters.php | 2 +- lib/PaymentRequest/VirtualAccount.php | 2 +- lib/PaymentRequest/VirtualAccountAllOf.php | 2 +- .../VirtualAccountAlternativeDisplay.php | 2 +- .../VirtualAccountChannelCode.php | 2 +- .../VirtualAccountChannelProperties.php | 2 +- .../VirtualAccountParameters.php | 2 +- lib/Payout/PayoutApi.php | 10 +- lib/Refund/CreateRefund.php | 2 +- lib/Refund/CreateRefund400Response.php | 4 +- lib/Refund/CreateRefund403Response.php | 2 +- lib/Refund/CreateRefund404Response.php | 2 +- lib/Refund/CreateRefund409Response.php | 2 +- lib/Refund/CreateRefund503Response.php | 2 +- lib/Refund/GetAllRefundsDefaultResponse.php | 2 +- lib/Refund/Refund.php | 2 +- lib/Refund/RefundApi.php | 10 +- lib/Refund/RefundCallback.php | 514 ++ lib/Refund/RefundCallbackData.php | 980 ++++ lib/Refund/RefundList.php | 2 +- lib/XenditSdkException.php | 2 +- phpunit.xml.dist | 2 +- 129 files changed, 6886 insertions(+), 4412 deletions(-) delete mode 100644 composer.lock create mode 100644 docs/Invoice/InvoiceCallback.md create mode 100644 docs/Invoice/InvoiceCallbackItem.md create mode 100644 docs/Invoice/PaymentDetails.md create mode 100644 docs/PaymentMethod/PaymentMethodCallback.md create mode 100644 docs/PaymentRequest/InvoicePartnerMetadata.md create mode 100644 docs/PaymentRequest/PaymentCallback.md create mode 100644 docs/PaymentRequest/PaymentCallbackData.md create mode 100644 docs/Refund/RefundCallback.md create mode 100644 docs/Refund/RefundCallbackData.md create mode 100644 lib/Invoice/InvoiceCallback.php create mode 100644 lib/Invoice/InvoiceCallbackItem.php create mode 100644 lib/Invoice/PaymentDetails.php create mode 100644 lib/PaymentMethod/PaymentMethodCallback.php create mode 100644 lib/PaymentRequest/InvoicePartnerMetadata.php create mode 100644 lib/PaymentRequest/PaymentCallback.php create mode 100644 lib/PaymentRequest/PaymentCallbackData.php create mode 100644 lib/Refund/RefundCallback.php create mode 100644 lib/Refund/RefundCallbackData.php diff --git a/.github/workflows/generate-release-tag.yml b/.github/workflows/generate-release-tag.yml index 4e09520..7c02697 100644 --- a/.github/workflows/generate-release-tag.yml +++ b/.github/workflows/generate-release-tag.yml @@ -4,10 +4,67 @@ on: types: [create-release-tag] jobs: - build: + testing: runs-on: ubuntu-latest + strategy: + matrix: + php-version: + - "7.4" + - "8.0" + - "8.1" + - "8.2" + steps: - uses: actions/checkout@v3 + + - name: Print php version + run: echo ${{ matrix.php-version }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + + - name: Print php version + run: php --version + + - name: Install dependencies + run: composer install + + - name: Run Tests + run: DEVELOPMENT_API_KEY=${{ secrets.DEVELOPMENT_API_KEY }} BUSINESS_ID=${{ secrets.BUSINESS_ID }} composer test + + send-test-result: + name: Slack Notification + needs: [testing] + if: always() && (needs.testing.result == 'success' || needs.testing.result == 'failure') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set Slack Color + id: set_color + run: | + if [ "${{ needs.testing.result }}" == "success" ]; then + echo "color=good" >> $GITHUB_ENV + else + echo "color=danger" >> $GITHUB_ENV + fi + + - name: Send Slack Notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_TITLE: "[xendi-php] CI pipeline for ${{ github.event.client_payload.version }}" + SLACK_MESSAGE: 'Test Result: ${{ needs.testing.result }}' + SLACK_COLOR: ${{ steps.set_color.outputs.color }} + + publish: + runs-on: ubuntu-latest + needs: testing + steps: + - uses: actions/checkout@v3 + - name: Set the value in bash id: parse-changelog run: | @@ -24,4 +81,4 @@ jobs: release_name: ${{ github.event.client_payload.version }} body: ${{ steps.parse-changelog.outputs.changelog }} draft: false - prerelease: false \ No newline at end of file + prerelease: false diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 79124a3..108ad54 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -31,10 +31,13 @@ docs/PaymentRequest/EWalletChannelCode.md docs/PaymentRequest/EWalletChannelProperties.md docs/PaymentRequest/EWalletParameters.md docs/PaymentRequest/Error.md +docs/PaymentRequest/InvoicePartnerMetadata.md docs/PaymentRequest/OverTheCounter.md docs/PaymentRequest/OverTheCounterChannelCode.md docs/PaymentRequest/OverTheCounterChannelProperties.md docs/PaymentRequest/OverTheCounterParameters.md +docs/PaymentRequest/PaymentCallback.md +docs/PaymentRequest/PaymentCallbackData.md docs/PaymentRequest/PaymentMethod.md docs/PaymentRequest/PaymentMethodParameters.md docs/PaymentRequest/PaymentMethodReusability.md @@ -99,10 +102,13 @@ lib/PaymentRequest/EWalletChannelCode.php lib/PaymentRequest/EWalletChannelProperties.php lib/PaymentRequest/EWalletParameters.php lib/PaymentRequest/Error.php +lib/PaymentRequest/InvoicePartnerMetadata.php lib/PaymentRequest/OverTheCounter.php lib/PaymentRequest/OverTheCounterChannelCode.php lib/PaymentRequest/OverTheCounterChannelProperties.php lib/PaymentRequest/OverTheCounterParameters.php +lib/PaymentRequest/PaymentCallback.php +lib/PaymentRequest/PaymentCallbackData.php lib/PaymentRequest/PaymentMethod.php lib/PaymentRequest/PaymentMethodParameters.php lib/PaymentRequest/PaymentMethodReusability.php @@ -165,10 +171,13 @@ test/Model/PaymentRequest/EWalletChannelPropertiesTest.php test/Model/PaymentRequest/EWalletParametersTest.php test/Model/PaymentRequest/EWalletTest.php test/Model/PaymentRequest/ErrorTest.php +test/Model/PaymentRequest/InvoicePartnerMetadataTest.php test/Model/PaymentRequest/OverTheCounterChannelCodeTest.php test/Model/PaymentRequest/OverTheCounterChannelPropertiesTest.php test/Model/PaymentRequest/OverTheCounterParametersTest.php test/Model/PaymentRequest/OverTheCounterTest.php +test/Model/PaymentRequest/PaymentCallbackDataTest.php +test/Model/PaymentRequest/PaymentCallbackTest.php test/Model/PaymentRequest/PaymentMethodParametersTest.php test/Model/PaymentRequest/PaymentMethodReusabilityTest.php test/Model/PaymentRequest/PaymentMethodStatusTest.php diff --git a/README.md b/README.md index d926cec..624db6f 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The official Xendit PHP SDK provides a simple and convenient way to call Xendit's REST API in applications written in PHP. -* Package version: 3.6.0 +* Package version: 3.7.0 # Getting Started @@ -28,7 +28,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow } ], "require": { - "xendit/xendit-php": "3.6.0" + "xendit/xendit-php": "3.7.0" } } ``` diff --git a/composer.json b/composer.json index a52774a..25746c8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "xendit/xendit-php", - "version": "3.6.0", + "version": "3.7.0", "description": "Xendit PHP SDK", "keywords": [ "openapitools", @@ -39,7 +39,7 @@ "psr-4": { "Xendit\\Test\\" : "test/" } }, "scripts": { - "test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY phpunit", - "filtered-test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY phpunit --filter PaymentAPITest" + "test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY BUSINESS_ID=$BUSINESS_ID phpunit", + "filtered-test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY BUSINESS_ID=$BUSINESS_ID phpunit --filter PaymentAPITest" } } diff --git a/composer.lock b/composer.lock deleted file mode 100644 index e9e430a..0000000 --- a/composer.lock +++ /dev/null @@ -1,4261 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "d8a985146071fae6ac0d87732943ee36", - "packages": [ - { - "name": "graham-campbell/result-type", - "version": "v1.1.1", - "source": { - "type": "git", - "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831", - "reference": "672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0", - "phpoption/phpoption": "^1.9.1" - }, - "require-dev": { - "phpunit/phpunit": "^8.5.32 || ^9.6.3 || ^10.0.12" - }, - "type": "library", - "autoload": { - "psr-4": { - "GrahamCampbell\\ResultType\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - } - ], - "description": "An Implementation Of The Result Type", - "keywords": [ - "Graham Campbell", - "GrahamCampbell", - "Result Type", - "Result-Type", - "result" - ], - "support": { - "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.1" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", - "type": "tidelift" - } - ], - "time": "2023-02-25T20:23:15+00:00" - }, - { - "name": "guzzlehttp/guzzle", - "version": "7.8.0", - "source": { - "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9", - "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9", - "shasum": "" - }, - "require": { - "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0.1", - "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", - "php": "^7.2.5 || ^8.0", - "psr/http-client": "^1.0", - "symfony/deprecation-contracts": "^2.2 || ^3.0" - }, - "provide": { - "psr/http-client-implementation": "1.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "ext-curl": "*", - "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", - "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23", - "psr/log": "^1.1 || ^2.0 || ^3.0" - }, - "suggest": { - "ext-curl": "Required for CURL handler support", - "ext-intl": "Required for Internationalized Domain Name (IDN) support", - "psr/log": "Required for using the Log middleware" - }, - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "GuzzleHttp\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "description": "Guzzle is a PHP HTTP client library", - "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "psr-18", - "psr-7", - "rest", - "web service" - ], - "support": { - "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.8.0" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", - "type": "tidelift" - } - ], - "time": "2023-08-27T10:20:53+00:00" - }, - { - "name": "guzzlehttp/promises", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/guzzle/promises.git", - "reference": "111166291a0f8130081195ac4556a5587d7f1b5d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d", - "reference": "111166291a0f8130081195ac4556a5587d7f1b5d", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" - }, - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - } - ], - "description": "Guzzle promises library", - "keywords": [ - "promise" - ], - "support": { - "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.0.1" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", - "type": "tidelift" - } - ], - "time": "2023-08-03T15:11:55+00:00" - }, - { - "name": "guzzlehttp/psr7", - "version": "2.6.1", - "source": { - "type": "git", - "url": "https://github.com/guzzle/psr7.git", - "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727", - "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0", - "psr/http-factory": "^1.0", - "psr/http-message": "^1.1 || ^2.0", - "ralouphie/getallheaders": "^3.0" - }, - "provide": { - "psr/http-factory-implementation": "1.0", - "psr/http-message-implementation": "1.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" - }, - "suggest": { - "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" - }, - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": false - } - }, - "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - }, - { - "name": "George Mponos", - "email": "gmponos@gmail.com", - "homepage": "https://github.com/gmponos" - }, - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", - "homepage": "https://github.com/Nyholm" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://github.com/sagikazarmark" - }, - { - "name": "Tobias Schultze", - "email": "webmaster@tubo-world.de", - "homepage": "https://github.com/Tobion" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "description": "PSR-7 message implementation that also provides common utility methods", - "keywords": [ - "http", - "message", - "psr-7", - "request", - "response", - "stream", - "uri", - "url" - ], - "support": { - "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.6.1" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://github.com/Nyholm", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", - "type": "tidelift" - } - ], - "time": "2023-08-27T10:13:57+00:00" - }, - { - "name": "phpoption/phpoption", - "version": "1.9.1", - "source": { - "type": "git", - "url": "https://github.com/schmittjoh/php-option.git", - "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dd3a383e599f49777d8b628dadbb90cae435b87e", - "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e", - "shasum": "" - }, - "require": { - "php": "^7.2.5 || ^8.0" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.32 || ^9.6.3 || ^10.0.12" - }, - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": true - }, - "branch-alias": { - "dev-master": "1.9-dev" - } - }, - "autoload": { - "psr-4": { - "PhpOption\\": "src/PhpOption/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "https://github.com/schmittjoh" - }, - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - } - ], - "description": "Option Type for PHP", - "keywords": [ - "language", - "option", - "php", - "type" - ], - "support": { - "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.9.1" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", - "type": "tidelift" - } - ], - "time": "2023-02-25T19:38:58+00:00" - }, - { - "name": "psr/http-client", - "version": "1.0.3", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-client.git", - "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", - "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", - "shasum": "" - }, - "require": { - "php": "^7.0 || ^8.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Client\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP clients", - "homepage": "https://github.com/php-fig/http-client", - "keywords": [ - "http", - "http-client", - "psr", - "psr-18" - ], - "support": { - "source": "https://github.com/php-fig/http-client" - }, - "time": "2023-09-23T14:17:50+00:00" - }, - { - "name": "psr/http-factory", - "version": "1.0.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-factory.git", - "reference": "e616d01114759c4c489f93b099585439f795fe35" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", - "reference": "e616d01114759c4c489f93b099585439f795fe35", - "shasum": "" - }, - "require": { - "php": ">=7.0.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interfaces for PSR-7 HTTP message factories", - "keywords": [ - "factory", - "http", - "message", - "psr", - "psr-17", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-factory/tree/1.0.2" - }, - "time": "2023-04-10T20:10:41+00:00" - }, - { - "name": "psr/http-message", - "version": "2.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "homepage": "https://github.com/php-fig/http-message", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-message/tree/2.0" - }, - "time": "2023-04-04T09:54:51+00:00" - }, - { - "name": "ralouphie/getallheaders", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/ralouphie/getallheaders.git", - "reference": "120b605dfeb996808c31b6477290a714d356e822" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", - "reference": "120b605dfeb996808c31b6477290a714d356e822", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "require-dev": { - "php-coveralls/php-coveralls": "^2.1", - "phpunit/phpunit": "^5 || ^6.5" - }, - "type": "library", - "autoload": { - "files": [ - "src/getallheaders.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ralph Khattar", - "email": "ralph.khattar@gmail.com" - } - ], - "description": "A polyfill for getallheaders.", - "support": { - "issues": "https://github.com/ralouphie/getallheaders/issues", - "source": "https://github.com/ralouphie/getallheaders/tree/develop" - }, - "time": "2019-03-08T08:55:37+00:00" - }, - { - "name": "symfony/deprecation-contracts", - "version": "v3.3.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-05-23T14:45:45+00:00" - }, - { - "name": "symfony/polyfill-ctype", - "version": "v1.28.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", - "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "provide": { - "ext-ctype": "*" - }, - "suggest": { - "ext-ctype": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Gert de Pagter", - "email": "BackEndTea@gmail.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for ctype functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "ctype", - "polyfill", - "portable" - ], - "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-01-26T09:26:14+00:00" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.28.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "42292d99c55abe617799667f454222c54c60e229" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", - "reference": "42292d99c55abe617799667f454222c54c60e229", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "provide": { - "ext-mbstring": "*" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-07-28T09:04:16+00:00" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.28.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5", - "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-01-26T09:26:14+00:00" - }, - { - "name": "vlucas/phpdotenv", - "version": "v5.5.0", - "source": { - "type": "git", - "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", - "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", - "shasum": "" - }, - "require": { - "ext-pcre": "*", - "graham-campbell/result-type": "^1.0.2", - "php": "^7.1.3 || ^8.0", - "phpoption/phpoption": "^1.8", - "symfony/polyfill-ctype": "^1.23", - "symfony/polyfill-mbstring": "^1.23.1", - "symfony/polyfill-php80": "^1.23.1" - }, - "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", - "ext-filter": "*", - "phpunit/phpunit": "^7.5.20 || ^8.5.30 || ^9.5.25" - }, - "suggest": { - "ext-filter": "Required to use the boolean validator." - }, - "type": "library", - "extra": { - "bamarni-bin": { - "bin-links": true, - "forward-command": true - }, - "branch-alias": { - "dev-master": "5.5-dev" - } - }, - "autoload": { - "psr-4": { - "Dotenv\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk", - "homepage": "https://github.com/GrahamCampbell" - }, - { - "name": "Vance Lucas", - "email": "vance@vancelucas.com", - "homepage": "https://github.com/vlucas" - } - ], - "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "support": { - "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.5.0" - }, - "funding": [ - { - "url": "https://github.com/GrahamCampbell", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", - "type": "tidelift" - } - ], - "time": "2022-10-16T01:01:54+00:00" - } - ], - "packages-dev": [ - { - "name": "composer/pcre", - "version": "3.1.1", - "source": { - "type": "git", - "url": "https://github.com/composer/pcre.git", - "reference": "00104306927c7a0919b4ced2aaa6782c1e61a3c9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/00104306927c7a0919b4ced2aaa6782c1e61a3c9", - "reference": "00104306927c7a0919b4ced2aaa6782c1e61a3c9", - "shasum": "" - }, - "require": { - "php": "^7.4 || ^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.3", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Composer\\Pcre\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - } - ], - "description": "PCRE wrapping library that offers type-safe preg_* replacements.", - "keywords": [ - "PCRE", - "preg", - "regex", - "regular expression" - ], - "support": { - "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.1.1" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2023-10-11T07:11:09+00:00" - }, - { - "name": "composer/semver", - "version": "3.4.0", - "source": { - "type": "git", - "url": "https://github.com/composer/semver.git", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", - "shasum": "" - }, - "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.4", - "symfony/phpunit-bridge": "^4.2 || ^5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Composer\\Semver\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nils Adermann", - "email": "naderman@naderman.de", - "homepage": "http://www.naderman.de" - }, - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - }, - { - "name": "Rob Bast", - "email": "rob.bast@gmail.com", - "homepage": "http://robbast.nl" - } - ], - "description": "Semver library that offers utilities, version constraint parsing and validation.", - "keywords": [ - "semantic", - "semver", - "validation", - "versioning" - ], - "support": { - "irc": "ircs://irc.libera.chat:6697/composer", - "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.0" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2023-08-31T09:50:34+00:00" - }, - { - "name": "composer/xdebug-handler", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "ced299686f41dce890debac69273b47ffe98a40c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", - "reference": "ced299686f41dce890debac69273b47ffe98a40c", - "shasum": "" - }, - "require": { - "composer/pcre": "^1 || ^2 || ^3", - "php": "^7.2.5 || ^8.0", - "psr/log": "^1 || ^2 || ^3" - }, - "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Composer\\XdebugHandler\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" - } - ], - "description": "Restarts a process without Xdebug.", - "keywords": [ - "Xdebug", - "performance" - ], - "support": { - "irc": "irc://irc.freenode.org/composer", - "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2022-02-25T21:32:43+00:00" - }, - { - "name": "doctrine/instantiator", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "shasum": "" - }, - "require": { - "php": "^8.1" - }, - "require-dev": { - "doctrine/coding-standard": "^11", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5.27", - "vimeo/psalm": "^5.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" - } - ], - "time": "2022-12-30T00:23:10+00:00" - }, - { - "name": "friendsofphp/php-cs-fixer", - "version": "v3.37.1", - "source": { - "type": "git", - "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "c3fe76976081ab871aa654e872da588077e19679" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/c3fe76976081ab871aa654e872da588077e19679", - "reference": "c3fe76976081ab871aa654e872da588077e19679", - "shasum": "" - }, - "require": { - "composer/semver": "^3.3", - "composer/xdebug-handler": "^3.0.3", - "ext-json": "*", - "ext-tokenizer": "*", - "php": "^7.4 || ^8.0", - "sebastian/diff": "^4.0 || ^5.0", - "symfony/console": "^5.4 || ^6.0", - "symfony/event-dispatcher": "^5.4 || ^6.0", - "symfony/filesystem": "^5.4 || ^6.0", - "symfony/finder": "^5.4 || ^6.0", - "symfony/options-resolver": "^5.4 || ^6.0", - "symfony/polyfill-mbstring": "^1.27", - "symfony/polyfill-php80": "^1.27", - "symfony/polyfill-php81": "^1.27", - "symfony/process": "^5.4 || ^6.0", - "symfony/stopwatch": "^5.4 || ^6.0" - }, - "require-dev": { - "facile-it/paraunit": "^1.3 || ^2.0", - "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^2.0", - "mikey179/vfsstream": "^1.6.11", - "php-coveralls/php-coveralls": "^2.5.3", - "php-cs-fixer/accessible-object": "^1.1", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", - "phpspec/prophecy": "^1.16", - "phpspec/prophecy-phpunit": "^2.0", - "phpunit/phpunit": "^9.5", - "symfony/phpunit-bridge": "^6.2.3", - "symfony/yaml": "^5.4 || ^6.0" - }, - "suggest": { - "ext-dom": "For handling output formats in XML", - "ext-mbstring": "For handling non-UTF8 characters." - }, - "bin": [ - "php-cs-fixer" - ], - "type": "application", - "autoload": { - "psr-4": { - "PhpCsFixer\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" - } - ], - "description": "A tool to automatically fix PHP code style", - "keywords": [ - "Static code analysis", - "fixer", - "standards", - "static analysis" - ], - "support": { - "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.37.1" - }, - "funding": [ - { - "url": "https://github.com/keradus", - "type": "github" - } - ], - "time": "2023-10-29T20:51:23+00:00" - }, - { - "name": "myclabs/deep-copy", - "version": "1.11.1", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" - }, - "require-dev": { - "doctrine/collections": "^1.6.8", - "doctrine/common": "^2.13.3 || ^3.2.2", - "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" - }, - "type": "library", - "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" - }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2023-03-08T13:26:56+00:00" - }, - { - "name": "nikic/php-parser", - "version": "v4.17.1", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=7.0" - }, - "require-dev": { - "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" - }, - "bin": [ - "bin/php-parse" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.9-dev" - } - }, - "autoload": { - "psr-4": { - "PhpParser\\": "lib/PhpParser" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "support": { - "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" - }, - "time": "2023-08-13T19:53:39+00:00" - }, - { - "name": "phar-io/manifest", - "version": "2.0.3", - "source": { - "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "support": { - "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.3" - }, - "time": "2021-07-20T11:28:43+00:00" - }, - { - "name": "phar-io/version", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Library for handling version information and constraints", - "support": { - "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.2.1" - }, - "time": "2022-02-21T01:04:05+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "9.2.29", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6a3a87ac2bbe33b25042753df8195ba4aa534c76", - "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-xmlwriter": "*", - "nikic/php-parser": "^4.15", - "php": ">=7.3", - "phpunit/php-file-iterator": "^3.0.3", - "phpunit/php-text-template": "^2.0.2", - "sebastian/code-unit-reverse-lookup": "^2.0.2", - "sebastian/complexity": "^2.0", - "sebastian/environment": "^5.1.2", - "sebastian/lines-of-code": "^1.0.3", - "sebastian/version": "^3.0.1", - "theseer/tokenizer": "^1.2.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-pcov": "PHP extension that provides line coverage", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "9.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.29" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-09-19T04:57:46+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "3.0.6", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2021-12-02T12:48:52+00:00" - }, - { - "name": "phpunit/php-invoker", - "version": "3.1.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-pcntl": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Invoke callables with a timeout", - "homepage": "https://github.com/sebastianbergmann/php-invoker/", - "keywords": [ - "process" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T05:58:55+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "2.0.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-10-26T05:33:50+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "5.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-10-26T13:16:10+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "9.6.13", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "f3d767f7f9e191eab4189abe41ab37797e30b1be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f3d767f7f9e191eab4189abe41ab37797e30b1be", - "reference": "f3d767f7f9e191eab4189abe41ab37797e30b1be", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.3.1 || ^2", - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", - "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.28", - "phpunit/php-file-iterator": "^3.0.5", - "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.5", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.2", - "sebastian/version": "^3.0.2" - }, - "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "9.6-dev" - } - }, - "autoload": { - "files": [ - "src/Framework/Assert/Functions.php" - ], - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.13" - }, - "funding": [ - { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" - }, - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", - "type": "tidelift" - } - ], - "time": "2023-09-19T05:39:22+00:00" - }, - { - "name": "psr/container", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "shasum": "" - }, - "require": { - "php": ">=7.4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/2.0.2" - }, - "time": "2021-11-05T16:47:00+00:00" - }, - { - "name": "psr/event-dispatcher", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/event-dispatcher.git", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", - "shasum": "" - }, - "require": { - "php": ">=7.2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\EventDispatcher\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Standard interfaces for event handling.", - "keywords": [ - "events", - "psr", - "psr-14" - ], - "support": { - "issues": "https://github.com/php-fig/event-dispatcher/issues", - "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" - }, - "time": "2019-01-08T18:20:26+00:00" - }, - { - "name": "psr/log", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/3.0.0" - }, - "time": "2021-07-14T16:46:02+00:00" - }, - { - "name": "sebastian/cli-parser", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for parsing CLI options", - "homepage": "https://github.com/sebastianbergmann/cli-parser", - "support": { - "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T06:08:49+00:00" - }, - { - "name": "sebastian/code-unit", - "version": "1.0.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-10-26T13:08:54+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T05:30:19+00:00" - }, - { - "name": "sebastian/comparator", - "version": "4.0.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", - "shasum": "" - }, - "require": { - "php": ">=7.3", - "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2022-09-14T12:41:17+00:00" - }, - { - "name": "sebastian/complexity", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^4.7", - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for calculating the complexity of PHP code units", - "homepage": "https://github.com/sebastianbergmann/complexity", - "support": { - "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-10-26T15:52:27+00:00" - }, - { - "name": "sebastian/diff", - "version": "4.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3", - "symfony/process": "^4.2 || ^5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-05-07T05:35:17+00:00" - }, - { - "name": "sebastian/environment", - "version": "5.1.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-posix": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:03:51+00:00" - }, - { - "name": "sebastian/exporter", - "version": "4.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "shasum": "" - }, - "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "https://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2022-09-14T06:03:37+00:00" - }, - { - "name": "sebastian/global-state", - "version": "5.0.6", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bde739e7565280bda77be70044ac1047bc007e34" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34", - "reference": "bde739e7565280bda77be70044ac1047bc007e34", - "shasum": "" - }, - "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" - }, - "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-08-02T09:26:13+00:00" - }, - { - "name": "sebastian/lines-of-code", - "version": "1.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^4.6", - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", - "support": { - "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-11-28T06:42:11+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "4.0.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", - "shasum": "" - }, - "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "support": { - "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-10-26T13:12:34+00:00" - }, - { - "name": "sebastian/object-reflector", - "version": "2.0.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "support": { - "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-10-26T13:14:26+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "4.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "https://github.com/sebastianbergmann/recursion-context", - "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:07:39+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T06:45:17+00:00" - }, - { - "name": "sebastian/type", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", - "support": { - "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:13:03+00:00" - }, - { - "name": "sebastian/version", - "version": "3.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T06:39:44+00:00" - }, - { - "name": "symfony/console", - "version": "v6.3.4", - "source": { - "type": "git", - "url": "https://github.com/symfony/console.git", - "reference": "eca495f2ee845130855ddf1cf18460c38966c8b6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/eca495f2ee845130855ddf1cf18460c38966c8b6", - "reference": "eca495f2ee845130855ddf1cf18460c38966c8b6", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/deprecation-contracts": "^2.5|^3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^5.4|^6.0" - }, - "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/dotenv": "<5.4", - "symfony/event-dispatcher": "<5.4", - "symfony/lock": "<5.4", - "symfony/process": "<5.4" - }, - "provide": { - "psr/log-implementation": "1.0|2.0|3.0" - }, - "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/event-dispatcher": "^5.4|^6.0", - "symfony/lock": "^5.4|^6.0", - "symfony/process": "^5.4|^6.0", - "symfony/var-dumper": "^5.4|^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Console\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Eases the creation of beautiful and testable command line interfaces", - "homepage": "https://symfony.com", - "keywords": [ - "cli", - "command-line", - "console", - "terminal" - ], - "support": { - "source": "https://github.com/symfony/console/tree/v6.3.4" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-08-16T10:10:12+00:00" - }, - { - "name": "symfony/event-dispatcher", - "version": "v6.3.2", - "source": { - "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/adb01fe097a4ee930db9258a3cc906b5beb5cf2e", - "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/event-dispatcher-contracts": "^2.5|^3" - }, - "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/service-contracts": "<2.5" - }, - "provide": { - "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0|3.0" - }, - "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/error-handler": "^5.4|^6.0", - "symfony/expression-language": "^5.4|^6.0", - "symfony/http-foundation": "^5.4|^6.0", - "symfony/service-contracts": "^2.5|^3", - "symfony/stopwatch": "^5.4|^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.3.2" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-07-06T06:56:43+00:00" - }, - { - "name": "symfony/event-dispatcher-contracts", - "version": "v3.3.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "a76aed96a42d2b521153fb382d418e30d18b59df" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/a76aed96a42d2b521153fb382d418e30d18b59df", - "reference": "a76aed96a42d2b521153fb382d418e30d18b59df", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "psr/event-dispatcher": "^1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Contracts\\EventDispatcher\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Generic abstractions related to dispatching event", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.3.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-05-23T14:45:45+00:00" - }, - { - "name": "symfony/filesystem", - "version": "v6.3.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/edd36776956f2a6fcf577edb5b05eb0e3bdc52ae", - "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides basic utilities for the filesystem", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.3.1" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-06-01T08:30:39+00:00" - }, - { - "name": "symfony/finder", - "version": "v6.3.5", - "source": { - "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "a1b31d88c0e998168ca7792f222cbecee47428c4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/a1b31d88c0e998168ca7792f222cbecee47428c4", - "reference": "a1b31d88c0e998168ca7792f222cbecee47428c4", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "symfony/filesystem": "^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Finder\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Finds files and directories via an intuitive fluent interface", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/finder/tree/v6.3.5" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-09-26T12:56:25+00:00" - }, - { - "name": "symfony/options-resolver", - "version": "v6.3.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/options-resolver.git", - "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a10f19f5198d589d5c33333cffe98dc9820332dd", - "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\OptionsResolver\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides an improved replacement for the array_replace PHP function", - "homepage": "https://symfony.com", - "keywords": [ - "config", - "configuration", - "options" - ], - "support": { - "source": "https://github.com/symfony/options-resolver/tree/v6.3.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-05-12T14:21:09+00:00" - }, - { - "name": "symfony/polyfill-intl-grapheme", - "version": "v1.28.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "875e90aeea2777b6f135677f618529449334a612" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/875e90aeea2777b6f135677f618529449334a612", - "reference": "875e90aeea2777b6f135677f618529449334a612", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "suggest": { - "ext-intl": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Intl\\Grapheme\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for intl's grapheme_* functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "grapheme", - "intl", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.28.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-01-26T09:26:14+00:00" - }, - { - "name": "symfony/polyfill-intl-normalizer", - "version": "v1.28.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", - "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "suggest": { - "ext-intl": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Intl\\Normalizer\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for intl's Normalizer class and related functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "intl", - "normalizer", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.28.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-01-26T09:26:14+00:00" - }, - { - "name": "symfony/polyfill-php81", - "version": "v1.28.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/7581cd600fa9fd681b797d00b02f068e2f13263b", - "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php81\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.28.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-01-26T09:26:14+00:00" - }, - { - "name": "symfony/process", - "version": "v6.3.4", - "source": { - "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "0b5c29118f2e980d455d2e34a5659f4579847c54" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/0b5c29118f2e980d455d2e34a5659f4579847c54", - "reference": "0b5c29118f2e980d455d2e34a5659f4579847c54", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Process\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Executes commands in sub-processes", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/process/tree/v6.3.4" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-08-07T10:39:22+00:00" - }, - { - "name": "symfony/service-contracts", - "version": "v3.3.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/40da9cc13ec349d9e4966ce18b5fbcd724ab10a4", - "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "psr/container": "^2.0" - }, - "conflict": { - "ext-psr": "<1.1|>=2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.4-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Contracts\\Service\\": "" - }, - "exclude-from-classmap": [ - "/Test/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Generic abstractions related to writing services", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.3.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-05-23T14:45:45+00:00" - }, - { - "name": "symfony/stopwatch", - "version": "v6.3.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2", - "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/service-contracts": "^2.5|^3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Stopwatch\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides a way to profile code", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.3.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-02-16T10:14:28+00:00" - }, - { - "name": "symfony/string", - "version": "v6.3.5", - "source": { - "type": "git", - "url": "https://github.com/symfony/string.git", - "reference": "13d76d0fb049051ed12a04bef4f9de8715bea339" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/13d76d0fb049051ed12a04bef4f9de8715bea339", - "reference": "13d76d0fb049051ed12a04bef4f9de8715bea339", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0" - }, - "conflict": { - "symfony/translation-contracts": "<2.5" - }, - "require-dev": { - "symfony/error-handler": "^5.4|^6.0", - "symfony/http-client": "^5.4|^6.0", - "symfony/intl": "^6.2", - "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^5.4|^6.0" - }, - "type": "library", - "autoload": { - "files": [ - "Resources/functions.php" - ], - "psr-4": { - "Symfony\\Component\\String\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", - "homepage": "https://symfony.com", - "keywords": [ - "grapheme", - "i18n", - "string", - "unicode", - "utf-8", - "utf8" - ], - "support": { - "source": "https://github.com/symfony/string/tree/v6.3.5" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-09-18T10:38:32+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "support": { - "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.1" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2021-07-28T10:34:58+00:00" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": "^7.4 || ^8.0", - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*" - }, - "platform-dev": [], - "plugin-api-version": "2.6.0" -} diff --git a/docs/BalanceApi.md b/docs/BalanceApi.md index 2f1f75d..c7d8925 100644 --- a/docs/BalanceApi.md +++ b/docs/BalanceApi.md @@ -71,4 +71,5 @@ try { ``` -[[Back to README]](../README.md) + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/docs/CustomerApi.md b/docs/CustomerApi.md index 00398b0..a29665e 100644 --- a/docs/CustomerApi.md +++ b/docs/CustomerApi.md @@ -214,4 +214,5 @@ try { ``` -[[Back to README]](../README.md) + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/docs/Invoice/InvoiceCallback.md b/docs/Invoice/InvoiceCallback.md new file mode 100644 index 0000000..52db840 --- /dev/null +++ b/docs/Invoice/InvoiceCallback.md @@ -0,0 +1,42 @@ +# # InvoiceCallback +Invoice Callback Object + +```php +use Xendit\Invoice\InvoiceCallback; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | An invoice ID generated by Xendit | null | +| **external_id** | **string** | ☑️ | ID of your choice (typically the unique identifier of an invoice in your system) | null | +| **user_id** | **string** | ☑️ | Xendit Business ID | null | +| **status** | **string** | ☑️ | The status of the invoice. | null | +| **merchant_name** | **string** | ☑️ | The name of company or website | null | +| **amount** | **float** | ☑️ | Nominal amount for the invoice | null | +| **payer_email** | **string** | | Email of the payer | null | +| **description** | **string** | | Description for the invoice | null | +| **paid_amount** | **float** | | Total amount paid for the invoice | null | +| **created** | **string** | ☑️ | The date and time when the invoice was created. | null | +| **updated** | **string** | ☑️ | The date and time when the invoice was last updated. | null | +| **currency** | **string** | ☑️ | The currency of the invoice. | null | +| **paid_at** | **string** | | The date and time when the invoice was paid. | null | +| **payment_method** | **string** | | The payment method used for the invoice. | null | +| **payment_channel** | **string** | | The payment channel. | null | +| **payment_destination** | **string** | | The payment destination. | null | +| **payment_details** | [**PaymentDetails**](PaymentDetails.md) | | | null | +| **payment_id** | **string** | | The ID of the payment. | null | +| **success_redirect_url** | **string** | | The URL to redirect to on successful payment. | null | +| **failure_redirect_url** | **string** | | The URL to redirect to on payment failure. | null | +| **credit_card_charge_id** | **string** | | The ID associated with a credit card charge (if applicable). | null | +| **items** | [**array**](InvoiceCallbackItem.md) | | | null | +| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null | +| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | null | +| **bank_code** | **string** | | The bank code for the bank details. | null | +| **ewallet_type** | **string** | | The type of eWallet. | null | +| **on_demand_link** | **string** | | The on-demand link. | null | +| **recurring_payment_id** | **string** | | The ID of the recurring payment. | null | + + +[[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceCallbackItem.md b/docs/Invoice/InvoiceCallbackItem.md new file mode 100644 index 0000000..acf7964 --- /dev/null +++ b/docs/Invoice/InvoiceCallbackItem.md @@ -0,0 +1,19 @@ +# # InvoiceCallbackItem +An object representing an item within an invoice. + +```php +use Xendit\Invoice\InvoiceCallbackItem; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **name** | **string** | ☑️ | The name of the item. | null | +| **price** | **float** | ☑️ | The price of the item. | null | +| **quantity** | **float** | ☑️ | The quantity of the item. Must be greater than or equal to 0. | null | +| **url** | **string** | | The URL associated with the item. | null | +| **category** | **string** | | The category of the item. | null | + + +[[Back to README]](../../README.md) diff --git a/docs/Invoice/PaymentDetails.md b/docs/Invoice/PaymentDetails.md new file mode 100644 index 0000000..9c1eacc --- /dev/null +++ b/docs/Invoice/PaymentDetails.md @@ -0,0 +1,16 @@ +# # PaymentDetails +An object representing payment details. + +```php +use Xendit\Invoice\PaymentDetails; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **receipt_id** | **string** | | The unique identifier or reference ID associated with the payment receipt. | null | +| **source** | **string** | | The source or method of payment. | null | + + +[[Back to README]](../../README.md) diff --git a/docs/InvoiceApi.md b/docs/InvoiceApi.md index b97142e..154abab 100644 --- a/docs/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -68,7 +68,7 @@ $create_invoice_request = new Xendit\Invoice\CreateInvoiceRequest([ 'currency' => 'IDR', 'reminder_time' => 1 ]); // \Xendit\Invoice\CreateInvoiceRequest -$for_user_id = "62efe4c33e45694d63f585f8"; // string | Business ID of the sub-account merchant (XP feature) +$for_user_id = "62efe4c33e45694d63f585f0"; // string | Business ID of the sub-account merchant (XP feature) try { $result = $apiInstance->createInvoice($create_invoice_request, $for_user_id); @@ -113,7 +113,7 @@ Configuration::setXenditKey("YOUR_API_KEY_HERE"); $apiInstance = new InvoiceApi(); $invoice_id = "62efe4c33e45294d63f585f2"; // string | Invoice ID -$for_user_id = "62efe4c33e45694d63f585f8"; // string | Business ID of the sub-account merchant (XP feature) +$for_user_id = "62efe4c33e45694d63f585f0"; // string | Business ID of the sub-account merchant (XP feature) try { $result = $apiInstance->getInvoiceById($invoice_id, $for_user_id); @@ -170,7 +170,7 @@ use Xendit\Invoice\InvoiceApi; Configuration::setXenditKey("YOUR_API_KEY_HERE"); $apiInstance = new InvoiceApi(); -$for_user_id = "62efe4c33e45694d63f585f8"; // string | Business ID of the sub-account merchant (XP feature) +$for_user_id = "62efe4c33e45694d63f585f0"; // string | Business ID of the sub-account merchant (XP feature) $external_id = "test-external"; // string $statuses = ["PENDING","SETTLED"]; // \Invoice\InvoiceStatus[] $limit = 10; // float @@ -229,7 +229,7 @@ Configuration::setXenditKey("YOUR_API_KEY_HERE"); $apiInstance = new InvoiceApi(); $invoice_id = "5f4708b7bd394b0400b96276"; // string | Invoice ID to be expired -$for_user_id = "62efe4c33e45694d63f585f8"; // string | Business ID of the sub-account merchant (XP feature) +$for_user_id = "62efe4c33e45694d63f585f0"; // string | Business ID of the sub-account merchant (XP feature) try { $result = $apiInstance->expireInvoice($invoice_id, $for_user_id); @@ -241,4 +241,49 @@ try { ``` -[[Back to README]](../README.md) +## Callback Objects +Use the following callback objects provided by Xendit to receive callbacks (also known as webhooks) that Xendit sends you on events, such as successful payments. Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +### InvoiceCallback Object +>Invoice Callback Object + +Model Documentation: [InvoiceCallback](/InvoiceCallback.md) +#### Usage Example +Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +```php + '593f4ed1c3d3bb7f39733d83', + 'external_id' => 'testing-invoice', + 'user_id' => '5848fdf860053555135587e7', + 'payment_method' => 'RETAIL_OUTLET', + 'status' => 'PAID', + 'merchant_name' => 'Xendit', + 'amount' => 2000000, + 'paid_amount' => 2000000, + 'paid_at' => '2020-01-14T02=>32=>50.912Z', + 'payer_email' => 'test@xendit.co', + 'description' => 'Invoice webhook test', + 'created' => '2020-01-13T02=>32=>49.827Z', + 'updated' => '2020-01-13T02=>32=>50.912Z', + 'currency' => 'IDR', + 'payment_channel' => 'ALFAMART', + 'payment_destination' => 'TEST815' +]); +``` + +You may then use the callback object in your webhook or callback handler like so, +```php +getId(); + // do things here with the callback +} +``` + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/docs/PaymentMethod/PaymentMethodCallback.md b/docs/PaymentMethod/PaymentMethodCallback.md new file mode 100644 index 0000000..a2dff4f --- /dev/null +++ b/docs/PaymentMethod/PaymentMethodCallback.md @@ -0,0 +1,18 @@ +# # PaymentMethodCallback +Callback for active or expired E-Wallet or Direct Debit account linking, Virtual Accounts or QR strings + +```php +use Xendit\PaymentMethod\PaymentMethodCallback; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **event** | **string** | ☑️ | Identifies the event that triggered a notification to the merchant | null | +| **business_id** | **string** | ☑️ | business_id | null | +| **created** | **string** | ☑️ | | null | +| **data** | [**PaymentMethod**](PaymentMethod.md) | | | null | + + +[[Back to README]](../../README.md) diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md index 03e3ffa..916b975 100644 --- a/docs/PaymentMethodApi.md +++ b/docs/PaymentMethodApi.md @@ -510,4 +510,70 @@ try { ``` -[[Back to README]](../README.md) +## Callback Objects +Use the following callback objects provided by Xendit to receive callbacks (also known as webhooks) that Xendit sends you on events, such as successful payments. Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +### PaymentMethodCallback Object +>Callback for active or expired E-Wallet or Direct Debit account linking, Virtual Accounts or QR strings + +Model Documentation: [PaymentMethodCallback](/PaymentMethodCallback.md) +#### Usage Example +Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +```php + 'payment_method.activated', + 'data' => [ + 'id' => 'pm-6ff0b6f2-f5de-457f-b08f-bc98fbae485a', + 'card' => null, + 'type' => 'DIRECT_DEBIT', + 'status' => 'ACTIVE', + 'country' => 'PH', + 'created' => '2022-08-12T13=>30=>26.579048Z', + 'ewallet' => null, + 'qr_code' => null, + 'updated' => '2022-08-12T13=>30=>58.908220358Z', + 'metadata' => null, + 'customer_id' => 'e2878b4c-d57e-4a2c-922d-c0313c2800a3', + 'description' => null, + 'reusability' => 'MULTIPLE_USE', + 'direct_debit' => [ + 'type' => 'BANK_ACCOUNT', + 'debit_card' => null, + 'bank_account' => [ + 'bank_account_hash' => 'b4dfa99c9b60c77f2e3962b73c098945', + 'masked_bank_account_number' => 'XXXXXX1234' + ], + 'channel_code' => 'BPI', + 'channel_properties' => [ + 'failure_return_url' => 'https://your-redirect-website.com/failure', + 'success_return_url' => 'https://your-redirect-website.com/success' + ] + ], + 'failure_code' => null, + 'reference_id' => '620b9df4-fe69-4bfd-b9d4-5cba6861db8a', + 'virtual_account' => null, + 'over_the_counter' => null, + 'billing_information' => null, + 'direct_bank_transfer' => null + ], + 'created' => '2022-08-12T13=>30=>59.074277334Z', + 'business_id' => '5f27a14a9bf05c73dd040bc8' +]); +``` + +You may then use the callback object in your webhook or callback handler like so, +```php +getId(); + // do things here with the callback +} +``` + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/docs/PaymentRequest/InvoicePartnerMetadata.md b/docs/PaymentRequest/InvoicePartnerMetadata.md new file mode 100644 index 0000000..0189b4e --- /dev/null +++ b/docs/PaymentRequest/InvoicePartnerMetadata.md @@ -0,0 +1,15 @@ +# # InvoicePartnerMetadata + + +```php +use Xendit\PaymentRequest\InvoicePartnerMetadata; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **notes** | **string** | | | null | + + +[[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentCallback.md b/docs/PaymentRequest/PaymentCallback.md new file mode 100644 index 0000000..2bf9321 --- /dev/null +++ b/docs/PaymentRequest/PaymentCallback.md @@ -0,0 +1,18 @@ +# # PaymentCallback +Callback for successful or failed payments made via the Payments API + +```php +use Xendit\PaymentRequest\PaymentCallback; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **event** | **string** | ☑️ | Identifies the event that triggered a notification to the merchant | null | +| **business_id** | **string** | ☑️ | business_id | null | +| **created** | **string** | ☑️ | | null | +| **data** | [**PaymentCallbackData**](PaymentCallbackData.md) | | | null | + + +[[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentCallbackData.md b/docs/PaymentRequest/PaymentCallbackData.md new file mode 100644 index 0000000..9139ea9 --- /dev/null +++ b/docs/PaymentRequest/PaymentCallbackData.md @@ -0,0 +1,29 @@ +# # PaymentCallbackData +Represents the actual funds transaction/attempt made to a payment method + +```php +use Xendit\PaymentRequest\PaymentCallbackData; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | | null | +| **payment_request_id** | **string** | | | null | +| **reference_id** | **string** | ☑️ | | null | +| **customer_id** | **string** | | | null | +| **currency** | **string** | ☑️ | | null | +| **amount** | **float** | ☑️ | | null | +| **country** | **string** | ☑️ | | null | +| **status** | **string** | ☑️ | | null | +| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | null | +| **channel_properties** | [**PaymentRequestChannelProperties**](PaymentRequestChannelProperties.md) | | | null | +| **payment_detail** | **object** | | | null | +| **failure_code** | **object** | | | null | +| **created** | **string** | ☑️ | | null | +| **updated** | **string** | ☑️ | | null | +| **metadata** | **object** | | | null | + + +[[Back to README]](../../README.md) diff --git a/docs/PaymentRequestApi.md b/docs/PaymentRequestApi.md index 5e045df..0967a5d 100644 --- a/docs/PaymentRequestApi.md +++ b/docs/PaymentRequestApi.md @@ -532,4 +532,88 @@ try { ``` -[[Back to README]](../README.md) +## Callback Objects +Use the following callback objects provided by Xendit to receive callbacks (also known as webhooks) that Xendit sends you on events, such as successful payments. Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +### PaymentCallback Object +>Callback for successful or failed payments made via the Payments API + +Model Documentation: [PaymentCallback](/PaymentCallback.md) +#### Usage Example +Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +```php + 'payment.succeeded', + 'data' => [ + 'id' => 'ddpy-3cd658ae-25b9-4659-aa36-596ae41a809f', + 'amount' => 1000, + 'status' => 'SUCCEEDED', + 'country' => 'PH', + 'created' => '2022-08-12T13=>30=>40.9209Z', + 'updated' => '2022-08-12T13=>30=>58.729373Z', + 'currency' => 'PHP', + 'metadata' => [ + 'sku' => 'ABCDEFGH' + ], + 'customer_id' => 'c832697e-a62d-46fa-a383-24930b155e81', + 'reference_id' => '25cfd0f9-baee-44ca-9a12-6debe03f3c22', + 'payment_method' => [ + 'id' => 'pm-951b1ad9-1fbb-4724-a744-8956ab6ed17f', + 'card' => null, + 'type' => 'DIRECT_DEBIT', + 'status' => 'ACTIVE', + 'created' => '2022-08-12T13=>30=>26.579048Z', + 'ewallet' => null, + 'qr_code' => null, + 'updated' => '2022-08-12T13=>30=>40.221525Z', + 'metadata' => [ + 'sku' => 'ABCDEFGH' + ], + 'description' => null, + 'reusability' => 'MULTIPLE_USE', + 'direct_debit' => [ + 'type' => 'BANK_ACCOUNT', + 'debit_card' => null, + 'bank_account' => [ + 'bank_account_hash' => 'b4dfa99c9b60c77f2e3962b73c098945', + 'masked_bank_account_number' => 'XXXXXX1234' + ], + 'channel_code' => 'BPI', + 'channel_properties' => [ + 'failure_return_url' => 'https://your-redirect-website.com/failure', + 'success_return_url' => 'https://your-redirect-website.com/success' + ] + ], + 'reference_id' => '620b9df4-fe69-4bfd-b9d4-5cba6861db8a', + 'virtual_account' => null, + 'over_the_counter' => null, + 'direct_bank_transfer' => null + ], + 'description' => null, + 'failure_code' => null, + 'payment_detail' => null, + 'channel_properties' => null, + 'payment_request_id' => 'pr-5b26cae1-545b-49e9-855e-f85128f3e705' + ], + 'created' => '2022-08-12T13=>30=>58.986Z', + 'business_id' => '5f27a14a9bf05c73dd040bc8', + 'api_version' => null +]); +``` + +You may then use the callback object in your webhook or callback handler like so, +```php +getId(); + // do things here with the callback +} +``` + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/docs/PayoutApi.md b/docs/PayoutApi.md index a4e4296..8817adf 100644 --- a/docs/PayoutApi.md +++ b/docs/PayoutApi.md @@ -277,4 +277,5 @@ try { ``` -[[Back to README]](../README.md) + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/docs/Refund/RefundCallback.md b/docs/Refund/RefundCallback.md new file mode 100644 index 0000000..66ebb8d --- /dev/null +++ b/docs/Refund/RefundCallback.md @@ -0,0 +1,18 @@ +# # RefundCallback +Callback for successful or failed Refunds made via the Payments API + +```php +use Xendit\Refund\RefundCallback; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **event** | **string** | ☑️ | Identifies the event that triggered a notification to the merchant | null | +| **business_id** | **string** | ☑️ | business_id | null | +| **created** | **string** | ☑️ | | null | +| **data** | [**RefundCallbackData**](RefundCallbackData.md) | | | null | + + +[[Back to README]](../../README.md) diff --git a/docs/Refund/RefundCallbackData.md b/docs/Refund/RefundCallbackData.md new file mode 100644 index 0000000..2f42b5a --- /dev/null +++ b/docs/Refund/RefundCallbackData.md @@ -0,0 +1,30 @@ +# # RefundCallbackData + + +```php +use Xendit\Refund\RefundCallbackData; +``` + +## Properties + +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | | rfd-3ece8615-41b7-4983-a3f0-a037430b6036 | +| **payment_request_id** | **string** | ☑️ | | pr-f4a6f77c-4835-4630-9617-2cdc34ee26ee | +| **invoice_id** | **string** | | | null | +| **payment_method_type** | **string** | ☑️ | | null | +| **amount** | **float** | ☑️ | | 1500 | +| **channel_code** | **string** | ☑️ | | SHOPEEPAY | +| **status** | **string** | ☑️ | | null | +| **reason** | **string** | ☑️ | | null | +| **country** | **string** | ☑️ | | PH | +| **currency** | **string** | ☑️ | | PHP | +| **reference_id** | **string** | | | order-1234 | +| **failure_code** | **string** | | | REFUND_FAILED | +| **refund_fee_amount** | **float** | | | null | +| **created** | **string** | ☑️ | | 2023-01-24T07:05:07.859363326Z | +| **updated** | **string** | ☑️ | | 2023-01-24T07:05:07.859363326Z | +| **metadata** | **object** | | | null | + + +[[Back to README]](../../README.md) diff --git a/docs/RefundApi.md b/docs/RefundApi.md index a5e4a2b..bdb4e3d 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -224,4 +224,53 @@ try { ``` -[[Back to README]](../README.md) +## Callback Objects +Use the following callback objects provided by Xendit to receive callbacks (also known as webhooks) that Xendit sends you on events, such as successful payments. Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +### RefundCallback Object +>Callback for successful or failed Refunds made via the Payments API + +Model Documentation: [RefundCallback](/RefundCallback.md) +#### Usage Example +Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice +```php + 'refund.succeeded', + 'business_id' => '5f27a14a9bf05c73dd040bc8', + 'created' => '2020-08-29T09=>12=>33.001Z', + 'data' => [ + 'id' => 'rfd-6f4a377d-a201-437f-9119-f8b00cbbe857', + 'payment_id' => 'ddpy-3cd658ae-25b9-4659-aa36-596ae41a809f', + 'invoice_id' => null, + 'amount' => 10000, + 'payment_method_type' => 'DIRECT_DEBIT', + 'channel_code' => 'BPI', + 'currency' => 'PHP', + 'status' => 'SUCCEEDED', + 'reason' => 'CANCELLATION', + 'reference_id' => 'b2756a1e-e6cd-4352-9a68-0483aa2b6a2', + 'failure_code' => null, + 'refund_fee_amount' => null, + 'created' => '2020-08-30T09=>12=>33.001Z', + 'updated' => '2020-08-30T09=>12=>33.001Z', + 'metadata' => null + ] +]); +``` + +You may then use the callback object in your webhook or callback handler like so, +```php +getId(); + // do things here with the callback +} +``` + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/docs/TransactionApi.md b/docs/TransactionApi.md index 73af135..96f4cca 100644 --- a/docs/TransactionApi.md +++ b/docs/TransactionApi.md @@ -140,4 +140,5 @@ try { ``` -[[Back to README]](../README.md) + +[[Back to README]](../README.md) \ No newline at end of file diff --git a/lib/BalanceAndTransaction/Balance.php b/lib/BalanceAndTransaction/Balance.php index a4defb7..53ccf38 100644 --- a/lib/BalanceAndTransaction/Balance.php +++ b/lib/BalanceAndTransaction/Balance.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/BalanceApi.php b/lib/BalanceAndTransaction/BalanceApi.php index 29b2d8c..688be94 100644 --- a/lib/BalanceAndTransaction/BalanceApi.php +++ b/lib/BalanceAndTransaction/BalanceApi.php @@ -10,7 +10,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** @@ -367,7 +367,7 @@ public function getBalanceRequest($account_type = 'CASH', $currency = null, $for // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/BalanceAndTransaction/ChannelsCategories.php b/lib/BalanceAndTransaction/ChannelsCategories.php index 9bba4e2..a28ee0b 100644 --- a/lib/BalanceAndTransaction/ChannelsCategories.php +++ b/lib/BalanceAndTransaction/ChannelsCategories.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/Currency.php b/lib/BalanceAndTransaction/Currency.php index 870bf16..fb98a54 100644 --- a/lib/BalanceAndTransaction/Currency.php +++ b/lib/BalanceAndTransaction/Currency.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/DateRangeFilter.php b/lib/BalanceAndTransaction/DateRangeFilter.php index fa2334d..2b486a6 100644 --- a/lib/BalanceAndTransaction/DateRangeFilter.php +++ b/lib/BalanceAndTransaction/DateRangeFilter.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/FeeResponse.php b/lib/BalanceAndTransaction/FeeResponse.php index 3fb716c..c8d1a4b 100644 --- a/lib/BalanceAndTransaction/FeeResponse.php +++ b/lib/BalanceAndTransaction/FeeResponse.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/LinkItem.php b/lib/BalanceAndTransaction/LinkItem.php index 544c252..77e29bf 100644 --- a/lib/BalanceAndTransaction/LinkItem.php +++ b/lib/BalanceAndTransaction/LinkItem.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/ServerError.php b/lib/BalanceAndTransaction/ServerError.php index 212f3c9..9a6cb18 100644 --- a/lib/BalanceAndTransaction/ServerError.php +++ b/lib/BalanceAndTransaction/ServerError.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/TransactionApi.php b/lib/BalanceAndTransaction/TransactionApi.php index 800f237..dacca3a 100644 --- a/lib/BalanceAndTransaction/TransactionApi.php +++ b/lib/BalanceAndTransaction/TransactionApi.php @@ -10,7 +10,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** @@ -363,7 +363,7 @@ public function getTransactionByIDRequest($id, $for_user_id = null, string $cont // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -806,7 +806,7 @@ public function getAllTransactionsRequest($for_user_id = null, $types = null, $s // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/BalanceAndTransaction/TransactionResponse.php b/lib/BalanceAndTransaction/TransactionResponse.php index 16466d4..ea81a5b 100644 --- a/lib/BalanceAndTransaction/TransactionResponse.php +++ b/lib/BalanceAndTransaction/TransactionResponse.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/TransactionResponseType.php b/lib/BalanceAndTransaction/TransactionResponseType.php index affce4c..da96a10 100644 --- a/lib/BalanceAndTransaction/TransactionResponseType.php +++ b/lib/BalanceAndTransaction/TransactionResponseType.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/TransactionStatuses.php b/lib/BalanceAndTransaction/TransactionStatuses.php index 7c9b6f7..2272348 100644 --- a/lib/BalanceAndTransaction/TransactionStatuses.php +++ b/lib/BalanceAndTransaction/TransactionStatuses.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/TransactionTypes.php b/lib/BalanceAndTransaction/TransactionTypes.php index ec29889..29c4df4 100644 --- a/lib/BalanceAndTransaction/TransactionTypes.php +++ b/lib/BalanceAndTransaction/TransactionTypes.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/TransactionsResponse.php b/lib/BalanceAndTransaction/TransactionsResponse.php index 261fed6..96cc2d6 100644 --- a/lib/BalanceAndTransaction/TransactionsResponse.php +++ b/lib/BalanceAndTransaction/TransactionsResponse.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/BalanceAndTransaction/ValidationError.php b/lib/BalanceAndTransaction/ValidationError.php index 1e6fd5a..482c87b 100644 --- a/lib/BalanceAndTransaction/ValidationError.php +++ b/lib/BalanceAndTransaction/ValidationError.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.5.0 + * The version of the OpenAPI document: 3.5.2 */ /** diff --git a/lib/Configuration.php b/lib/Configuration.php index 02bb491..7d66ca2 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** @@ -64,7 +64,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/3.6.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/3.7.0/PHP'; /** * Debug switch (default set to false) @@ -304,8 +304,8 @@ public static function toDebugReport() $report = 'PHP SDK (Xendit) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 1.45.1' . PHP_EOL; - $report .= ' SDK Package Version: 3.6.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 1.45.2' . PHP_EOL; + $report .= ' SDK Package Version: 3.7.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Customer/CustomerApi.php b/lib/Customer/CustomerApi.php index 141086e..b9a529a 100644 --- a/lib/Customer/CustomerApi.php +++ b/lib/Customer/CustomerApi.php @@ -369,7 +369,7 @@ public function createCustomerRequest($idempotency_key = null, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -628,7 +628,7 @@ public function getCustomerRequest($id, $for_user_id = null, string $contentType // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -891,7 +891,7 @@ public function getCustomerByReferenceIDRequest($reference_id, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1163,7 +1163,7 @@ public function updateCustomerRequest($id, $for_user_id = null, $patch_customer // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 92c1c0b..d5d8235 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/Invoice/InvoiceApi.php b/lib/Invoice/InvoiceApi.php index 2bed5b9..06e71c8 100644 --- a/lib/Invoice/InvoiceApi.php +++ b/lib/Invoice/InvoiceApi.php @@ -365,7 +365,7 @@ public function createInvoiceRequest($create_invoice_request, $for_user_id = nul // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -624,7 +624,7 @@ public function getInvoiceByIdRequest($invoice_id, $for_user_id = null, string $ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1073,7 +1073,7 @@ public function getInvoicesRequest($for_user_id = null, $external_id = null, $st // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1332,7 +1332,7 @@ public function expireInvoiceRequest($invoice_id, $for_user_id = null, string $c // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Invoice/InvoiceCallback.php b/lib/Invoice/InvoiceCallback.php new file mode 100644 index 0000000..1a9e204 --- /dev/null +++ b/lib/Invoice/InvoiceCallback.php @@ -0,0 +1,1348 @@ + + */ +class InvoiceCallback implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'InvoiceCallback'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'id' => 'string', + 'external_id' => 'string', + 'user_id' => 'string', + 'status' => 'string', + 'merchant_name' => 'string', + 'amount' => 'float', + 'payer_email' => 'string', + 'description' => 'string', + 'paid_amount' => 'float', + 'created' => 'string', + 'updated' => 'string', + 'currency' => 'string', + 'paid_at' => 'string', + 'payment_method' => 'string', + 'payment_channel' => 'string', + 'payment_destination' => 'string', + 'payment_details' => '\Xendit\Invoice\PaymentDetails', + 'payment_id' => 'string', + 'success_redirect_url' => 'string', + 'failure_redirect_url' => 'string', + 'credit_card_charge_id' => 'string', + 'items' => '\Xendit\Invoice\InvoiceCallbackItem[]', + 'fees' => '\Xendit\Invoice\InvoiceFee[]', + 'should_authenticate_credit_card' => 'bool', + 'bank_code' => 'string', + 'ewallet_type' => 'string', + 'on_demand_link' => 'string', + 'recurring_payment_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'id' => null, + 'external_id' => null, + 'user_id' => null, + 'status' => null, + 'merchant_name' => null, + 'amount' => null, + 'payer_email' => null, + 'description' => null, + 'paid_amount' => null, + 'created' => null, + 'updated' => null, + 'currency' => null, + 'paid_at' => null, + 'payment_method' => null, + 'payment_channel' => null, + 'payment_destination' => null, + 'payment_details' => null, + 'payment_id' => null, + 'success_redirect_url' => null, + 'failure_redirect_url' => null, + 'credit_card_charge_id' => null, + 'items' => null, + 'fees' => null, + 'should_authenticate_credit_card' => null, + 'bank_code' => null, + 'ewallet_type' => null, + 'on_demand_link' => null, + 'recurring_payment_id' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'id' => false, + 'external_id' => false, + 'user_id' => false, + 'status' => false, + 'merchant_name' => false, + 'amount' => false, + 'payer_email' => false, + 'description' => false, + 'paid_amount' => false, + 'created' => false, + 'updated' => false, + 'currency' => false, + 'paid_at' => false, + 'payment_method' => false, + 'payment_channel' => false, + 'payment_destination' => false, + 'payment_details' => false, + 'payment_id' => false, + 'success_redirect_url' => false, + 'failure_redirect_url' => false, + 'credit_card_charge_id' => false, + 'items' => false, + 'fees' => false, + 'should_authenticate_credit_card' => false, + 'bank_code' => false, + 'ewallet_type' => false, + 'on_demand_link' => false, + 'recurring_payment_id' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'external_id' => 'external_id', + 'user_id' => 'user_id', + 'status' => 'status', + 'merchant_name' => 'merchant_name', + 'amount' => 'amount', + 'payer_email' => 'payer_email', + 'description' => 'description', + 'paid_amount' => 'paid_amount', + 'created' => 'created', + 'updated' => 'updated', + 'currency' => 'currency', + 'paid_at' => 'paid_at', + 'payment_method' => 'payment_method', + 'payment_channel' => 'payment_channel', + 'payment_destination' => 'payment_destination', + 'payment_details' => 'payment_details', + 'payment_id' => 'payment_id', + 'success_redirect_url' => 'success_redirect_url', + 'failure_redirect_url' => 'failure_redirect_url', + 'credit_card_charge_id' => 'credit_card_charge_id', + 'items' => 'items', + 'fees' => 'fees', + 'should_authenticate_credit_card' => 'should_authenticate_credit_card', + 'bank_code' => 'bank_code', + 'ewallet_type' => 'ewallet_type', + 'on_demand_link' => 'on_demand_link', + 'recurring_payment_id' => 'recurring_payment_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'external_id' => 'setExternalId', + 'user_id' => 'setUserId', + 'status' => 'setStatus', + 'merchant_name' => 'setMerchantName', + 'amount' => 'setAmount', + 'payer_email' => 'setPayerEmail', + 'description' => 'setDescription', + 'paid_amount' => 'setPaidAmount', + 'created' => 'setCreated', + 'updated' => 'setUpdated', + 'currency' => 'setCurrency', + 'paid_at' => 'setPaidAt', + 'payment_method' => 'setPaymentMethod', + 'payment_channel' => 'setPaymentChannel', + 'payment_destination' => 'setPaymentDestination', + 'payment_details' => 'setPaymentDetails', + 'payment_id' => 'setPaymentId', + 'success_redirect_url' => 'setSuccessRedirectUrl', + 'failure_redirect_url' => 'setFailureRedirectUrl', + 'credit_card_charge_id' => 'setCreditCardChargeId', + 'items' => 'setItems', + 'fees' => 'setFees', + 'should_authenticate_credit_card' => 'setShouldAuthenticateCreditCard', + 'bank_code' => 'setBankCode', + 'ewallet_type' => 'setEwalletType', + 'on_demand_link' => 'setOnDemandLink', + 'recurring_payment_id' => 'setRecurringPaymentId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'external_id' => 'getExternalId', + 'user_id' => 'getUserId', + 'status' => 'getStatus', + 'merchant_name' => 'getMerchantName', + 'amount' => 'getAmount', + 'payer_email' => 'getPayerEmail', + 'description' => 'getDescription', + 'paid_amount' => 'getPaidAmount', + 'created' => 'getCreated', + 'updated' => 'getUpdated', + 'currency' => 'getCurrency', + 'paid_at' => 'getPaidAt', + 'payment_method' => 'getPaymentMethod', + 'payment_channel' => 'getPaymentChannel', + 'payment_destination' => 'getPaymentDestination', + 'payment_details' => 'getPaymentDetails', + 'payment_id' => 'getPaymentId', + 'success_redirect_url' => 'getSuccessRedirectUrl', + 'failure_redirect_url' => 'getFailureRedirectUrl', + 'credit_card_charge_id' => 'getCreditCardChargeId', + 'items' => 'getItems', + 'fees' => 'getFees', + 'should_authenticate_credit_card' => 'getShouldAuthenticateCreditCard', + 'bank_code' => 'getBankCode', + 'ewallet_type' => 'getEwalletType', + 'on_demand_link' => 'getOnDemandLink', + 'recurring_payment_id' => 'getRecurringPaymentId' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('id', $data ?? [], null); + $this->setIfExists('external_id', $data ?? [], null); + $this->setIfExists('user_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('merchant_name', $data ?? [], null); + $this->setIfExists('amount', $data ?? [], null); + $this->setIfExists('payer_email', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('paid_amount', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); + $this->setIfExists('updated', $data ?? [], null); + $this->setIfExists('currency', $data ?? [], null); + $this->setIfExists('paid_at', $data ?? [], null); + $this->setIfExists('payment_method', $data ?? [], null); + $this->setIfExists('payment_channel', $data ?? [], null); + $this->setIfExists('payment_destination', $data ?? [], null); + $this->setIfExists('payment_details', $data ?? [], null); + $this->setIfExists('payment_id', $data ?? [], null); + $this->setIfExists('success_redirect_url', $data ?? [], null); + $this->setIfExists('failure_redirect_url', $data ?? [], null); + $this->setIfExists('credit_card_charge_id', $data ?? [], null); + $this->setIfExists('items', $data ?? [], null); + $this->setIfExists('fees', $data ?? [], null); + $this->setIfExists('should_authenticate_credit_card', $data ?? [], null); + $this->setIfExists('bank_code', $data ?? [], null); + $this->setIfExists('ewallet_type', $data ?? [], null); + $this->setIfExists('on_demand_link', $data ?? [], null); + $this->setIfExists('recurring_payment_id', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['external_id'] === null) { + $invalidProperties[] = "'external_id' can't be null"; + } + if ($this->container['user_id'] === null) { + $invalidProperties[] = "'user_id' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + if ($this->container['merchant_name'] === null) { + $invalidProperties[] = "'merchant_name' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['updated'] === null) { + $invalidProperties[] = "'updated' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id An invoice ID generated by Xendit + * + * @return self + */ + public function setId($id) + { + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); + } + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id ID of your choice (typically the unique identifier of an invoice in your system) + * + * @return self + */ + public function setExternalId($external_id) + { + if (is_null($external_id)) { + throw new \InvalidArgumentException('non-nullable external_id cannot be null'); + } + $this->container['external_id'] = $external_id; + + return $this; + } + + /** + * Gets user_id + * + * @return string + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string $user_id Xendit Business ID + * + * @return self + */ + public function setUserId($user_id) + { + if (is_null($user_id)) { + throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + } + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status The status of the invoice. + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets merchant_name + * + * @return string + */ + public function getMerchantName() + { + return $this->container['merchant_name']; + } + + /** + * Sets merchant_name + * + * @param string $merchant_name The name of company or website + * + * @return self + */ + public function setMerchantName($merchant_name) + { + if (is_null($merchant_name)) { + throw new \InvalidArgumentException('non-nullable merchant_name cannot be null'); + } + $this->container['merchant_name'] = $merchant_name; + + return $this; + } + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount Nominal amount for the invoice + * + * @return self + */ + public function setAmount($amount) + { + if (is_null($amount)) { + throw new \InvalidArgumentException('non-nullable amount cannot be null'); + } + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets payer_email + * + * @return string|null + */ + public function getPayerEmail() + { + return $this->container['payer_email']; + } + + /** + * Sets payer_email + * + * @param string|null $payer_email Email of the payer + * + * @return self + */ + public function setPayerEmail($payer_email) + { + if (is_null($payer_email)) { + throw new \InvalidArgumentException('non-nullable payer_email cannot be null'); + } + $this->container['payer_email'] = $payer_email; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description Description for the invoice + * + * @return self + */ + public function setDescription($description) + { + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); + } + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets paid_amount + * + * @return float|null + */ + public function getPaidAmount() + { + return $this->container['paid_amount']; + } + + /** + * Sets paid_amount + * + * @param float|null $paid_amount Total amount paid for the invoice + * + * @return self + */ + public function setPaidAmount($paid_amount) + { + if (is_null($paid_amount)) { + throw new \InvalidArgumentException('non-nullable paid_amount cannot be null'); + } + $this->container['paid_amount'] = $paid_amount; + + return $this; + } + + /** + * Gets created + * + * @return string + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param string $created The date and time when the invoice was created. + * + * @return self + */ + public function setCreated($created) + { + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); + } + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets updated + * + * @return string + */ + public function getUpdated() + { + return $this->container['updated']; + } + + /** + * Sets updated + * + * @param string $updated The date and time when the invoice was last updated. + * + * @return self + */ + public function setUpdated($updated) + { + if (is_null($updated)) { + throw new \InvalidArgumentException('non-nullable updated cannot be null'); + } + $this->container['updated'] = $updated; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency The currency of the invoice. + * + * @return self + */ + public function setCurrency($currency) + { + if (is_null($currency)) { + throw new \InvalidArgumentException('non-nullable currency cannot be null'); + } + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets paid_at + * + * @return string|null + */ + public function getPaidAt() + { + return $this->container['paid_at']; + } + + /** + * Sets paid_at + * + * @param string|null $paid_at The date and time when the invoice was paid. + * + * @return self + */ + public function setPaidAt($paid_at) + { + if (is_null($paid_at)) { + throw new \InvalidArgumentException('non-nullable paid_at cannot be null'); + } + $this->container['paid_at'] = $paid_at; + + return $this; + } + + /** + * Gets payment_method + * + * @return string|null + */ + public function getPaymentMethod() + { + return $this->container['payment_method']; + } + + /** + * Sets payment_method + * + * @param string|null $payment_method The payment method used for the invoice. + * + * @return self + */ + public function setPaymentMethod($payment_method) + { + if (is_null($payment_method)) { + throw new \InvalidArgumentException('non-nullable payment_method cannot be null'); + } + $this->container['payment_method'] = $payment_method; + + return $this; + } + + /** + * Gets payment_channel + * + * @return string|null + */ + public function getPaymentChannel() + { + return $this->container['payment_channel']; + } + + /** + * Sets payment_channel + * + * @param string|null $payment_channel The payment channel. + * + * @return self + */ + public function setPaymentChannel($payment_channel) + { + if (is_null($payment_channel)) { + throw new \InvalidArgumentException('non-nullable payment_channel cannot be null'); + } + $this->container['payment_channel'] = $payment_channel; + + return $this; + } + + /** + * Gets payment_destination + * + * @return string|null + */ + public function getPaymentDestination() + { + return $this->container['payment_destination']; + } + + /** + * Sets payment_destination + * + * @param string|null $payment_destination The payment destination. + * + * @return self + */ + public function setPaymentDestination($payment_destination) + { + if (is_null($payment_destination)) { + throw new \InvalidArgumentException('non-nullable payment_destination cannot be null'); + } + $this->container['payment_destination'] = $payment_destination; + + return $this; + } + + /** + * Gets payment_details + * + * @return \Invoice\PaymentDetails|null + */ + public function getPaymentDetails() + { + return $this->container['payment_details']; + } + + /** + * Sets payment_details + * + * @param \Invoice\PaymentDetails|null $payment_details payment_details + * + * @return self + */ + public function setPaymentDetails($payment_details) + { + if (is_null($payment_details)) { + throw new \InvalidArgumentException('non-nullable payment_details cannot be null'); + } + $this->container['payment_details'] = $payment_details; + + return $this; + } + + /** + * Gets payment_id + * + * @return string|null + */ + public function getPaymentId() + { + return $this->container['payment_id']; + } + + /** + * Sets payment_id + * + * @param string|null $payment_id The ID of the payment. + * + * @return self + */ + public function setPaymentId($payment_id) + { + if (is_null($payment_id)) { + throw new \InvalidArgumentException('non-nullable payment_id cannot be null'); + } + $this->container['payment_id'] = $payment_id; + + return $this; + } + + /** + * Gets success_redirect_url + * + * @return string|null + */ + public function getSuccessRedirectUrl() + { + return $this->container['success_redirect_url']; + } + + /** + * Sets success_redirect_url + * + * @param string|null $success_redirect_url The URL to redirect to on successful payment. + * + * @return self + */ + public function setSuccessRedirectUrl($success_redirect_url) + { + if (is_null($success_redirect_url)) { + throw new \InvalidArgumentException('non-nullable success_redirect_url cannot be null'); + } + $this->container['success_redirect_url'] = $success_redirect_url; + + return $this; + } + + /** + * Gets failure_redirect_url + * + * @return string|null + */ + public function getFailureRedirectUrl() + { + return $this->container['failure_redirect_url']; + } + + /** + * Sets failure_redirect_url + * + * @param string|null $failure_redirect_url The URL to redirect to on payment failure. + * + * @return self + */ + public function setFailureRedirectUrl($failure_redirect_url) + { + if (is_null($failure_redirect_url)) { + throw new \InvalidArgumentException('non-nullable failure_redirect_url cannot be null'); + } + $this->container['failure_redirect_url'] = $failure_redirect_url; + + return $this; + } + + /** + * Gets credit_card_charge_id + * + * @return string|null + */ + public function getCreditCardChargeId() + { + return $this->container['credit_card_charge_id']; + } + + /** + * Sets credit_card_charge_id + * + * @param string|null $credit_card_charge_id The ID associated with a credit card charge (if applicable). + * + * @return self + */ + public function setCreditCardChargeId($credit_card_charge_id) + { + if (is_null($credit_card_charge_id)) { + throw new \InvalidArgumentException('non-nullable credit_card_charge_id cannot be null'); + } + $this->container['credit_card_charge_id'] = $credit_card_charge_id; + + return $this; + } + + /** + * Gets items + * + * @return \Invoice\InvoiceCallbackItem[]|null + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Invoice\InvoiceCallbackItem[]|null $items items + * + * @return self + */ + public function setItems($items) + { + if (is_null($items)) { + throw new \InvalidArgumentException('non-nullable items cannot be null'); + } + $this->container['items'] = $items; + + return $this; + } + + /** + * Gets fees + * + * @return \Invoice\InvoiceFee[]|null + */ + public function getFees() + { + return $this->container['fees']; + } + + /** + * Sets fees + * + * @param \Invoice\InvoiceFee[]|null $fees An array of fees associated with the invoice. + * + * @return self + */ + public function setFees($fees) + { + if (is_null($fees)) { + throw new \InvalidArgumentException('non-nullable fees cannot be null'); + } + $this->container['fees'] = $fees; + + return $this; + } + + /** + * Gets should_authenticate_credit_card + * + * @return bool|null + */ + public function getShouldAuthenticateCreditCard() + { + return $this->container['should_authenticate_credit_card']; + } + + /** + * Sets should_authenticate_credit_card + * + * @param bool|null $should_authenticate_credit_card Indicates whether credit card authentication is required. + * + * @return self + */ + public function setShouldAuthenticateCreditCard($should_authenticate_credit_card) + { + if (is_null($should_authenticate_credit_card)) { + throw new \InvalidArgumentException('non-nullable should_authenticate_credit_card cannot be null'); + } + $this->container['should_authenticate_credit_card'] = $should_authenticate_credit_card; + + return $this; + } + + /** + * Gets bank_code + * + * @return string|null + */ + public function getBankCode() + { + return $this->container['bank_code']; + } + + /** + * Sets bank_code + * + * @param string|null $bank_code The bank code for the bank details. + * + * @return self + */ + public function setBankCode($bank_code) + { + if (is_null($bank_code)) { + throw new \InvalidArgumentException('non-nullable bank_code cannot be null'); + } + $this->container['bank_code'] = $bank_code; + + return $this; + } + + /** + * Gets ewallet_type + * + * @return string|null + */ + public function getEwalletType() + { + return $this->container['ewallet_type']; + } + + /** + * Sets ewallet_type + * + * @param string|null $ewallet_type The type of eWallet. + * + * @return self + */ + public function setEwalletType($ewallet_type) + { + if (is_null($ewallet_type)) { + throw new \InvalidArgumentException('non-nullable ewallet_type cannot be null'); + } + $this->container['ewallet_type'] = $ewallet_type; + + return $this; + } + + /** + * Gets on_demand_link + * + * @return string|null + */ + public function getOnDemandLink() + { + return $this->container['on_demand_link']; + } + + /** + * Sets on_demand_link + * + * @param string|null $on_demand_link The on-demand link. + * + * @return self + */ + public function setOnDemandLink($on_demand_link) + { + if (is_null($on_demand_link)) { + throw new \InvalidArgumentException('non-nullable on_demand_link cannot be null'); + } + $this->container['on_demand_link'] = $on_demand_link; + + return $this; + } + + /** + * Gets recurring_payment_id + * + * @return string|null + */ + public function getRecurringPaymentId() + { + return $this->container['recurring_payment_id']; + } + + /** + * Sets recurring_payment_id + * + * @param string|null $recurring_payment_id The ID of the recurring payment. + * + * @return self + */ + public function setRecurringPaymentId($recurring_payment_id) + { + if (is_null($recurring_payment_id)) { + throw new \InvalidArgumentException('non-nullable recurring_payment_id cannot be null'); + } + $this->container['recurring_payment_id'] = $recurring_payment_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Invoice/InvoiceCallbackItem.php b/lib/Invoice/InvoiceCallbackItem.php new file mode 100644 index 0000000..72af674 --- /dev/null +++ b/lib/Invoice/InvoiceCallbackItem.php @@ -0,0 +1,557 @@ + + */ +class InvoiceCallbackItem implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'InvoiceCallbackItem'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'name' => 'string', + 'price' => 'float', + 'quantity' => 'float', + 'url' => 'string', + 'category' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'name' => null, + 'price' => null, + 'quantity' => null, + 'url' => null, + 'category' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'name' => false, + 'price' => false, + 'quantity' => false, + 'url' => false, + 'category' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'price' => 'price', + 'quantity' => 'quantity', + 'url' => 'url', + 'category' => 'category' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'price' => 'setPrice', + 'quantity' => 'setQuantity', + 'url' => 'setUrl', + 'category' => 'setCategory' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'price' => 'getPrice', + 'quantity' => 'getQuantity', + 'url' => 'getUrl', + 'category' => 'getCategory' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('name', $data ?? [], null); + $this->setIfExists('price', $data ?? [], null); + $this->setIfExists('quantity', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['price'] === null) { + $invalidProperties[] = "'price' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if (($this->container['quantity'] <= 0)) { + $invalidProperties[] = "invalid value for 'quantity', must be bigger than 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The name of the item. + * + * @return self + */ + public function setName($name) + { + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); + } + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets price + * + * @return float + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param float $price The price of the item. + * + * @return self + */ + public function setPrice($price) + { + if (is_null($price)) { + throw new \InvalidArgumentException('non-nullable price cannot be null'); + } + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets quantity + * + * @return float + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param float $quantity The quantity of the item. Must be greater than or equal to 0. + * + * @return self + */ + public function setQuantity($quantity) + { + if (is_null($quantity)) { + throw new \InvalidArgumentException('non-nullable quantity cannot be null'); + } + + if (($quantity <= 0)) { + throw new \InvalidArgumentException('invalid value for $quantity when calling InvoiceCallbackItem., must be bigger than 0.'); + } + + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets url + * + * @return string|null + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string|null $url The URL associated with the item. + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); + } + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets category + * + * @return string|null + */ + public function getCategory() + { + return $this->container['category']; + } + + /** + * Sets category + * + * @param string|null $category The category of the item. + * + * @return self + */ + public function setCategory($category) + { + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); + } + $this->container['category'] = $category; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Invoice/PaymentDetails.php b/lib/Invoice/PaymentDetails.php new file mode 100644 index 0000000..23155d4 --- /dev/null +++ b/lib/Invoice/PaymentDetails.php @@ -0,0 +1,437 @@ + + */ +class PaymentDetails implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'receipt_id' => 'string', + 'source' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'receipt_id' => null, + 'source' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'receipt_id' => false, + 'source' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'receipt_id' => 'receipt_id', + 'source' => 'source' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'receipt_id' => 'setReceiptId', + 'source' => 'setSource' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'receipt_id' => 'getReceiptId', + 'source' => 'getSource' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('receipt_id', $data ?? [], null); + $this->setIfExists('source', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets receipt_id + * + * @return string|null + */ + public function getReceiptId() + { + return $this->container['receipt_id']; + } + + /** + * Sets receipt_id + * + * @param string|null $receipt_id The unique identifier or reference ID associated with the payment receipt. + * + * @return self + */ + public function setReceiptId($receipt_id) + { + if (is_null($receipt_id)) { + throw new \InvalidArgumentException('non-nullable receipt_id cannot be null'); + } + $this->container['receipt_id'] = $receipt_id; + + return $this; + } + + /** + * Gets source + * + * @return string|null + */ + public function getSource() + { + return $this->container['source']; + } + + /** + * Sets source + * + * @param string|null $source The source or method of payment. + * + * @return self + */ + public function setSource($source) + { + if (is_null($source)) { + throw new \InvalidArgumentException('non-nullable source cannot be null'); + } + $this->container['source'] = $source; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index 3b1692f..7be3b9d 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 82e7c8e..1eb1079 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -13,7 +13,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodApi.php b/lib/PaymentMethod/PaymentMethodApi.php index 2bed28d..35d533f 100644 --- a/lib/PaymentMethod/PaymentMethodApi.php +++ b/lib/PaymentMethod/PaymentMethodApi.php @@ -371,7 +371,7 @@ public function createPaymentMethodRequest($for_user_id = null, $payment_method_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -630,7 +630,7 @@ public function getPaymentMethodByIDRequest($payment_method_id, $for_user_id = n // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1069,7 +1069,7 @@ public function getPaymentsByPaymentMethodIdRequest($payment_method_id, $for_use // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1341,7 +1341,7 @@ public function patchPaymentMethodRequest($payment_method_id, $for_user_id = nul // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1718,7 +1718,7 @@ public function getAllPaymentMethodsRequest($for_user_id = null, $id = null, $ty // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1990,7 +1990,7 @@ public function expirePaymentMethodRequest($payment_method_id, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2262,7 +2262,7 @@ public function authPaymentMethodRequest($payment_method_id, $for_user_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2497,7 +2497,7 @@ public function simulatePaymentRequest($payment_method_id, $simulate_payment_req // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/PaymentMethod/PaymentMethodCallback.php b/lib/PaymentMethod/PaymentMethodCallback.php new file mode 100644 index 0000000..ffa66ce --- /dev/null +++ b/lib/PaymentMethod/PaymentMethodCallback.php @@ -0,0 +1,514 @@ + + */ +class PaymentMethodCallback implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentMethodCallback'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'event' => 'string', + 'business_id' => 'string', + 'created' => 'string', + 'data' => '\Xendit\PaymentMethod\PaymentMethod' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'event' => null, + 'business_id' => null, + 'created' => null, + 'data' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'event' => false, + 'business_id' => false, + 'created' => false, + 'data' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'event' => 'event', + 'business_id' => 'business_id', + 'created' => 'created', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'event' => 'setEvent', + 'business_id' => 'setBusinessId', + 'created' => 'setCreated', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'event' => 'getEvent', + 'business_id' => 'getBusinessId', + 'created' => 'getCreated', + 'data' => 'getData' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('event', $data ?? [], null); + $this->setIfExists('business_id', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); + $this->setIfExists('data', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['event'] === null) { + $invalidProperties[] = "'event' can't be null"; + } + if ($this->container['business_id'] === null) { + $invalidProperties[] = "'business_id' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets event + * + * @return string + */ + public function getEvent() + { + return $this->container['event']; + } + + /** + * Sets event + * + * @param string $event Identifies the event that triggered a notification to the merchant + * + * @return self + */ + public function setEvent($event) + { + if (is_null($event)) { + throw new \InvalidArgumentException('non-nullable event cannot be null'); + } + $this->container['event'] = $event; + + return $this; + } + + /** + * Gets business_id + * + * @return string + */ + public function getBusinessId() + { + return $this->container['business_id']; + } + + /** + * Sets business_id + * + * @param string $business_id business_id + * + * @return self + */ + public function setBusinessId($business_id) + { + if (is_null($business_id)) { + throw new \InvalidArgumentException('non-nullable business_id cannot be null'); + } + $this->container['business_id'] = $business_id; + + return $this; + } + + /** + * Gets created + * + * @return string + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param string $created created + * + * @return self + */ + public function setCreated($created) + { + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); + } + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets data + * + * @return \PaymentMethod\PaymentMethod|null + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \PaymentMethod\PaymentMethod|null $data data + * + * @return self + */ + public function setData($data) + { + if (is_null($data)) { + throw new \InvalidArgumentException('non-nullable data cannot be null'); + } + $this->container['data'] = $data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/PaymentRequest/Capture.php b/lib/PaymentRequest/Capture.php index 0f09db3..1da918e 100644 --- a/lib/PaymentRequest/Capture.php +++ b/lib/PaymentRequest/Capture.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/CaptureListResponse.php b/lib/PaymentRequest/CaptureListResponse.php index 1104207..a36ec01 100644 --- a/lib/PaymentRequest/CaptureListResponse.php +++ b/lib/PaymentRequest/CaptureListResponse.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/CaptureParameters.php b/lib/PaymentRequest/CaptureParameters.php index dd3e962..437f299 100644 --- a/lib/PaymentRequest/CaptureParameters.php +++ b/lib/PaymentRequest/CaptureParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/Card.php b/lib/PaymentRequest/Card.php index bfb6702..90dee59 100644 --- a/lib/PaymentRequest/Card.php +++ b/lib/PaymentRequest/Card.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/CardChannelProperties.php b/lib/PaymentRequest/CardChannelProperties.php index 736c78d..c2471ae 100644 --- a/lib/PaymentRequest/CardChannelProperties.php +++ b/lib/PaymentRequest/CardChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/CardInformation.php b/lib/PaymentRequest/CardInformation.php index 7009f6e..1dcb073 100644 --- a/lib/PaymentRequest/CardInformation.php +++ b/lib/PaymentRequest/CardInformation.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/CardVerificationResults.php b/lib/PaymentRequest/CardVerificationResults.php index 8a1f4e7..f2f7904 100644 --- a/lib/PaymentRequest/CardVerificationResults.php +++ b/lib/PaymentRequest/CardVerificationResults.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php b/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php index 970078c..50d7df1 100644 --- a/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php +++ b/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebit.php b/lib/PaymentRequest/DirectDebit.php index 9189aac..fc45b9d 100644 --- a/lib/PaymentRequest/DirectDebit.php +++ b/lib/PaymentRequest/DirectDebit.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitAllOf.php b/lib/PaymentRequest/DirectDebitAllOf.php index 7103a0a..f51eeb9 100644 --- a/lib/PaymentRequest/DirectDebitAllOf.php +++ b/lib/PaymentRequest/DirectDebitAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitBankAccount.php b/lib/PaymentRequest/DirectDebitBankAccount.php index a5a2b94..0819a16 100644 --- a/lib/PaymentRequest/DirectDebitBankAccount.php +++ b/lib/PaymentRequest/DirectDebitBankAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelCode.php b/lib/PaymentRequest/DirectDebitChannelCode.php index f9d631a..0b1b3a7 100644 --- a/lib/PaymentRequest/DirectDebitChannelCode.php +++ b/lib/PaymentRequest/DirectDebitChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelProperties.php b/lib/PaymentRequest/DirectDebitChannelProperties.php index ee32e50..d321c39 100644 --- a/lib/PaymentRequest/DirectDebitChannelProperties.php +++ b/lib/PaymentRequest/DirectDebitChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php b/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php index 1750ac7..3e6d0de 100644 --- a/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php +++ b/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php b/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php index b658a78..c284ab3 100644 --- a/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php +++ b/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php b/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php index 30ea04c..694e874 100644 --- a/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php +++ b/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitDebitCard.php b/lib/PaymentRequest/DirectDebitDebitCard.php index 7fad928..4fcdd90 100644 --- a/lib/PaymentRequest/DirectDebitDebitCard.php +++ b/lib/PaymentRequest/DirectDebitDebitCard.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitParameters.php b/lib/PaymentRequest/DirectDebitParameters.php index 5854383..e6cabf0 100644 --- a/lib/PaymentRequest/DirectDebitParameters.php +++ b/lib/PaymentRequest/DirectDebitParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/DirectDebitType.php b/lib/PaymentRequest/DirectDebitType.php index fde69f0..8e7ad36 100644 --- a/lib/PaymentRequest/DirectDebitType.php +++ b/lib/PaymentRequest/DirectDebitType.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/EWallet.php b/lib/PaymentRequest/EWallet.php index d7fcc18..320e8e3 100644 --- a/lib/PaymentRequest/EWallet.php +++ b/lib/PaymentRequest/EWallet.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/EWalletAccount.php b/lib/PaymentRequest/EWalletAccount.php index 6ca64d8..757d02e 100644 --- a/lib/PaymentRequest/EWalletAccount.php +++ b/lib/PaymentRequest/EWalletAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/EWalletAllOf.php b/lib/PaymentRequest/EWalletAllOf.php index 894a3c7..e536caf 100644 --- a/lib/PaymentRequest/EWalletAllOf.php +++ b/lib/PaymentRequest/EWalletAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/EWalletChannelCode.php b/lib/PaymentRequest/EWalletChannelCode.php index 0b4c0fd..543b6cf 100644 --- a/lib/PaymentRequest/EWalletChannelCode.php +++ b/lib/PaymentRequest/EWalletChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/EWalletChannelProperties.php b/lib/PaymentRequest/EWalletChannelProperties.php index 5513c9d..3594e7c 100644 --- a/lib/PaymentRequest/EWalletChannelProperties.php +++ b/lib/PaymentRequest/EWalletChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/EWalletParameters.php b/lib/PaymentRequest/EWalletParameters.php index 92e4752..295b9c8 100644 --- a/lib/PaymentRequest/EWalletParameters.php +++ b/lib/PaymentRequest/EWalletParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/Error.php b/lib/PaymentRequest/Error.php index 5cbd631..257f63f 100644 --- a/lib/PaymentRequest/Error.php +++ b/lib/PaymentRequest/Error.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/InvoicePartnerMetadata.php b/lib/PaymentRequest/InvoicePartnerMetadata.php new file mode 100644 index 0000000..56b33ce --- /dev/null +++ b/lib/PaymentRequest/InvoicePartnerMetadata.php @@ -0,0 +1,402 @@ + + */ +class InvoicePartnerMetadata implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'InvoicePartnerMetadata'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'notes' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'notes' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'notes' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'notes' => 'notes' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'notes' => 'setNotes' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'notes' => 'getNotes' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('notes', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets notes + * + * @return string|null + */ + public function getNotes() + { + return $this->container['notes']; + } + + /** + * Sets notes + * + * @param string|null $notes notes + * + * @return self + */ + public function setNotes($notes) + { + if (is_null($notes)) { + throw new \InvalidArgumentException('non-nullable notes cannot be null'); + } + $this->container['notes'] = $notes; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/PaymentRequest/OverTheCounter.php b/lib/PaymentRequest/OverTheCounter.php index 70b8018..8c42f84 100644 --- a/lib/PaymentRequest/OverTheCounter.php +++ b/lib/PaymentRequest/OverTheCounter.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/OverTheCounterChannelCode.php b/lib/PaymentRequest/OverTheCounterChannelCode.php index 587d13d..e1b4e62 100644 --- a/lib/PaymentRequest/OverTheCounterChannelCode.php +++ b/lib/PaymentRequest/OverTheCounterChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/OverTheCounterChannelProperties.php b/lib/PaymentRequest/OverTheCounterChannelProperties.php index 3d670df..0e47cbd 100644 --- a/lib/PaymentRequest/OverTheCounterChannelProperties.php +++ b/lib/PaymentRequest/OverTheCounterChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/OverTheCounterParameters.php b/lib/PaymentRequest/OverTheCounterParameters.php index febf018..b40ca23 100644 --- a/lib/PaymentRequest/OverTheCounterParameters.php +++ b/lib/PaymentRequest/OverTheCounterParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentCallback.php b/lib/PaymentRequest/PaymentCallback.php new file mode 100644 index 0000000..6e64211 --- /dev/null +++ b/lib/PaymentRequest/PaymentCallback.php @@ -0,0 +1,514 @@ + + */ +class PaymentCallback implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentCallback'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'event' => 'string', + 'business_id' => 'string', + 'created' => 'string', + 'data' => '\Xendit\PaymentRequest\PaymentCallbackData' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'event' => null, + 'business_id' => null, + 'created' => null, + 'data' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'event' => false, + 'business_id' => false, + 'created' => false, + 'data' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'event' => 'event', + 'business_id' => 'business_id', + 'created' => 'created', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'event' => 'setEvent', + 'business_id' => 'setBusinessId', + 'created' => 'setCreated', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'event' => 'getEvent', + 'business_id' => 'getBusinessId', + 'created' => 'getCreated', + 'data' => 'getData' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('event', $data ?? [], null); + $this->setIfExists('business_id', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); + $this->setIfExists('data', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['event'] === null) { + $invalidProperties[] = "'event' can't be null"; + } + if ($this->container['business_id'] === null) { + $invalidProperties[] = "'business_id' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets event + * + * @return string + */ + public function getEvent() + { + return $this->container['event']; + } + + /** + * Sets event + * + * @param string $event Identifies the event that triggered a notification to the merchant + * + * @return self + */ + public function setEvent($event) + { + if (is_null($event)) { + throw new \InvalidArgumentException('non-nullable event cannot be null'); + } + $this->container['event'] = $event; + + return $this; + } + + /** + * Gets business_id + * + * @return string + */ + public function getBusinessId() + { + return $this->container['business_id']; + } + + /** + * Sets business_id + * + * @param string $business_id business_id + * + * @return self + */ + public function setBusinessId($business_id) + { + if (is_null($business_id)) { + throw new \InvalidArgumentException('non-nullable business_id cannot be null'); + } + $this->container['business_id'] = $business_id; + + return $this; + } + + /** + * Gets created + * + * @return string + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param string $created created + * + * @return self + */ + public function setCreated($created) + { + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); + } + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets data + * + * @return \PaymentRequest\PaymentCallbackData|null + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \PaymentRequest\PaymentCallbackData|null $data data + * + * @return self + */ + public function setData($data) + { + if (is_null($data)) { + throw new \InvalidArgumentException('non-nullable data cannot be null'); + } + $this->container['data'] = $data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/PaymentRequest/PaymentCallbackData.php b/lib/PaymentRequest/PaymentCallbackData.php new file mode 100644 index 0000000..fd2b579 --- /dev/null +++ b/lib/PaymentRequest/PaymentCallbackData.php @@ -0,0 +1,948 @@ + + */ +class PaymentCallbackData implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentCallbackData'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'id' => 'string', + 'payment_request_id' => 'string', + 'reference_id' => 'string', + 'customer_id' => 'string', + 'currency' => 'string', + 'amount' => 'float', + 'country' => 'string', + 'status' => 'string', + 'payment_method' => '\Xendit\PaymentRequest\PaymentMethod', + 'channel_properties' => '\Xendit\PaymentRequest\PaymentRequestChannelProperties', + 'payment_detail' => 'object', + 'failure_code' => 'object', + 'created' => 'string', + 'updated' => 'string', + 'metadata' => 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'id' => null, + 'payment_request_id' => null, + 'reference_id' => null, + 'customer_id' => null, + 'currency' => null, + 'amount' => 'double', + 'country' => null, + 'status' => null, + 'payment_method' => null, + 'channel_properties' => null, + 'payment_detail' => null, + 'failure_code' => null, + 'created' => null, + 'updated' => null, + 'metadata' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'id' => false, + 'payment_request_id' => true, + 'reference_id' => false, + 'customer_id' => true, + 'currency' => false, + 'amount' => false, + 'country' => false, + 'status' => false, + 'payment_method' => false, + 'channel_properties' => true, + 'payment_detail' => true, + 'failure_code' => true, + 'created' => false, + 'updated' => false, + 'metadata' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'payment_request_id' => 'payment_request_id', + 'reference_id' => 'reference_id', + 'customer_id' => 'customer_id', + 'currency' => 'currency', + 'amount' => 'amount', + 'country' => 'country', + 'status' => 'status', + 'payment_method' => 'payment_method', + 'channel_properties' => 'channel_properties', + 'payment_detail' => 'payment_detail', + 'failure_code' => 'failure_code', + 'created' => 'created', + 'updated' => 'updated', + 'metadata' => 'metadata' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'payment_request_id' => 'setPaymentRequestId', + 'reference_id' => 'setReferenceId', + 'customer_id' => 'setCustomerId', + 'currency' => 'setCurrency', + 'amount' => 'setAmount', + 'country' => 'setCountry', + 'status' => 'setStatus', + 'payment_method' => 'setPaymentMethod', + 'channel_properties' => 'setChannelProperties', + 'payment_detail' => 'setPaymentDetail', + 'failure_code' => 'setFailureCode', + 'created' => 'setCreated', + 'updated' => 'setUpdated', + 'metadata' => 'setMetadata' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'payment_request_id' => 'getPaymentRequestId', + 'reference_id' => 'getReferenceId', + 'customer_id' => 'getCustomerId', + 'currency' => 'getCurrency', + 'amount' => 'getAmount', + 'country' => 'getCountry', + 'status' => 'getStatus', + 'payment_method' => 'getPaymentMethod', + 'channel_properties' => 'getChannelProperties', + 'payment_detail' => 'getPaymentDetail', + 'failure_code' => 'getFailureCode', + 'created' => 'getCreated', + 'updated' => 'getUpdated', + 'metadata' => 'getMetadata' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('id', $data ?? [], null); + $this->setIfExists('payment_request_id', $data ?? [], null); + $this->setIfExists('reference_id', $data ?? [], null); + $this->setIfExists('customer_id', $data ?? [], null); + $this->setIfExists('currency', $data ?? [], null); + $this->setIfExists('amount', $data ?? [], null); + $this->setIfExists('country', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('payment_method', $data ?? [], null); + $this->setIfExists('channel_properties', $data ?? [], null); + $this->setIfExists('payment_detail', $data ?? [], null); + $this->setIfExists('failure_code', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); + $this->setIfExists('updated', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['reference_id'] === null) { + $invalidProperties[] = "'reference_id' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['country'] === null) { + $invalidProperties[] = "'country' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + if ($this->container['payment_method'] === null) { + $invalidProperties[] = "'payment_method' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['updated'] === null) { + $invalidProperties[] = "'updated' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id id + * + * @return self + */ + public function setId($id) + { + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); + } + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets payment_request_id + * + * @return string|null + */ + public function getPaymentRequestId() + { + return $this->container['payment_request_id']; + } + + /** + * Sets payment_request_id + * + * @param string|null $payment_request_id payment_request_id + * + * @return self + */ + public function setPaymentRequestId($payment_request_id) + { + if (is_null($payment_request_id)) { + array_push($this->openAPINullablesSetToNull, 'payment_request_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('payment_request_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['payment_request_id'] = $payment_request_id; + + return $this; + } + + /** + * Gets reference_id + * + * @return string + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + if (is_null($reference_id)) { + throw new \InvalidArgumentException('non-nullable reference_id cannot be null'); + } + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets customer_id + * + * @return string|null + */ + public function getCustomerId() + { + return $this->container['customer_id']; + } + + /** + * Sets customer_id + * + * @param string|null $customer_id customer_id + * + * @return self + */ + public function setCustomerId($customer_id) + { + if (is_null($customer_id)) { + array_push($this->openAPINullablesSetToNull, 'customer_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('customer_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['customer_id'] = $customer_id; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency currency + * + * @return self + */ + public function setCurrency($currency) + { + if (is_null($currency)) { + throw new \InvalidArgumentException('non-nullable currency cannot be null'); + } + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount amount + * + * @return self + */ + public function setAmount($amount) + { + if (is_null($amount)) { + throw new \InvalidArgumentException('non-nullable amount cannot be null'); + } + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets country + * + * @return string + */ + public function getCountry() + { + return $this->container['country']; + } + + /** + * Sets country + * + * @param string $country country + * + * @return self + */ + public function setCountry($country) + { + if (is_null($country)) { + throw new \InvalidArgumentException('non-nullable country cannot be null'); + } + $this->container['country'] = $country; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets payment_method + * + * @return \PaymentRequest\PaymentMethod + */ + public function getPaymentMethod() + { + return $this->container['payment_method']; + } + + /** + * Sets payment_method + * + * @param \PaymentRequest\PaymentMethod $payment_method payment_method + * + * @return self + */ + public function setPaymentMethod($payment_method) + { + if (is_null($payment_method)) { + throw new \InvalidArgumentException('non-nullable payment_method cannot be null'); + } + $this->container['payment_method'] = $payment_method; + + return $this; + } + + /** + * Gets channel_properties + * + * @return \PaymentRequest\PaymentRequestChannelProperties|null + */ + public function getChannelProperties() + { + return $this->container['channel_properties']; + } + + /** + * Sets channel_properties + * + * @param \PaymentRequest\PaymentRequestChannelProperties|null $channel_properties channel_properties + * + * @return self + */ + public function setChannelProperties($channel_properties) + { + if (is_null($channel_properties)) { + array_push($this->openAPINullablesSetToNull, 'channel_properties'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('channel_properties', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['channel_properties'] = $channel_properties; + + return $this; + } + + /** + * Gets payment_detail + * + * @return object|null + */ + public function getPaymentDetail() + { + return $this->container['payment_detail']; + } + + /** + * Sets payment_detail + * + * @param object|null $payment_detail payment_detail + * + * @return self + */ + public function setPaymentDetail($payment_detail) + { + if (is_null($payment_detail)) { + array_push($this->openAPINullablesSetToNull, 'payment_detail'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('payment_detail', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['payment_detail'] = $payment_detail; + + return $this; + } + + /** + * Gets failure_code + * + * @return object|null + */ + public function getFailureCode() + { + return $this->container['failure_code']; + } + + /** + * Sets failure_code + * + * @param object|null $failure_code failure_code + * + * @return self + */ + public function setFailureCode($failure_code) + { + if (is_null($failure_code)) { + array_push($this->openAPINullablesSetToNull, 'failure_code'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('failure_code', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['failure_code'] = $failure_code; + + return $this; + } + + /** + * Gets created + * + * @return string + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param string $created created + * + * @return self + */ + public function setCreated($created) + { + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); + } + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets updated + * + * @return string + */ + public function getUpdated() + { + return $this->container['updated']; + } + + /** + * Sets updated + * + * @param string $updated updated + * + * @return self + */ + public function setUpdated($updated) + { + if (is_null($updated)) { + throw new \InvalidArgumentException('non-nullable updated cannot be null'); + } + $this->container['updated'] = $updated; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata metadata + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + array_push($this->openAPINullablesSetToNull, 'metadata'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('metadata', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['metadata'] = $metadata; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/PaymentRequest/PaymentMethod.php b/lib/PaymentRequest/PaymentMethod.php index 716cc6e..7625818 100644 --- a/lib/PaymentRequest/PaymentMethod.php +++ b/lib/PaymentRequest/PaymentMethod.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentMethodParameters.php b/lib/PaymentRequest/PaymentMethodParameters.php index 15e5660..72e3a81 100644 --- a/lib/PaymentRequest/PaymentMethodParameters.php +++ b/lib/PaymentRequest/PaymentMethodParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentMethodReusability.php b/lib/PaymentRequest/PaymentMethodReusability.php index ce90fca..2135bf6 100644 --- a/lib/PaymentRequest/PaymentMethodReusability.php +++ b/lib/PaymentRequest/PaymentMethodReusability.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentMethodStatus.php b/lib/PaymentRequest/PaymentMethodStatus.php index ca919b6..3a39251 100644 --- a/lib/PaymentRequest/PaymentMethodStatus.php +++ b/lib/PaymentRequest/PaymentMethodStatus.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentMethodType.php b/lib/PaymentRequest/PaymentMethodType.php index 9acbffd..ec80436 100644 --- a/lib/PaymentRequest/PaymentMethodType.php +++ b/lib/PaymentRequest/PaymentMethodType.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequest.php b/lib/PaymentRequest/PaymentRequest.php index 2cbfa46..77ea012 100644 --- a/lib/PaymentRequest/PaymentRequest.php +++ b/lib/PaymentRequest/PaymentRequest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestAction.php b/lib/PaymentRequest/PaymentRequestAction.php index e0351cf..7d0e468 100644 --- a/lib/PaymentRequest/PaymentRequestAction.php +++ b/lib/PaymentRequest/PaymentRequestAction.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestApi.php b/lib/PaymentRequest/PaymentRequestApi.php index 8a57b5c..4175583 100644 --- a/lib/PaymentRequest/PaymentRequestApi.php +++ b/lib/PaymentRequest/PaymentRequestApi.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** @@ -378,7 +378,7 @@ public function createPaymentRequestRequest($idempotency_key = null, $for_user_i // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -637,7 +637,7 @@ public function getPaymentRequestByIDRequest($payment_request_id, $for_user_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -911,7 +911,7 @@ public function getPaymentRequestCapturesRequest($payment_request_id, $for_user_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1240,7 +1240,7 @@ public function getAllPaymentRequestsRequest($for_user_id = null, $reference_id // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1512,7 +1512,7 @@ public function capturePaymentRequestRequest($payment_request_id, $for_user_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1784,7 +1784,7 @@ public function authorizePaymentRequestRequest($payment_request_id, $for_user_id // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2043,7 +2043,7 @@ public function resendPaymentRequestAuthRequest($payment_request_id, $for_user_i // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/PaymentRequest/PaymentRequestAuthParameters.php b/lib/PaymentRequest/PaymentRequestAuthParameters.php index d2aecef..750b1ce 100644 --- a/lib/PaymentRequest/PaymentRequestAuthParameters.php +++ b/lib/PaymentRequest/PaymentRequestAuthParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestBasketItem.php b/lib/PaymentRequest/PaymentRequestBasketItem.php index 5720bf1..5e1eaa2 100644 --- a/lib/PaymentRequest/PaymentRequestBasketItem.php +++ b/lib/PaymentRequest/PaymentRequestBasketItem.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCaptureMethod.php b/lib/PaymentRequest/PaymentRequestCaptureMethod.php index 282f86e..b2abc89 100644 --- a/lib/PaymentRequest/PaymentRequestCaptureMethod.php +++ b/lib/PaymentRequest/PaymentRequestCaptureMethod.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCardVerificationResults.php b/lib/PaymentRequest/PaymentRequestCardVerificationResults.php index 9ffdc94..6d9ced4 100644 --- a/lib/PaymentRequest/PaymentRequestCardVerificationResults.php +++ b/lib/PaymentRequest/PaymentRequestCardVerificationResults.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php b/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php index 59d9e46..316f0cf 100644 --- a/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php +++ b/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestChannelProperties.php b/lib/PaymentRequest/PaymentRequestChannelProperties.php index aaa4434..dc14834 100644 --- a/lib/PaymentRequest/PaymentRequestChannelProperties.php +++ b/lib/PaymentRequest/PaymentRequestChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCountry.php b/lib/PaymentRequest/PaymentRequestCountry.php index f2dcc7b..edcba9b 100644 --- a/lib/PaymentRequest/PaymentRequestCountry.php +++ b/lib/PaymentRequest/PaymentRequestCountry.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCurrency.php b/lib/PaymentRequest/PaymentRequestCurrency.php index 2a6675c..0f08d80 100644 --- a/lib/PaymentRequest/PaymentRequestCurrency.php +++ b/lib/PaymentRequest/PaymentRequestCurrency.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestInitiator.php b/lib/PaymentRequest/PaymentRequestInitiator.php index d60cc95..d34a849 100644 --- a/lib/PaymentRequest/PaymentRequestInitiator.php +++ b/lib/PaymentRequest/PaymentRequestInitiator.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestListResponse.php b/lib/PaymentRequest/PaymentRequestListResponse.php index f94e114..38ee52a 100644 --- a/lib/PaymentRequest/PaymentRequestListResponse.php +++ b/lib/PaymentRequest/PaymentRequestListResponse.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestParameters.php b/lib/PaymentRequest/PaymentRequestParameters.php index df67e36..45039b4 100644 --- a/lib/PaymentRequest/PaymentRequestParameters.php +++ b/lib/PaymentRequest/PaymentRequestParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php b/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php index cbab172..7fba753 100644 --- a/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php +++ b/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php b/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php index a1fbc99..7e792d2 100644 --- a/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php +++ b/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestShippingInformation.php b/lib/PaymentRequest/PaymentRequestShippingInformation.php index ac57803..2c56b24 100644 --- a/lib/PaymentRequest/PaymentRequestShippingInformation.php +++ b/lib/PaymentRequest/PaymentRequestShippingInformation.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/PaymentRequestStatus.php b/lib/PaymentRequest/PaymentRequestStatus.php index 247a7d0..5b422d1 100644 --- a/lib/PaymentRequest/PaymentRequestStatus.php +++ b/lib/PaymentRequest/PaymentRequestStatus.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/QRCode.php b/lib/PaymentRequest/QRCode.php index c3d8191..11b5ce7 100644 --- a/lib/PaymentRequest/QRCode.php +++ b/lib/PaymentRequest/QRCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/QRCodeChannelCode.php b/lib/PaymentRequest/QRCodeChannelCode.php index 5d5ccce..8dc536b 100644 --- a/lib/PaymentRequest/QRCodeChannelCode.php +++ b/lib/PaymentRequest/QRCodeChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/QRCodeChannelProperties.php b/lib/PaymentRequest/QRCodeChannelProperties.php index 9e468d7..10a1757 100644 --- a/lib/PaymentRequest/QRCodeChannelProperties.php +++ b/lib/PaymentRequest/QRCodeChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/QRCodeParameters.php b/lib/PaymentRequest/QRCodeParameters.php index 6e3206e..ce8499f 100644 --- a/lib/PaymentRequest/QRCodeParameters.php +++ b/lib/PaymentRequest/QRCodeParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/VirtualAccount.php b/lib/PaymentRequest/VirtualAccount.php index dc41836..8369f79 100644 --- a/lib/PaymentRequest/VirtualAccount.php +++ b/lib/PaymentRequest/VirtualAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/VirtualAccountAllOf.php b/lib/PaymentRequest/VirtualAccountAllOf.php index 9919ca3..2b1aaf8 100644 --- a/lib/PaymentRequest/VirtualAccountAllOf.php +++ b/lib/PaymentRequest/VirtualAccountAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php b/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php index 463d063..30e1028 100644 --- a/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php +++ b/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/VirtualAccountChannelCode.php b/lib/PaymentRequest/VirtualAccountChannelCode.php index 689745c..c456fcd 100644 --- a/lib/PaymentRequest/VirtualAccountChannelCode.php +++ b/lib/PaymentRequest/VirtualAccountChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/VirtualAccountChannelProperties.php b/lib/PaymentRequest/VirtualAccountChannelProperties.php index 20003b6..da89613 100644 --- a/lib/PaymentRequest/VirtualAccountChannelProperties.php +++ b/lib/PaymentRequest/VirtualAccountChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/PaymentRequest/VirtualAccountParameters.php b/lib/PaymentRequest/VirtualAccountParameters.php index bc220b6..39ac0ff 100644 --- a/lib/PaymentRequest/VirtualAccountParameters.php +++ b/lib/PaymentRequest/VirtualAccountParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/lib/Payout/PayoutApi.php b/lib/Payout/PayoutApi.php index bc7e9dc..0994983 100644 --- a/lib/Payout/PayoutApi.php +++ b/lib/Payout/PayoutApi.php @@ -378,7 +378,7 @@ public function createPayoutRequest($idempotency_key, $for_user_id = null, $crea // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -637,7 +637,7 @@ public function getPayoutByIdRequest($id, $for_user_id = null, string $contentTy // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -921,7 +921,7 @@ public function getPayoutChannelsRequest($currency = null, $channel_category = n // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1226,7 +1226,7 @@ public function getPayoutsRequest($reference_id, $limit = null, $after_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1485,7 +1485,7 @@ public function cancelPayoutRequest($id, $for_user_id = null, string $contentTyp // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Refund/CreateRefund.php b/lib/Refund/CreateRefund.php index 7f44706..c776d89 100644 --- a/lib/Refund/CreateRefund.php +++ b/lib/Refund/CreateRefund.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/Refund/CreateRefund400Response.php b/lib/Refund/CreateRefund400Response.php index 58eafb7..473875b 100644 --- a/lib/Refund/CreateRefund400Response.php +++ b/lib/Refund/CreateRefund400Response.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** @@ -234,6 +234,7 @@ public function getModelName() public const ERROR_CODE_PARTIAL_REFUND_NOT_SUPPORTED = 'PARTIAL_REFUND_NOT_SUPPORTED'; public const ERROR_CODE_REFUND_NOT_SUPPORTED = 'REFUND_NOT_SUPPORTED'; public const ERROR_CODE_TRANSACTION_NOT_FOUND = 'TRANSACTION_NOT_FOUND'; + public const ERROR_CODE_REFUND_IN_PROGRESS = 'REFUND_IN_PROGRESS'; /** * Gets allowable values of the enum @@ -250,6 +251,7 @@ public function getErrorCodeAllowableValues() self::ERROR_CODE_PARTIAL_REFUND_NOT_SUPPORTED, self::ERROR_CODE_REFUND_NOT_SUPPORTED, self::ERROR_CODE_TRANSACTION_NOT_FOUND, + self::ERROR_CODE_REFUND_IN_PROGRESS, ]; } diff --git a/lib/Refund/CreateRefund403Response.php b/lib/Refund/CreateRefund403Response.php index 8084e1c..7b56ef6 100644 --- a/lib/Refund/CreateRefund403Response.php +++ b/lib/Refund/CreateRefund403Response.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/Refund/CreateRefund404Response.php b/lib/Refund/CreateRefund404Response.php index 800cdbf..89bb81a 100644 --- a/lib/Refund/CreateRefund404Response.php +++ b/lib/Refund/CreateRefund404Response.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/Refund/CreateRefund409Response.php b/lib/Refund/CreateRefund409Response.php index efd4ddc..cfc4c37 100644 --- a/lib/Refund/CreateRefund409Response.php +++ b/lib/Refund/CreateRefund409Response.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/Refund/CreateRefund503Response.php b/lib/Refund/CreateRefund503Response.php index 357c949..6e1b4e2 100644 --- a/lib/Refund/CreateRefund503Response.php +++ b/lib/Refund/CreateRefund503Response.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/Refund/GetAllRefundsDefaultResponse.php b/lib/Refund/GetAllRefundsDefaultResponse.php index 6cfb678..d4bbe36 100644 --- a/lib/Refund/GetAllRefundsDefaultResponse.php +++ b/lib/Refund/GetAllRefundsDefaultResponse.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/Refund/Refund.php b/lib/Refund/Refund.php index 4ce3396..da1256e 100644 --- a/lib/Refund/Refund.php +++ b/lib/Refund/Refund.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/Refund/RefundApi.php b/lib/Refund/RefundApi.php index 30e5c9e..f6e2d32 100644 --- a/lib/Refund/RefundApi.php +++ b/lib/Refund/RefundApi.php @@ -10,7 +10,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** @@ -361,7 +361,7 @@ public function createRefundRequest($idempotency_key = null, $for_user_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -622,7 +622,7 @@ public function getRefundRequest($refund_id, $idempotency_key = null, $for_user_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -958,7 +958,7 @@ public function getAllRefundsRequest($for_user_id = null, $payment_request_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1219,7 +1219,7 @@ public function cancelRefundRequest($refund_id, $idempotency_key = null, $for_us // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.6.0'; + $defaultHeaders['xendit-lib-ver'] = '3.7.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Refund/RefundCallback.php b/lib/Refund/RefundCallback.php new file mode 100644 index 0000000..73d1464 --- /dev/null +++ b/lib/Refund/RefundCallback.php @@ -0,0 +1,514 @@ + + */ +class RefundCallback implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'RefundCallback'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'event' => 'string', + 'business_id' => 'string', + 'created' => 'string', + 'data' => '\Xendit\Refund\RefundCallbackData' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'event' => null, + 'business_id' => null, + 'created' => null, + 'data' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'event' => false, + 'business_id' => false, + 'created' => false, + 'data' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'event' => 'event', + 'business_id' => 'business_id', + 'created' => 'created', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'event' => 'setEvent', + 'business_id' => 'setBusinessId', + 'created' => 'setCreated', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'event' => 'getEvent', + 'business_id' => 'getBusinessId', + 'created' => 'getCreated', + 'data' => 'getData' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('event', $data ?? [], null); + $this->setIfExists('business_id', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); + $this->setIfExists('data', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['event'] === null) { + $invalidProperties[] = "'event' can't be null"; + } + if ($this->container['business_id'] === null) { + $invalidProperties[] = "'business_id' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets event + * + * @return string + */ + public function getEvent() + { + return $this->container['event']; + } + + /** + * Sets event + * + * @param string $event Identifies the event that triggered a notification to the merchant + * + * @return self + */ + public function setEvent($event) + { + if (is_null($event)) { + throw new \InvalidArgumentException('non-nullable event cannot be null'); + } + $this->container['event'] = $event; + + return $this; + } + + /** + * Gets business_id + * + * @return string + */ + public function getBusinessId() + { + return $this->container['business_id']; + } + + /** + * Sets business_id + * + * @param string $business_id business_id + * + * @return self + */ + public function setBusinessId($business_id) + { + if (is_null($business_id)) { + throw new \InvalidArgumentException('non-nullable business_id cannot be null'); + } + $this->container['business_id'] = $business_id; + + return $this; + } + + /** + * Gets created + * + * @return string + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param string $created created + * + * @return self + */ + public function setCreated($created) + { + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); + } + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets data + * + * @return \Refund\RefundCallbackData|null + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Refund\RefundCallbackData|null $data data + * + * @return self + */ + public function setData($data) + { + if (is_null($data)) { + throw new \InvalidArgumentException('non-nullable data cannot be null'); + } + $this->container['data'] = $data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Refund/RefundCallbackData.php b/lib/Refund/RefundCallbackData.php new file mode 100644 index 0000000..e0bd728 --- /dev/null +++ b/lib/Refund/RefundCallbackData.php @@ -0,0 +1,980 @@ + + */ +class RefundCallbackData implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'RefundCallbackData'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'id' => 'string', + 'payment_request_id' => 'string', + 'invoice_id' => 'string', + 'payment_method_type' => 'string', + 'amount' => 'float', + 'channel_code' => 'string', + 'status' => 'string', + 'reason' => 'string', + 'country' => 'string', + 'currency' => 'string', + 'reference_id' => 'string', + 'failure_code' => 'string', + 'refund_fee_amount' => 'float', + 'created' => 'string', + 'updated' => 'string', + 'metadata' => 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'id' => null, + 'payment_request_id' => null, + 'invoice_id' => null, + 'payment_method_type' => null, + 'amount' => 'double', + 'channel_code' => null, + 'status' => null, + 'reason' => null, + 'country' => null, + 'currency' => null, + 'reference_id' => null, + 'failure_code' => null, + 'refund_fee_amount' => 'double', + 'created' => null, + 'updated' => null, + 'metadata' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'id' => false, + 'payment_request_id' => false, + 'invoice_id' => true, + 'payment_method_type' => false, + 'amount' => false, + 'channel_code' => false, + 'status' => false, + 'reason' => false, + 'country' => false, + 'currency' => false, + 'reference_id' => true, + 'failure_code' => true, + 'refund_fee_amount' => true, + 'created' => false, + 'updated' => false, + 'metadata' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'payment_request_id' => 'payment_request_id', + 'invoice_id' => 'invoice_id', + 'payment_method_type' => 'payment_method_type', + 'amount' => 'amount', + 'channel_code' => 'channel_code', + 'status' => 'status', + 'reason' => 'reason', + 'country' => 'country', + 'currency' => 'currency', + 'reference_id' => 'reference_id', + 'failure_code' => 'failure_code', + 'refund_fee_amount' => 'refund_fee_amount', + 'created' => 'created', + 'updated' => 'updated', + 'metadata' => 'metadata' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'payment_request_id' => 'setPaymentRequestId', + 'invoice_id' => 'setInvoiceId', + 'payment_method_type' => 'setPaymentMethodType', + 'amount' => 'setAmount', + 'channel_code' => 'setChannelCode', + 'status' => 'setStatus', + 'reason' => 'setReason', + 'country' => 'setCountry', + 'currency' => 'setCurrency', + 'reference_id' => 'setReferenceId', + 'failure_code' => 'setFailureCode', + 'refund_fee_amount' => 'setRefundFeeAmount', + 'created' => 'setCreated', + 'updated' => 'setUpdated', + 'metadata' => 'setMetadata' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'payment_request_id' => 'getPaymentRequestId', + 'invoice_id' => 'getInvoiceId', + 'payment_method_type' => 'getPaymentMethodType', + 'amount' => 'getAmount', + 'channel_code' => 'getChannelCode', + 'status' => 'getStatus', + 'reason' => 'getReason', + 'country' => 'getCountry', + 'currency' => 'getCurrency', + 'reference_id' => 'getReferenceId', + 'failure_code' => 'getFailureCode', + 'refund_fee_amount' => 'getRefundFeeAmount', + 'created' => 'getCreated', + 'updated' => 'getUpdated', + 'metadata' => 'getMetadata' + ]; + + /** + * 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::$openAPIModelName; + } + + + /** + * 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->setIfExists('id', $data ?? [], null); + $this->setIfExists('payment_request_id', $data ?? [], null); + $this->setIfExists('invoice_id', $data ?? [], null); + $this->setIfExists('payment_method_type', $data ?? [], null); + $this->setIfExists('amount', $data ?? [], null); + $this->setIfExists('channel_code', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('reason', $data ?? [], null); + $this->setIfExists('country', $data ?? [], null); + $this->setIfExists('currency', $data ?? [], null); + $this->setIfExists('reference_id', $data ?? [], null); + $this->setIfExists('failure_code', $data ?? [], null); + $this->setIfExists('refund_fee_amount', $data ?? [], null); + $this->setIfExists('created', $data ?? [], null); + $this->setIfExists('updated', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['payment_request_id'] === null) { + $invalidProperties[] = "'payment_request_id' can't be null"; + } + if ($this->container['payment_method_type'] === null) { + $invalidProperties[] = "'payment_method_type' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['channel_code'] === null) { + $invalidProperties[] = "'channel_code' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + if ($this->container['reason'] === null) { + $invalidProperties[] = "'reason' can't be null"; + } + if ($this->container['country'] === null) { + $invalidProperties[] = "'country' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['updated'] === null) { + $invalidProperties[] = "'updated' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id id + * + * @return self + */ + public function setId($id) + { + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); + } + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets payment_request_id + * + * @return string + */ + public function getPaymentRequestId() + { + return $this->container['payment_request_id']; + } + + /** + * Sets payment_request_id + * + * @param string $payment_request_id payment_request_id + * + * @return self + */ + public function setPaymentRequestId($payment_request_id) + { + if (is_null($payment_request_id)) { + throw new \InvalidArgumentException('non-nullable payment_request_id cannot be null'); + } + $this->container['payment_request_id'] = $payment_request_id; + + return $this; + } + + /** + * Gets invoice_id + * + * @return string|null + */ + public function getInvoiceId() + { + return $this->container['invoice_id']; + } + + /** + * Sets invoice_id + * + * @param string|null $invoice_id invoice_id + * + * @return self + */ + public function setInvoiceId($invoice_id) + { + if (is_null($invoice_id)) { + array_push($this->openAPINullablesSetToNull, 'invoice_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('invoice_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['invoice_id'] = $invoice_id; + + return $this; + } + + /** + * Gets payment_method_type + * + * @return string + */ + public function getPaymentMethodType() + { + return $this->container['payment_method_type']; + } + + /** + * Sets payment_method_type + * + * @param string $payment_method_type payment_method_type + * + * @return self + */ + public function setPaymentMethodType($payment_method_type) + { + if (is_null($payment_method_type)) { + throw new \InvalidArgumentException('non-nullable payment_method_type cannot be null'); + } + $this->container['payment_method_type'] = $payment_method_type; + + return $this; + } + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount amount + * + * @return self + */ + public function setAmount($amount) + { + if (is_null($amount)) { + throw new \InvalidArgumentException('non-nullable amount cannot be null'); + } + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets channel_code + * + * @return string + */ + public function getChannelCode() + { + return $this->container['channel_code']; + } + + /** + * Sets channel_code + * + * @param string $channel_code channel_code + * + * @return self + */ + public function setChannelCode($channel_code) + { + if (is_null($channel_code)) { + throw new \InvalidArgumentException('non-nullable channel_code cannot be null'); + } + $this->container['channel_code'] = $channel_code; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason + * + * @return self + */ + public function setReason($reason) + { + if (is_null($reason)) { + throw new \InvalidArgumentException('non-nullable reason cannot be null'); + } + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets country + * + * @return string + */ + public function getCountry() + { + return $this->container['country']; + } + + /** + * Sets country + * + * @param string $country country + * + * @return self + */ + public function setCountry($country) + { + if (is_null($country)) { + throw new \InvalidArgumentException('non-nullable country cannot be null'); + } + $this->container['country'] = $country; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency currency + * + * @return self + */ + public function setCurrency($currency) + { + if (is_null($currency)) { + throw new \InvalidArgumentException('non-nullable currency cannot be null'); + } + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + if (is_null($reference_id)) { + array_push($this->openAPINullablesSetToNull, 'reference_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('reference_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets failure_code + * + * @return string|null + */ + public function getFailureCode() + { + return $this->container['failure_code']; + } + + /** + * Sets failure_code + * + * @param string|null $failure_code failure_code + * + * @return self + */ + public function setFailureCode($failure_code) + { + if (is_null($failure_code)) { + array_push($this->openAPINullablesSetToNull, 'failure_code'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('failure_code', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['failure_code'] = $failure_code; + + return $this; + } + + /** + * Gets refund_fee_amount + * + * @return float|null + */ + public function getRefundFeeAmount() + { + return $this->container['refund_fee_amount']; + } + + /** + * Sets refund_fee_amount + * + * @param float|null $refund_fee_amount refund_fee_amount + * + * @return self + */ + public function setRefundFeeAmount($refund_fee_amount) + { + if (is_null($refund_fee_amount)) { + array_push($this->openAPINullablesSetToNull, 'refund_fee_amount'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('refund_fee_amount', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['refund_fee_amount'] = $refund_fee_amount; + + return $this; + } + + /** + * Gets created + * + * @return string + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param string $created created + * + * @return self + */ + public function setCreated($created) + { + if (is_null($created)) { + throw new \InvalidArgumentException('non-nullable created cannot be null'); + } + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets updated + * + * @return string + */ + public function getUpdated() + { + return $this->container['updated']; + } + + /** + * Sets updated + * + * @param string $updated updated + * + * @return self + */ + public function setUpdated($updated) + { + if (is_null($updated)) { + throw new \InvalidArgumentException('non-nullable updated cannot be null'); + } + $this->container['updated'] = $updated; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata metadata + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + array_push($this->openAPINullablesSetToNull, 'metadata'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('metadata', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['metadata'] = $metadata; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Refund/RefundList.php b/lib/Refund/RefundList.php index 9f28c13..4908386 100644 --- a/lib/Refund/RefundList.php +++ b/lib/Refund/RefundList.php @@ -11,7 +11,7 @@ /** * Refund Service * - * The version of the OpenAPI document: 1.3.3 + * The version of the OpenAPI document: 1.3.4 */ /** diff --git a/lib/XenditSdkException.php b/lib/XenditSdkException.php index 530b5c6..23eeb9c 100644 --- a/lib/XenditSdkException.php +++ b/lib/XenditSdkException.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.45.1 + * The version of the OpenAPI document: 1.45.2 */ /** diff --git a/phpunit.xml.dist b/phpunit.xml.dist index c97c539..1bf01da 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -8,7 +8,7 @@ - ./test + ./test