From 546a346154325025e9705224b20bd99752e84b5b Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Tue, 19 Sep 2023 18:53:27 +0200 Subject: [PATCH] chore: release v2.2.2 --- .openapi-generator/FILES | 14 + build/config.json | 2 +- build/package.json | 2 +- lib/Api/ApplePayDomainApi.php | 2 +- lib/Api/BizumApi.php | 414 +++++++++++++ lib/Api/PaymentsApi.php | 4 +- lib/Api/SubscriptionsApi.php | 2 +- lib/ApiException.php | 2 +- lib/Configuration.php | 8 +- lib/HeaderSelector.php | 2 +- lib/Model/ActivateSubscriptionRequest.php | 42 +- lib/Model/Address.php | 2 +- lib/Model/BizumValidatePhone200Response.php | 320 ++++++++++ lib/Model/CancelPaymentRequest.php | 2 +- lib/Model/CancelSubscriptionRequest.php | 2 +- lib/Model/CapturePaymentRequest.php | 2 +- lib/Model/ConfirmPaymentRequest.php | 42 +- .../ConfirmPaymentRequestPaymentMethod.php | 2 +- ...ConfirmPaymentRequestPaymentMethodCard.php | 2 +- lib/Model/CreatePaymentRequest.php | 42 +- lib/Model/CreateSubscriptionRequest.php | 42 +- lib/Model/DomainRegister200Response.php | 2 +- lib/Model/Error.php | 2 +- lib/Model/ModelInterface.php | 2 +- lib/Model/PauseSubscriptionRequest.php | 2 +- lib/Model/Payment.php | 32 +- lib/Model/PaymentBillingDetails.php | 2 +- lib/Model/PaymentCancellationReason.php | 2 +- lib/Model/PaymentCustomer.php | 2 +- lib/Model/PaymentLastRefundReason.php | 2 +- lib/Model/PaymentMessageChannel.php | 2 +- lib/Model/PaymentMessageLanguage.php | 2 +- lib/Model/PaymentNextAction.php | 2 +- lib/Model/PaymentPaymentMethod.php | 180 +++++- lib/Model/PaymentPaymentMethodBizum.php | 2 +- lib/Model/PaymentPaymentMethodBizumInput.php | 2 +- lib/Model/PaymentPaymentMethodCard.php | 2 +- lib/Model/PaymentPaymentMethodCardInput.php | 2 +- lib/Model/PaymentPaymentMethodCofidis.php | 2 +- lib/Model/PaymentPaymentMethodInput.php | 2 +- lib/Model/PaymentPaymentMethodKlarna.php | 439 ++++++++++++++ lib/Model/PaymentPaymentMethodMbway.php | 321 ++++++++++ lib/Model/PaymentPaymentMethodPaypal.php | 2 +- lib/Model/PaymentPaymentMethodSepa.php | 561 ++++++++++++++++++ lib/Model/PaymentPaymentMethodTrustly.php | 321 ++++++++++ lib/Model/PaymentRefundReason.php | 2 +- lib/Model/PaymentSequence.php | 2 +- lib/Model/PaymentSequenceRecurring.php | 2 +- lib/Model/PaymentSessionDetails.php | 2 +- lib/Model/PaymentShippingDetails.php | 2 +- lib/Model/PaymentShop.php | 2 +- lib/Model/PaymentStatus.php | 2 +- lib/Model/PaymentTraceDetails.php | 2 +- lib/Model/PaymentTransactionType.php | 2 +- lib/Model/RecurringPaymentRequest.php | 42 +- lib/Model/RefundPaymentRequest.php | 2 +- lib/Model/RegisterDomainRequest.php | 2 +- lib/Model/SendPaymentLinkRequest.php | 2 +- lib/Model/SendPaymentReceiptRequest.php | 2 +- lib/Model/SendPaymentRequest.php | 2 +- lib/Model/Subscription.php | 32 +- lib/Model/SubscriptionInterval.php | 2 +- lib/Model/SubscriptionLastPayment.php | 2 +- lib/Model/SubscriptionPaymentMethod.php | 2 +- lib/Model/SubscriptionPaymentMethodCard.php | 2 +- lib/Model/SubscriptionStatus.php | 2 +- lib/Model/UpdateSubscriptionRequest.php | 42 +- lib/Model/ValidateBizumPhoneRequest.php | 386 ++++++++++++ lib/MoneiClient.php | 2 +- lib/ObjectSerializer.php | 2 +- test/Api/BizumApiTest.php | 85 +++ .../BizumValidatePhone200ResponseTest.php | 90 +++ test/Model/PaymentPaymentMethodKlarnaTest.php | 99 ++++ test/Model/PaymentPaymentMethodMbwayTest.php | 90 +++ test/Model/PaymentPaymentMethodSepaTest.php | 162 +++++ .../Model/PaymentPaymentMethodTrustlyTest.php | 90 +++ test/Model/ValidateBizumPhoneRequestTest.php | 108 ++++ 77 files changed, 4009 insertions(+), 101 deletions(-) create mode 100644 lib/Api/BizumApi.php create mode 100644 lib/Model/BizumValidatePhone200Response.php create mode 100644 lib/Model/PaymentPaymentMethodKlarna.php create mode 100644 lib/Model/PaymentPaymentMethodMbway.php create mode 100644 lib/Model/PaymentPaymentMethodSepa.php create mode 100644 lib/Model/PaymentPaymentMethodTrustly.php create mode 100644 lib/Model/ValidateBizumPhoneRequest.php create mode 100644 test/Api/BizumApiTest.php create mode 100644 test/Model/BizumValidatePhone200ResponseTest.php create mode 100644 test/Model/PaymentPaymentMethodKlarnaTest.php create mode 100644 test/Model/PaymentPaymentMethodMbwayTest.php create mode 100644 test/Model/PaymentPaymentMethodSepaTest.php create mode 100644 test/Model/PaymentPaymentMethodTrustlyTest.php create mode 100644 test/Model/ValidateBizumPhoneRequestTest.php diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8866dcd..50c91e8 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -2,6 +2,7 @@ .travis.yml git_push.sh lib/Api/ApplePayDomainApi.php +lib/Api/BizumApi.php lib/Api/PaymentsApi.php lib/Api/SubscriptionsApi.php lib/ApiException.php @@ -9,6 +10,7 @@ lib/Configuration.php lib/HeaderSelector.php lib/Model/ActivateSubscriptionRequest.php lib/Model/Address.php +lib/Model/BizumValidatePhone200Response.php lib/Model/CancelPaymentRequest.php lib/Model/CancelSubscriptionRequest.php lib/Model/CapturePaymentRequest.php @@ -36,7 +38,11 @@ lib/Model/PaymentPaymentMethodCard.php lib/Model/PaymentPaymentMethodCardInput.php lib/Model/PaymentPaymentMethodCofidis.php lib/Model/PaymentPaymentMethodInput.php +lib/Model/PaymentPaymentMethodKlarna.php +lib/Model/PaymentPaymentMethodMbway.php lib/Model/PaymentPaymentMethodPaypal.php +lib/Model/PaymentPaymentMethodSepa.php +lib/Model/PaymentPaymentMethodTrustly.php lib/Model/PaymentRefundReason.php lib/Model/PaymentSequence.php lib/Model/PaymentSequenceRecurring.php @@ -59,5 +65,13 @@ lib/Model/SubscriptionPaymentMethod.php lib/Model/SubscriptionPaymentMethodCard.php lib/Model/SubscriptionStatus.php lib/Model/UpdateSubscriptionRequest.php +lib/Model/ValidateBizumPhoneRequest.php lib/ObjectSerializer.php phpunit.xml.dist +test/Api/BizumApiTest.php +test/Model/BizumValidatePhone200ResponseTest.php +test/Model/PaymentPaymentMethodKlarnaTest.php +test/Model/PaymentPaymentMethodMbwayTest.php +test/Model/PaymentPaymentMethodSepaTest.php +test/Model/PaymentPaymentMethodTrustlyTest.php +test/Model/ValidateBizumPhoneRequestTest.php diff --git a/build/config.json b/build/config.json index 586dca2..9b7b419 100644 --- a/build/config.json +++ b/build/config.json @@ -1,6 +1,6 @@ { "packageName": "MONEI PHP SDK", - "artifactVersion": "2.2.1", + "artifactVersion": "2.2.2", "gitHost": "github.com", "gitUserId": "monei", "gitRepoId": "monei-php-sdk" diff --git a/build/package.json b/build/package.json index 631dc89..44abfd5 100644 --- a/build/package.json +++ b/build/package.json @@ -1,6 +1,6 @@ { "name": "monei-php-sdk", - "version": "2.2.1", + "version": "2.2.2", "description": "MONEI PHP SDK", "author": "monei", "scripts": { diff --git a/lib/Api/ApplePayDomainApi.php b/lib/Api/ApplePayDomainApi.php index 14878fd..bda37f5 100644 --- a/lib/Api/ApplePayDomainApi.php +++ b/lib/Api/ApplePayDomainApi.php @@ -14,7 +14,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Api/BizumApi.php b/lib/Api/BizumApi.php new file mode 100644 index 0000000..7eb7233 --- /dev/null +++ b/lib/Api/BizumApi.php @@ -0,0 +1,414 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace OpenAPI\Client\Api; + +use GuzzleHttp\Client; +use GuzzleHttp\ClientInterface; +use GuzzleHttp\Exception\ConnectException; +use GuzzleHttp\Exception\RequestException; +use GuzzleHttp\Psr7\MultipartStream; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\RequestOptions; +use OpenAPI\Client\ApiException; +use OpenAPI\Client\Configuration; +use OpenAPI\Client\HeaderSelector; +use OpenAPI\Client\ObjectSerializer; + +/** + * BizumApi Class Doc Comment + * + * @category Class + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class BizumApi +{ + /** + * @var ClientInterface + */ + protected $client; + + /** + * @var Configuration + */ + protected $config; + + /** + * @var HeaderSelector + */ + protected $headerSelector; + + /** + * @var int Host index + */ + protected $hostIndex; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ClientInterface $client = null, + Configuration $config = null, + HeaderSelector $selector = null, + $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation validatePhone + * + * Validate Phone + * + * @param \OpenAPI\Client\Model\ValidateBizumPhoneRequest $validate_bizum_phone_request validate_bizum_phone_request (required) + * + * @throws \OpenAPI\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \OpenAPI\Client\Model\BizumValidatePhone200Response + */ + public function validatePhone($validate_bizum_phone_request) + { + list($response) = $this->validatePhoneWithHttpInfo($validate_bizum_phone_request); + return $response; + } + + /** + * Operation validatePhoneWithHttpInfo + * + * Validate Phone + * + * @param \OpenAPI\Client\Model\ValidateBizumPhoneRequest $validate_bizum_phone_request (required) + * + * @throws \OpenAPI\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \OpenAPI\Client\Model\BizumValidatePhone200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function validatePhoneWithHttpInfo($validate_bizum_phone_request) + { + $request = $this->validatePhoneRequest($validate_bizum_phone_request); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('\OpenAPI\Client\Model\BizumValidatePhone200Response' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\OpenAPI\Client\Model\BizumValidatePhone200Response' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\OpenAPI\Client\Model\BizumValidatePhone200Response', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\OpenAPI\Client\Model\BizumValidatePhone200Response'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\OpenAPI\Client\Model\BizumValidatePhone200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation validatePhoneAsync + * + * Validate Phone + * + * @param \OpenAPI\Client\Model\ValidateBizumPhoneRequest $validate_bizum_phone_request (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validatePhoneAsync($validate_bizum_phone_request) + { + return $this->validatePhoneAsyncWithHttpInfo($validate_bizum_phone_request) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation validatePhoneAsyncWithHttpInfo + * + * Validate Phone + * + * @param \OpenAPI\Client\Model\ValidateBizumPhoneRequest $validate_bizum_phone_request (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function validatePhoneAsyncWithHttpInfo($validate_bizum_phone_request) + { + $returnType = '\OpenAPI\Client\Model\BizumValidatePhone200Response'; + $request = $this->validatePhoneRequest($validate_bizum_phone_request); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'validatePhone' + * + * @param \OpenAPI\Client\Model\ValidateBizumPhoneRequest $validate_bizum_phone_request (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function validatePhoneRequest($validate_bizum_phone_request) + { + // verify the required parameter 'validate_bizum_phone_request' is set + if ($validate_bizum_phone_request === null || (is_array($validate_bizum_phone_request) && count($validate_bizum_phone_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $validate_bizum_phone_request when calling validatePhone' + ); + } + + $resourcePath = '/bizum/validate-phone'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($validate_bizum_phone_request)) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($validate_bizum_phone_request)); + } else { + $httpBody = $validate_bizum_phone_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/lib/Api/PaymentsApi.php b/lib/Api/PaymentsApi.php index b541acf..f08a2a6 100644 --- a/lib/Api/PaymentsApi.php +++ b/lib/Api/PaymentsApi.php @@ -14,7 +14,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -1019,7 +1019,7 @@ public function create($create_payment_request) list($response) = $this->createWithHttpInfo($create_payment_request); return $response; } - + /** * Operation createWithHttpInfo * diff --git a/lib/Api/SubscriptionsApi.php b/lib/Api/SubscriptionsApi.php index 6378bc3..f1061d0 100644 --- a/lib/Api/SubscriptionsApi.php +++ b/lib/Api/SubscriptionsApi.php @@ -14,7 +14,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/ApiException.php b/lib/ApiException.php index bb880d9..12fe852 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -14,7 +14,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Configuration.php b/lib/Configuration.php index d95aaf0..8dacb10 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -14,7 +14,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -100,7 +100,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/2.2.1/PHP'; + protected $userAgent = 'OpenAPI-Generator/2.2.2/PHP'; /** * Debug switch (default set to false) @@ -432,8 +432,8 @@ public static function toDebugReport() $report = 'PHP SDK (OpenAPI\Client) 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.4.1' . PHP_EOL; - $report .= ' SDK Package Version: 2.2.1' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 1.4.2' . PHP_EOL; + $report .= ' SDK Package Version: 2.2.2' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 6cf3132..52e9055 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -14,7 +14,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/ActivateSubscriptionRequest.php b/lib/Model/ActivateSubscriptionRequest.php index 54f8f02..78f833a 100644 --- a/lib/Model/ActivateSubscriptionRequest.php +++ b/lib/Model/ActivateSubscriptionRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -63,7 +63,8 @@ class ActivateSubscriptionRequest implements ModelInterface, ArrayAccess, \JsonS 'sequence_id' => 'string', 'complete_url' => 'string', 'fail_url' => 'string', - 'cancel_url' => 'string' + 'cancel_url' => 'string', + 'metadata' => 'object' ]; /** @@ -80,7 +81,8 @@ class ActivateSubscriptionRequest implements ModelInterface, ArrayAccess, \JsonS 'sequence_id' => null, 'complete_url' => null, 'fail_url' => null, - 'cancel_url' => null + 'cancel_url' => null, + 'metadata' => null ]; /** @@ -116,7 +118,8 @@ public static function openAPIFormats() 'sequence_id' => 'sequenceId', 'complete_url' => 'completeUrl', 'fail_url' => 'failUrl', - 'cancel_url' => 'cancelUrl' + 'cancel_url' => 'cancelUrl', + 'metadata' => 'metadata' ]; /** @@ -131,7 +134,8 @@ public static function openAPIFormats() 'sequence_id' => 'setSequenceId', 'complete_url' => 'setCompleteUrl', 'fail_url' => 'setFailUrl', - 'cancel_url' => 'setCancelUrl' + 'cancel_url' => 'setCancelUrl', + 'metadata' => 'setMetadata' ]; /** @@ -146,7 +150,8 @@ public static function openAPIFormats() 'sequence_id' => 'getSequenceId', 'complete_url' => 'getCompleteUrl', 'fail_url' => 'getFailUrl', - 'cancel_url' => 'getCancelUrl' + 'cancel_url' => 'getCancelUrl', + 'metadata' => 'getMetadata' ]; /** @@ -213,6 +218,7 @@ public function __construct(array $data = null) $this->container['complete_url'] = $data['complete_url'] ?? null; $this->container['fail_url'] = $data['fail_url'] ?? null; $this->container['cancel_url'] = $data['cancel_url'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; } /** @@ -406,6 +412,30 @@ public function setCancelUrl($cancel_url) return $this; } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/Address.php b/lib/Model/Address.php index 90ec08b..fa87846 100644 --- a/lib/Model/Address.php +++ b/lib/Model/Address.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/BizumValidatePhone200Response.php b/lib/Model/BizumValidatePhone200Response.php new file mode 100644 index 0000000..4d65244 --- /dev/null +++ b/lib/Model/BizumValidatePhone200Response.php @@ -0,0 +1,320 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace OpenAPI\Client\Model; + +use \ArrayAccess; +use \OpenAPI\Client\ObjectSerializer; + +/** + * BizumValidatePhone200Response Class Doc Comment + * + * @category Class + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + */ +class BizumValidatePhone200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'bizum_validate_phone_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'is_valid' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'is_valid' => null + ]; + + /** + * 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 attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'is_valid' => 'isValid' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'is_valid' => 'setIsValid' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'is_valid' => 'getIsValid' + ]; + + /** + * 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->container['is_valid'] = $data['is_valid'] ?? null; + } + + /** + * 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 is_valid + * + * @return bool|null + */ + public function getIsValid() + { + return $this->container['is_valid']; + } + + /** + * Sets is_valid + * + * @param bool|null $is_valid is_valid + * + * @return self + */ + public function setIsValid($is_valid) + { + $this->container['is_valid'] = $is_valid; + + 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/CancelPaymentRequest.php b/lib/Model/CancelPaymentRequest.php index 1aeee6c..2e51aa3 100644 --- a/lib/Model/CancelPaymentRequest.php +++ b/lib/Model/CancelPaymentRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/CancelSubscriptionRequest.php b/lib/Model/CancelSubscriptionRequest.php index 3a75568..8636771 100644 --- a/lib/Model/CancelSubscriptionRequest.php +++ b/lib/Model/CancelSubscriptionRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/CapturePaymentRequest.php b/lib/Model/CapturePaymentRequest.php index 75d609c..b600861 100644 --- a/lib/Model/CapturePaymentRequest.php +++ b/lib/Model/CapturePaymentRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/ConfirmPaymentRequest.php b/lib/Model/ConfirmPaymentRequest.php index 295f9a5..2d680c8 100644 --- a/lib/Model/ConfirmPaymentRequest.php +++ b/lib/Model/ConfirmPaymentRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -62,7 +62,8 @@ class ConfirmPaymentRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'generate_payment_token' => 'bool', 'customer' => '\OpenAPI\Client\Model\PaymentCustomer', 'billing_details' => '\OpenAPI\Client\Model\PaymentBillingDetails', - 'shipping_details' => '\OpenAPI\Client\Model\PaymentShippingDetails' + 'shipping_details' => '\OpenAPI\Client\Model\PaymentShippingDetails', + 'metadata' => 'object' ]; /** @@ -78,7 +79,8 @@ class ConfirmPaymentRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'generate_payment_token' => null, 'customer' => null, 'billing_details' => null, - 'shipping_details' => null + 'shipping_details' => null, + 'metadata' => null ]; /** @@ -113,7 +115,8 @@ public static function openAPIFormats() 'generate_payment_token' => 'generatePaymentToken', 'customer' => 'customer', 'billing_details' => 'billingDetails', - 'shipping_details' => 'shippingDetails' + 'shipping_details' => 'shippingDetails', + 'metadata' => 'metadata' ]; /** @@ -127,7 +130,8 @@ public static function openAPIFormats() 'generate_payment_token' => 'setGeneratePaymentToken', 'customer' => 'setCustomer', 'billing_details' => 'setBillingDetails', - 'shipping_details' => 'setShippingDetails' + 'shipping_details' => 'setShippingDetails', + 'metadata' => 'setMetadata' ]; /** @@ -141,7 +145,8 @@ public static function openAPIFormats() 'generate_payment_token' => 'getGeneratePaymentToken', 'customer' => 'getCustomer', 'billing_details' => 'getBillingDetails', - 'shipping_details' => 'getShippingDetails' + 'shipping_details' => 'getShippingDetails', + 'metadata' => 'getMetadata' ]; /** @@ -207,6 +212,7 @@ public function __construct(array $data = null) $this->container['customer'] = $data['customer'] ?? null; $this->container['billing_details'] = $data['billing_details'] ?? null; $this->container['shipping_details'] = $data['shipping_details'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; } /** @@ -379,6 +385,30 @@ public function setShippingDetails($shipping_details) return $this; } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ConfirmPaymentRequestPaymentMethod.php b/lib/Model/ConfirmPaymentRequestPaymentMethod.php index 24b1bd7..19d2857 100644 --- a/lib/Model/ConfirmPaymentRequestPaymentMethod.php +++ b/lib/Model/ConfirmPaymentRequestPaymentMethod.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/ConfirmPaymentRequestPaymentMethodCard.php b/lib/Model/ConfirmPaymentRequestPaymentMethodCard.php index 0058462..488c803 100644 --- a/lib/Model/ConfirmPaymentRequestPaymentMethodCard.php +++ b/lib/Model/ConfirmPaymentRequestPaymentMethodCard.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/CreatePaymentRequest.php b/lib/Model/CreatePaymentRequest.php index e86b4b7..e6c5178 100644 --- a/lib/Model/CreatePaymentRequest.php +++ b/lib/Model/CreatePaymentRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -79,7 +79,8 @@ class CreatePaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'billing_details' => '\OpenAPI\Client\Model\PaymentBillingDetails', 'shipping_details' => '\OpenAPI\Client\Model\PaymentShippingDetails', 'session_details' => '\OpenAPI\Client\Model\PaymentSessionDetails', - 'expire_at' => 'float' + 'expire_at' => 'float', + 'metadata' => 'object' ]; /** @@ -112,7 +113,8 @@ class CreatePaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'billing_details' => null, 'shipping_details' => null, 'session_details' => null, - 'expire_at' => 'int64' + 'expire_at' => 'int64', + 'metadata' => null ]; /** @@ -164,7 +166,8 @@ public static function openAPIFormats() 'billing_details' => 'billingDetails', 'shipping_details' => 'shippingDetails', 'session_details' => 'sessionDetails', - 'expire_at' => 'expireAt' + 'expire_at' => 'expireAt', + 'metadata' => 'metadata' ]; /** @@ -195,7 +198,8 @@ public static function openAPIFormats() 'billing_details' => 'setBillingDetails', 'shipping_details' => 'setShippingDetails', 'session_details' => 'setSessionDetails', - 'expire_at' => 'setExpireAt' + 'expire_at' => 'setExpireAt', + 'metadata' => 'setMetadata' ]; /** @@ -226,7 +230,8 @@ public static function openAPIFormats() 'billing_details' => 'getBillingDetails', 'shipping_details' => 'getShippingDetails', 'session_details' => 'getSessionDetails', - 'expire_at' => 'getExpireAt' + 'expire_at' => 'getExpireAt', + 'metadata' => 'getMetadata' ]; /** @@ -309,6 +314,7 @@ public function __construct(array $data = null) $this->container['shipping_details'] = $data['shipping_details'] ?? null; $this->container['session_details'] = $data['session_details'] ?? null; $this->container['expire_at'] = $data['expire_at'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; } /** @@ -895,6 +901,30 @@ public function setExpireAt($expire_at) return $this; } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/CreateSubscriptionRequest.php b/lib/Model/CreateSubscriptionRequest.php index a976c9a..e8e629c 100644 --- a/lib/Model/CreateSubscriptionRequest.php +++ b/lib/Model/CreateSubscriptionRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -68,7 +68,8 @@ class CreateSubscriptionRequest implements ModelInterface, ArrayAccess, \JsonSer 'trial_period_end' => 'float', 'trial_period_days' => 'int', 'callback_url' => 'string', - 'payment_callback_url' => 'string' + 'payment_callback_url' => 'string', + 'metadata' => 'object' ]; /** @@ -90,7 +91,8 @@ class CreateSubscriptionRequest implements ModelInterface, ArrayAccess, \JsonSer 'trial_period_end' => 'int64', 'trial_period_days' => 'int32', 'callback_url' => null, - 'payment_callback_url' => null + 'payment_callback_url' => null, + 'metadata' => null ]; /** @@ -131,7 +133,8 @@ public static function openAPIFormats() 'trial_period_end' => 'trialPeriodEnd', 'trial_period_days' => 'trialPeriodDays', 'callback_url' => 'callbackUrl', - 'payment_callback_url' => 'paymentCallbackUrl' + 'payment_callback_url' => 'paymentCallbackUrl', + 'metadata' => 'metadata' ]; /** @@ -151,7 +154,8 @@ public static function openAPIFormats() 'trial_period_end' => 'setTrialPeriodEnd', 'trial_period_days' => 'setTrialPeriodDays', 'callback_url' => 'setCallbackUrl', - 'payment_callback_url' => 'setPaymentCallbackUrl' + 'payment_callback_url' => 'setPaymentCallbackUrl', + 'metadata' => 'setMetadata' ]; /** @@ -171,7 +175,8 @@ public static function openAPIFormats() 'trial_period_end' => 'getTrialPeriodEnd', 'trial_period_days' => 'getTrialPeriodDays', 'callback_url' => 'getCallbackUrl', - 'payment_callback_url' => 'getPaymentCallbackUrl' + 'payment_callback_url' => 'getPaymentCallbackUrl', + 'metadata' => 'getMetadata' ]; /** @@ -243,6 +248,7 @@ public function __construct(array $data = null) $this->container['trial_period_days'] = $data['trial_period_days'] ?? null; $this->container['callback_url'] = $data['callback_url'] ?? null; $this->container['payment_callback_url'] = $data['payment_callback_url'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; } /** @@ -565,6 +571,30 @@ public function setPaymentCallbackUrl($payment_callback_url) return $this; } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/DomainRegister200Response.php b/lib/Model/DomainRegister200Response.php index 2d4d84f..8385b5c 100644 --- a/lib/Model/DomainRegister200Response.php +++ b/lib/Model/DomainRegister200Response.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/Error.php b/lib/Model/Error.php index 52e3ec5..2180f72 100644 --- a/lib/Model/Error.php +++ b/lib/Model/Error.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index a7ced74..e681f8b 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PauseSubscriptionRequest.php b/lib/Model/PauseSubscriptionRequest.php index f066342..9ff49d5 100644 --- a/lib/Model/PauseSubscriptionRequest.php +++ b/lib/Model/PauseSubscriptionRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/Payment.php b/lib/Model/Payment.php index 265ea07..6de529d 100644 --- a/lib/Model/Payment.php +++ b/lib/Model/Payment.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -83,6 +83,7 @@ class Payment implements ModelInterface, ArrayAccess, \JsonSerializable 'sequence' => '\OpenAPI\Client\Model\PaymentSequence', 'sequence_id' => 'string', 'point_of_sale_id' => 'string', + 'metadata' => 'object', 'next_action' => '\OpenAPI\Client\Model\PaymentNextAction', 'created_at' => 'int', 'updated_at' => 'int' @@ -122,6 +123,7 @@ class Payment implements ModelInterface, ArrayAccess, \JsonSerializable 'sequence' => null, 'sequence_id' => null, 'point_of_sale_id' => null, + 'metadata' => null, 'next_action' => null, 'created_at' => 'int64', 'updated_at' => 'int64' @@ -180,6 +182,7 @@ public static function openAPIFormats() 'sequence' => 'sequence', 'sequence_id' => 'sequenceId', 'point_of_sale_id' => 'pointOfSaleId', + 'metadata' => 'metadata', 'next_action' => 'nextAction', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt' @@ -217,6 +220,7 @@ public static function openAPIFormats() 'sequence' => 'setSequence', 'sequence_id' => 'setSequenceId', 'point_of_sale_id' => 'setPointOfSaleId', + 'metadata' => 'setMetadata', 'next_action' => 'setNextAction', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt' @@ -254,6 +258,7 @@ public static function openAPIFormats() 'sequence' => 'getSequence', 'sequence_id' => 'getSequenceId', 'point_of_sale_id' => 'getPointOfSaleId', + 'metadata' => 'getMetadata', 'next_action' => 'getNextAction', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt' @@ -342,6 +347,7 @@ public function __construct(array $data = null) $this->container['sequence'] = $data['sequence'] ?? null; $this->container['sequence_id'] = $data['sequence_id'] ?? null; $this->container['point_of_sale_id'] = $data['point_of_sale_id'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; $this->container['next_action'] = $data['next_action'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -995,6 +1001,30 @@ public function setPointOfSaleId($point_of_sale_id) return $this; } + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } + /** * Gets next_action * diff --git a/lib/Model/PaymentBillingDetails.php b/lib/Model/PaymentBillingDetails.php index 155efdd..f1a28d0 100644 --- a/lib/Model/PaymentBillingDetails.php +++ b/lib/Model/PaymentBillingDetails.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentCancellationReason.php b/lib/Model/PaymentCancellationReason.php index 0be2da7..091dfd7 100644 --- a/lib/Model/PaymentCancellationReason.php +++ b/lib/Model/PaymentCancellationReason.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentCustomer.php b/lib/Model/PaymentCustomer.php index 054ed9e..ef6e6f7 100644 --- a/lib/Model/PaymentCustomer.php +++ b/lib/Model/PaymentCustomer.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentLastRefundReason.php b/lib/Model/PaymentLastRefundReason.php index c30430e..1042e73 100644 --- a/lib/Model/PaymentLastRefundReason.php +++ b/lib/Model/PaymentLastRefundReason.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentMessageChannel.php b/lib/Model/PaymentMessageChannel.php index 75bb82a..4335f38 100644 --- a/lib/Model/PaymentMessageChannel.php +++ b/lib/Model/PaymentMessageChannel.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentMessageLanguage.php b/lib/Model/PaymentMessageLanguage.php index 0948f79..9900dec 100644 --- a/lib/Model/PaymentMessageLanguage.php +++ b/lib/Model/PaymentMessageLanguage.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentNextAction.php b/lib/Model/PaymentNextAction.php index 940a039..c086938 100644 --- a/lib/Model/PaymentNextAction.php +++ b/lib/Model/PaymentNextAction.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethod.php b/lib/Model/PaymentPaymentMethod.php index c6f8e4c..2aaba71 100644 --- a/lib/Model/PaymentPaymentMethod.php +++ b/lib/Model/PaymentPaymentMethod.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -62,7 +62,12 @@ class PaymentPaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializ 'card' => '\OpenAPI\Client\Model\PaymentPaymentMethodCard', 'bizum' => '\OpenAPI\Client\Model\PaymentPaymentMethodBizum', 'paypal' => '\OpenAPI\Client\Model\PaymentPaymentMethodPaypal', - 'cofidis' => '\OpenAPI\Client\Model\PaymentPaymentMethodCofidis' + 'cofidis' => '\OpenAPI\Client\Model\PaymentPaymentMethodCofidis', + 'cofidis_loan' => '\OpenAPI\Client\Model\PaymentPaymentMethodCofidis', + 'mbway' => '\OpenAPI\Client\Model\PaymentPaymentMethodMbway', + 'trustly' => '\OpenAPI\Client\Model\PaymentPaymentMethodTrustly', + 'sepa' => '\OpenAPI\Client\Model\PaymentPaymentMethodSepa', + 'klarna' => '\OpenAPI\Client\Model\PaymentPaymentMethodKlarna' ]; /** @@ -77,7 +82,12 @@ class PaymentPaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializ 'card' => null, 'bizum' => null, 'paypal' => null, - 'cofidis' => null + 'cofidis' => null, + 'cofidis_loan' => null, + 'mbway' => null, + 'trustly' => null, + 'sepa' => null, + 'klarna' => null ]; /** @@ -111,7 +121,12 @@ public static function openAPIFormats() 'card' => 'card', 'bizum' => 'bizum', 'paypal' => 'paypal', - 'cofidis' => 'cofidis' + 'cofidis' => 'cofidis', + 'cofidis_loan' => 'cofidisLoan', + 'mbway' => 'mbway', + 'trustly' => 'trustly', + 'sepa' => 'sepa', + 'klarna' => 'klarna' ]; /** @@ -124,7 +139,12 @@ public static function openAPIFormats() 'card' => 'setCard', 'bizum' => 'setBizum', 'paypal' => 'setPaypal', - 'cofidis' => 'setCofidis' + 'cofidis' => 'setCofidis', + 'cofidis_loan' => 'setCofidisLoan', + 'mbway' => 'setMbway', + 'trustly' => 'setTrustly', + 'sepa' => 'setSepa', + 'klarna' => 'setKlarna' ]; /** @@ -137,7 +157,12 @@ public static function openAPIFormats() 'card' => 'getCard', 'bizum' => 'getBizum', 'paypal' => 'getPaypal', - 'cofidis' => 'getCofidis' + 'cofidis' => 'getCofidis', + 'cofidis_loan' => 'getCofidisLoan', + 'mbway' => 'getMbway', + 'trustly' => 'getTrustly', + 'sepa' => 'getSepa', + 'klarna' => 'getKlarna' ]; /** @@ -188,6 +213,15 @@ public function getModelName() public const METHOD_CLICK_TO_PAY = 'clickToPay'; public const METHOD_PAYPAL = 'paypal'; public const METHOD_COFIDIS = 'cofidis'; + public const METHOD_COFIDIS_LOAN = 'cofidisLoan'; + public const METHOD_I_DEAL = 'iDeal'; + public const METHOD_MBWAY = 'mbway'; + public const METHOD_MULTIBANCO = 'multibanco'; + public const METHOD_SOFORT = 'sofort'; + public const METHOD_TRUSTLY = 'trustly'; + public const METHOD_SEPA = 'sepa'; + public const METHOD_KLARNA = 'klarna'; + public const METHOD_GIROPAY = 'giropay'; /** * Gets allowable values of the enum @@ -204,6 +238,15 @@ public function getMethodAllowableValues() self::METHOD_CLICK_TO_PAY, self::METHOD_PAYPAL, self::METHOD_COFIDIS, + self::METHOD_COFIDIS_LOAN, + self::METHOD_I_DEAL, + self::METHOD_MBWAY, + self::METHOD_MULTIBANCO, + self::METHOD_SOFORT, + self::METHOD_TRUSTLY, + self::METHOD_SEPA, + self::METHOD_KLARNA, + self::METHOD_GIROPAY, ]; } @@ -227,6 +270,11 @@ public function __construct(array $data = null) $this->container['bizum'] = $data['bizum'] ?? null; $this->container['paypal'] = $data['paypal'] ?? null; $this->container['cofidis'] = $data['cofidis'] ?? null; + $this->container['cofidis_loan'] = $data['cofidis_loan'] ?? null; + $this->container['mbway'] = $data['mbway'] ?? null; + $this->container['trustly'] = $data['trustly'] ?? null; + $this->container['sepa'] = $data['sepa'] ?? null; + $this->container['klarna'] = $data['klarna'] ?? null; } /** @@ -391,6 +439,126 @@ public function setCofidis($cofidis) return $this; } + + /** + * Gets cofidis_loan + * + * @return \OpenAPI\Client\Model\PaymentPaymentMethodCofidis|null + */ + public function getCofidisLoan() + { + return $this->container['cofidis_loan']; + } + + /** + * Sets cofidis_loan + * + * @param \OpenAPI\Client\Model\PaymentPaymentMethodCofidis|null $cofidis_loan cofidis_loan + * + * @return self + */ + public function setCofidisLoan($cofidis_loan) + { + $this->container['cofidis_loan'] = $cofidis_loan; + + return $this; + } + + /** + * Gets mbway + * + * @return \OpenAPI\Client\Model\PaymentPaymentMethodMbway|null + */ + public function getMbway() + { + return $this->container['mbway']; + } + + /** + * Sets mbway + * + * @param \OpenAPI\Client\Model\PaymentPaymentMethodMbway|null $mbway mbway + * + * @return self + */ + public function setMbway($mbway) + { + $this->container['mbway'] = $mbway; + + return $this; + } + + /** + * Gets trustly + * + * @return \OpenAPI\Client\Model\PaymentPaymentMethodTrustly|null + */ + public function getTrustly() + { + return $this->container['trustly']; + } + + /** + * Sets trustly + * + * @param \OpenAPI\Client\Model\PaymentPaymentMethodTrustly|null $trustly trustly + * + * @return self + */ + public function setTrustly($trustly) + { + $this->container['trustly'] = $trustly; + + return $this; + } + + /** + * Gets sepa + * + * @return \OpenAPI\Client\Model\PaymentPaymentMethodSepa|null + */ + public function getSepa() + { + return $this->container['sepa']; + } + + /** + * Sets sepa + * + * @param \OpenAPI\Client\Model\PaymentPaymentMethodSepa|null $sepa sepa + * + * @return self + */ + public function setSepa($sepa) + { + $this->container['sepa'] = $sepa; + + return $this; + } + + /** + * Gets klarna + * + * @return \OpenAPI\Client\Model\PaymentPaymentMethodKlarna|null + */ + public function getKlarna() + { + return $this->container['klarna']; + } + + /** + * Sets klarna + * + * @param \OpenAPI\Client\Model\PaymentPaymentMethodKlarna|null $klarna klarna + * + * @return self + */ + public function setKlarna($klarna) + { + $this->container['klarna'] = $klarna; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PaymentPaymentMethodBizum.php b/lib/Model/PaymentPaymentMethodBizum.php index 73a30f7..3b20999 100644 --- a/lib/Model/PaymentPaymentMethodBizum.php +++ b/lib/Model/PaymentPaymentMethodBizum.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethodBizumInput.php b/lib/Model/PaymentPaymentMethodBizumInput.php index e76db04..5710ebb 100644 --- a/lib/Model/PaymentPaymentMethodBizumInput.php +++ b/lib/Model/PaymentPaymentMethodBizumInput.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethodCard.php b/lib/Model/PaymentPaymentMethodCard.php index a7bd6c0..3fbe2ca 100644 --- a/lib/Model/PaymentPaymentMethodCard.php +++ b/lib/Model/PaymentPaymentMethodCard.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethodCardInput.php b/lib/Model/PaymentPaymentMethodCardInput.php index a37ddde..e911f0f 100644 --- a/lib/Model/PaymentPaymentMethodCardInput.php +++ b/lib/Model/PaymentPaymentMethodCardInput.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethodCofidis.php b/lib/Model/PaymentPaymentMethodCofidis.php index cf1a280..eff33fc 100644 --- a/lib/Model/PaymentPaymentMethodCofidis.php +++ b/lib/Model/PaymentPaymentMethodCofidis.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethodInput.php b/lib/Model/PaymentPaymentMethodInput.php index 3356961..04dba90 100644 --- a/lib/Model/PaymentPaymentMethodInput.php +++ b/lib/Model/PaymentPaymentMethodInput.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethodKlarna.php b/lib/Model/PaymentPaymentMethodKlarna.php new file mode 100644 index 0000000..179392d --- /dev/null +++ b/lib/Model/PaymentPaymentMethodKlarna.php @@ -0,0 +1,439 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace OpenAPI\Client\Model; + +use \ArrayAccess; +use \OpenAPI\Client\ObjectSerializer; + +/** + * PaymentPaymentMethodKlarna Class Doc Comment + * + * @category Class + * @description Details from Klarna order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + */ +class PaymentPaymentMethodKlarna implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Payment-PaymentMethodKlarna'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'billing_category' => 'Enum', + 'auth_payment_method' => 'Enum' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'billing_category' => null, + 'auth_payment_method' => null + ]; + + /** + * 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 attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'billing_category' => 'billingCategory', + 'auth_payment_method' => 'authPaymentMethod' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'billing_category' => 'setBillingCategory', + 'auth_payment_method' => 'setAuthPaymentMethod' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'billing_category' => 'getBillingCategory', + 'auth_payment_method' => 'getAuthPaymentMethod' + ]; + + /** + * 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; + } + + public const BILLING_CATEGORY_PAY_LATER = 'PAY_LATER'; + public const BILLING_CATEGORY_PAY_NOW = 'PAY_NOW'; + public const BILLING_CATEGORY_SLICE_IT = 'SLICE_IT'; + public const BILLING_CATEGORY_SLICE_IT_BY_CARD = 'SLICE_IT_BY_CARD'; + public const AUTH_PAYMENT_METHOD_INVOICE = 'invoice'; + public const AUTH_PAYMENT_METHOD_FIXED_AMOUNT = 'fixed_amount'; + public const AUTH_PAYMENT_METHOD_PIX = 'pix'; + public const AUTH_PAYMENT_METHOD_BASE_ACCOUNT = 'base_account'; + public const AUTH_PAYMENT_METHOD_DEFERRED_INTEREST = 'deferred_interest'; + public const AUTH_PAYMENT_METHOD_DIRECT_DEBIT = 'direct_debit'; + public const AUTH_PAYMENT_METHOD_DIRECT_BANK_TRANSFER = 'direct_bank_transfer'; + public const AUTH_PAYMENT_METHOD_B2B_INVOICE = 'b2b_invoice'; + public const AUTH_PAYMENT_METHOD_CARD = 'card'; + public const AUTH_PAYMENT_METHOD_SLICE_IT_BY_CARD = 'slice_it_by_card'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getBillingCategoryAllowableValues() + { + return [ + self::BILLING_CATEGORY_PAY_LATER, + self::BILLING_CATEGORY_PAY_NOW, + self::BILLING_CATEGORY_SLICE_IT, + self::BILLING_CATEGORY_SLICE_IT_BY_CARD, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAuthPaymentMethodAllowableValues() + { + return [ + self::AUTH_PAYMENT_METHOD_INVOICE, + self::AUTH_PAYMENT_METHOD_FIXED_AMOUNT, + self::AUTH_PAYMENT_METHOD_PIX, + self::AUTH_PAYMENT_METHOD_BASE_ACCOUNT, + self::AUTH_PAYMENT_METHOD_DEFERRED_INTEREST, + self::AUTH_PAYMENT_METHOD_DIRECT_DEBIT, + self::AUTH_PAYMENT_METHOD_DIRECT_BANK_TRANSFER, + self::AUTH_PAYMENT_METHOD_B2B_INVOICE, + self::AUTH_PAYMENT_METHOD_CARD, + self::AUTH_PAYMENT_METHOD_SLICE_IT_BY_CARD, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['billing_category'] = $data['billing_category'] ?? null; + $this->container['auth_payment_method'] = $data['auth_payment_method'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getBillingCategoryAllowableValues(); + if (!is_null($this->container['billing_category']) && !in_array($this->container['billing_category'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'billing_category', must be one of '%s'", + $this->container['billing_category'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getAuthPaymentMethodAllowableValues(); + if (!is_null($this->container['auth_payment_method']) && !in_array($this->container['auth_payment_method'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'auth_payment_method', must be one of '%s'", + $this->container['auth_payment_method'], + implode("', '", $allowedValues) + ); + } + + 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 billing_category + * + * @return Enum|null + */ + public function getBillingCategory() + { + return $this->container['billing_category']; + } + + /** + * Sets billing_category + * + * @param Enum|null $billing_category billing_category + * + * @return self + */ + public function setBillingCategory($billing_category) + { + $allowedValues = $this->getBillingCategoryAllowableValues(); + if (!is_null($billing_category) && !in_array($billing_category, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'billing_category', must be one of '%s'", + $billing_category, + implode("', '", $allowedValues) + ) + ); + } + $this->container['billing_category'] = $billing_category; + + return $this; + } + + /** + * Gets auth_payment_method + * + * @return Enum|null + */ + public function getAuthPaymentMethod() + { + return $this->container['auth_payment_method']; + } + + /** + * Sets auth_payment_method + * + * @param Enum|null $auth_payment_method auth_payment_method + * + * @return self + */ + public function setAuthPaymentMethod($auth_payment_method) + { + $allowedValues = $this->getAuthPaymentMethodAllowableValues(); + if (!is_null($auth_payment_method) && !in_array($auth_payment_method, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'auth_payment_method', must be one of '%s'", + $auth_payment_method, + implode("', '", $allowedValues) + ) + ); + } + $this->container['auth_payment_method'] = $auth_payment_method; + + 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/PaymentPaymentMethodMbway.php b/lib/Model/PaymentPaymentMethodMbway.php new file mode 100644 index 0000000..e381fa0 --- /dev/null +++ b/lib/Model/PaymentPaymentMethodMbway.php @@ -0,0 +1,321 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace OpenAPI\Client\Model; + +use \ArrayAccess; +use \OpenAPI\Client\ObjectSerializer; + +/** + * PaymentPaymentMethodMbway Class Doc Comment + * + * @category Class + * @description Details from MBWay order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + */ +class PaymentPaymentMethodMbway implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Payment-PaymentMethodMbway'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'phone_number' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'phone_number' => null + ]; + + /** + * 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 attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'phone_number' => 'phoneNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'phone_number' => 'setPhoneNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'phone_number' => 'getPhoneNumber' + ]; + + /** + * 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->container['phone_number'] = $data['phone_number'] ?? null; + } + + /** + * 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 phone_number + * + * @return string|null + */ + public function getPhoneNumber() + { + return $this->container['phone_number']; + } + + /** + * Sets phone_number + * + * @param string|null $phone_number The phone number used to pay with `mbway`. + * + * @return self + */ + public function setPhoneNumber($phone_number) + { + $this->container['phone_number'] = $phone_number; + + 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/PaymentPaymentMethodPaypal.php b/lib/Model/PaymentPaymentMethodPaypal.php index f77c243..6756c36 100644 --- a/lib/Model/PaymentPaymentMethodPaypal.php +++ b/lib/Model/PaymentPaymentMethodPaypal.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentPaymentMethodSepa.php b/lib/Model/PaymentPaymentMethodSepa.php new file mode 100644 index 0000000..ca9963c --- /dev/null +++ b/lib/Model/PaymentPaymentMethodSepa.php @@ -0,0 +1,561 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace OpenAPI\Client\Model; + +use \ArrayAccess; +use \OpenAPI\Client\ObjectSerializer; + +/** + * PaymentPaymentMethodSepa Class Doc Comment + * + * @category Class + * @description Details from SEPA order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + */ +class PaymentPaymentMethodSepa implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Payment-PaymentMethodSepa'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'accountholder_address' => 'string', + 'accountholder_email' => 'string', + 'accountholder_name' => 'string', + 'country_code' => 'string', + 'bank_address' => 'string', + 'bank_code' => 'string', + 'bank_name' => 'string', + 'bic' => 'string', + 'last4' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'accountholder_address' => null, + 'accountholder_email' => null, + 'accountholder_name' => null, + 'country_code' => null, + 'bank_address' => null, + 'bank_code' => null, + 'bank_name' => null, + 'bic' => null, + 'last4' => null + ]; + + /** + * 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 attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accountholder_address' => 'accountholderAddress', + 'accountholder_email' => 'accountholderEmail', + 'accountholder_name' => 'accountholderName', + 'country_code' => 'countryCode', + 'bank_address' => 'bankAddress', + 'bank_code' => 'bankCode', + 'bank_name' => 'bankName', + 'bic' => 'bic', + 'last4' => 'last4' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accountholder_address' => 'setAccountholderAddress', + 'accountholder_email' => 'setAccountholderEmail', + 'accountholder_name' => 'setAccountholderName', + 'country_code' => 'setCountryCode', + 'bank_address' => 'setBankAddress', + 'bank_code' => 'setBankCode', + 'bank_name' => 'setBankName', + 'bic' => 'setBic', + 'last4' => 'setLast4' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accountholder_address' => 'getAccountholderAddress', + 'accountholder_email' => 'getAccountholderEmail', + 'accountholder_name' => 'getAccountholderName', + 'country_code' => 'getCountryCode', + 'bank_address' => 'getBankAddress', + 'bank_code' => 'getBankCode', + 'bank_name' => 'getBankName', + 'bic' => 'getBic', + 'last4' => 'getLast4' + ]; + + /** + * 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->container['accountholder_address'] = $data['accountholder_address'] ?? null; + $this->container['accountholder_email'] = $data['accountholder_email'] ?? null; + $this->container['accountholder_name'] = $data['accountholder_name'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['bank_address'] = $data['bank_address'] ?? null; + $this->container['bank_code'] = $data['bank_code'] ?? null; + $this->container['bank_name'] = $data['bank_name'] ?? null; + $this->container['bic'] = $data['bic'] ?? null; + $this->container['last4'] = $data['last4'] ?? null; + } + + /** + * 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 accountholder_address + * + * @return string|null + */ + public function getAccountholderAddress() + { + return $this->container['accountholder_address']; + } + + /** + * Sets accountholder_address + * + * @param string|null $accountholder_address The address of the account holder. + * + * @return self + */ + public function setAccountholderAddress($accountholder_address) + { + $this->container['accountholder_address'] = $accountholder_address; + + return $this; + } + + /** + * Gets accountholder_email + * + * @return string|null + */ + public function getAccountholderEmail() + { + return $this->container['accountholder_email']; + } + + /** + * Sets accountholder_email + * + * @param string|null $accountholder_email The email of the account holder. + * + * @return self + */ + public function setAccountholderEmail($accountholder_email) + { + $this->container['accountholder_email'] = $accountholder_email; + + return $this; + } + + /** + * Gets accountholder_name + * + * @return string|null + */ + public function getAccountholderName() + { + return $this->container['accountholder_name']; + } + + /** + * Sets accountholder_name + * + * @param string|null $accountholder_name The name of the account holder. + * + * @return self + */ + public function setAccountholderName($accountholder_name) + { + $this->container['accountholder_name'] = $accountholder_name; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code The country code of the account holder. + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets bank_address + * + * @return string|null + */ + public function getBankAddress() + { + return $this->container['bank_address']; + } + + /** + * Sets bank_address + * + * @param string|null $bank_address The address of the bank. + * + * @return self + */ + public function setBankAddress($bank_address) + { + $this->container['bank_address'] = $bank_address; + + 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 code of the bank. + * + * @return self + */ + public function setBankCode($bank_code) + { + $this->container['bank_code'] = $bank_code; + + return $this; + } + + /** + * Gets bank_name + * + * @return string|null + */ + public function getBankName() + { + return $this->container['bank_name']; + } + + /** + * Sets bank_name + * + * @param string|null $bank_name The name of the bank. + * + * @return self + */ + public function setBankName($bank_name) + { + $this->container['bank_name'] = $bank_name; + + return $this; + } + + /** + * Gets bic + * + * @return string|null + */ + public function getBic() + { + return $this->container['bic']; + } + + /** + * Sets bic + * + * @param string|null $bic The BIC of the bank. + * + * @return self + */ + public function setBic($bic) + { + $this->container['bic'] = $bic; + + return $this; + } + + /** + * Gets last4 + * + * @return string|null + */ + public function getLast4() + { + return $this->container['last4']; + } + + /** + * Sets last4 + * + * @param string|null $last4 The last 4 digits of the IBAN. + * + * @return self + */ + public function setLast4($last4) + { + $this->container['last4'] = $last4; + + 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/PaymentPaymentMethodTrustly.php b/lib/Model/PaymentPaymentMethodTrustly.php new file mode 100644 index 0000000..acf3af9 --- /dev/null +++ b/lib/Model/PaymentPaymentMethodTrustly.php @@ -0,0 +1,321 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace OpenAPI\Client\Model; + +use \ArrayAccess; +use \OpenAPI\Client\ObjectSerializer; + +/** + * PaymentPaymentMethodTrustly Class Doc Comment + * + * @category Class + * @description Details from Trustly order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + */ +class PaymentPaymentMethodTrustly implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Payment-PaymentMethodTrustly'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'customer_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'customer_id' => null + ]; + + /** + * 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 attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'customer_id' => 'customerId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'customer_id' => 'setCustomerId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'customer_id' => 'getCustomerId' + ]; + + /** + * 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->container['customer_id'] = $data['customer_id'] ?? null; + } + + /** + * 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 customer_id + * + * @return string|null + */ + public function getCustomerId() + { + return $this->container['customer_id']; + } + + /** + * Sets customer_id + * + * @param string|null $customer_id The Trustly's customer ID. + * + * @return self + */ + public function setCustomerId($customer_id) + { + $this->container['customer_id'] = $customer_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/Model/PaymentRefundReason.php b/lib/Model/PaymentRefundReason.php index 1c18a02..05767a5 100644 --- a/lib/Model/PaymentRefundReason.php +++ b/lib/Model/PaymentRefundReason.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentSequence.php b/lib/Model/PaymentSequence.php index 6e7d70a..9a9a7cf 100644 --- a/lib/Model/PaymentSequence.php +++ b/lib/Model/PaymentSequence.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentSequenceRecurring.php b/lib/Model/PaymentSequenceRecurring.php index 279a7af..fa7b6e4 100644 --- a/lib/Model/PaymentSequenceRecurring.php +++ b/lib/Model/PaymentSequenceRecurring.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentSessionDetails.php b/lib/Model/PaymentSessionDetails.php index b27b305..412e4d4 100644 --- a/lib/Model/PaymentSessionDetails.php +++ b/lib/Model/PaymentSessionDetails.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentShippingDetails.php b/lib/Model/PaymentShippingDetails.php index b7a97a6..34360a1 100644 --- a/lib/Model/PaymentShippingDetails.php +++ b/lib/Model/PaymentShippingDetails.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentShop.php b/lib/Model/PaymentShop.php index d3db157..f12ba96 100644 --- a/lib/Model/PaymentShop.php +++ b/lib/Model/PaymentShop.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentStatus.php b/lib/Model/PaymentStatus.php index 3748f43..544b214 100644 --- a/lib/Model/PaymentStatus.php +++ b/lib/Model/PaymentStatus.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentTraceDetails.php b/lib/Model/PaymentTraceDetails.php index c273dbe..5f668ff 100644 --- a/lib/Model/PaymentTraceDetails.php +++ b/lib/Model/PaymentTraceDetails.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/PaymentTransactionType.php b/lib/Model/PaymentTransactionType.php index df4fca8..6f35d51 100644 --- a/lib/Model/PaymentTransactionType.php +++ b/lib/Model/PaymentTransactionType.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/RecurringPaymentRequest.php b/lib/Model/RecurringPaymentRequest.php index 9aae11f..a2d4e59 100644 --- a/lib/Model/RecurringPaymentRequest.php +++ b/lib/Model/RecurringPaymentRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -64,7 +64,8 @@ class RecurringPaymentRequest implements ModelInterface, ArrayAccess, \JsonSeria 'customer' => '\OpenAPI\Client\Model\PaymentCustomer', 'billing_details' => '\OpenAPI\Client\Model\PaymentBillingDetails', 'shipping_details' => '\OpenAPI\Client\Model\PaymentShippingDetails', - 'callback_url' => 'string' + 'callback_url' => 'string', + 'metadata' => 'object' ]; /** @@ -82,7 +83,8 @@ class RecurringPaymentRequest implements ModelInterface, ArrayAccess, \JsonSeria 'customer' => null, 'billing_details' => null, 'shipping_details' => null, - 'callback_url' => null + 'callback_url' => null, + 'metadata' => null ]; /** @@ -119,7 +121,8 @@ public static function openAPIFormats() 'customer' => 'customer', 'billing_details' => 'billingDetails', 'shipping_details' => 'shippingDetails', - 'callback_url' => 'callbackUrl' + 'callback_url' => 'callbackUrl', + 'metadata' => 'metadata' ]; /** @@ -135,7 +138,8 @@ public static function openAPIFormats() 'customer' => 'setCustomer', 'billing_details' => 'setBillingDetails', 'shipping_details' => 'setShippingDetails', - 'callback_url' => 'setCallbackUrl' + 'callback_url' => 'setCallbackUrl', + 'metadata' => 'setMetadata' ]; /** @@ -151,7 +155,8 @@ public static function openAPIFormats() 'customer' => 'getCustomer', 'billing_details' => 'getBillingDetails', 'shipping_details' => 'getShippingDetails', - 'callback_url' => 'getCallbackUrl' + 'callback_url' => 'getCallbackUrl', + 'metadata' => 'getMetadata' ]; /** @@ -219,6 +224,7 @@ public function __construct(array $data = null) $this->container['billing_details'] = $data['billing_details'] ?? null; $this->container['shipping_details'] = $data['shipping_details'] ?? null; $this->container['callback_url'] = $data['callback_url'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; } /** @@ -439,6 +445,30 @@ public function setCallbackUrl($callback_url) return $this; } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/RefundPaymentRequest.php b/lib/Model/RefundPaymentRequest.php index 2e5e96f..3ef9673 100644 --- a/lib/Model/RefundPaymentRequest.php +++ b/lib/Model/RefundPaymentRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/RegisterDomainRequest.php b/lib/Model/RegisterDomainRequest.php index 365a0d9..29226be 100644 --- a/lib/Model/RegisterDomainRequest.php +++ b/lib/Model/RegisterDomainRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/SendPaymentLinkRequest.php b/lib/Model/SendPaymentLinkRequest.php index e7d3521..39c8db8 100644 --- a/lib/Model/SendPaymentLinkRequest.php +++ b/lib/Model/SendPaymentLinkRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/SendPaymentReceiptRequest.php b/lib/Model/SendPaymentReceiptRequest.php index 37c5c51..a1897e9 100644 --- a/lib/Model/SendPaymentReceiptRequest.php +++ b/lib/Model/SendPaymentReceiptRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/SendPaymentRequest.php b/lib/Model/SendPaymentRequest.php index 614a2c6..0f619aa 100644 --- a/lib/Model/SendPaymentRequest.php +++ b/lib/Model/SendPaymentRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/Subscription.php b/lib/Model/Subscription.php index 526a9d3..9304cd4 100644 --- a/lib/Model/Subscription.php +++ b/lib/Model/Subscription.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -84,6 +84,7 @@ class Subscription implements ModelInterface, ArrayAccess, \JsonSerializable 'sequence_id' => 'string', 'callback_url' => 'string', 'payment_callback_url' => 'string', + 'metadata' => 'object', 'created_at' => 'int', 'updated_at' => 'int' ]; @@ -123,6 +124,7 @@ class Subscription implements ModelInterface, ArrayAccess, \JsonSerializable 'sequence_id' => null, 'callback_url' => null, 'payment_callback_url' => null, + 'metadata' => null, 'created_at' => 'int64', 'updated_at' => 'int64' ]; @@ -181,6 +183,7 @@ public static function openAPIFormats() 'sequence_id' => 'sequenceId', 'callback_url' => 'callbackUrl', 'payment_callback_url' => 'paymentCallbackUrl', + 'metadata' => 'metadata', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt' ]; @@ -218,6 +221,7 @@ public static function openAPIFormats() 'sequence_id' => 'setSequenceId', 'callback_url' => 'setCallbackUrl', 'payment_callback_url' => 'setPaymentCallbackUrl', + 'metadata' => 'setMetadata', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt' ]; @@ -255,6 +259,7 @@ public static function openAPIFormats() 'sequence_id' => 'getSequenceId', 'callback_url' => 'getCallbackUrl', 'payment_callback_url' => 'getPaymentCallbackUrl', + 'metadata' => 'getMetadata', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt' ]; @@ -343,6 +348,7 @@ public function __construct(array $data = null) $this->container['sequence_id'] = $data['sequence_id'] ?? null; $this->container['callback_url'] = $data['callback_url'] ?? null; $this->container['payment_callback_url'] = $data['payment_callback_url'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; } @@ -1019,6 +1025,30 @@ public function setPaymentCallbackUrl($payment_callback_url) return $this; } + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } + /** * Gets created_at * diff --git a/lib/Model/SubscriptionInterval.php b/lib/Model/SubscriptionInterval.php index 1cd9c31..84d8ca2 100644 --- a/lib/Model/SubscriptionInterval.php +++ b/lib/Model/SubscriptionInterval.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/SubscriptionLastPayment.php b/lib/Model/SubscriptionLastPayment.php index 0d989cf..52bc075 100644 --- a/lib/Model/SubscriptionLastPayment.php +++ b/lib/Model/SubscriptionLastPayment.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/SubscriptionPaymentMethod.php b/lib/Model/SubscriptionPaymentMethod.php index 0810c37..79fbc65 100644 --- a/lib/Model/SubscriptionPaymentMethod.php +++ b/lib/Model/SubscriptionPaymentMethod.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/SubscriptionPaymentMethodCard.php b/lib/Model/SubscriptionPaymentMethodCard.php index b84bc13..938c335 100644 --- a/lib/Model/SubscriptionPaymentMethodCard.php +++ b/lib/Model/SubscriptionPaymentMethodCard.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/SubscriptionStatus.php b/lib/Model/SubscriptionStatus.php index bc50808..dcec500 100644 --- a/lib/Model/SubscriptionStatus.php +++ b/lib/Model/SubscriptionStatus.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/lib/Model/UpdateSubscriptionRequest.php b/lib/Model/UpdateSubscriptionRequest.php index 169ec50..1f44980 100644 --- a/lib/Model/UpdateSubscriptionRequest.php +++ b/lib/Model/UpdateSubscriptionRequest.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ @@ -69,7 +69,8 @@ class UpdateSubscriptionRequest implements ModelInterface, ArrayAccess, \JsonSer 'payment_callback_url' => 'string', 'pause_at_period_end' => 'bool', 'cancel_at_period_end' => 'bool', - 'pause_interval_count' => 'int' + 'pause_interval_count' => 'int', + 'metadata' => 'object' ]; /** @@ -92,7 +93,8 @@ class UpdateSubscriptionRequest implements ModelInterface, ArrayAccess, \JsonSer 'payment_callback_url' => null, 'pause_at_period_end' => null, 'cancel_at_period_end' => null, - 'pause_interval_count' => 'int32' + 'pause_interval_count' => 'int32', + 'metadata' => null ]; /** @@ -134,7 +136,8 @@ public static function openAPIFormats() 'payment_callback_url' => 'paymentCallbackUrl', 'pause_at_period_end' => 'pauseAtPeriodEnd', 'cancel_at_period_end' => 'cancelAtPeriodEnd', - 'pause_interval_count' => 'pauseIntervalCount' + 'pause_interval_count' => 'pauseIntervalCount', + 'metadata' => 'metadata' ]; /** @@ -155,7 +158,8 @@ public static function openAPIFormats() 'payment_callback_url' => 'setPaymentCallbackUrl', 'pause_at_period_end' => 'setPauseAtPeriodEnd', 'cancel_at_period_end' => 'setCancelAtPeriodEnd', - 'pause_interval_count' => 'setPauseIntervalCount' + 'pause_interval_count' => 'setPauseIntervalCount', + 'metadata' => 'setMetadata' ]; /** @@ -176,7 +180,8 @@ public static function openAPIFormats() 'payment_callback_url' => 'getPaymentCallbackUrl', 'pause_at_period_end' => 'getPauseAtPeriodEnd', 'cancel_at_period_end' => 'getCancelAtPeriodEnd', - 'pause_interval_count' => 'getPauseIntervalCount' + 'pause_interval_count' => 'getPauseIntervalCount', + 'metadata' => 'getMetadata' ]; /** @@ -249,6 +254,7 @@ public function __construct(array $data = null) $this->container['pause_at_period_end'] = $data['pause_at_period_end'] ?? null; $this->container['cancel_at_period_end'] = $data['cancel_at_period_end'] ?? null; $this->container['pause_interval_count'] = $data['pause_interval_count'] ?? null; + $this->container['metadata'] = $data['metadata'] ?? null; } /** @@ -586,6 +592,30 @@ public function setPauseIntervalCount($pause_interval_count) return $this; } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format. + * + * @return self + */ + public function setMetadata($metadata) + { + $this->container['metadata'] = $metadata; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ValidateBizumPhoneRequest.php b/lib/Model/ValidateBizumPhoneRequest.php new file mode 100644 index 0000000..af39396 --- /dev/null +++ b/lib/Model/ValidateBizumPhoneRequest.php @@ -0,0 +1,386 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace OpenAPI\Client\Model; + +use \ArrayAccess; +use \OpenAPI\Client\ObjectSerializer; + +/** + * ValidateBizumPhoneRequest Class Doc Comment + * + * @category Class + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + */ +class ValidateBizumPhoneRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ValidateBizumPhoneRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'account_id' => 'string', + 'payment_id' => 'string', + 'phone_number' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'account_id' => null, + 'payment_id' => null, + 'phone_number' => null + ]; + + /** + * 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 attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', + 'payment_id' => 'paymentId', + 'phone_number' => 'phoneNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', + 'payment_id' => 'setPaymentId', + 'phone_number' => 'setPhoneNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', + 'payment_id' => 'getPaymentId', + 'phone_number' => 'getPhoneNumber' + ]; + + /** + * 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->container['account_id'] = $data['account_id'] ?? null; + $this->container['payment_id'] = $data['payment_id'] ?? null; + $this->container['phone_number'] = $data['phone_number'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['account_id'] === null) { + $invalidProperties[] = "'account_id' can't be null"; + } + if ($this->container['phone_number'] === null) { + $invalidProperties[] = "'phone_number' 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 account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id MONEI Account identifier. + * + * @return self + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets payment_id + * + * @return string|null + */ + public function getPaymentId() + { + return $this->container['payment_id']; + } + + /** + * Sets payment_id + * + * @param string|null $payment_id Unique identifier for the payment. + * + * @return self + */ + public function setPaymentId($payment_id) + { + $this->container['payment_id'] = $payment_id; + + return $this; + } + + /** + * Gets phone_number + * + * @return string + */ + public function getPhoneNumber() + { + return $this->container['phone_number']; + } + + /** + * Sets phone_number + * + * @param string $phone_number Phone number in E.164 format. + * + * @return self + */ + public function setPhoneNumber($phone_number) + { + $this->container['phone_number'] = $phone_number; + + 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/MoneiClient.php b/lib/MoneiClient.php index e93afd5..48deaa9 100644 --- a/lib/MoneiClient.php +++ b/lib/MoneiClient.php @@ -32,7 +32,7 @@ class MoneiClient /** * SDK Version. */ - const SDK_VERSION = '2.2.1'; + const SDK_VERSION = '2.2.2'; /** * @var Configuration diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 2b0cd77..9fdaafb 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -15,7 +15,7 @@ * *

The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

* - * The version of the OpenAPI document: 1.4.1 + * The version of the OpenAPI document: 1.4.2 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 */ diff --git a/test/Api/BizumApiTest.php b/test/Api/BizumApiTest.php new file mode 100644 index 0000000..3fb0e49 --- /dev/null +++ b/test/Api/BizumApiTest.php @@ -0,0 +1,85 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the endpoint. + */ + +namespace OpenAPI\Client\Test\Api; + +use \OpenAPI\Client\Configuration; +use \OpenAPI\Client\ApiException; +use \OpenAPI\Client\ObjectSerializer; +use PHPUnit\Framework\TestCase; + +/** + * BizumApiTest Class Doc Comment + * + * @category Class + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class BizumApiTest extends TestCase +{ + + /** + * Setup before running any test cases + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test case for validatePhone + * + * Validate Phone. + * + */ + public function testValidatePhone() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/BizumValidatePhone200ResponseTest.php b/test/Model/BizumValidatePhone200ResponseTest.php new file mode 100644 index 0000000..842db02 --- /dev/null +++ b/test/Model/BizumValidatePhone200ResponseTest.php @@ -0,0 +1,90 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * BizumValidatePhone200ResponseTest Class Doc Comment + * + * @category Class + * @description BizumValidatePhone200Response + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class BizumValidatePhone200ResponseTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "BizumValidatePhone200Response" + */ + public function testBizumValidatePhone200Response() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "is_valid" + */ + public function testPropertyIsValid() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentPaymentMethodKlarnaTest.php b/test/Model/PaymentPaymentMethodKlarnaTest.php new file mode 100644 index 0000000..6243538 --- /dev/null +++ b/test/Model/PaymentPaymentMethodKlarnaTest.php @@ -0,0 +1,99 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * PaymentPaymentMethodKlarnaTest Class Doc Comment + * + * @category Class + * @description Details from Klarna order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class PaymentPaymentMethodKlarnaTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "PaymentPaymentMethodKlarna" + */ + public function testPaymentPaymentMethodKlarna() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "billing_category" + */ + public function testPropertyBillingCategory() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "auth_payment_method" + */ + public function testPropertyAuthPaymentMethod() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentPaymentMethodMbwayTest.php b/test/Model/PaymentPaymentMethodMbwayTest.php new file mode 100644 index 0000000..cc7822a --- /dev/null +++ b/test/Model/PaymentPaymentMethodMbwayTest.php @@ -0,0 +1,90 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * PaymentPaymentMethodMbwayTest Class Doc Comment + * + * @category Class + * @description Details from MBWay order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class PaymentPaymentMethodMbwayTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "PaymentPaymentMethodMbway" + */ + public function testPaymentPaymentMethodMbway() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "phone_number" + */ + public function testPropertyPhoneNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentPaymentMethodSepaTest.php b/test/Model/PaymentPaymentMethodSepaTest.php new file mode 100644 index 0000000..7ccf7b1 --- /dev/null +++ b/test/Model/PaymentPaymentMethodSepaTest.php @@ -0,0 +1,162 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * PaymentPaymentMethodSepaTest Class Doc Comment + * + * @category Class + * @description Details from SEPA order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class PaymentPaymentMethodSepaTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "PaymentPaymentMethodSepa" + */ + public function testPaymentPaymentMethodSepa() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "accountholder_address" + */ + public function testPropertyAccountholderAddress() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "accountholder_email" + */ + public function testPropertyAccountholderEmail() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "accountholder_name" + */ + public function testPropertyAccountholderName() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "country_code" + */ + public function testPropertyCountryCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bank_address" + */ + public function testPropertyBankAddress() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bank_code" + */ + public function testPropertyBankCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bank_name" + */ + public function testPropertyBankName() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bic" + */ + public function testPropertyBic() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "last4" + */ + public function testPropertyLast4() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentPaymentMethodTrustlyTest.php b/test/Model/PaymentPaymentMethodTrustlyTest.php new file mode 100644 index 0000000..f237e6c --- /dev/null +++ b/test/Model/PaymentPaymentMethodTrustlyTest.php @@ -0,0 +1,90 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * PaymentPaymentMethodTrustlyTest Class Doc Comment + * + * @category Class + * @description Details from Trustly order used as payment method at the time of the transaction. + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class PaymentPaymentMethodTrustlyTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "PaymentPaymentMethodTrustly" + */ + public function testPaymentPaymentMethodTrustly() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "customer_id" + */ + public function testPropertyCustomerId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/ValidateBizumPhoneRequestTest.php b/test/Model/ValidateBizumPhoneRequestTest.php new file mode 100644 index 0000000..315893d --- /dev/null +++ b/test/Model/ValidateBizumPhoneRequestTest.php @@ -0,0 +1,108 @@ +The MONEI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL:

https://api.monei.com/v1

Client libraries:

Important:

If you are not using our official SDKs, you need to provide a valid User-Agent header in each request, otherwise your requests will be rejected.

+ * + * The version of the OpenAPI document: 1.4.2 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 6.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * ValidateBizumPhoneRequestTest Class Doc Comment + * + * @category Class + * @description ValidateBizumPhoneRequest + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class ValidateBizumPhoneRequestTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "ValidateBizumPhoneRequest" + */ + public function testValidateBizumPhoneRequest() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "account_id" + */ + public function testPropertyAccountId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "payment_id" + */ + public function testPropertyPaymentId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "phone_number" + */ + public function testPropertyPhoneNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +}