From 3138401d6a82d329f76cf4891001791c8804b33c Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Thu, 6 Nov 2025 08:35:57 +0000 Subject: [PATCH 1/2] [adyen-sdk-automation] automated changes --- .../Model/BinLookup/ObjectSerializer.php | 6 +- src/Adyen/Model/BinLookup/Recurring.php | 6 +- src/Adyen/Model/Checkout/AchDetails.php | 31 + .../Model/Checkout/AdditionalDataLevel23.php | 4 +- .../Checkout/AdditionalDataSubMerchant.php | 2 +- src/Adyen/Model/Checkout/AffirmDetails.php | 31 + src/Adyen/Model/Checkout/AfterpayDetails.php | 31 + src/Adyen/Model/Checkout/AmazonPayDetails.php | 31 + src/Adyen/Model/Checkout/AncvDetails.php | 31 + .../Model/Checkout/AndroidPayDetails.php | 31 + src/Adyen/Model/Checkout/ApplePayDetails.php | 31 + .../Model/Checkout/ApplePayDonations.php | 31 + .../Model/Checkout/BacsDirectDebitDetails.php | 31 + .../Model/Checkout/BalanceCheckRequest.php | 2 +- src/Adyen/Model/Checkout/BillDeskDetails.php | 31 + src/Adyen/Model/Checkout/BlikDetails.php | 31 + src/Adyen/Model/Checkout/CardDetails.php | 93 ++ .../Model/Checkout/CardDetailsRequest.php | 7 +- src/Adyen/Model/Checkout/CardDonations.php | 93 ++ src/Adyen/Model/Checkout/CashAppDetails.php | 31 + src/Adyen/Model/Checkout/CellulantDetails.php | 31 + .../Checkout/CheckoutBankTransferAction.php | 62 + .../Model/Checkout/CheckoutPaymentMethod.php | 130 ++- .../Checkout/CreateCheckoutSessionRequest.php | 6 +- .../CreateCheckoutSessionResponse.php | 6 +- src/Adyen/Model/Checkout/DokuDetails.php | 31 + .../Model/Checkout/DonationPaymentMethod.php | 95 +- .../Model/Checkout/DonationPaymentRequest.php | 13 +- src/Adyen/Model/Checkout/DragonpayDetails.php | 31 + .../Model/Checkout/EBankingFinlandDetails.php | 31 + .../Model/Checkout/EcontextVoucherDetails.php | 31 + src/Adyen/Model/Checkout/EftDetails.php | 31 + src/Adyen/Model/Checkout/FastlaneDetails.php | 31 + .../GenericIssuerPaymentMethodDetails.php | 33 + src/Adyen/Model/Checkout/GooglePayDetails.php | 31 + .../Model/Checkout/GooglePayDonations.php | 31 + src/Adyen/Model/Checkout/IdealDetails.php | 31 + src/Adyen/Model/Checkout/IdealDonations.php | 31 + src/Adyen/Model/Checkout/KlarnaDetails.php | 31 + .../Model/Checkout/MasterpassDetails.php | 31 + src/Adyen/Model/Checkout/MbwayDetails.php | 35 +- src/Adyen/Model/Checkout/MobilePayDetails.php | 31 + src/Adyen/Model/Checkout/MolPayDetails.php | 31 + src/Adyen/Model/Checkout/ObjectSerializer.php | 6 +- .../Model/Checkout/OpenInvoiceDetails.php | 31 + .../PayByBankAISDirectDebitDetails.php | 31 + src/Adyen/Model/Checkout/PayByBankDetails.php | 31 + src/Adyen/Model/Checkout/PayPalDetails.php | 31 + src/Adyen/Model/Checkout/PayPayDetails.php | 31 + src/Adyen/Model/Checkout/PayToDetails.php | 31 + .../Model/Checkout/PayToPaymentMethod.php | 1 - src/Adyen/Model/Checkout/PayUUpiDetails.php | 31 + .../Model/Checkout/PayWithGoogleDetails.php | 31 + .../Model/Checkout/PayWithGoogleDonations.php | 31 + src/Adyen/Model/Checkout/PaymentDetails.php | 41 +- .../Model/Checkout/PaymentDetailsResponse.php | 31 + src/Adyen/Model/Checkout/PaymentRequest.php | 70 +- src/Adyen/Model/Checkout/PaymentResponse.php | 31 + .../Model/Checkout/PaymentResponseAction.php | 62 + .../Model/Checkout/PaymentValidations.php | 404 +++++++ .../PaymentValidationsNameResponse.php | 501 ++++++++ ...aymentValidationsNameResultRawResponse.php | 528 +++++++++ .../PaymentValidationsNameResultResponse.php | 497 ++++++++ .../Checkout/PaymentValidationsResponse.php | 404 +++++++ src/Adyen/Model/Checkout/PixDetails.php | 31 + src/Adyen/Model/Checkout/PseDetails.php | 31 + .../Model/Checkout/RakutenPayDetails.php | 31 + src/Adyen/Model/Checkout/RatepayDetails.php | 31 + src/Adyen/Model/Checkout/Recurring.php | 6 +- .../Checkout/ResponseAdditionalDataSepa.php | 31 + .../Checkout/ResponseAdditionalDataSwish.php | 404 +++++++ src/Adyen/Model/Checkout/Result.php | 2 +- src/Adyen/Model/Checkout/RivertyDetails.php | 31 + .../Model/Checkout/SamsungPayDetails.php | 31 + .../Model/Checkout/SepaDirectDebitDetails.php | 62 + src/Adyen/Model/Checkout/ShopperName.php | 441 ++++++++ src/Adyen/Model/Checkout/Split.php | 2 +- .../Checkout/StoredPaymentMethodDetails.php | 31 + .../Checkout/StoredPaymentMethodResource.php | 31 + src/Adyen/Model/Checkout/TokenMandate.php | 1006 +++++++++++++++++ src/Adyen/Model/Checkout/TwintDetails.php | 31 + src/Adyen/Model/Checkout/UPIPaymentMethod.php | 1 - .../Model/Checkout/UpiCollectDetails.php | 38 +- src/Adyen/Model/Checkout/UpiIntentDetails.php | 62 + src/Adyen/Model/Checkout/UpiQrDetails.php | 626 ++++++++++ .../Checkout/ValidateShopperIdResponse.php | 2 +- src/Adyen/Model/Checkout/VippsDetails.php | 33 +- .../Model/Checkout/VisaCheckoutDetails.php | 31 + src/Adyen/Model/Checkout/WeChatPayDetails.php | 31 + .../Checkout/WeChatPayMiniProgramDetails.php | 95 ++ src/Adyen/Model/Checkout/ZipDetails.php | 31 + src/Adyen/Model/Disputes/ObjectSerializer.php | 6 +- .../Model/Payments/AdditionalDataLevel23.php | 4 +- .../Payments/AdditionalDataSubMerchant.php | 2 +- src/Adyen/Model/Payments/ObjectSerializer.php | 6 +- src/Adyen/Model/Payments/PaymentRequest.php | 2 +- src/Adyen/Model/Payments/PaymentRequest3d.php | 2 +- .../Model/Payments/PaymentRequest3ds2.php | 2 +- src/Adyen/Model/Payments/Recurring.php | 6 +- .../Payments/ResponseAdditionalDataSepa.php | 31 + .../Payments/ResponseAdditionalDataSwish.php | 404 +++++++ src/Adyen/Model/Payments/Split.php | 2 +- .../Model/PaymentsApp/ObjectSerializer.php | 6 +- src/Adyen/Model/Payout/ObjectSerializer.php | 6 +- src/Adyen/Model/Payout/Recurring.php | 6 +- .../Payout/ResponseAdditionalDataSwish.php | 404 +++++++ .../Model/PosMobile/ObjectSerializer.php | 6 +- .../Model/Recurring/ObjectSerializer.php | 6 +- src/Adyen/Model/Recurring/Recurring.php | 6 +- .../Model/StoredValue/ObjectSerializer.php | 6 +- src/Adyen/Service/Checkout/DonationsApi.php | 2 +- src/Adyen/Service/Checkout/RecurringApi.php | 3 +- src/Adyen/Service/Checkout/UtilityApi.php | 2 +- src/Adyen/Service/RecurringApi.php | 8 +- 114 files changed, 8272 insertions(+), 124 deletions(-) create mode 100644 src/Adyen/Model/Checkout/PaymentValidations.php create mode 100644 src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php create mode 100644 src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php create mode 100644 src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php create mode 100644 src/Adyen/Model/Checkout/PaymentValidationsResponse.php create mode 100644 src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php create mode 100644 src/Adyen/Model/Checkout/ShopperName.php create mode 100644 src/Adyen/Model/Checkout/TokenMandate.php create mode 100644 src/Adyen/Model/Checkout/UpiQrDetails.php create mode 100644 src/Adyen/Model/Payments/ResponseAdditionalDataSwish.php create mode 100644 src/Adyen/Model/Payout/ResponseAdditionalDataSwish.php diff --git a/src/Adyen/Model/BinLookup/ObjectSerializer.php b/src/Adyen/Model/BinLookup/ObjectSerializer.php index 67b57c23b..d9c9dec53 100644 --- a/src/Adyen/Model/BinLookup/ObjectSerializer.php +++ b/src/Adyen/Model/BinLookup/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/BinLookup/Recurring.php b/src/Adyen/Model/BinLookup/Recurring.php index 2aef2714c..ea17995ab 100644 --- a/src/Adyen/Model/BinLookup/Recurring.php +++ b/src/Adyen/Model/BinLookup/Recurring.php @@ -237,8 +237,10 @@ public function getModelName() } public const CONTRACT_ONECLICK = 'ONECLICK'; + public const CONTRACT_ONECLICKRECURRING = 'ONECLICK,RECURRING'; public const CONTRACT_RECURRING = 'RECURRING'; public const CONTRACT_PAYOUT = 'PAYOUT'; + public const CONTRACT_EXTERNAL = 'EXTERNAL'; public const TOKEN_SERVICE_VISATOKENSERVICE = 'VISATOKENSERVICE'; public const TOKEN_SERVICE_MCTOKENSERVICE = 'MCTOKENSERVICE'; public const TOKEN_SERVICE_AMEXTOKENSERVICE = 'AMEXTOKENSERVICE'; @@ -253,8 +255,10 @@ public function getContractAllowableValues() { return [ self::CONTRACT_ONECLICK, + self::CONTRACT_ONECLICKRECURRING, self::CONTRACT_RECURRING, self::CONTRACT_PAYOUT, + self::CONTRACT_EXTERNAL, ]; } /** @@ -366,7 +370,7 @@ public function getContract() /** * Sets contract * - * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. * * @return self */ diff --git a/src/Adyen/Model/Checkout/AchDetails.php b/src/Adyen/Model/Checkout/AchDetails.php index 87369a829..962fd7705 100644 --- a/src/Adyen/Model/Checkout/AchDetails.php +++ b/src/Adyen/Model/Checkout/AchDetails.php @@ -50,6 +50,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedBankLocationId' => 'string', 'ownerName' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'transferInstrumentId' => 'string', 'type' => 'string' @@ -72,6 +73,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedBankLocationId' => null, 'ownerName' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'transferInstrumentId' => null, 'type' => null @@ -92,6 +94,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedBankLocationId' => false, 'ownerName' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'transferInstrumentId' => false, 'type' => false @@ -192,6 +195,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedBankLocationId' => 'encryptedBankLocationId', 'ownerName' => 'ownerName', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'transferInstrumentId' => 'transferInstrumentId', 'type' => 'type' @@ -212,6 +216,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedBankLocationId' => 'setEncryptedBankLocationId', 'ownerName' => 'setOwnerName', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'transferInstrumentId' => 'setTransferInstrumentId', 'type' => 'setType' @@ -232,6 +237,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedBankLocationId' => 'getEncryptedBankLocationId', 'ownerName' => 'getOwnerName', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'transferInstrumentId' => 'getTransferInstrumentId', 'type' => 'getType' @@ -355,6 +361,7 @@ public function __construct(?array $data = null) $this->setIfExists('encryptedBankLocationId', $data ?? [], null); $this->setIfExists('ownerName', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('transferInstrumentId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -667,6 +674,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/AdditionalDataLevel23.php b/src/Adyen/Model/Checkout/AdditionalDataLevel23.php index adc11d915..019cd7aca 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataLevel23.php +++ b/src/Adyen/Model/Checkout/AdditionalDataLevel23.php @@ -542,7 +542,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() /** * Sets enhancedSchemeDataItemDetailLineItemNrCommodityCode * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * * @return self */ @@ -782,7 +782,7 @@ public function getEnhancedSchemeDataTotalTaxAmount() /** * Sets enhancedSchemeDataTotalTaxAmount * - * @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero. * * @return self */ diff --git a/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php b/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php index 0044c3500..4ba084592 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php +++ b/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php @@ -531,7 +531,7 @@ public function getSubMerchantSubSellerSubSellerNrPhoneNumber() /** * Sets subMerchantSubSellerSubSellerNrPhoneNumber * - * @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters * * @return self */ diff --git a/src/Adyen/Model/Checkout/AffirmDetails.php b/src/Adyen/Model/Checkout/AffirmDetails.php index 692ac9533..3d57ba0d6 100644 --- a/src/Adyen/Model/Checkout/AffirmDetails.php +++ b/src/Adyen/Model/Checkout/AffirmDetails.php @@ -42,6 +42,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -54,6 +55,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'sdkData' => null, 'type' => null ]; @@ -64,6 +66,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'sdkData' => false, 'type' => false ]; @@ -154,6 +157,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -164,6 +168,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -174,6 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -247,6 +253,7 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -325,6 +332,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/AfterpayDetails.php b/src/Adyen/Model/Checkout/AfterpayDetails.php index a7eb671b7..16a220742 100644 --- a/src/Adyen/Model/Checkout/AfterpayDetails.php +++ b/src/Adyen/Model/Checkout/AfterpayDetails.php @@ -46,6 +46,7 @@ class AfterpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => 'string', 'personalDetails' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -63,6 +64,7 @@ class AfterpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => null, 'personalDetails' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -78,6 +80,7 @@ class AfterpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => false, 'personalDetails' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -173,6 +176,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'deliveryAddress', 'personalDetails' => 'personalDetails', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -188,6 +192,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'setDeliveryAddress', 'personalDetails' => 'setPersonalDetails', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'getDeliveryAddress', 'personalDetails' => 'getPersonalDetails', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -287,6 +293,7 @@ public function __construct(?array $data = null) $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -467,6 +474,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/AmazonPayDetails.php b/src/Adyen/Model/Checkout/AmazonPayDetails.php index 128e85800..8a3be1137 100644 --- a/src/Adyen/Model/Checkout/AmazonPayDetails.php +++ b/src/Adyen/Model/Checkout/AmazonPayDetails.php @@ -44,6 +44,7 @@ class AmazonPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'amazonPayToken' => 'string', 'checkoutAttemptId' => 'string', 'checkoutSessionId' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -58,6 +59,7 @@ class AmazonPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'amazonPayToken' => null, 'checkoutAttemptId' => null, 'checkoutSessionId' => null, + 'sdkData' => null, 'type' => null ]; @@ -70,6 +72,7 @@ class AmazonPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'amazonPayToken' => false, 'checkoutAttemptId' => false, 'checkoutSessionId' => false, + 'sdkData' => false, 'type' => false ]; @@ -162,6 +165,7 @@ public function isNullableSetToNull(string $property): bool 'amazonPayToken' => 'amazonPayToken', 'checkoutAttemptId' => 'checkoutAttemptId', 'checkoutSessionId' => 'checkoutSessionId', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -174,6 +178,7 @@ public function isNullableSetToNull(string $property): bool 'amazonPayToken' => 'setAmazonPayToken', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'checkoutSessionId' => 'setCheckoutSessionId', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -186,6 +191,7 @@ public function isNullableSetToNull(string $property): bool 'amazonPayToken' => 'getAmazonPayToken', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'checkoutSessionId' => 'getCheckoutSessionId', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -261,6 +267,7 @@ public function __construct(?array $data = null) $this->setIfExists('amazonPayToken', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('checkoutSessionId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -387,6 +394,30 @@ public function setCheckoutSessionId($checkoutSessionId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/AncvDetails.php b/src/Adyen/Model/Checkout/AncvDetails.php index 2328f5c89..cb2084dd3 100644 --- a/src/Adyen/Model/Checkout/AncvDetails.php +++ b/src/Adyen/Model/Checkout/AncvDetails.php @@ -44,6 +44,7 @@ class AncvDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'beneficiaryId' => 'string', 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class AncvDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'beneficiaryId' => null, 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class AncvDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'beneficiaryId' => false, 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'beneficiaryId' => 'beneficiaryId', 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'beneficiaryId' => 'setBeneficiaryId', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'beneficiaryId' => 'getBeneficiaryId', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -267,6 +273,7 @@ public function __construct(?array $data = null) $this->setIfExists('beneficiaryId', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -396,6 +403,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/AndroidPayDetails.php b/src/Adyen/Model/Checkout/AndroidPayDetails.php index 05ff30f33..53101b3bd 100644 --- a/src/Adyen/Model/Checkout/AndroidPayDetails.php +++ b/src/Adyen/Model/Checkout/AndroidPayDetails.php @@ -42,6 +42,7 @@ class AndroidPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -54,6 +55,7 @@ class AndroidPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'sdkData' => null, 'type' => null ]; @@ -64,6 +66,7 @@ class AndroidPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'sdkData' => false, 'type' => false ]; @@ -154,6 +157,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -164,6 +168,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -174,6 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -247,6 +253,7 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -325,6 +332,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/ApplePayDetails.php b/src/Adyen/Model/Checkout/ApplePayDetails.php index 07db026b5..79e435e00 100644 --- a/src/Adyen/Model/Checkout/ApplePayDetails.php +++ b/src/Adyen/Model/Checkout/ApplePayDetails.php @@ -45,6 +45,7 @@ class ApplePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'fundingSource' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -61,6 +62,7 @@ class ApplePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'fundingSource' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -75,6 +77,7 @@ class ApplePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'fundingSource' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -169,6 +172,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'fundingSource' => 'fundingSource', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -183,6 +187,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'fundingSource' => 'setFundingSource', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -197,6 +202,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'fundingSource' => 'getFundingSource', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -288,6 +294,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('fundingSource', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -463,6 +470,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/ApplePayDonations.php b/src/Adyen/Model/Checkout/ApplePayDonations.php index ae4eb0302..ac7f659bb 100644 --- a/src/Adyen/Model/Checkout/ApplePayDonations.php +++ b/src/Adyen/Model/Checkout/ApplePayDonations.php @@ -45,6 +45,7 @@ class ApplePayDonations implements ModelInterface, ArrayAccess, \JsonSerializabl 'checkoutAttemptId' => 'string', 'fundingSource' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -61,6 +62,7 @@ class ApplePayDonations implements ModelInterface, ArrayAccess, \JsonSerializabl 'checkoutAttemptId' => null, 'fundingSource' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -75,6 +77,7 @@ class ApplePayDonations implements ModelInterface, ArrayAccess, \JsonSerializabl 'checkoutAttemptId' => false, 'fundingSource' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -169,6 +172,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'fundingSource' => 'fundingSource', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -183,6 +187,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'fundingSource' => 'setFundingSource', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -197,6 +202,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'fundingSource' => 'getFundingSource', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -288,6 +294,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('fundingSource', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -463,6 +470,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php b/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php index 11ba49279..7f32dbada 100644 --- a/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php +++ b/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php @@ -46,6 +46,7 @@ class BacsDirectDebitDetails implements ModelInterface, ArrayAccess, \JsonSerial 'checkoutAttemptId' => 'string', 'holderName' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'transferInstrumentId' => 'string', 'type' => 'string' @@ -64,6 +65,7 @@ class BacsDirectDebitDetails implements ModelInterface, ArrayAccess, \JsonSerial 'checkoutAttemptId' => null, 'holderName' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'transferInstrumentId' => null, 'type' => null @@ -80,6 +82,7 @@ class BacsDirectDebitDetails implements ModelInterface, ArrayAccess, \JsonSerial 'checkoutAttemptId' => false, 'holderName' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'transferInstrumentId' => false, 'type' => false @@ -176,6 +179,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'holderName' => 'holderName', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'transferInstrumentId' => 'transferInstrumentId', 'type' => 'type' @@ -192,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'holderName' => 'setHolderName', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'transferInstrumentId' => 'setTransferInstrumentId', 'type' => 'setType' @@ -208,6 +213,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'holderName' => 'getHolderName', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'transferInstrumentId' => 'getTransferInstrumentId', 'type' => 'getType' @@ -287,6 +293,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('holderName', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('transferInstrumentId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -465,6 +472,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/BalanceCheckRequest.php b/src/Adyen/Model/Checkout/BalanceCheckRequest.php index 9cc709ae5..dbbf001e9 100644 --- a/src/Adyen/Model/Checkout/BalanceCheckRequest.php +++ b/src/Adyen/Model/Checkout/BalanceCheckRequest.php @@ -1008,7 +1008,7 @@ public function getLocalizedShopperStatement() /** * Sets localizedShopperStatement * - * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. * * @return self */ diff --git a/src/Adyen/Model/Checkout/BillDeskDetails.php b/src/Adyen/Model/Checkout/BillDeskDetails.php index 476316c29..d61f349e2 100644 --- a/src/Adyen/Model/Checkout/BillDeskDetails.php +++ b/src/Adyen/Model/Checkout/BillDeskDetails.php @@ -43,6 +43,7 @@ class BillDeskDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'issuer' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -56,6 +57,7 @@ class BillDeskDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'issuer' => null, + 'sdkData' => null, 'type' => null ]; @@ -67,6 +69,7 @@ class BillDeskDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'issuer' => false, + 'sdkData' => false, 'type' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -256,6 +262,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -364,6 +371,30 @@ public function setIssuer($issuer) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/BlikDetails.php b/src/Adyen/Model/Checkout/BlikDetails.php index fc3ee3047..a9aa84798 100644 --- a/src/Adyen/Model/Checkout/BlikDetails.php +++ b/src/Adyen/Model/Checkout/BlikDetails.php @@ -44,6 +44,7 @@ class BlikDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'blikCode' => 'string', 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class BlikDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'blikCode' => null, 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class BlikDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'blikCode' => false, 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'blikCode' => 'blikCode', 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'blikCode' => 'setBlikCode', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'blikCode' => 'getBlikCode', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -267,6 +273,7 @@ public function __construct(?array $data = null) $this->setIfExists('blikCode', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -396,6 +403,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/CardDetails.php b/src/Adyen/Model/Checkout/CardDetails.php index 29c5d6c5d..25323707a 100644 --- a/src/Adyen/Model/Checkout/CardDetails.php +++ b/src/Adyen/Model/Checkout/CardDetails.php @@ -41,6 +41,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'billingSequenceNumber' => 'string', 'brand' => 'string', 'checkoutAttemptId' => 'string', 'cupsecureplusSmscode' => 'string', @@ -49,6 +50,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedCardNumber' => 'string', 'encryptedExpiryMonth' => 'string', 'encryptedExpiryYear' => 'string', + 'encryptedPassword' => 'string', 'encryptedSecurityCode' => 'string', 'expiryMonth' => 'string', 'expiryYear' => 'string', @@ -58,6 +60,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'networkPaymentReference' => 'string', 'number' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'shopperNotificationReference' => 'string', 'srcCorrelationId' => 'string', 'srcDigitalCardId' => 'string', @@ -76,6 +79,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'billingSequenceNumber' => null, 'brand' => null, 'checkoutAttemptId' => null, 'cupsecureplusSmscode' => null, @@ -84,6 +88,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedCardNumber' => null, 'encryptedExpiryMonth' => null, 'encryptedExpiryYear' => null, + 'encryptedPassword' => null, 'encryptedSecurityCode' => null, 'expiryMonth' => null, 'expiryYear' => null, @@ -93,6 +98,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'networkPaymentReference' => null, 'number' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'shopperNotificationReference' => null, 'srcCorrelationId' => null, 'srcDigitalCardId' => null, @@ -109,6 +115,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ + 'billingSequenceNumber' => false, 'brand' => false, 'checkoutAttemptId' => false, 'cupsecureplusSmscode' => false, @@ -117,6 +124,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedCardNumber' => false, 'encryptedExpiryMonth' => false, 'encryptedExpiryYear' => false, + 'encryptedPassword' => false, 'encryptedSecurityCode' => false, 'expiryMonth' => false, 'expiryYear' => false, @@ -126,6 +134,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'networkPaymentReference' => false, 'number' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'shopperNotificationReference' => false, 'srcCorrelationId' => false, 'srcDigitalCardId' => false, @@ -222,6 +231,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'billingSequenceNumber' => 'billingSequenceNumber', 'brand' => 'brand', 'checkoutAttemptId' => 'checkoutAttemptId', 'cupsecureplusSmscode' => 'cupsecureplus.smscode', @@ -230,6 +240,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'encryptedCardNumber', 'encryptedExpiryMonth' => 'encryptedExpiryMonth', 'encryptedExpiryYear' => 'encryptedExpiryYear', + 'encryptedPassword' => 'encryptedPassword', 'encryptedSecurityCode' => 'encryptedSecurityCode', 'expiryMonth' => 'expiryMonth', 'expiryYear' => 'expiryYear', @@ -239,6 +250,7 @@ public function isNullableSetToNull(string $property): bool 'networkPaymentReference' => 'networkPaymentReference', 'number' => 'number', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'shopperNotificationReference' => 'shopperNotificationReference', 'srcCorrelationId' => 'srcCorrelationId', 'srcDigitalCardId' => 'srcDigitalCardId', @@ -255,6 +267,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'billingSequenceNumber' => 'setBillingSequenceNumber', 'brand' => 'setBrand', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'cupsecureplusSmscode' => 'setCupsecureplusSmscode', @@ -263,6 +276,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'setEncryptedCardNumber', 'encryptedExpiryMonth' => 'setEncryptedExpiryMonth', 'encryptedExpiryYear' => 'setEncryptedExpiryYear', + 'encryptedPassword' => 'setEncryptedPassword', 'encryptedSecurityCode' => 'setEncryptedSecurityCode', 'expiryMonth' => 'setExpiryMonth', 'expiryYear' => 'setExpiryYear', @@ -272,6 +286,7 @@ public function isNullableSetToNull(string $property): bool 'networkPaymentReference' => 'setNetworkPaymentReference', 'number' => 'setNumber', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'shopperNotificationReference' => 'setShopperNotificationReference', 'srcCorrelationId' => 'setSrcCorrelationId', 'srcDigitalCardId' => 'setSrcDigitalCardId', @@ -288,6 +303,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'billingSequenceNumber' => 'getBillingSequenceNumber', 'brand' => 'getBrand', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'cupsecureplusSmscode' => 'getCupsecureplusSmscode', @@ -296,6 +312,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'getEncryptedCardNumber', 'encryptedExpiryMonth' => 'getEncryptedExpiryMonth', 'encryptedExpiryYear' => 'getEncryptedExpiryYear', + 'encryptedPassword' => 'getEncryptedPassword', 'encryptedSecurityCode' => 'getEncryptedSecurityCode', 'expiryMonth' => 'getExpiryMonth', 'expiryYear' => 'getExpiryYear', @@ -305,6 +322,7 @@ public function isNullableSetToNull(string $property): bool 'networkPaymentReference' => 'getNetworkPaymentReference', 'number' => 'getNumber', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'shopperNotificationReference' => 'getShopperNotificationReference', 'srcCorrelationId' => 'getSrcCorrelationId', 'srcDigitalCardId' => 'getSrcDigitalCardId', @@ -408,6 +426,7 @@ public function getTypeAllowableValues() */ public function __construct(?array $data = null) { + $this->setIfExists('billingSequenceNumber', $data ?? [], null); $this->setIfExists('brand', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('cupsecureplusSmscode', $data ?? [], null); @@ -416,6 +435,7 @@ public function __construct(?array $data = null) $this->setIfExists('encryptedCardNumber', $data ?? [], null); $this->setIfExists('encryptedExpiryMonth', $data ?? [], null); $this->setIfExists('encryptedExpiryYear', $data ?? [], null); + $this->setIfExists('encryptedPassword', $data ?? [], null); $this->setIfExists('encryptedSecurityCode', $data ?? [], null); $this->setIfExists('expiryMonth', $data ?? [], null); $this->setIfExists('expiryYear', $data ?? [], null); @@ -425,6 +445,7 @@ public function __construct(?array $data = null) $this->setIfExists('networkPaymentReference', $data ?? [], null); $this->setIfExists('number', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperNotificationReference', $data ?? [], null); $this->setIfExists('srcCorrelationId', $data ?? [], null); $this->setIfExists('srcDigitalCardId', $data ?? [], null); @@ -495,6 +516,30 @@ public function valid() } + /** + * Gets billingSequenceNumber + * + * @return string|null + */ + public function getBillingSequenceNumber() + { + return $this->container['billingSequenceNumber']; + } + + /** + * Sets billingSequenceNumber + * + * @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * + * @return self + */ + public function setBillingSequenceNumber($billingSequenceNumber) + { + $this->container['billingSequenceNumber'] = $billingSequenceNumber; + + return $this; + } + /** * Gets brand * @@ -689,6 +734,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear) return $this; } + /** + * Gets encryptedPassword + * + * @return string|null + */ + public function getEncryptedPassword() + { + return $this->container['encryptedPassword']; + } + + /** + * Sets encryptedPassword + * + * @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @return self + */ + public function setEncryptedPassword($encryptedPassword) + { + $this->container['encryptedPassword'] = $encryptedPassword; + + return $this; + } + /** * Gets encryptedSecurityCode * @@ -917,6 +986,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperNotificationReference * diff --git a/src/Adyen/Model/Checkout/CardDetailsRequest.php b/src/Adyen/Model/Checkout/CardDetailsRequest.php index 5939266ab..e067d8ad3 100644 --- a/src/Adyen/Model/Checkout/CardDetailsRequest.php +++ b/src/Adyen/Model/Checkout/CardDetailsRequest.php @@ -286,9 +286,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['cardNumber'] === null) { - $invalidProperties[] = "'cardNumber' can't be null"; - } if ($this->container['merchantAccount'] === null) { $invalidProperties[] = "'merchantAccount' can't be null"; } @@ -310,7 +307,7 @@ public function valid() /** * Gets cardNumber * - * @return string + * @return string|null */ public function getCardNumber() { @@ -320,7 +317,7 @@ public function getCardNumber() /** * Sets cardNumber * - * @param string $cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. + * @param string|null $cardNumber A minimum of the first six digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field. * * @return self */ diff --git a/src/Adyen/Model/Checkout/CardDonations.php b/src/Adyen/Model/Checkout/CardDonations.php index ce330d4f3..6c8c6475e 100644 --- a/src/Adyen/Model/Checkout/CardDonations.php +++ b/src/Adyen/Model/Checkout/CardDonations.php @@ -41,6 +41,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'billingSequenceNumber' => 'string', 'brand' => 'string', 'checkoutAttemptId' => 'string', 'cupsecureplusSmscode' => 'string', @@ -49,6 +50,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedCardNumber' => 'string', 'encryptedExpiryMonth' => 'string', 'encryptedExpiryYear' => 'string', + 'encryptedPassword' => 'string', 'encryptedSecurityCode' => 'string', 'expiryMonth' => 'string', 'expiryYear' => 'string', @@ -58,6 +60,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'networkPaymentReference' => 'string', 'number' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'shopperNotificationReference' => 'string', 'srcCorrelationId' => 'string', 'srcDigitalCardId' => 'string', @@ -76,6 +79,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'billingSequenceNumber' => null, 'brand' => null, 'checkoutAttemptId' => null, 'cupsecureplusSmscode' => null, @@ -84,6 +88,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedCardNumber' => null, 'encryptedExpiryMonth' => null, 'encryptedExpiryYear' => null, + 'encryptedPassword' => null, 'encryptedSecurityCode' => null, 'expiryMonth' => null, 'expiryYear' => null, @@ -93,6 +98,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'networkPaymentReference' => null, 'number' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'shopperNotificationReference' => null, 'srcCorrelationId' => null, 'srcDigitalCardId' => null, @@ -109,6 +115,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ + 'billingSequenceNumber' => false, 'brand' => false, 'checkoutAttemptId' => false, 'cupsecureplusSmscode' => false, @@ -117,6 +124,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'encryptedCardNumber' => false, 'encryptedExpiryMonth' => false, 'encryptedExpiryYear' => false, + 'encryptedPassword' => false, 'encryptedSecurityCode' => false, 'expiryMonth' => false, 'expiryYear' => false, @@ -126,6 +134,7 @@ class CardDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'networkPaymentReference' => false, 'number' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'shopperNotificationReference' => false, 'srcCorrelationId' => false, 'srcDigitalCardId' => false, @@ -222,6 +231,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'billingSequenceNumber' => 'billingSequenceNumber', 'brand' => 'brand', 'checkoutAttemptId' => 'checkoutAttemptId', 'cupsecureplusSmscode' => 'cupsecureplus.smscode', @@ -230,6 +240,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'encryptedCardNumber', 'encryptedExpiryMonth' => 'encryptedExpiryMonth', 'encryptedExpiryYear' => 'encryptedExpiryYear', + 'encryptedPassword' => 'encryptedPassword', 'encryptedSecurityCode' => 'encryptedSecurityCode', 'expiryMonth' => 'expiryMonth', 'expiryYear' => 'expiryYear', @@ -239,6 +250,7 @@ public function isNullableSetToNull(string $property): bool 'networkPaymentReference' => 'networkPaymentReference', 'number' => 'number', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'shopperNotificationReference' => 'shopperNotificationReference', 'srcCorrelationId' => 'srcCorrelationId', 'srcDigitalCardId' => 'srcDigitalCardId', @@ -255,6 +267,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'billingSequenceNumber' => 'setBillingSequenceNumber', 'brand' => 'setBrand', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'cupsecureplusSmscode' => 'setCupsecureplusSmscode', @@ -263,6 +276,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'setEncryptedCardNumber', 'encryptedExpiryMonth' => 'setEncryptedExpiryMonth', 'encryptedExpiryYear' => 'setEncryptedExpiryYear', + 'encryptedPassword' => 'setEncryptedPassword', 'encryptedSecurityCode' => 'setEncryptedSecurityCode', 'expiryMonth' => 'setExpiryMonth', 'expiryYear' => 'setExpiryYear', @@ -272,6 +286,7 @@ public function isNullableSetToNull(string $property): bool 'networkPaymentReference' => 'setNetworkPaymentReference', 'number' => 'setNumber', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'shopperNotificationReference' => 'setShopperNotificationReference', 'srcCorrelationId' => 'setSrcCorrelationId', 'srcDigitalCardId' => 'setSrcDigitalCardId', @@ -288,6 +303,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'billingSequenceNumber' => 'getBillingSequenceNumber', 'brand' => 'getBrand', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'cupsecureplusSmscode' => 'getCupsecureplusSmscode', @@ -296,6 +312,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'getEncryptedCardNumber', 'encryptedExpiryMonth' => 'getEncryptedExpiryMonth', 'encryptedExpiryYear' => 'getEncryptedExpiryYear', + 'encryptedPassword' => 'getEncryptedPassword', 'encryptedSecurityCode' => 'getEncryptedSecurityCode', 'expiryMonth' => 'getExpiryMonth', 'expiryYear' => 'getExpiryYear', @@ -305,6 +322,7 @@ public function isNullableSetToNull(string $property): bool 'networkPaymentReference' => 'getNetworkPaymentReference', 'number' => 'getNumber', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'shopperNotificationReference' => 'getShopperNotificationReference', 'srcCorrelationId' => 'getSrcCorrelationId', 'srcDigitalCardId' => 'getSrcDigitalCardId', @@ -408,6 +426,7 @@ public function getTypeAllowableValues() */ public function __construct(?array $data = null) { + $this->setIfExists('billingSequenceNumber', $data ?? [], null); $this->setIfExists('brand', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('cupsecureplusSmscode', $data ?? [], null); @@ -416,6 +435,7 @@ public function __construct(?array $data = null) $this->setIfExists('encryptedCardNumber', $data ?? [], null); $this->setIfExists('encryptedExpiryMonth', $data ?? [], null); $this->setIfExists('encryptedExpiryYear', $data ?? [], null); + $this->setIfExists('encryptedPassword', $data ?? [], null); $this->setIfExists('encryptedSecurityCode', $data ?? [], null); $this->setIfExists('expiryMonth', $data ?? [], null); $this->setIfExists('expiryYear', $data ?? [], null); @@ -425,6 +445,7 @@ public function __construct(?array $data = null) $this->setIfExists('networkPaymentReference', $data ?? [], null); $this->setIfExists('number', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperNotificationReference', $data ?? [], null); $this->setIfExists('srcCorrelationId', $data ?? [], null); $this->setIfExists('srcDigitalCardId', $data ?? [], null); @@ -495,6 +516,30 @@ public function valid() } + /** + * Gets billingSequenceNumber + * + * @return string|null + */ + public function getBillingSequenceNumber() + { + return $this->container['billingSequenceNumber']; + } + + /** + * Sets billingSequenceNumber + * + * @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * + * @return self + */ + public function setBillingSequenceNumber($billingSequenceNumber) + { + $this->container['billingSequenceNumber'] = $billingSequenceNumber; + + return $this; + } + /** * Gets brand * @@ -689,6 +734,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear) return $this; } + /** + * Gets encryptedPassword + * + * @return string|null + */ + public function getEncryptedPassword() + { + return $this->container['encryptedPassword']; + } + + /** + * Sets encryptedPassword + * + * @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @return self + */ + public function setEncryptedPassword($encryptedPassword) + { + $this->container['encryptedPassword'] = $encryptedPassword; + + return $this; + } + /** * Gets encryptedSecurityCode * @@ -917,6 +986,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperNotificationReference * diff --git a/src/Adyen/Model/Checkout/CashAppDetails.php b/src/Adyen/Model/Checkout/CashAppDetails.php index e70ddc114..780c19ab9 100644 --- a/src/Adyen/Model/Checkout/CashAppDetails.php +++ b/src/Adyen/Model/Checkout/CashAppDetails.php @@ -48,6 +48,7 @@ class CashAppDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'onFileGrantId' => 'string', 'recurringDetailReference' => 'string', 'requestId' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'subtype' => 'string', 'type' => 'string' @@ -68,6 +69,7 @@ class CashAppDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'onFileGrantId' => null, 'recurringDetailReference' => null, 'requestId' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'subtype' => null, 'type' => null @@ -86,6 +88,7 @@ class CashAppDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'onFileGrantId' => false, 'recurringDetailReference' => false, 'requestId' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'subtype' => false, 'type' => false @@ -184,6 +187,7 @@ public function isNullableSetToNull(string $property): bool 'onFileGrantId' => 'onFileGrantId', 'recurringDetailReference' => 'recurringDetailReference', 'requestId' => 'requestId', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'subtype' => 'subtype', 'type' => 'type' @@ -202,6 +206,7 @@ public function isNullableSetToNull(string $property): bool 'onFileGrantId' => 'setOnFileGrantId', 'recurringDetailReference' => 'setRecurringDetailReference', 'requestId' => 'setRequestId', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'subtype' => 'setSubtype', 'type' => 'setType' @@ -220,6 +225,7 @@ public function isNullableSetToNull(string $property): bool 'onFileGrantId' => 'getOnFileGrantId', 'recurringDetailReference' => 'getRecurringDetailReference', 'requestId' => 'getRequestId', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'subtype' => 'getSubtype', 'type' => 'getType' @@ -301,6 +307,7 @@ public function __construct(?array $data = null) $this->setIfExists('onFileGrantId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); $this->setIfExists('requestId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('subtype', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -527,6 +534,30 @@ public function setRequestId($requestId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/CellulantDetails.php b/src/Adyen/Model/Checkout/CellulantDetails.php index bcad22504..56b70ded3 100644 --- a/src/Adyen/Model/Checkout/CellulantDetails.php +++ b/src/Adyen/Model/Checkout/CellulantDetails.php @@ -43,6 +43,7 @@ class CellulantDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'issuer' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -56,6 +57,7 @@ class CellulantDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'issuer' => null, + 'sdkData' => null, 'type' => null ]; @@ -67,6 +69,7 @@ class CellulantDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'issuer' => false, + 'sdkData' => false, 'type' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -254,6 +260,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -356,6 +363,30 @@ public function setIssuer($issuer) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php b/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php index 9ab2e50f9..3781653b0 100644 --- a/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php +++ b/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php @@ -42,8 +42,10 @@ class CheckoutBankTransferAction implements ModelInterface, ArrayAccess, \JsonSe */ protected static $openAPITypes = [ 'accountNumber' => 'string', + 'bankCode' => 'string', 'beneficiary' => 'string', 'bic' => 'string', + 'branchCode' => 'string', 'downloadUrl' => 'string', 'iban' => 'string', 'paymentMethodType' => 'string', @@ -65,8 +67,10 @@ class CheckoutBankTransferAction implements ModelInterface, ArrayAccess, \JsonSe */ protected static $openAPIFormats = [ 'accountNumber' => null, + 'bankCode' => null, 'beneficiary' => null, 'bic' => null, + 'branchCode' => null, 'downloadUrl' => null, 'iban' => null, 'paymentMethodType' => null, @@ -86,8 +90,10 @@ class CheckoutBankTransferAction implements ModelInterface, ArrayAccess, \JsonSe */ protected static $openAPINullables = [ 'accountNumber' => false, + 'bankCode' => false, 'beneficiary' => false, 'bic' => false, + 'branchCode' => false, 'downloadUrl' => false, 'iban' => false, 'paymentMethodType' => false, @@ -187,8 +193,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'accountNumber' => 'accountNumber', + 'bankCode' => 'bankCode', 'beneficiary' => 'beneficiary', 'bic' => 'bic', + 'branchCode' => 'branchCode', 'downloadUrl' => 'downloadUrl', 'iban' => 'iban', 'paymentMethodType' => 'paymentMethodType', @@ -208,8 +216,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'accountNumber' => 'setAccountNumber', + 'bankCode' => 'setBankCode', 'beneficiary' => 'setBeneficiary', 'bic' => 'setBic', + 'branchCode' => 'setBranchCode', 'downloadUrl' => 'setDownloadUrl', 'iban' => 'setIban', 'paymentMethodType' => 'setPaymentMethodType', @@ -229,8 +239,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'accountNumber' => 'getAccountNumber', + 'bankCode' => 'getBankCode', 'beneficiary' => 'getBeneficiary', 'bic' => 'getBic', + 'branchCode' => 'getBranchCode', 'downloadUrl' => 'getDownloadUrl', 'iban' => 'getIban', 'paymentMethodType' => 'getPaymentMethodType', @@ -313,8 +325,10 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('accountNumber', $data ?? [], null); + $this->setIfExists('bankCode', $data ?? [], null); $this->setIfExists('beneficiary', $data ?? [], null); $this->setIfExists('bic', $data ?? [], null); + $this->setIfExists('branchCode', $data ?? [], null); $this->setIfExists('downloadUrl', $data ?? [], null); $this->setIfExists('iban', $data ?? [], null); $this->setIfExists('paymentMethodType', $data ?? [], null); @@ -405,6 +419,30 @@ public function setAccountNumber($accountNumber) return $this; } + /** + * Gets bankCode + * + * @return string|null + */ + public function getBankCode() + { + return $this->container['bankCode']; + } + + /** + * Sets bankCode + * + * @param string|null $bankCode The bank code of the bank transfer. + * + * @return self + */ + public function setBankCode($bankCode) + { + $this->container['bankCode'] = $bankCode; + + return $this; + } + /** * Gets beneficiary * @@ -453,6 +491,30 @@ public function setBic($bic) return $this; } + /** + * Gets branchCode + * + * @return string|null + */ + public function getBranchCode() + { + return $this->container['branchCode']; + } + + /** + * Sets branchCode + * + * @param string|null $branchCode The branch code of the bank transfer. + * + * @return self + */ + public function setBranchCode($branchCode) + { + $this->container['branchCode'] = $branchCode; + + return $this; + } + /** * Gets downloadUrl * diff --git a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php index 269d51815..a8ee96167 100644 --- a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php +++ b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php @@ -52,6 +52,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedBankLocationId' => 'string', 'ownerName' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'transferInstrumentId' => 'string', 'type' => 'string', @@ -66,6 +67,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'holderName' => 'string', 'issuer' => 'string', 'blikCode' => 'string', + 'billingSequenceNumber' => 'string', 'brand' => 'string', 'cupsecureplusSmscode' => 'string', 'cvc' => 'string', @@ -73,6 +75,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedCardNumber' => 'string', 'encryptedExpiryMonth' => 'string', 'encryptedExpiryYear' => 'string', + 'encryptedPassword' => 'string', 'encryptedSecurityCode' => 'string', 'expiryMonth' => 'string', 'expiryYear' => 'string', @@ -113,7 +116,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'deviceFingerprint' => 'string', 'iban' => 'string', 'samsungPayToken' => 'string', - 'billingSequenceNumber' => 'string', + 'dueDate' => 'string', 'appId' => 'string', 'visaCheckoutCallId' => 'string', 'openid' => 'string', @@ -137,6 +140,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedBankLocationId' => null, 'ownerName' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'transferInstrumentId' => null, 'type' => null, @@ -151,6 +155,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'holderName' => null, 'issuer' => null, 'blikCode' => null, + 'billingSequenceNumber' => null, 'brand' => null, 'cupsecureplusSmscode' => null, 'cvc' => null, @@ -158,6 +163,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedCardNumber' => null, 'encryptedExpiryMonth' => null, 'encryptedExpiryYear' => null, + 'encryptedPassword' => null, 'encryptedSecurityCode' => null, 'expiryMonth' => null, 'expiryYear' => null, @@ -198,7 +204,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'deviceFingerprint' => null, 'iban' => null, 'samsungPayToken' => null, - 'billingSequenceNumber' => null, + 'dueDate' => null, 'appId' => null, 'visaCheckoutCallId' => null, 'openid' => null, @@ -220,6 +226,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedBankLocationId' => false, 'ownerName' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'transferInstrumentId' => false, 'type' => false, @@ -234,6 +241,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'holderName' => false, 'issuer' => false, 'blikCode' => false, + 'billingSequenceNumber' => false, 'brand' => false, 'cupsecureplusSmscode' => false, 'cvc' => false, @@ -241,6 +249,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedCardNumber' => false, 'encryptedExpiryMonth' => false, 'encryptedExpiryYear' => false, + 'encryptedPassword' => false, 'encryptedSecurityCode' => false, 'expiryMonth' => false, 'expiryYear' => false, @@ -281,7 +290,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'deviceFingerprint' => false, 'iban' => false, 'samsungPayToken' => false, - 'billingSequenceNumber' => false, + 'dueDate' => false, 'appId' => false, 'visaCheckoutCallId' => false, 'openid' => false, @@ -383,6 +392,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedBankLocationId' => 'encryptedBankLocationId', 'ownerName' => 'ownerName', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'transferInstrumentId' => 'transferInstrumentId', 'type' => 'type', @@ -397,6 +407,7 @@ public function isNullableSetToNull(string $property): bool 'holderName' => 'holderName', 'issuer' => 'issuer', 'blikCode' => 'blikCode', + 'billingSequenceNumber' => 'billingSequenceNumber', 'brand' => 'brand', 'cupsecureplusSmscode' => 'cupsecureplus.smscode', 'cvc' => 'cvc', @@ -404,6 +415,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'encryptedCardNumber', 'encryptedExpiryMonth' => 'encryptedExpiryMonth', 'encryptedExpiryYear' => 'encryptedExpiryYear', + 'encryptedPassword' => 'encryptedPassword', 'encryptedSecurityCode' => 'encryptedSecurityCode', 'expiryMonth' => 'expiryMonth', 'expiryYear' => 'expiryYear', @@ -444,7 +456,7 @@ public function isNullableSetToNull(string $property): bool 'deviceFingerprint' => 'deviceFingerprint', 'iban' => 'iban', 'samsungPayToken' => 'samsungPayToken', - 'billingSequenceNumber' => 'billingSequenceNumber', + 'dueDate' => 'dueDate', 'appId' => 'appId', 'visaCheckoutCallId' => 'visaCheckoutCallId', 'openid' => 'openid', @@ -466,6 +478,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedBankLocationId' => 'setEncryptedBankLocationId', 'ownerName' => 'setOwnerName', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'transferInstrumentId' => 'setTransferInstrumentId', 'type' => 'setType', @@ -480,6 +493,7 @@ public function isNullableSetToNull(string $property): bool 'holderName' => 'setHolderName', 'issuer' => 'setIssuer', 'blikCode' => 'setBlikCode', + 'billingSequenceNumber' => 'setBillingSequenceNumber', 'brand' => 'setBrand', 'cupsecureplusSmscode' => 'setCupsecureplusSmscode', 'cvc' => 'setCvc', @@ -487,6 +501,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'setEncryptedCardNumber', 'encryptedExpiryMonth' => 'setEncryptedExpiryMonth', 'encryptedExpiryYear' => 'setEncryptedExpiryYear', + 'encryptedPassword' => 'setEncryptedPassword', 'encryptedSecurityCode' => 'setEncryptedSecurityCode', 'expiryMonth' => 'setExpiryMonth', 'expiryYear' => 'setExpiryYear', @@ -527,7 +542,7 @@ public function isNullableSetToNull(string $property): bool 'deviceFingerprint' => 'setDeviceFingerprint', 'iban' => 'setIban', 'samsungPayToken' => 'setSamsungPayToken', - 'billingSequenceNumber' => 'setBillingSequenceNumber', + 'dueDate' => 'setDueDate', 'appId' => 'setAppId', 'visaCheckoutCallId' => 'setVisaCheckoutCallId', 'openid' => 'setOpenid', @@ -549,6 +564,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedBankLocationId' => 'getEncryptedBankLocationId', 'ownerName' => 'getOwnerName', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'transferInstrumentId' => 'getTransferInstrumentId', 'type' => 'getType', @@ -563,6 +579,7 @@ public function isNullableSetToNull(string $property): bool 'holderName' => 'getHolderName', 'issuer' => 'getIssuer', 'blikCode' => 'getBlikCode', + 'billingSequenceNumber' => 'getBillingSequenceNumber', 'brand' => 'getBrand', 'cupsecureplusSmscode' => 'getCupsecureplusSmscode', 'cvc' => 'getCvc', @@ -570,6 +587,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'getEncryptedCardNumber', 'encryptedExpiryMonth' => 'getEncryptedExpiryMonth', 'encryptedExpiryYear' => 'getEncryptedExpiryYear', + 'encryptedPassword' => 'getEncryptedPassword', 'encryptedSecurityCode' => 'getEncryptedSecurityCode', 'expiryMonth' => 'getExpiryMonth', 'expiryYear' => 'getExpiryYear', @@ -610,7 +628,7 @@ public function isNullableSetToNull(string $property): bool 'deviceFingerprint' => 'getDeviceFingerprint', 'iban' => 'getIban', 'samsungPayToken' => 'getSamsungPayToken', - 'billingSequenceNumber' => 'getBillingSequenceNumber', + 'dueDate' => 'getDueDate', 'appId' => 'getAppId', 'visaCheckoutCallId' => 'getVisaCheckoutCallId', 'openid' => 'getOpenid', @@ -682,6 +700,7 @@ public function __construct(?array $data = null) $this->setIfExists('encryptedBankLocationId', $data ?? [], null); $this->setIfExists('ownerName', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('transferInstrumentId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -696,6 +715,7 @@ public function __construct(?array $data = null) $this->setIfExists('holderName', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); $this->setIfExists('blikCode', $data ?? [], null); + $this->setIfExists('billingSequenceNumber', $data ?? [], null); $this->setIfExists('brand', $data ?? [], null); $this->setIfExists('cupsecureplusSmscode', $data ?? [], null); $this->setIfExists('cvc', $data ?? [], null); @@ -703,6 +723,7 @@ public function __construct(?array $data = null) $this->setIfExists('encryptedCardNumber', $data ?? [], null); $this->setIfExists('encryptedExpiryMonth', $data ?? [], null); $this->setIfExists('encryptedExpiryYear', $data ?? [], null); + $this->setIfExists('encryptedPassword', $data ?? [], null); $this->setIfExists('encryptedSecurityCode', $data ?? [], null); $this->setIfExists('expiryMonth', $data ?? [], null); $this->setIfExists('expiryYear', $data ?? [], null); @@ -743,7 +764,7 @@ public function __construct(?array $data = null) $this->setIfExists('deviceFingerprint', $data ?? [], null); $this->setIfExists('iban', $data ?? [], null); $this->setIfExists('samsungPayToken', $data ?? [], null); - $this->setIfExists('billingSequenceNumber', $data ?? [], null); + $this->setIfExists('dueDate', $data ?? [], null); $this->setIfExists('appId', $data ?? [], null); $this->setIfExists('visaCheckoutCallId', $data ?? [], null); $this->setIfExists('openid', $data ?? [], null); @@ -832,9 +853,6 @@ public function listInvalidProperties() if ($this->container['samsungPayToken'] === null) { $invalidProperties[] = "'samsungPayToken' can't be null"; } - if ($this->container['billingSequenceNumber'] === null) { - $invalidProperties[] = "'billingSequenceNumber' can't be null"; - } if ($this->container['visaCheckoutCallId'] === null) { $invalidProperties[] = "'visaCheckoutCallId' can't be null"; } @@ -1071,6 +1089,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * @@ -1407,6 +1449,30 @@ public function setBlikCode($blikCode) return $this; } + /** + * Gets billingSequenceNumber + * + * @return string|null + */ + public function getBillingSequenceNumber() + { + return $this->container['billingSequenceNumber']; + } + + /** + * Sets billingSequenceNumber + * + * @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * + * @return self + */ + public function setBillingSequenceNumber($billingSequenceNumber) + { + $this->container['billingSequenceNumber'] = $billingSequenceNumber; + + return $this; + } + /** * Gets brand * @@ -1577,6 +1643,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear) return $this; } + /** + * Gets encryptedPassword + * + * @return string|null + */ + public function getEncryptedPassword() + { + return $this->container['encryptedPassword']; + } + + /** + * Sets encryptedPassword + * + * @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @return self + */ + public function setEncryptedPassword($encryptedPassword) + { + $this->container['encryptedPassword'] = $encryptedPassword; + + return $this; + } + /** * Gets encryptedSecurityCode * @@ -2070,7 +2160,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -2094,7 +2184,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ @@ -2538,25 +2628,25 @@ public function setSamsungPayToken($samsungPayToken) } /** - * Gets billingSequenceNumber + * Gets dueDate * - * @return string + * @return string|null */ - public function getBillingSequenceNumber() + public function getDueDate() { - return $this->container['billingSequenceNumber']; + return $this->container['dueDate']; } /** - * Sets billingSequenceNumber + * Sets dueDate * - * @param string $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * @param string|null $dueDate The date that the the shopper's bank account is charged. * * @return self */ - public function setBillingSequenceNumber($billingSequenceNumber) + public function setDueDate($dueDate) { - $this->container['billingSequenceNumber'] = $billingSequenceNumber; + $this->container['dueDate'] = $dueDate; return $this; } diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php index d0d7adb67..ebd89a84b 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php @@ -85,7 +85,7 @@ class CreateCheckoutSessionRequest implements ModelInterface, ArrayAccess, \Json 'shopperIP' => 'string', 'shopperInteraction' => 'string', 'shopperLocale' => 'string', - 'shopperName' => '\Adyen\Model\Checkout\Name', + 'shopperName' => '\Adyen\Model\Checkout\ShopperName', 'shopperReference' => 'string', 'shopperStatement' => 'string', 'showInstallmentAmount' => 'bool', @@ -1954,7 +1954,7 @@ public function setShopperLocale($shopperLocale) /** * Gets shopperName * - * @return \Adyen\Model\Checkout\Name|null + * @return \Adyen\Model\Checkout\ShopperName|null */ public function getShopperName() { @@ -1964,7 +1964,7 @@ public function getShopperName() /** * Sets shopperName * - * @param \Adyen\Model\Checkout\Name|null $shopperName shopperName + * @param \Adyen\Model\Checkout\ShopperName|null $shopperName shopperName * * @return self */ diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php index 93194c0d9..769e5b6cf 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php @@ -87,7 +87,7 @@ class CreateCheckoutSessionResponse implements ModelInterface, ArrayAccess, \Jso 'shopperIP' => 'string', 'shopperInteraction' => 'string', 'shopperLocale' => 'string', - 'shopperName' => '\Adyen\Model\Checkout\Name', + 'shopperName' => '\Adyen\Model\Checkout\ShopperName', 'shopperReference' => 'string', 'shopperStatement' => 'string', 'showInstallmentAmount' => 'bool', @@ -2029,7 +2029,7 @@ public function setShopperLocale($shopperLocale) /** * Gets shopperName * - * @return \Adyen\Model\Checkout\Name|null + * @return \Adyen\Model\Checkout\ShopperName|null */ public function getShopperName() { @@ -2039,7 +2039,7 @@ public function getShopperName() /** * Sets shopperName * - * @param \Adyen\Model\Checkout\Name|null $shopperName shopperName + * @param \Adyen\Model\Checkout\ShopperName|null $shopperName shopperName * * @return self */ diff --git a/src/Adyen/Model/Checkout/DokuDetails.php b/src/Adyen/Model/Checkout/DokuDetails.php index 05c476688..6ec0d831b 100644 --- a/src/Adyen/Model/Checkout/DokuDetails.php +++ b/src/Adyen/Model/Checkout/DokuDetails.php @@ -44,6 +44,7 @@ class DokuDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'firstName' => 'string', 'lastName' => 'string', + 'sdkData' => 'string', 'shopperEmail' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class DokuDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'firstName' => null, 'lastName' => null, + 'sdkData' => null, 'shopperEmail' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class DokuDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'firstName' => false, 'lastName' => false, + 'sdkData' => false, 'shopperEmail' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'firstName' => 'firstName', 'lastName' => 'lastName', + 'sdkData' => 'sdkData', 'shopperEmail' => 'shopperEmail', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', + 'sdkData' => 'setSdkData', 'shopperEmail' => 'setShopperEmail', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', + 'sdkData' => 'getSdkData', 'shopperEmail' => 'getShopperEmail', 'type' => 'getType' ]; @@ -287,6 +293,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('firstName', $data ?? [], null); $this->setIfExists('lastName', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperEmail', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -426,6 +433,30 @@ public function setLastName($lastName) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperEmail * diff --git a/src/Adyen/Model/Checkout/DonationPaymentMethod.php b/src/Adyen/Model/Checkout/DonationPaymentMethod.php index e90481a51..c17754365 100644 --- a/src/Adyen/Model/Checkout/DonationPaymentMethod.php +++ b/src/Adyen/Model/Checkout/DonationPaymentMethod.php @@ -21,7 +21,7 @@ /** * DonationPaymentMethod Class Doc Comment * - * The type and required details of a payment method to use. + * The type and required details of a payment method to use. When `donationToken` is provided, the payment method is derived from the token and this field becomes optional. If you are [PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide), and make donations using raw card details, you must explicitly provide the payment method details. * * @package Adyen * @implements ArrayAccess @@ -47,8 +47,10 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'checkoutAttemptId' => 'string', 'fundingSource' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string', + 'billingSequenceNumber' => 'string', 'brand' => 'string', 'cupsecureplusSmscode' => 'string', 'cvc' => 'string', @@ -56,6 +58,7 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedCardNumber' => 'string', 'encryptedExpiryMonth' => 'string', 'encryptedExpiryYear' => 'string', + 'encryptedPassword' => 'string', 'encryptedSecurityCode' => 'string', 'expiryMonth' => 'string', 'expiryYear' => 'string', @@ -86,8 +89,10 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'checkoutAttemptId' => null, 'fundingSource' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null, + 'billingSequenceNumber' => null, 'brand' => null, 'cupsecureplusSmscode' => null, 'cvc' => null, @@ -95,6 +100,7 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedCardNumber' => null, 'encryptedExpiryMonth' => null, 'encryptedExpiryYear' => null, + 'encryptedPassword' => null, 'encryptedSecurityCode' => null, 'expiryMonth' => null, 'expiryYear' => null, @@ -123,8 +129,10 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'checkoutAttemptId' => false, 'fundingSource' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false, + 'billingSequenceNumber' => false, 'brand' => false, 'cupsecureplusSmscode' => false, 'cvc' => false, @@ -132,6 +140,7 @@ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'encryptedCardNumber' => false, 'encryptedExpiryMonth' => false, 'encryptedExpiryYear' => false, + 'encryptedPassword' => false, 'encryptedSecurityCode' => false, 'expiryMonth' => false, 'expiryYear' => false, @@ -240,8 +249,10 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'fundingSource' => 'fundingSource', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type', + 'billingSequenceNumber' => 'billingSequenceNumber', 'brand' => 'brand', 'cupsecureplusSmscode' => 'cupsecureplus.smscode', 'cvc' => 'cvc', @@ -249,6 +260,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'encryptedCardNumber', 'encryptedExpiryMonth' => 'encryptedExpiryMonth', 'encryptedExpiryYear' => 'encryptedExpiryYear', + 'encryptedPassword' => 'encryptedPassword', 'encryptedSecurityCode' => 'encryptedSecurityCode', 'expiryMonth' => 'expiryMonth', 'expiryYear' => 'expiryYear', @@ -277,8 +289,10 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'fundingSource' => 'setFundingSource', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType', + 'billingSequenceNumber' => 'setBillingSequenceNumber', 'brand' => 'setBrand', 'cupsecureplusSmscode' => 'setCupsecureplusSmscode', 'cvc' => 'setCvc', @@ -286,6 +300,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'setEncryptedCardNumber', 'encryptedExpiryMonth' => 'setEncryptedExpiryMonth', 'encryptedExpiryYear' => 'setEncryptedExpiryYear', + 'encryptedPassword' => 'setEncryptedPassword', 'encryptedSecurityCode' => 'setEncryptedSecurityCode', 'expiryMonth' => 'setExpiryMonth', 'expiryYear' => 'setExpiryYear', @@ -314,8 +329,10 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'fundingSource' => 'getFundingSource', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType', + 'billingSequenceNumber' => 'getBillingSequenceNumber', 'brand' => 'getBrand', 'cupsecureplusSmscode' => 'getCupsecureplusSmscode', 'cvc' => 'getCvc', @@ -323,6 +340,7 @@ public function isNullableSetToNull(string $property): bool 'encryptedCardNumber' => 'getEncryptedCardNumber', 'encryptedExpiryMonth' => 'getEncryptedExpiryMonth', 'encryptedExpiryYear' => 'getEncryptedExpiryYear', + 'encryptedPassword' => 'getEncryptedPassword', 'encryptedSecurityCode' => 'getEncryptedSecurityCode', 'expiryMonth' => 'getExpiryMonth', 'expiryYear' => 'getExpiryYear', @@ -401,8 +419,10 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('fundingSource', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('billingSequenceNumber', $data ?? [], null); $this->setIfExists('brand', $data ?? [], null); $this->setIfExists('cupsecureplusSmscode', $data ?? [], null); $this->setIfExists('cvc', $data ?? [], null); @@ -410,6 +430,7 @@ public function __construct(?array $data = null) $this->setIfExists('encryptedCardNumber', $data ?? [], null); $this->setIfExists('encryptedExpiryMonth', $data ?? [], null); $this->setIfExists('encryptedExpiryYear', $data ?? [], null); + $this->setIfExists('encryptedPassword', $data ?? [], null); $this->setIfExists('encryptedSecurityCode', $data ?? [], null); $this->setIfExists('expiryMonth', $data ?? [], null); $this->setIfExists('expiryYear', $data ?? [], null); @@ -576,6 +597,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * @@ -624,6 +669,30 @@ public function setType($type) return $this; } + /** + * Gets billingSequenceNumber + * + * @return string|null + */ + public function getBillingSequenceNumber() + { + return $this->container['billingSequenceNumber']; + } + + /** + * Sets billingSequenceNumber + * + * @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * + * @return self + */ + public function setBillingSequenceNumber($billingSequenceNumber) + { + $this->container['billingSequenceNumber'] = $billingSequenceNumber; + + return $this; + } + /** * Gets brand * @@ -794,6 +863,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear) return $this; } + /** + * Gets encryptedPassword + * + * @return string|null + */ + public function getEncryptedPassword() + { + return $this->container['encryptedPassword']; + } + + /** + * Sets encryptedPassword + * + * @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder. + * + * @return self + */ + public function setEncryptedPassword($encryptedPassword) + { + $this->container['encryptedPassword'] = $encryptedPassword; + + return $this; + } + /** * Gets encryptedSecurityCode * diff --git a/src/Adyen/Model/Checkout/DonationPaymentRequest.php b/src/Adyen/Model/Checkout/DonationPaymentRequest.php index ecc0c164f..d3f7cc374 100644 --- a/src/Adyen/Model/Checkout/DonationPaymentRequest.php +++ b/src/Adyen/Model/Checkout/DonationPaymentRequest.php @@ -77,7 +77,7 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'shopperIP' => 'string', 'shopperInteraction' => 'string', 'shopperLocale' => 'string', - 'shopperName' => '\Adyen\Model\Checkout\Name', + 'shopperName' => '\Adyen\Model\Checkout\ShopperName', 'shopperReference' => 'string', 'socialSecurityNumber' => 'string', 'telephoneNumber' => 'string', @@ -610,9 +610,6 @@ public function listInvalidProperties() if ($this->container['merchantAccount'] === null) { $invalidProperties[] = "'merchantAccount' can't be null"; } - if ($this->container['paymentMethod'] === null) { - $invalidProperties[] = "'paymentMethod' can't be null"; - } $allowedValues = $this->getRecurringProcessingModelAllowableValues(); if (!is_null($this->container['recurringProcessingModel']) && !in_array($this->container['recurringProcessingModel'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -1267,7 +1264,7 @@ public function setOrigin($origin) /** * Gets paymentMethod * - * @return \Adyen\Model\Checkout\DonationPaymentMethod + * @return \Adyen\Model\Checkout\DonationPaymentMethod|null */ public function getPaymentMethod() { @@ -1277,7 +1274,7 @@ public function getPaymentMethod() /** * Sets paymentMethod * - * @param \Adyen\Model\Checkout\DonationPaymentMethod $paymentMethod paymentMethod + * @param \Adyen\Model\Checkout\DonationPaymentMethod|null $paymentMethod paymentMethod * * @return self */ @@ -1551,7 +1548,7 @@ public function setShopperLocale($shopperLocale) /** * Gets shopperName * - * @return \Adyen\Model\Checkout\Name|null + * @return \Adyen\Model\Checkout\ShopperName|null */ public function getShopperName() { @@ -1561,7 +1558,7 @@ public function getShopperName() /** * Sets shopperName * - * @param \Adyen\Model\Checkout\Name|null $shopperName shopperName + * @param \Adyen\Model\Checkout\ShopperName|null $shopperName shopperName * * @return self */ diff --git a/src/Adyen/Model/Checkout/DragonpayDetails.php b/src/Adyen/Model/Checkout/DragonpayDetails.php index 964aea11e..48347ac0c 100644 --- a/src/Adyen/Model/Checkout/DragonpayDetails.php +++ b/src/Adyen/Model/Checkout/DragonpayDetails.php @@ -43,6 +43,7 @@ class DragonpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'issuer' => 'string', + 'sdkData' => 'string', 'shopperEmail' => 'string', 'type' => 'string' ]; @@ -57,6 +58,7 @@ class DragonpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'issuer' => null, + 'sdkData' => null, 'shopperEmail' => null, 'type' => null ]; @@ -69,6 +71,7 @@ class DragonpayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'issuer' => false, + 'sdkData' => false, 'shopperEmail' => false, 'type' => false ]; @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', + 'sdkData' => 'sdkData', 'shopperEmail' => 'shopperEmail', 'type' => 'type' ]; @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', + 'sdkData' => 'setSdkData', 'shopperEmail' => 'setShopperEmail', 'type' => 'setType' ]; @@ -185,6 +190,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', + 'sdkData' => 'getSdkData', 'shopperEmail' => 'getShopperEmail', 'type' => 'getType' ]; @@ -266,6 +272,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperEmail', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -375,6 +382,30 @@ public function setIssuer($issuer) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperEmail * diff --git a/src/Adyen/Model/Checkout/EBankingFinlandDetails.php b/src/Adyen/Model/Checkout/EBankingFinlandDetails.php index 063a1ee5b..3b5c6960d 100644 --- a/src/Adyen/Model/Checkout/EBankingFinlandDetails.php +++ b/src/Adyen/Model/Checkout/EBankingFinlandDetails.php @@ -43,6 +43,7 @@ class EBankingFinlandDetails implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'issuer' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -56,6 +57,7 @@ class EBankingFinlandDetails implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'issuer' => null, + 'sdkData' => null, 'type' => null ]; @@ -67,6 +69,7 @@ class EBankingFinlandDetails implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'issuer' => false, + 'sdkData' => false, 'type' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -254,6 +260,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -359,6 +366,30 @@ public function setIssuer($issuer) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/EcontextVoucherDetails.php b/src/Adyen/Model/Checkout/EcontextVoucherDetails.php index 761f21be4..b226ff073 100644 --- a/src/Adyen/Model/Checkout/EcontextVoucherDetails.php +++ b/src/Adyen/Model/Checkout/EcontextVoucherDetails.php @@ -44,6 +44,7 @@ class EcontextVoucherDetails implements ModelInterface, ArrayAccess, \JsonSerial 'checkoutAttemptId' => 'string', 'firstName' => 'string', 'lastName' => 'string', + 'sdkData' => 'string', 'shopperEmail' => 'string', 'telephoneNumber' => 'string', 'type' => 'string' @@ -60,6 +61,7 @@ class EcontextVoucherDetails implements ModelInterface, ArrayAccess, \JsonSerial 'checkoutAttemptId' => null, 'firstName' => null, 'lastName' => null, + 'sdkData' => null, 'shopperEmail' => null, 'telephoneNumber' => null, 'type' => null @@ -74,6 +76,7 @@ class EcontextVoucherDetails implements ModelInterface, ArrayAccess, \JsonSerial 'checkoutAttemptId' => false, 'firstName' => false, 'lastName' => false, + 'sdkData' => false, 'shopperEmail' => false, 'telephoneNumber' => false, 'type' => false @@ -168,6 +171,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'firstName' => 'firstName', 'lastName' => 'lastName', + 'sdkData' => 'sdkData', 'shopperEmail' => 'shopperEmail', 'telephoneNumber' => 'telephoneNumber', 'type' => 'type' @@ -182,6 +186,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', + 'sdkData' => 'setSdkData', 'shopperEmail' => 'setShopperEmail', 'telephoneNumber' => 'setTelephoneNumber', 'type' => 'setType' @@ -196,6 +201,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', + 'sdkData' => 'getSdkData', 'shopperEmail' => 'getShopperEmail', 'telephoneNumber' => 'getTelephoneNumber', 'type' => 'getType' @@ -281,6 +287,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('firstName', $data ?? [], null); $this->setIfExists('lastName', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperEmail', $data ?? [], null); $this->setIfExists('telephoneNumber', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -424,6 +431,30 @@ public function setLastName($lastName) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperEmail * diff --git a/src/Adyen/Model/Checkout/EftDetails.php b/src/Adyen/Model/Checkout/EftDetails.php index 881bfae07..f2f535e3b 100644 --- a/src/Adyen/Model/Checkout/EftDetails.php +++ b/src/Adyen/Model/Checkout/EftDetails.php @@ -47,6 +47,7 @@ class EftDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'ownerName' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -65,6 +66,7 @@ class EftDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'ownerName' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -81,6 +83,7 @@ class EftDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'ownerName' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -177,6 +180,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'ownerName' => 'ownerName', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -193,6 +197,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'ownerName' => 'setOwnerName', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -209,6 +214,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'ownerName' => 'getOwnerName', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -288,6 +294,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('ownerName', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -489,6 +496,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/FastlaneDetails.php b/src/Adyen/Model/Checkout/FastlaneDetails.php index d8e69849e..35ae24822 100644 --- a/src/Adyen/Model/Checkout/FastlaneDetails.php +++ b/src/Adyen/Model/Checkout/FastlaneDetails.php @@ -44,6 +44,7 @@ class FastlaneDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'fastlaneData' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class FastlaneDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'fastlaneData' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class FastlaneDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'fastlaneData' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'fastlaneData' => 'fastlaneData', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'fastlaneData' => 'setFastlaneData', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'fastlaneData' => 'getFastlaneData', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -267,6 +273,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('fastlaneData', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -402,6 +409,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php b/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php index 14c0d0265..e4f53cbc6 100644 --- a/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php +++ b/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php @@ -44,6 +44,7 @@ class GenericIssuerPaymentMethodDetails implements ModelInterface, ArrayAccess, 'checkoutAttemptId' => 'string', 'issuer' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class GenericIssuerPaymentMethodDetails implements ModelInterface, ArrayAccess, 'checkoutAttemptId' => null, 'issuer' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class GenericIssuerPaymentMethodDetails implements ModelInterface, ArrayAccess, 'checkoutAttemptId' => false, 'issuer' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -240,6 +246,7 @@ public function getModelName() public const TYPE_EPS = 'eps'; public const TYPE_ONLINE_BANKING_SK = 'onlineBanking_SK'; public const TYPE_ONLINE_BANKING_CZ = 'onlineBanking_CZ'; + public const TYPE_ONLINEBANKING_IN = 'onlinebanking_IN'; /** * Gets allowable values of the enum @@ -253,6 +260,7 @@ public function getTypeAllowableValues() self::TYPE_EPS, self::TYPE_ONLINE_BANKING_SK, self::TYPE_ONLINE_BANKING_CZ, + self::TYPE_ONLINEBANKING_IN, ]; } /** @@ -273,6 +281,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -408,6 +417,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/GooglePayDetails.php b/src/Adyen/Model/Checkout/GooglePayDetails.php index b83ef14f3..46882d5d9 100644 --- a/src/Adyen/Model/Checkout/GooglePayDetails.php +++ b/src/Adyen/Model/Checkout/GooglePayDetails.php @@ -46,6 +46,7 @@ class GooglePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'googlePayCardNetwork' => 'string', 'googlePayToken' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'threeDS2SdkVersion' => 'string', 'type' => 'string' @@ -64,6 +65,7 @@ class GooglePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'googlePayCardNetwork' => null, 'googlePayToken' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'threeDS2SdkVersion' => null, 'type' => null @@ -80,6 +82,7 @@ class GooglePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'googlePayCardNetwork' => false, 'googlePayToken' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'threeDS2SdkVersion' => false, 'type' => false @@ -176,6 +179,7 @@ public function isNullableSetToNull(string $property): bool 'googlePayCardNetwork' => 'googlePayCardNetwork', 'googlePayToken' => 'googlePayToken', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'threeDS2SdkVersion' => 'threeDS2SdkVersion', 'type' => 'type' @@ -192,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'googlePayCardNetwork' => 'setGooglePayCardNetwork', 'googlePayToken' => 'setGooglePayToken', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'threeDS2SdkVersion' => 'setThreeDS2SdkVersion', 'type' => 'setType' @@ -208,6 +213,7 @@ public function isNullableSetToNull(string $property): bool 'googlePayCardNetwork' => 'getGooglePayCardNetwork', 'googlePayToken' => 'getGooglePayToken', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'threeDS2SdkVersion' => 'getThreeDS2SdkVersion', 'type' => 'getType' @@ -301,6 +307,7 @@ public function __construct(?array $data = null) $this->setIfExists('googlePayCardNetwork', $data ?? [], null); $this->setIfExists('googlePayToken', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('threeDS2SdkVersion', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -501,6 +508,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/GooglePayDonations.php b/src/Adyen/Model/Checkout/GooglePayDonations.php index d4f5a9378..b4844ef3d 100644 --- a/src/Adyen/Model/Checkout/GooglePayDonations.php +++ b/src/Adyen/Model/Checkout/GooglePayDonations.php @@ -46,6 +46,7 @@ class GooglePayDonations implements ModelInterface, ArrayAccess, \JsonSerializab 'googlePayCardNetwork' => 'string', 'googlePayToken' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'threeDS2SdkVersion' => 'string', 'type' => 'string' @@ -64,6 +65,7 @@ class GooglePayDonations implements ModelInterface, ArrayAccess, \JsonSerializab 'googlePayCardNetwork' => null, 'googlePayToken' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'threeDS2SdkVersion' => null, 'type' => null @@ -80,6 +82,7 @@ class GooglePayDonations implements ModelInterface, ArrayAccess, \JsonSerializab 'googlePayCardNetwork' => false, 'googlePayToken' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'threeDS2SdkVersion' => false, 'type' => false @@ -176,6 +179,7 @@ public function isNullableSetToNull(string $property): bool 'googlePayCardNetwork' => 'googlePayCardNetwork', 'googlePayToken' => 'googlePayToken', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'threeDS2SdkVersion' => 'threeDS2SdkVersion', 'type' => 'type' @@ -192,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'googlePayCardNetwork' => 'setGooglePayCardNetwork', 'googlePayToken' => 'setGooglePayToken', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'threeDS2SdkVersion' => 'setThreeDS2SdkVersion', 'type' => 'setType' @@ -208,6 +213,7 @@ public function isNullableSetToNull(string $property): bool 'googlePayCardNetwork' => 'getGooglePayCardNetwork', 'googlePayToken' => 'getGooglePayToken', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'threeDS2SdkVersion' => 'getThreeDS2SdkVersion', 'type' => 'getType' @@ -301,6 +307,7 @@ public function __construct(?array $data = null) $this->setIfExists('googlePayCardNetwork', $data ?? [], null); $this->setIfExists('googlePayToken', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('threeDS2SdkVersion', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -501,6 +508,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/IdealDetails.php b/src/Adyen/Model/Checkout/IdealDetails.php index f06bb7197..ddc9c0571 100644 --- a/src/Adyen/Model/Checkout/IdealDetails.php +++ b/src/Adyen/Model/Checkout/IdealDetails.php @@ -44,6 +44,7 @@ class IdealDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'issuer' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class IdealDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'issuer' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class IdealDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'issuer' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -267,6 +273,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -396,6 +403,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/IdealDonations.php b/src/Adyen/Model/Checkout/IdealDonations.php index 18634e040..f6bdff965 100644 --- a/src/Adyen/Model/Checkout/IdealDonations.php +++ b/src/Adyen/Model/Checkout/IdealDonations.php @@ -44,6 +44,7 @@ class IdealDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'issuer' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class IdealDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'issuer' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class IdealDonations implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'issuer' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -267,6 +273,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -396,6 +403,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/KlarnaDetails.php b/src/Adyen/Model/Checkout/KlarnaDetails.php index 986b81360..0b76c47e4 100644 --- a/src/Adyen/Model/Checkout/KlarnaDetails.php +++ b/src/Adyen/Model/Checkout/KlarnaDetails.php @@ -46,6 +46,7 @@ class KlarnaDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => 'string', 'personalDetails' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'subtype' => 'string', 'type' => 'string' @@ -64,6 +65,7 @@ class KlarnaDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => null, 'personalDetails' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'subtype' => null, 'type' => null @@ -80,6 +82,7 @@ class KlarnaDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => false, 'personalDetails' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'subtype' => false, 'type' => false @@ -176,6 +179,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'deliveryAddress', 'personalDetails' => 'personalDetails', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'subtype' => 'subtype', 'type' => 'type' @@ -192,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'setDeliveryAddress', 'personalDetails' => 'setPersonalDetails', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'subtype' => 'setSubtype', 'type' => 'setType' @@ -208,6 +213,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'getDeliveryAddress', 'personalDetails' => 'getPersonalDetails', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'subtype' => 'getSubtype', 'type' => 'getType' @@ -299,6 +305,7 @@ public function __construct(?array $data = null) $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('subtype', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -480,6 +487,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/MasterpassDetails.php b/src/Adyen/Model/Checkout/MasterpassDetails.php index 2c602899d..e274aa44d 100644 --- a/src/Adyen/Model/Checkout/MasterpassDetails.php +++ b/src/Adyen/Model/Checkout/MasterpassDetails.php @@ -44,6 +44,7 @@ class MasterpassDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'checkoutAttemptId' => 'string', 'fundingSource' => 'string', 'masterpassTransactionId' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -58,6 +59,7 @@ class MasterpassDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'checkoutAttemptId' => null, 'fundingSource' => null, 'masterpassTransactionId' => null, + 'sdkData' => null, 'type' => null ]; @@ -70,6 +72,7 @@ class MasterpassDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'checkoutAttemptId' => false, 'fundingSource' => false, 'masterpassTransactionId' => false, + 'sdkData' => false, 'type' => false ]; @@ -162,6 +165,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'fundingSource' => 'fundingSource', 'masterpassTransactionId' => 'masterpassTransactionId', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -174,6 +178,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'fundingSource' => 'setFundingSource', 'masterpassTransactionId' => 'setMasterpassTransactionId', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -186,6 +191,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'fundingSource' => 'getFundingSource', 'masterpassTransactionId' => 'getMasterpassTransactionId', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -275,6 +281,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('fundingSource', $data ?? [], null); $this->setIfExists('masterpassTransactionId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -423,6 +430,30 @@ public function setMasterpassTransactionId($masterpassTransactionId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/MbwayDetails.php b/src/Adyen/Model/Checkout/MbwayDetails.php index 00e16ba76..36162b567 100644 --- a/src/Adyen/Model/Checkout/MbwayDetails.php +++ b/src/Adyen/Model/Checkout/MbwayDetails.php @@ -42,6 +42,7 @@ class MbwayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'sdkData' => 'string', 'shopperEmail' => 'string', 'telephoneNumber' => 'string', 'type' => 'string' @@ -56,6 +57,7 @@ class MbwayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'sdkData' => null, 'shopperEmail' => null, 'telephoneNumber' => null, 'type' => null @@ -68,6 +70,7 @@ class MbwayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'sdkData' => false, 'shopperEmail' => false, 'telephoneNumber' => false, 'type' => false @@ -160,6 +163,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'sdkData' => 'sdkData', 'shopperEmail' => 'shopperEmail', 'telephoneNumber' => 'telephoneNumber', 'type' => 'type' @@ -172,6 +176,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'sdkData' => 'setSdkData', 'shopperEmail' => 'setShopperEmail', 'telephoneNumber' => 'setTelephoneNumber', 'type' => 'setType' @@ -184,6 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'sdkData' => 'getSdkData', 'shopperEmail' => 'getShopperEmail', 'telephoneNumber' => 'getTelephoneNumber', 'type' => 'getType' @@ -259,6 +265,7 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperEmail', $data ?? [], null); $this->setIfExists('telephoneNumber', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -345,6 +352,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperEmail * @@ -358,7 +389,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -382,7 +413,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/MobilePayDetails.php b/src/Adyen/Model/Checkout/MobilePayDetails.php index 8908c5e7d..d709a1eea 100644 --- a/src/Adyen/Model/Checkout/MobilePayDetails.php +++ b/src/Adyen/Model/Checkout/MobilePayDetails.php @@ -42,6 +42,7 @@ class MobilePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -54,6 +55,7 @@ class MobilePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'sdkData' => null, 'type' => null ]; @@ -64,6 +66,7 @@ class MobilePayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'sdkData' => false, 'type' => false ]; @@ -154,6 +157,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -164,6 +168,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -174,6 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -247,6 +253,7 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -325,6 +332,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/MolPayDetails.php b/src/Adyen/Model/Checkout/MolPayDetails.php index 93810c25c..ac10d34e4 100644 --- a/src/Adyen/Model/Checkout/MolPayDetails.php +++ b/src/Adyen/Model/Checkout/MolPayDetails.php @@ -43,6 +43,7 @@ class MolPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'issuer' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -56,6 +57,7 @@ class MolPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'issuer' => null, + 'sdkData' => null, 'type' => null ]; @@ -67,6 +69,7 @@ class MolPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'issuer' => false, + 'sdkData' => false, 'type' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -256,6 +262,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -364,6 +371,30 @@ public function setIssuer($issuer) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/ObjectSerializer.php b/src/Adyen/Model/Checkout/ObjectSerializer.php index c9a8102b9..1e8e6df61 100644 --- a/src/Adyen/Model/Checkout/ObjectSerializer.php +++ b/src/Adyen/Model/Checkout/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Checkout/OpenInvoiceDetails.php b/src/Adyen/Model/Checkout/OpenInvoiceDetails.php index 67af2af2e..31c77d165 100644 --- a/src/Adyen/Model/Checkout/OpenInvoiceDetails.php +++ b/src/Adyen/Model/Checkout/OpenInvoiceDetails.php @@ -46,6 +46,7 @@ class OpenInvoiceDetails implements ModelInterface, ArrayAccess, \JsonSerializab 'deliveryAddress' => 'string', 'personalDetails' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -63,6 +64,7 @@ class OpenInvoiceDetails implements ModelInterface, ArrayAccess, \JsonSerializab 'deliveryAddress' => null, 'personalDetails' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -78,6 +80,7 @@ class OpenInvoiceDetails implements ModelInterface, ArrayAccess, \JsonSerializab 'deliveryAddress' => false, 'personalDetails' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -173,6 +176,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'deliveryAddress', 'personalDetails' => 'personalDetails', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -188,6 +192,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'setDeliveryAddress', 'personalDetails' => 'setPersonalDetails', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'getDeliveryAddress', 'personalDetails' => 'getPersonalDetails', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -285,6 +291,7 @@ public function __construct(?array $data = null) $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -462,6 +469,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php b/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php index e633e8c13..de9aef08c 100644 --- a/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php +++ b/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php @@ -43,6 +43,7 @@ class PayByBankAISDirectDebitDetails implements ModelInterface, ArrayAccess, \Js protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -57,6 +58,7 @@ class PayByBankAISDirectDebitDetails implements ModelInterface, ArrayAccess, \Js protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -69,6 +71,7 @@ class PayByBankAISDirectDebitDetails implements ModelInterface, ArrayAccess, \Js protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -185,6 +190,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -260,6 +266,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -368,6 +375,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/PayByBankDetails.php b/src/Adyen/Model/Checkout/PayByBankDetails.php index c3d4e1fcc..c462c8ed8 100644 --- a/src/Adyen/Model/Checkout/PayByBankDetails.php +++ b/src/Adyen/Model/Checkout/PayByBankDetails.php @@ -43,6 +43,7 @@ class PayByBankDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'issuer' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -56,6 +57,7 @@ class PayByBankDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'issuer' => null, + 'sdkData' => null, 'type' => null ]; @@ -67,6 +69,7 @@ class PayByBankDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'issuer' => false, + 'sdkData' => false, 'type' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'issuer' => 'issuer', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'issuer' => 'setIssuer', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'issuer' => 'getIssuer', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -254,6 +260,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -359,6 +366,30 @@ public function setIssuer($issuer) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/PayPalDetails.php b/src/Adyen/Model/Checkout/PayPalDetails.php index ac61c8a12..c04206c6a 100644 --- a/src/Adyen/Model/Checkout/PayPalDetails.php +++ b/src/Adyen/Model/Checkout/PayPalDetails.php @@ -47,6 +47,7 @@ class PayPalDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'payerID' => 'string', 'payerSelected' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'subtype' => 'string', 'type' => 'string' @@ -66,6 +67,7 @@ class PayPalDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'payerID' => null, 'payerSelected' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'subtype' => null, 'type' => null @@ -83,6 +85,7 @@ class PayPalDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'payerID' => false, 'payerSelected' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'subtype' => false, 'type' => false @@ -180,6 +183,7 @@ public function isNullableSetToNull(string $property): bool 'payerID' => 'payerID', 'payerSelected' => 'payerSelected', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'subtype' => 'subtype', 'type' => 'type' @@ -197,6 +201,7 @@ public function isNullableSetToNull(string $property): bool 'payerID' => 'setPayerID', 'payerSelected' => 'setPayerSelected', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'subtype' => 'setSubtype', 'type' => 'setType' @@ -214,6 +219,7 @@ public function isNullableSetToNull(string $property): bool 'payerID' => 'getPayerID', 'payerSelected' => 'getPayerSelected', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'subtype' => 'getSubtype', 'type' => 'getType' @@ -310,6 +316,7 @@ public function __construct(?array $data = null) $this->setIfExists('payerID', $data ?? [], null); $this->setIfExists('payerSelected', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('subtype', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -524,6 +531,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/PayPayDetails.php b/src/Adyen/Model/Checkout/PayPayDetails.php index dba9f3979..acb15c6d1 100644 --- a/src/Adyen/Model/Checkout/PayPayDetails.php +++ b/src/Adyen/Model/Checkout/PayPayDetails.php @@ -43,6 +43,7 @@ class PayPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -57,6 +58,7 @@ class PayPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -69,6 +71,7 @@ class PayPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -185,6 +190,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -260,6 +266,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -365,6 +372,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/PayToDetails.php b/src/Adyen/Model/Checkout/PayToDetails.php index 4f53c21ba..16d926a93 100644 --- a/src/Adyen/Model/Checkout/PayToDetails.php +++ b/src/Adyen/Model/Checkout/PayToDetails.php @@ -43,6 +43,7 @@ class PayToDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'shopperAccountIdentifier' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' @@ -58,6 +59,7 @@ class PayToDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'shopperAccountIdentifier' => null, 'storedPaymentMethodId' => null, 'type' => null @@ -71,6 +73,7 @@ class PayToDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'shopperAccountIdentifier' => false, 'storedPaymentMethodId' => false, 'type' => false @@ -164,6 +167,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'shopperAccountIdentifier' => 'shopperAccountIdentifier', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' @@ -177,6 +181,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'shopperAccountIdentifier' => 'setShopperAccountIdentifier', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' @@ -190,6 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'shopperAccountIdentifier' => 'getShopperAccountIdentifier', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' @@ -266,6 +272,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperAccountIdentifier', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -372,6 +379,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperAccountIdentifier * diff --git a/src/Adyen/Model/Checkout/PayToPaymentMethod.php b/src/Adyen/Model/Checkout/PayToPaymentMethod.php index efd654a37..b2ff170fa 100644 --- a/src/Adyen/Model/Checkout/PayToPaymentMethod.php +++ b/src/Adyen/Model/Checkout/PayToPaymentMethod.php @@ -14,7 +14,6 @@ namespace Adyen\Model\Checkout; - use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/PayUUpiDetails.php b/src/Adyen/Model/Checkout/PayUUpiDetails.php index 3a4fda04d..a35396780 100644 --- a/src/Adyen/Model/Checkout/PayUUpiDetails.php +++ b/src/Adyen/Model/Checkout/PayUUpiDetails.php @@ -43,6 +43,7 @@ class PayUUpiDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'shopperNotificationReference' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string', @@ -59,6 +60,7 @@ class PayUUpiDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'shopperNotificationReference' => null, 'storedPaymentMethodId' => null, 'type' => null, @@ -73,6 +75,7 @@ class PayUUpiDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'shopperNotificationReference' => false, 'storedPaymentMethodId' => false, 'type' => false, @@ -167,6 +170,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'shopperNotificationReference' => 'shopperNotificationReference', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type', @@ -181,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'shopperNotificationReference' => 'setShopperNotificationReference', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType', @@ -195,6 +200,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'shopperNotificationReference' => 'getShopperNotificationReference', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType', @@ -272,6 +278,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperNotificationReference', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -382,6 +389,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperNotificationReference * diff --git a/src/Adyen/Model/Checkout/PayWithGoogleDetails.php b/src/Adyen/Model/Checkout/PayWithGoogleDetails.php index 802cdd773..3b3d2aacf 100644 --- a/src/Adyen/Model/Checkout/PayWithGoogleDetails.php +++ b/src/Adyen/Model/Checkout/PayWithGoogleDetails.php @@ -45,6 +45,7 @@ class PayWithGoogleDetails implements ModelInterface, ArrayAccess, \JsonSerializ 'fundingSource' => 'string', 'googlePayToken' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'threeDS2SdkVersion' => 'string', 'type' => 'string' @@ -62,6 +63,7 @@ class PayWithGoogleDetails implements ModelInterface, ArrayAccess, \JsonSerializ 'fundingSource' => null, 'googlePayToken' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'threeDS2SdkVersion' => null, 'type' => null @@ -77,6 +79,7 @@ class PayWithGoogleDetails implements ModelInterface, ArrayAccess, \JsonSerializ 'fundingSource' => false, 'googlePayToken' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'threeDS2SdkVersion' => false, 'type' => false @@ -172,6 +175,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'fundingSource', 'googlePayToken' => 'googlePayToken', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'threeDS2SdkVersion' => 'threeDS2SdkVersion', 'type' => 'type' @@ -187,6 +191,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'setFundingSource', 'googlePayToken' => 'setGooglePayToken', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'threeDS2SdkVersion' => 'setThreeDS2SdkVersion', 'type' => 'setType' @@ -202,6 +207,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'getFundingSource', 'googlePayToken' => 'getGooglePayToken', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'threeDS2SdkVersion' => 'getThreeDS2SdkVersion', 'type' => 'getType' @@ -294,6 +300,7 @@ public function __construct(?array $data = null) $this->setIfExists('fundingSource', $data ?? [], null); $this->setIfExists('googlePayToken', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('threeDS2SdkVersion', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -470,6 +477,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/PayWithGoogleDonations.php b/src/Adyen/Model/Checkout/PayWithGoogleDonations.php index 2003d1b40..a4d6986cd 100644 --- a/src/Adyen/Model/Checkout/PayWithGoogleDonations.php +++ b/src/Adyen/Model/Checkout/PayWithGoogleDonations.php @@ -45,6 +45,7 @@ class PayWithGoogleDonations implements ModelInterface, ArrayAccess, \JsonSerial 'fundingSource' => 'string', 'googlePayToken' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'threeDS2SdkVersion' => 'string', 'type' => 'string' @@ -62,6 +63,7 @@ class PayWithGoogleDonations implements ModelInterface, ArrayAccess, \JsonSerial 'fundingSource' => null, 'googlePayToken' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'threeDS2SdkVersion' => null, 'type' => null @@ -77,6 +79,7 @@ class PayWithGoogleDonations implements ModelInterface, ArrayAccess, \JsonSerial 'fundingSource' => false, 'googlePayToken' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'threeDS2SdkVersion' => false, 'type' => false @@ -172,6 +175,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'fundingSource', 'googlePayToken' => 'googlePayToken', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'threeDS2SdkVersion' => 'threeDS2SdkVersion', 'type' => 'type' @@ -187,6 +191,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'setFundingSource', 'googlePayToken' => 'setGooglePayToken', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'threeDS2SdkVersion' => 'setThreeDS2SdkVersion', 'type' => 'setType' @@ -202,6 +207,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'getFundingSource', 'googlePayToken' => 'getGooglePayToken', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'threeDS2SdkVersion' => 'getThreeDS2SdkVersion', 'type' => 'getType' @@ -294,6 +300,7 @@ public function __construct(?array $data = null) $this->setIfExists('fundingSource', $data ?? [], null); $this->setIfExists('googlePayToken', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('threeDS2SdkVersion', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -470,6 +477,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/PaymentDetails.php b/src/Adyen/Model/Checkout/PaymentDetails.php index 86cec7623..d90fc9d5e 100644 --- a/src/Adyen/Model/Checkout/PaymentDetails.php +++ b/src/Adyen/Model/Checkout/PaymentDetails.php @@ -42,6 +42,7 @@ class PaymentDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -54,6 +55,7 @@ class PaymentDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'sdkData' => null, 'type' => null ]; @@ -64,6 +66,7 @@ class PaymentDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'sdkData' => false, 'type' => false ]; @@ -154,6 +157,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -164,6 +168,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -174,6 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -220,10 +226,12 @@ public function getModelName() public const TYPE_ALIPAY = 'alipay'; public const TYPE_MULTIBANCO = 'multibanco'; + public const TYPE_BANK_TRANSFER = 'bankTransfer'; public const TYPE_BANK_TRANSFER_IBAN = 'bankTransfer_IBAN'; public const TYPE_PAYBRIGHT = 'paybright'; public const TYPE_PAYNOW = 'paynow'; public const TYPE_AFFIRM_POS = 'affirm_pos'; + public const TYPE_IRIS = 'iris'; public const TYPE_TRUSTLY = 'trustly'; public const TYPE_TRUSTLYVECTOR = 'trustlyvector'; public const TYPE_ONEY = 'oney'; @@ -244,7 +252,6 @@ public function getModelName() public const TYPE_WALLET_IN = 'wallet_IN'; public const TYPE_PAYU_IN_CASHCARD = 'payu_IN_cashcard'; public const TYPE_PAYU_IN_NB = 'payu_IN_nb'; - public const TYPE_UPI_QR = 'upi_qr'; public const TYPE_PAYTM = 'paytm'; public const TYPE_MOLPAY_EBANKING_VN = 'molpay_ebanking_VN'; public const TYPE_MOLPAY_EBANKING_MY = 'molpay_ebanking_MY'; @@ -277,10 +284,8 @@ public function getModelName() public const TYPE_OMANNET = 'omannet'; public const TYPE_GOPAY_WALLET = 'gopay_wallet'; public const TYPE_KCP_NAVERPAY = 'kcp_naverpay'; - public const TYPE_ONLINEBANKING_IN = 'onlinebanking_IN'; public const TYPE_FAWRY = 'fawry'; public const TYPE_ATOME = 'atome'; - public const TYPE_MONEYBOOKERS = 'moneybookers'; public const TYPE_NAPS = 'naps'; public const TYPE_NORDEA = 'nordea'; public const TYPE_BOLETOBANCARIO_BRADESCO = 'boletobancario_bradesco'; @@ -318,10 +323,12 @@ public function getTypeAllowableValues() return [ self::TYPE_ALIPAY, self::TYPE_MULTIBANCO, + self::TYPE_BANK_TRANSFER, self::TYPE_BANK_TRANSFER_IBAN, self::TYPE_PAYBRIGHT, self::TYPE_PAYNOW, self::TYPE_AFFIRM_POS, + self::TYPE_IRIS, self::TYPE_TRUSTLY, self::TYPE_TRUSTLYVECTOR, self::TYPE_ONEY, @@ -342,7 +349,6 @@ public function getTypeAllowableValues() self::TYPE_WALLET_IN, self::TYPE_PAYU_IN_CASHCARD, self::TYPE_PAYU_IN_NB, - self::TYPE_UPI_QR, self::TYPE_PAYTM, self::TYPE_MOLPAY_EBANKING_VN, self::TYPE_MOLPAY_EBANKING_MY, @@ -375,10 +381,8 @@ public function getTypeAllowableValues() self::TYPE_OMANNET, self::TYPE_GOPAY_WALLET, self::TYPE_KCP_NAVERPAY, - self::TYPE_ONLINEBANKING_IN, self::TYPE_FAWRY, self::TYPE_ATOME, - self::TYPE_MONEYBOOKERS, self::TYPE_NAPS, self::TYPE_NORDEA, self::TYPE_BOLETOBANCARIO_BRADESCO, @@ -423,6 +427,7 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -501,6 +506,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/PaymentDetailsResponse.php b/src/Adyen/Model/Checkout/PaymentDetailsResponse.php index 3b8a8d1d5..e01ec29b6 100644 --- a/src/Adyen/Model/Checkout/PaymentDetailsResponse.php +++ b/src/Adyen/Model/Checkout/PaymentDetailsResponse.php @@ -49,6 +49,7 @@ class PaymentDetailsResponse implements ModelInterface, ArrayAccess, \JsonSerial 'merchantReference' => 'string', 'order' => '\Adyen\Model\Checkout\CheckoutOrderResponse', 'paymentMethod' => '\Adyen\Model\Checkout\ResponsePaymentMethod', + 'paymentValidations' => '\Adyen\Model\Checkout\PaymentValidationsResponse', 'pspReference' => 'string', 'refusalReason' => 'string', 'refusalReasonCode' => 'string', @@ -75,6 +76,7 @@ class PaymentDetailsResponse implements ModelInterface, ArrayAccess, \JsonSerial 'merchantReference' => null, 'order' => null, 'paymentMethod' => null, + 'paymentValidations' => null, 'pspReference' => null, 'refusalReason' => null, 'refusalReasonCode' => null, @@ -99,6 +101,7 @@ class PaymentDetailsResponse implements ModelInterface, ArrayAccess, \JsonSerial 'merchantReference' => false, 'order' => false, 'paymentMethod' => false, + 'paymentValidations' => false, 'pspReference' => false, 'refusalReason' => false, 'refusalReasonCode' => false, @@ -203,6 +206,7 @@ public function isNullableSetToNull(string $property): bool 'merchantReference' => 'merchantReference', 'order' => 'order', 'paymentMethod' => 'paymentMethod', + 'paymentValidations' => 'paymentValidations', 'pspReference' => 'pspReference', 'refusalReason' => 'refusalReason', 'refusalReasonCode' => 'refusalReasonCode', @@ -227,6 +231,7 @@ public function isNullableSetToNull(string $property): bool 'merchantReference' => 'setMerchantReference', 'order' => 'setOrder', 'paymentMethod' => 'setPaymentMethod', + 'paymentValidations' => 'setPaymentValidations', 'pspReference' => 'setPspReference', 'refusalReason' => 'setRefusalReason', 'refusalReasonCode' => 'setRefusalReasonCode', @@ -251,6 +256,7 @@ public function isNullableSetToNull(string $property): bool 'merchantReference' => 'getMerchantReference', 'order' => 'getOrder', 'paymentMethod' => 'getPaymentMethod', + 'paymentValidations' => 'getPaymentValidations', 'pspReference' => 'getPspReference', 'refusalReason' => 'getRefusalReason', 'refusalReasonCode' => 'getRefusalReasonCode', @@ -364,6 +370,7 @@ public function __construct(?array $data = null) $this->setIfExists('merchantReference', $data ?? [], null); $this->setIfExists('order', $data ?? [], null); $this->setIfExists('paymentMethod', $data ?? [], null); + $this->setIfExists('paymentValidations', $data ?? [], null); $this->setIfExists('pspReference', $data ?? [], null); $this->setIfExists('refusalReason', $data ?? [], null); $this->setIfExists('refusalReasonCode', $data ?? [], null); @@ -617,6 +624,30 @@ public function setPaymentMethod($paymentMethod) return $this; } + /** + * Gets paymentValidations + * + * @return \Adyen\Model\Checkout\PaymentValidationsResponse|null + */ + public function getPaymentValidations() + { + return $this->container['paymentValidations']; + } + + /** + * Sets paymentValidations + * + * @param \Adyen\Model\Checkout\PaymentValidationsResponse|null $paymentValidations paymentValidations + * + * @return self + */ + public function setPaymentValidations($paymentValidations) + { + $this->container['paymentValidations'] = $paymentValidations; + + return $this; + } + /** * Gets pspReference * diff --git a/src/Adyen/Model/Checkout/PaymentRequest.php b/src/Adyen/Model/Checkout/PaymentRequest.php index 605242e19..546e14a1f 100644 --- a/src/Adyen/Model/Checkout/PaymentRequest.php +++ b/src/Adyen/Model/Checkout/PaymentRequest.php @@ -85,6 +85,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'orderReference' => 'string', 'origin' => 'string', 'paymentMethod' => '\Adyen\Model\Checkout\CheckoutPaymentMethod', + 'paymentValidations' => '\Adyen\Model\Checkout\PaymentValidations', 'platformChargebackLogic' => '\Adyen\Model\Checkout\PlatformChargebackLogic', 'recurringExpiry' => 'string', 'recurringFrequency' => 'string', @@ -94,13 +95,14 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'reference' => 'string', 'returnUrl' => 'string', 'riskData' => '\Adyen\Model\Checkout\RiskData', + 'sdkData' => 'string', 'sessionValidity' => 'string', 'shopperConversionId' => 'string', 'shopperEmail' => 'string', 'shopperIP' => 'string', 'shopperInteraction' => 'string', 'shopperLocale' => 'string', - 'shopperName' => '\Adyen\Model\Checkout\Name', + 'shopperName' => '\Adyen\Model\Checkout\ShopperName', 'shopperReference' => 'string', 'shopperStatement' => 'string', 'socialSecurityNumber' => 'string', @@ -167,6 +169,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'orderReference' => null, 'origin' => null, 'paymentMethod' => null, + 'paymentValidations' => null, 'platformChargebackLogic' => null, 'recurringExpiry' => null, 'recurringFrequency' => null, @@ -176,6 +179,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'reference' => null, 'returnUrl' => null, 'riskData' => null, + 'sdkData' => null, 'sessionValidity' => null, 'shopperConversionId' => null, 'shopperEmail' => null, @@ -247,6 +251,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'orderReference' => false, 'origin' => false, 'paymentMethod' => false, + 'paymentValidations' => false, 'platformChargebackLogic' => false, 'recurringExpiry' => false, 'recurringFrequency' => false, @@ -256,6 +261,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'reference' => false, 'returnUrl' => false, 'riskData' => false, + 'sdkData' => false, 'sessionValidity' => false, 'shopperConversionId' => false, 'shopperEmail' => false, @@ -407,6 +413,7 @@ public function isNullableSetToNull(string $property): bool 'orderReference' => 'orderReference', 'origin' => 'origin', 'paymentMethod' => 'paymentMethod', + 'paymentValidations' => 'paymentValidations', 'platformChargebackLogic' => 'platformChargebackLogic', 'recurringExpiry' => 'recurringExpiry', 'recurringFrequency' => 'recurringFrequency', @@ -416,6 +423,7 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'reference', 'returnUrl' => 'returnUrl', 'riskData' => 'riskData', + 'sdkData' => 'sdkData', 'sessionValidity' => 'sessionValidity', 'shopperConversionId' => 'shopperConversionId', 'shopperEmail' => 'shopperEmail', @@ -487,6 +495,7 @@ public function isNullableSetToNull(string $property): bool 'orderReference' => 'setOrderReference', 'origin' => 'setOrigin', 'paymentMethod' => 'setPaymentMethod', + 'paymentValidations' => 'setPaymentValidations', 'platformChargebackLogic' => 'setPlatformChargebackLogic', 'recurringExpiry' => 'setRecurringExpiry', 'recurringFrequency' => 'setRecurringFrequency', @@ -496,6 +505,7 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'setReference', 'returnUrl' => 'setReturnUrl', 'riskData' => 'setRiskData', + 'sdkData' => 'setSdkData', 'sessionValidity' => 'setSessionValidity', 'shopperConversionId' => 'setShopperConversionId', 'shopperEmail' => 'setShopperEmail', @@ -567,6 +577,7 @@ public function isNullableSetToNull(string $property): bool 'orderReference' => 'getOrderReference', 'origin' => 'getOrigin', 'paymentMethod' => 'getPaymentMethod', + 'paymentValidations' => 'getPaymentValidations', 'platformChargebackLogic' => 'getPlatformChargebackLogic', 'recurringExpiry' => 'getRecurringExpiry', 'recurringFrequency' => 'getRecurringFrequency', @@ -576,6 +587,7 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'getReference', 'returnUrl' => 'getReturnUrl', 'riskData' => 'getRiskData', + 'sdkData' => 'getSdkData', 'sessionValidity' => 'getSessionValidity', 'shopperConversionId' => 'getShopperConversionId', 'shopperEmail' => 'getShopperEmail', @@ -778,6 +790,7 @@ public function __construct(?array $data = null) $this->setIfExists('orderReference', $data ?? [], null); $this->setIfExists('origin', $data ?? [], null); $this->setIfExists('paymentMethod', $data ?? [], null); + $this->setIfExists('paymentValidations', $data ?? [], null); $this->setIfExists('platformChargebackLogic', $data ?? [], null); $this->setIfExists('recurringExpiry', $data ?? [], null); $this->setIfExists('recurringFrequency', $data ?? [], null); @@ -787,6 +800,7 @@ public function __construct(?array $data = null) $this->setIfExists('reference', $data ?? [], null); $this->setIfExists('returnUrl', $data ?? [], null); $this->setIfExists('riskData', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('sessionValidity', $data ?? [], null); $this->setIfExists('shopperConversionId', $data ?? [], null); $this->setIfExists('shopperEmail', $data ?? [], null); @@ -1725,7 +1739,7 @@ public function getLocalizedShopperStatement() /** * Sets localizedShopperStatement * - * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. * * @return self */ @@ -2000,6 +2014,30 @@ public function setPaymentMethod($paymentMethod) return $this; } + /** + * Gets paymentValidations + * + * @return \Adyen\Model\Checkout\PaymentValidations|null + */ + public function getPaymentValidations() + { + return $this->container['paymentValidations']; + } + + /** + * Sets paymentValidations + * + * @param \Adyen\Model\Checkout\PaymentValidations|null $paymentValidations paymentValidations + * + * @return self + */ + public function setPaymentValidations($paymentValidations) + { + $this->container['paymentValidations'] = $paymentValidations; + + return $this; + } + /** * Gets platformChargebackLogic * @@ -2226,6 +2264,30 @@ public function setRiskData($riskData) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK to function optimally. Clients must not add unrelated or sensitive personal information. + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets sessionValidity * @@ -2383,7 +2445,7 @@ public function setShopperLocale($shopperLocale) /** * Gets shopperName * - * @return \Adyen\Model\Checkout\Name|null + * @return \Adyen\Model\Checkout\ShopperName|null */ public function getShopperName() { @@ -2393,7 +2455,7 @@ public function getShopperName() /** * Sets shopperName * - * @param \Adyen\Model\Checkout\Name|null $shopperName shopperName + * @param \Adyen\Model\Checkout\ShopperName|null $shopperName shopperName * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentResponse.php b/src/Adyen/Model/Checkout/PaymentResponse.php index a7655e357..9832d1d97 100644 --- a/src/Adyen/Model/Checkout/PaymentResponse.php +++ b/src/Adyen/Model/Checkout/PaymentResponse.php @@ -49,6 +49,7 @@ class PaymentResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'merchantReference' => 'string', 'order' => '\Adyen\Model\Checkout\CheckoutOrderResponse', 'paymentMethod' => '\Adyen\Model\Checkout\ResponsePaymentMethod', + 'paymentValidations' => '\Adyen\Model\Checkout\PaymentValidationsResponse', 'pspReference' => 'string', 'refusalReason' => 'string', 'refusalReasonCode' => 'string', @@ -74,6 +75,7 @@ class PaymentResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'merchantReference' => null, 'order' => null, 'paymentMethod' => null, + 'paymentValidations' => null, 'pspReference' => null, 'refusalReason' => null, 'refusalReasonCode' => null, @@ -97,6 +99,7 @@ class PaymentResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'merchantReference' => false, 'order' => false, 'paymentMethod' => false, + 'paymentValidations' => false, 'pspReference' => false, 'refusalReason' => false, 'refusalReasonCode' => false, @@ -200,6 +203,7 @@ public function isNullableSetToNull(string $property): bool 'merchantReference' => 'merchantReference', 'order' => 'order', 'paymentMethod' => 'paymentMethod', + 'paymentValidations' => 'paymentValidations', 'pspReference' => 'pspReference', 'refusalReason' => 'refusalReason', 'refusalReasonCode' => 'refusalReasonCode', @@ -223,6 +227,7 @@ public function isNullableSetToNull(string $property): bool 'merchantReference' => 'setMerchantReference', 'order' => 'setOrder', 'paymentMethod' => 'setPaymentMethod', + 'paymentValidations' => 'setPaymentValidations', 'pspReference' => 'setPspReference', 'refusalReason' => 'setRefusalReason', 'refusalReasonCode' => 'setRefusalReasonCode', @@ -246,6 +251,7 @@ public function isNullableSetToNull(string $property): bool 'merchantReference' => 'getMerchantReference', 'order' => 'getOrder', 'paymentMethod' => 'getPaymentMethod', + 'paymentValidations' => 'getPaymentValidations', 'pspReference' => 'getPspReference', 'refusalReason' => 'getRefusalReason', 'refusalReasonCode' => 'getRefusalReasonCode', @@ -358,6 +364,7 @@ public function __construct(?array $data = null) $this->setIfExists('merchantReference', $data ?? [], null); $this->setIfExists('order', $data ?? [], null); $this->setIfExists('paymentMethod', $data ?? [], null); + $this->setIfExists('paymentValidations', $data ?? [], null); $this->setIfExists('pspReference', $data ?? [], null); $this->setIfExists('refusalReason', $data ?? [], null); $this->setIfExists('refusalReasonCode', $data ?? [], null); @@ -610,6 +617,30 @@ public function setPaymentMethod($paymentMethod) return $this; } + /** + * Gets paymentValidations + * + * @return \Adyen\Model\Checkout\PaymentValidationsResponse|null + */ + public function getPaymentValidations() + { + return $this->container['paymentValidations']; + } + + /** + * Sets paymentValidations + * + * @param \Adyen\Model\Checkout\PaymentValidationsResponse|null $paymentValidations paymentValidations + * + * @return self + */ + public function setPaymentValidations($paymentValidations) + { + $this->container['paymentValidations'] = $paymentValidations; + + return $this; + } + /** * Gets pspReference * diff --git a/src/Adyen/Model/Checkout/PaymentResponseAction.php b/src/Adyen/Model/Checkout/PaymentResponseAction.php index 5e3ace006..10a7a036a 100644 --- a/src/Adyen/Model/Checkout/PaymentResponseAction.php +++ b/src/Adyen/Model/Checkout/PaymentResponseAction.php @@ -48,8 +48,10 @@ class PaymentResponseAction implements ModelInterface, ArrayAccess, \JsonSeriali 'type' => 'string', 'url' => 'string', 'accountNumber' => 'string', + 'bankCode' => 'string', 'beneficiary' => 'string', 'bic' => 'string', + 'branchCode' => 'string', 'downloadUrl' => 'string', 'iban' => 'string', 'reference' => 'string', @@ -93,8 +95,10 @@ class PaymentResponseAction implements ModelInterface, ArrayAccess, \JsonSeriali 'type' => null, 'url' => null, 'accountNumber' => null, + 'bankCode' => null, 'beneficiary' => null, 'bic' => null, + 'branchCode' => null, 'downloadUrl' => null, 'iban' => null, 'reference' => null, @@ -136,8 +140,10 @@ class PaymentResponseAction implements ModelInterface, ArrayAccess, \JsonSeriali 'type' => false, 'url' => false, 'accountNumber' => false, + 'bankCode' => false, 'beneficiary' => false, 'bic' => false, + 'branchCode' => false, 'downloadUrl' => false, 'iban' => false, 'reference' => false, @@ -259,8 +265,10 @@ public function isNullableSetToNull(string $property): bool 'type' => 'type', 'url' => 'url', 'accountNumber' => 'accountNumber', + 'bankCode' => 'bankCode', 'beneficiary' => 'beneficiary', 'bic' => 'bic', + 'branchCode' => 'branchCode', 'downloadUrl' => 'downloadUrl', 'iban' => 'iban', 'reference' => 'reference', @@ -302,8 +310,10 @@ public function isNullableSetToNull(string $property): bool 'type' => 'setType', 'url' => 'setUrl', 'accountNumber' => 'setAccountNumber', + 'bankCode' => 'setBankCode', 'beneficiary' => 'setBeneficiary', 'bic' => 'setBic', + 'branchCode' => 'setBranchCode', 'downloadUrl' => 'setDownloadUrl', 'iban' => 'setIban', 'reference' => 'setReference', @@ -345,8 +355,10 @@ public function isNullableSetToNull(string $property): bool 'type' => 'getType', 'url' => 'getUrl', 'accountNumber' => 'getAccountNumber', + 'bankCode' => 'getBankCode', 'beneficiary' => 'getBeneficiary', 'bic' => 'getBic', + 'branchCode' => 'getBranchCode', 'downloadUrl' => 'getDownloadUrl', 'iban' => 'getIban', 'reference' => 'getReference', @@ -438,8 +450,10 @@ public function __construct(?array $data = null) $this->setIfExists('type', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); $this->setIfExists('accountNumber', $data ?? [], null); + $this->setIfExists('bankCode', $data ?? [], null); $this->setIfExists('beneficiary', $data ?? [], null); $this->setIfExists('bic', $data ?? [], null); + $this->setIfExists('branchCode', $data ?? [], null); $this->setIfExists('downloadUrl', $data ?? [], null); $this->setIfExists('iban', $data ?? [], null); $this->setIfExists('reference', $data ?? [], null); @@ -636,6 +650,30 @@ public function setAccountNumber($accountNumber) return $this; } + /** + * Gets bankCode + * + * @return string|null + */ + public function getBankCode() + { + return $this->container['bankCode']; + } + + /** + * Sets bankCode + * + * @param string|null $bankCode The bank code of the bank transfer. + * + * @return self + */ + public function setBankCode($bankCode) + { + $this->container['bankCode'] = $bankCode; + + return $this; + } + /** * Gets beneficiary * @@ -684,6 +722,30 @@ public function setBic($bic) return $this; } + /** + * Gets branchCode + * + * @return string|null + */ + public function getBranchCode() + { + return $this->container['branchCode']; + } + + /** + * Sets branchCode + * + * @param string|null $branchCode The branch code of the bank transfer. + * + * @return self + */ + public function setBranchCode($branchCode) + { + $this->container['branchCode'] = $branchCode; + + return $this; + } + /** * Gets downloadUrl * diff --git a/src/Adyen/Model/Checkout/PaymentValidations.php b/src/Adyen/Model/Checkout/PaymentValidations.php new file mode 100644 index 000000000..78765e0f4 --- /dev/null +++ b/src/Adyen/Model/Checkout/PaymentValidations.php @@ -0,0 +1,404 @@ + + */ +class PaymentValidations implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentValidations'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'name' => '\Adyen\Model\Checkout\Name' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'name' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'name' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('name', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets name + * + * @return \Adyen\Model\Checkout\Name|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param \Adyen\Model\Checkout\Name|null $name name + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php new file mode 100644 index 000000000..d525ed53b --- /dev/null +++ b/src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php @@ -0,0 +1,501 @@ + + */ +class PaymentValidationsNameResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentValidationsNameResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'rawResponse' => '\Adyen\Model\Checkout\PaymentValidationsNameResultRawResponse', + 'result' => '\Adyen\Model\Checkout\PaymentValidationsNameResultResponse', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'rawResponse' => null, + 'result' => null, + 'status' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'rawResponse' => false, + 'result' => false, + 'status' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'rawResponse' => 'rawResponse', + 'result' => 'result', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'rawResponse' => 'setRawResponse', + 'result' => 'setResult', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'rawResponse' => 'getRawResponse', + 'result' => 'getResult', + 'status' => 'getStatus' + ]; + + /** + * 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 STATUS_NOT_PERFORMED = 'notPerformed'; + public const STATUS_NOT_SUPPORTED = 'notSupported'; + public const STATUS_PERFORMED = 'performed'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_NOT_PERFORMED, + self::STATUS_NOT_SUPPORTED, + self::STATUS_PERFORMED, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('rawResponse', $data ?? [], null); + $this->setIfExists('result', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + 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 rawResponse + * + * @return \Adyen\Model\Checkout\PaymentValidationsNameResultRawResponse|null + */ + public function getRawResponse() + { + return $this->container['rawResponse']; + } + + /** + * Sets rawResponse + * + * @param \Adyen\Model\Checkout\PaymentValidationsNameResultRawResponse|null $rawResponse rawResponse + * + * @return self + */ + public function setRawResponse($rawResponse) + { + $this->container['rawResponse'] = $rawResponse; + + return $this; + } + + /** + * Gets result + * + * @return \Adyen\Model\Checkout\PaymentValidationsNameResultResponse|null + */ + public function getResult() + { + return $this->container['result']; + } + + /** + * Sets result + * + * @param \Adyen\Model\Checkout\PaymentValidationsNameResultResponse|null $result result + * + * @return self + */ + public function setResult($result) + { + $this->container['result'] = $result; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status Informs you if the name validation was performed. Possible values: **performed**, **notPerformed**, **notSupported** + * + * @return self + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + error_log( + sprintf( + "status: unexpected enum value '%s' - Supported values are [%s]", + $status, + implode(', ', $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php new file mode 100644 index 000000000..d7a8b5867 --- /dev/null +++ b/src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php @@ -0,0 +1,528 @@ + + */ +class PaymentValidationsNameResultRawResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentValidationsNameResultRawResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'firstName' => 'string', + 'fullName' => 'string', + 'lastName' => 'string', + 'middleName' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'firstName' => null, + 'fullName' => null, + 'lastName' => null, + 'middleName' => null, + 'status' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'firstName' => false, + 'fullName' => false, + 'lastName' => false, + 'middleName' => false, + 'status' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'firstName' => 'firstName', + 'fullName' => 'fullName', + 'lastName' => 'lastName', + 'middleName' => 'middleName', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'firstName' => 'setFirstName', + 'fullName' => 'setFullName', + 'lastName' => 'setLastName', + 'middleName' => 'setMiddleName', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'firstName' => 'getFirstName', + 'fullName' => 'getFullName', + 'lastName' => 'getLastName', + 'middleName' => 'getMiddleName', + 'status' => 'getStatus' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('firstName', $data ?? [], null); + $this->setIfExists('fullName', $data ?? [], null); + $this->setIfExists('lastName', $data ?? [], null); + $this->setIfExists('middleName', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets firstName + * + * @return string|null + */ + public function getFirstName() + { + return $this->container['firstName']; + } + + /** + * Sets firstName + * + * @param string|null $firstName The raw first name validation result that Adyen received from the scheme. First name validation result is only returned for Visa. + * + * @return self + */ + public function setFirstName($firstName) + { + $this->container['firstName'] = $firstName; + + return $this; + } + + /** + * Gets fullName + * + * @return string|null + */ + public function getFullName() + { + return $this->container['fullName']; + } + + /** + * Sets fullName + * + * @param string|null $fullName The raw full name validation result that Adyen received from the scheme. Full name is the only field that is validated for Mastercard + * + * @return self + */ + public function setFullName($fullName) + { + $this->container['fullName'] = $fullName; + + return $this; + } + + /** + * Gets lastName + * + * @return string|null + */ + public function getLastName() + { + return $this->container['lastName']; + } + + /** + * Sets lastName + * + * @param string|null $lastName The raw last name validation result that Adyen received from the scheme. Last name validation result is only returned for Visa. + * + * @return self + */ + public function setLastName($lastName) + { + $this->container['lastName'] = $lastName; + + return $this; + } + + /** + * Gets middleName + * + * @return string|null + */ + public function getMiddleName() + { + return $this->container['middleName']; + } + + /** + * Sets middleName + * + * @param string|null $middleName The raw middle name validation result that Adyen received from the scheme. Middle name validation result is only returned for Visa. + * + * @return self + */ + public function setMiddleName($middleName) + { + $this->container['middleName'] = $middleName; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status The raw name validation status value that Adyen received from the scheme. Only returned for Visa. + * + * @return self + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php new file mode 100644 index 000000000..c23f5d806 --- /dev/null +++ b/src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php @@ -0,0 +1,497 @@ + + */ +class PaymentValidationsNameResultResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentValidationsNameResultResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'firstName' => 'string', + 'fullName' => 'string', + 'lastName' => 'string', + 'middleName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'firstName' => null, + 'fullName' => null, + 'lastName' => null, + 'middleName' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'firstName' => false, + 'fullName' => false, + 'lastName' => false, + 'middleName' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'firstName' => 'firstName', + 'fullName' => 'fullName', + 'lastName' => 'lastName', + 'middleName' => 'middleName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'firstName' => 'setFirstName', + 'fullName' => 'setFullName', + 'lastName' => 'setLastName', + 'middleName' => 'setMiddleName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'firstName' => 'getFirstName', + 'fullName' => 'getFullName', + 'lastName' => 'getLastName', + 'middleName' => 'getMiddleName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('firstName', $data ?? [], null); + $this->setIfExists('fullName', $data ?? [], null); + $this->setIfExists('lastName', $data ?? [], null); + $this->setIfExists('middleName', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets firstName + * + * @return string|null + */ + public function getFirstName() + { + return $this->container['firstName']; + } + + /** + * Sets firstName + * + * @param string|null $firstName Informs you if the first name your shopper provided matches the cardholder first name on file at the issuing bank. The first name is only validated for Visa. Possible values: **match**, **partialMatch**, **noMatch** + * + * @return self + */ + public function setFirstName($firstName) + { + $this->container['firstName'] = $firstName; + + return $this; + } + + /** + * Gets fullName + * + * @return string|null + */ + public function getFullName() + { + return $this->container['fullName']; + } + + /** + * Sets fullName + * + * @param string|null $fullName Informs you if the full name your shopper provided matches the cardholder name on file at the issuing bank. The full name is the only field that is validated for Mastercard. Possible values: **match**, **partialMatch**, **noMatch** + * + * @return self + */ + public function setFullName($fullName) + { + $this->container['fullName'] = $fullName; + + return $this; + } + + /** + * Gets lastName + * + * @return string|null + */ + public function getLastName() + { + return $this->container['lastName']; + } + + /** + * Sets lastName + * + * @param string|null $lastName Informs you if the last name your shopper provided matches the cardholder last name on file at the issuing bank. The last name is only validated for Visa. Possible values: **match**, **partialMatch**, **noMatch** + * + * @return self + */ + public function setLastName($lastName) + { + $this->container['lastName'] = $lastName; + + return $this; + } + + /** + * Gets middleName + * + * @return string|null + */ + public function getMiddleName() + { + return $this->container['middleName']; + } + + /** + * Sets middleName + * + * @param string|null $middleName Informs you if the middle name your shopper provided matches the cardholder middle name on file at the issuing bank. The middle name is only validated for Visa. Possible values: **match**, **partialMatch**, **noMatch** + * + * @return self + */ + public function setMiddleName($middleName) + { + $this->container['middleName'] = $middleName; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/PaymentValidationsResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsResponse.php new file mode 100644 index 000000000..cf4246d95 --- /dev/null +++ b/src/Adyen/Model/Checkout/PaymentValidationsResponse.php @@ -0,0 +1,404 @@ + + */ +class PaymentValidationsResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentValidationsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'name' => '\Adyen\Model\Checkout\PaymentValidationsNameResponse' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'name' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'name' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('name', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets name + * + * @return \Adyen\Model\Checkout\PaymentValidationsNameResponse|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param \Adyen\Model\Checkout\PaymentValidationsNameResponse|null $name name + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/PixDetails.php b/src/Adyen/Model/Checkout/PixDetails.php index 7dd96957c..2790e7503 100644 --- a/src/Adyen/Model/Checkout/PixDetails.php +++ b/src/Adyen/Model/Checkout/PixDetails.php @@ -44,6 +44,7 @@ class PixDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'pixRecurring' => '\Adyen\Model\Checkout\PixRecurring', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class PixDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'pixRecurring' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class PixDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'pixRecurring' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'pixRecurring' => 'pixRecurring', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'pixRecurring' => 'setPixRecurring', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'pixRecurring' => 'getPixRecurring', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -267,6 +273,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('pixRecurring', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -396,6 +403,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/PseDetails.php b/src/Adyen/Model/Checkout/PseDetails.php index 3102ae699..eb99542df 100644 --- a/src/Adyen/Model/Checkout/PseDetails.php +++ b/src/Adyen/Model/Checkout/PseDetails.php @@ -46,6 +46,7 @@ class PseDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'clientType' => 'string', 'identification' => 'string', 'identificationType' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -62,6 +63,7 @@ class PseDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'clientType' => null, 'identification' => null, 'identificationType' => null, + 'sdkData' => null, 'type' => null ]; @@ -76,6 +78,7 @@ class PseDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'clientType' => false, 'identification' => false, 'identificationType' => false, + 'sdkData' => false, 'type' => false ]; @@ -170,6 +173,7 @@ public function isNullableSetToNull(string $property): bool 'clientType' => 'clientType', 'identification' => 'identification', 'identificationType' => 'identificationType', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -184,6 +188,7 @@ public function isNullableSetToNull(string $property): bool 'clientType' => 'setClientType', 'identification' => 'setIdentification', 'identificationType' => 'setIdentificationType', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -198,6 +203,7 @@ public function isNullableSetToNull(string $property): bool 'clientType' => 'getClientType', 'identification' => 'getIdentification', 'identificationType' => 'getIdentificationType', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -275,6 +281,7 @@ public function __construct(?array $data = null) $this->setIfExists('clientType', $data ?? [], null); $this->setIfExists('identification', $data ?? [], null); $this->setIfExists('identificationType', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -461,6 +468,30 @@ public function setIdentificationType($identificationType) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/RakutenPayDetails.php b/src/Adyen/Model/Checkout/RakutenPayDetails.php index 81cefe185..d3301f22f 100644 --- a/src/Adyen/Model/Checkout/RakutenPayDetails.php +++ b/src/Adyen/Model/Checkout/RakutenPayDetails.php @@ -43,6 +43,7 @@ class RakutenPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -57,6 +58,7 @@ class RakutenPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -69,6 +71,7 @@ class RakutenPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -185,6 +190,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -260,6 +266,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -365,6 +372,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/RatepayDetails.php b/src/Adyen/Model/Checkout/RatepayDetails.php index 3a047bb4e..13a5c2f04 100644 --- a/src/Adyen/Model/Checkout/RatepayDetails.php +++ b/src/Adyen/Model/Checkout/RatepayDetails.php @@ -46,6 +46,7 @@ class RatepayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => 'string', 'personalDetails' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -63,6 +64,7 @@ class RatepayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => null, 'personalDetails' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -78,6 +80,7 @@ class RatepayDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => false, 'personalDetails' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -173,6 +176,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'deliveryAddress', 'personalDetails' => 'personalDetails', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -188,6 +192,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'setDeliveryAddress', 'personalDetails' => 'setPersonalDetails', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'getDeliveryAddress', 'personalDetails' => 'getPersonalDetails', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -283,6 +289,7 @@ public function __construct(?array $data = null) $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -463,6 +470,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/Recurring.php b/src/Adyen/Model/Checkout/Recurring.php index 0c1cd0553..831f2fc28 100644 --- a/src/Adyen/Model/Checkout/Recurring.php +++ b/src/Adyen/Model/Checkout/Recurring.php @@ -237,8 +237,10 @@ public function getModelName() } public const CONTRACT_ONECLICK = 'ONECLICK'; + public const CONTRACT_ONECLICKRECURRING = 'ONECLICK,RECURRING'; public const CONTRACT_RECURRING = 'RECURRING'; public const CONTRACT_PAYOUT = 'PAYOUT'; + public const CONTRACT_EXTERNAL = 'EXTERNAL'; public const TOKEN_SERVICE_VISATOKENSERVICE = 'VISATOKENSERVICE'; public const TOKEN_SERVICE_MCTOKENSERVICE = 'MCTOKENSERVICE'; public const TOKEN_SERVICE_AMEXTOKENSERVICE = 'AMEXTOKENSERVICE'; @@ -253,8 +255,10 @@ public function getContractAllowableValues() { return [ self::CONTRACT_ONECLICK, + self::CONTRACT_ONECLICKRECURRING, self::CONTRACT_RECURRING, self::CONTRACT_PAYOUT, + self::CONTRACT_EXTERNAL, ]; } /** @@ -366,7 +370,7 @@ public function getContract() /** * Sets contract * - * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. * * @return self */ diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php index 70454e23c..c38080b75 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php @@ -43,6 +43,7 @@ class ResponseAdditionalDataSepa implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPITypes = [ 'sepadirectdebitDateOfSignature' => 'string', 'sepadirectdebitMandateId' => 'string', + 'sepadirectdebitSepadirectdebitDueDate' => 'string', 'sepadirectdebitSequenceType' => 'string' ]; @@ -56,6 +57,7 @@ class ResponseAdditionalDataSepa implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPIFormats = [ 'sepadirectdebitDateOfSignature' => null, 'sepadirectdebitMandateId' => null, + 'sepadirectdebitSepadirectdebitDueDate' => null, 'sepadirectdebitSequenceType' => null ]; @@ -67,6 +69,7 @@ class ResponseAdditionalDataSepa implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPINullables = [ 'sepadirectdebitDateOfSignature' => false, 'sepadirectdebitMandateId' => false, + 'sepadirectdebitSepadirectdebitDueDate' => false, 'sepadirectdebitSequenceType' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'sepadirectdebitDateOfSignature' => 'sepadirectdebit.dateOfSignature', 'sepadirectdebitMandateId' => 'sepadirectdebit.mandateId', + 'sepadirectdebitSepadirectdebitDueDate' => 'sepadirectdebit.sepadirectdebit.dueDate', 'sepadirectdebitSequenceType' => 'sepadirectdebit.sequenceType' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'sepadirectdebitDateOfSignature' => 'setSepadirectdebitDateOfSignature', 'sepadirectdebitMandateId' => 'setSepadirectdebitMandateId', + 'sepadirectdebitSepadirectdebitDueDate' => 'setSepadirectdebitSepadirectdebitDueDate', 'sepadirectdebitSequenceType' => 'setSepadirectdebitSequenceType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'sepadirectdebitDateOfSignature' => 'getSepadirectdebitDateOfSignature', 'sepadirectdebitMandateId' => 'getSepadirectdebitMandateId', + 'sepadirectdebitSepadirectdebitDueDate' => 'getSepadirectdebitSepadirectdebitDueDate', 'sepadirectdebitSequenceType' => 'getSepadirectdebitSequenceType' ]; @@ -242,6 +248,7 @@ public function __construct(?array $data = null) { $this->setIfExists('sepadirectdebitDateOfSignature', $data ?? [], null); $this->setIfExists('sepadirectdebitMandateId', $data ?? [], null); + $this->setIfExists('sepadirectdebitSepadirectdebitDueDate', $data ?? [], null); $this->setIfExists('sepadirectdebitSequenceType', $data ?? [], null); } @@ -335,6 +342,30 @@ public function setSepadirectdebitMandateId($sepadirectdebitMandateId) return $this; } + /** + * Gets sepadirectdebitSepadirectdebitDueDate + * + * @return string|null + */ + public function getSepadirectdebitSepadirectdebitDueDate() + { + return $this->container['sepadirectdebitSepadirectdebitDueDate']; + } + + /** + * Sets sepadirectdebitSepadirectdebitDueDate + * + * @param string|null $sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account is charged. + * + * @return self + */ + public function setSepadirectdebitSepadirectdebitDueDate($sepadirectdebitSepadirectdebitDueDate) + { + $this->container['sepadirectdebitSepadirectdebitDueDate'] = $sepadirectdebitSepadirectdebitDueDate; + + return $this; + } + /** * Gets sepadirectdebitSequenceType * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php new file mode 100644 index 000000000..bd559d77e --- /dev/null +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php @@ -0,0 +1,404 @@ + + */ +class ResponseAdditionalDataSwish implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ResponseAdditionalDataSwish'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'swishPayerAlias' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'swishPayerAlias' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'swishPayerAlias' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'swishPayerAlias' => 'swish.payerAlias' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'swishPayerAlias' => 'setSwishPayerAlias' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'swishPayerAlias' => 'getSwishPayerAlias' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('swishPayerAlias', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets swishPayerAlias + * + * @return string|null + */ + public function getSwishPayerAlias() + { + return $this->container['swishPayerAlias']; + } + + /** + * Sets swishPayerAlias + * + * @param string|null $swishPayerAlias A Swish shopper's telephone number. + * + * @return self + */ + public function setSwishPayerAlias($swishPayerAlias) + { + $this->container['swishPayerAlias'] = $swishPayerAlias; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/Result.php b/src/Adyen/Model/Checkout/Result.php index f409e9302..6dd17f86e 100644 --- a/src/Adyen/Model/Checkout/Result.php +++ b/src/Adyen/Model/Checkout/Result.php @@ -14,7 +14,6 @@ namespace Adyen\Model\Checkout; - use Adyen\Model\Checkout\ObjectSerializer; /** @@ -46,3 +45,4 @@ public static function getAllowableEnumValues() ]; } } + diff --git a/src/Adyen/Model/Checkout/RivertyDetails.php b/src/Adyen/Model/Checkout/RivertyDetails.php index 5b86c7dfa..c38b72f06 100644 --- a/src/Adyen/Model/Checkout/RivertyDetails.php +++ b/src/Adyen/Model/Checkout/RivertyDetails.php @@ -48,6 +48,7 @@ class RivertyDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'iban' => 'string', 'personalDetails' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'subtype' => 'string', 'type' => 'string' @@ -68,6 +69,7 @@ class RivertyDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'iban' => null, 'personalDetails' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'subtype' => null, 'type' => null @@ -86,6 +88,7 @@ class RivertyDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'iban' => false, 'personalDetails' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'subtype' => false, 'type' => false @@ -184,6 +187,7 @@ public function isNullableSetToNull(string $property): bool 'iban' => 'iban', 'personalDetails' => 'personalDetails', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'subtype' => 'subtype', 'type' => 'type' @@ -202,6 +206,7 @@ public function isNullableSetToNull(string $property): bool 'iban' => 'setIban', 'personalDetails' => 'setPersonalDetails', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'subtype' => 'setSubtype', 'type' => 'setType' @@ -220,6 +225,7 @@ public function isNullableSetToNull(string $property): bool 'iban' => 'getIban', 'personalDetails' => 'getPersonalDetails', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'subtype' => 'getSubtype', 'type' => 'getType' @@ -307,6 +313,7 @@ public function __construct(?array $data = null) $this->setIfExists('iban', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('subtype', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -536,6 +543,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/SamsungPayDetails.php b/src/Adyen/Model/Checkout/SamsungPayDetails.php index e4836002e..0b07537c8 100644 --- a/src/Adyen/Model/Checkout/SamsungPayDetails.php +++ b/src/Adyen/Model/Checkout/SamsungPayDetails.php @@ -45,6 +45,7 @@ class SamsungPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'fundingSource' => 'string', 'recurringDetailReference' => 'string', 'samsungPayToken' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -61,6 +62,7 @@ class SamsungPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'fundingSource' => null, 'recurringDetailReference' => null, 'samsungPayToken' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -75,6 +77,7 @@ class SamsungPayDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'fundingSource' => false, 'recurringDetailReference' => false, 'samsungPayToken' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -169,6 +172,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'fundingSource', 'recurringDetailReference' => 'recurringDetailReference', 'samsungPayToken' => 'samsungPayToken', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -183,6 +187,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'setFundingSource', 'recurringDetailReference' => 'setRecurringDetailReference', 'samsungPayToken' => 'setSamsungPayToken', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -197,6 +202,7 @@ public function isNullableSetToNull(string $property): bool 'fundingSource' => 'getFundingSource', 'recurringDetailReference' => 'getRecurringDetailReference', 'samsungPayToken' => 'getSamsungPayToken', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -288,6 +294,7 @@ public function __construct(?array $data = null) $this->setIfExists('fundingSource', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); $this->setIfExists('samsungPayToken', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -463,6 +470,30 @@ public function setSamsungPayToken($samsungPayToken) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php b/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php index 05705eb82..d7879230d 100644 --- a/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php +++ b/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php @@ -42,9 +42,11 @@ class SepaDirectDebitDetails implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'dueDate' => 'string', 'iban' => 'string', 'ownerName' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'transferInstrumentId' => 'string', 'type' => 'string' @@ -59,9 +61,11 @@ class SepaDirectDebitDetails implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'dueDate' => null, 'iban' => null, 'ownerName' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'transferInstrumentId' => null, 'type' => null @@ -74,9 +78,11 @@ class SepaDirectDebitDetails implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'dueDate' => false, 'iban' => false, 'ownerName' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'transferInstrumentId' => false, 'type' => false @@ -169,9 +175,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'dueDate' => 'dueDate', 'iban' => 'iban', 'ownerName' => 'ownerName', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'transferInstrumentId' => 'transferInstrumentId', 'type' => 'type' @@ -184,9 +192,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'dueDate' => 'setDueDate', 'iban' => 'setIban', 'ownerName' => 'setOwnerName', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'transferInstrumentId' => 'setTransferInstrumentId', 'type' => 'setType' @@ -199,9 +209,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'dueDate' => 'getDueDate', 'iban' => 'getIban', 'ownerName' => 'getOwnerName', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'transferInstrumentId' => 'getTransferInstrumentId', 'type' => 'getType' @@ -279,9 +291,11 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('dueDate', $data ?? [], null); $this->setIfExists('iban', $data ?? [], null); $this->setIfExists('ownerName', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('transferInstrumentId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -368,6 +382,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets dueDate + * + * @return string|null + */ + public function getDueDate() + { + return $this->container['dueDate']; + } + + /** + * Sets dueDate + * + * @param string|null $dueDate The date that the the shopper's bank account is charged. + * + * @return self + */ + public function setDueDate($dueDate) + { + $this->container['dueDate'] = $dueDate; + + return $this; + } + /** * Gets iban * @@ -442,6 +480,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/ShopperName.php b/src/Adyen/Model/Checkout/ShopperName.php new file mode 100644 index 000000000..030316823 --- /dev/null +++ b/src/Adyen/Model/Checkout/ShopperName.php @@ -0,0 +1,441 @@ + + */ +class ShopperName implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ShopperName'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'firstName' => 'string', + 'lastName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'firstName' => null, + 'lastName' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'firstName' => false, + 'lastName' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'firstName' => 'firstName', + 'lastName' => 'lastName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('firstName', $data ?? [], null); + $this->setIfExists('lastName', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['firstName'] === null) { + $invalidProperties[] = "'firstName' can't be null"; + } + if ($this->container['lastName'] === null) { + $invalidProperties[] = "'lastName' 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 firstName + * + * @return string + */ + public function getFirstName() + { + return $this->container['firstName']; + } + + /** + * Sets firstName + * + * @param string $firstName The first name. + * + * @return self + */ + public function setFirstName($firstName) + { + $this->container['firstName'] = $firstName; + + return $this; + } + + /** + * Gets lastName + * + * @return string + */ + public function getLastName() + { + return $this->container['lastName']; + } + + /** + * Sets lastName + * + * @param string $lastName The last name. + * + * @return self + */ + public function setLastName($lastName) + { + $this->container['lastName'] = $lastName; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/Split.php b/src/Adyen/Model/Checkout/Split.php index 1954b93fb..0da00ce8a 100644 --- a/src/Adyen/Model/Checkout/Split.php +++ b/src/Adyen/Model/Checkout/Split.php @@ -464,7 +464,7 @@ public function getType() /** * Sets type * - * @param string $type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param string $type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * * @return self */ diff --git a/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php b/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php index 506c5f9ef..e819f66e3 100644 --- a/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php +++ b/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php @@ -43,6 +43,7 @@ class StoredPaymentMethodDetails implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -57,6 +58,7 @@ class StoredPaymentMethodDetails implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -69,6 +71,7 @@ class StoredPaymentMethodDetails implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -185,6 +190,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -294,6 +300,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -399,6 +406,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php b/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php index 2d38da32c..8717f378f 100644 --- a/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php +++ b/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php @@ -51,6 +51,7 @@ class StoredPaymentMethodResource implements ModelInterface, ArrayAccess, \JsonS 'id' => 'string', 'issuerName' => 'string', 'lastFour' => 'string', + 'mandate' => '\Adyen\Model\Checkout\TokenMandate', 'name' => 'string', 'networkTxReference' => 'string', 'ownerName' => 'string', @@ -78,6 +79,7 @@ class StoredPaymentMethodResource implements ModelInterface, ArrayAccess, \JsonS 'id' => null, 'issuerName' => null, 'lastFour' => null, + 'mandate' => null, 'name' => null, 'networkTxReference' => null, 'ownerName' => null, @@ -103,6 +105,7 @@ class StoredPaymentMethodResource implements ModelInterface, ArrayAccess, \JsonS 'id' => false, 'issuerName' => false, 'lastFour' => false, + 'mandate' => false, 'name' => false, 'networkTxReference' => false, 'ownerName' => false, @@ -208,6 +211,7 @@ public function isNullableSetToNull(string $property): bool 'id' => 'id', 'issuerName' => 'issuerName', 'lastFour' => 'lastFour', + 'mandate' => 'mandate', 'name' => 'name', 'networkTxReference' => 'networkTxReference', 'ownerName' => 'ownerName', @@ -233,6 +237,7 @@ public function isNullableSetToNull(string $property): bool 'id' => 'setId', 'issuerName' => 'setIssuerName', 'lastFour' => 'setLastFour', + 'mandate' => 'setMandate', 'name' => 'setName', 'networkTxReference' => 'setNetworkTxReference', 'ownerName' => 'setOwnerName', @@ -258,6 +263,7 @@ public function isNullableSetToNull(string $property): bool 'id' => 'getId', 'issuerName' => 'getIssuerName', 'lastFour' => 'getLastFour', + 'mandate' => 'getMandate', 'name' => 'getName', 'networkTxReference' => 'getNetworkTxReference', 'ownerName' => 'getOwnerName', @@ -334,6 +340,7 @@ public function __construct(?array $data = null) $this->setIfExists('id', $data ?? [], null); $this->setIfExists('issuerName', $data ?? [], null); $this->setIfExists('lastFour', $data ?? [], null); + $this->setIfExists('mandate', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('networkTxReference', $data ?? [], null); $this->setIfExists('ownerName', $data ?? [], null); @@ -625,6 +632,30 @@ public function setLastFour($lastFour) return $this; } + /** + * Gets mandate + * + * @return \Adyen\Model\Checkout\TokenMandate|null + */ + public function getMandate() + { + return $this->container['mandate']; + } + + /** + * Sets mandate + * + * @param \Adyen\Model\Checkout\TokenMandate|null $mandate mandate + * + * @return self + */ + public function setMandate($mandate) + { + $this->container['mandate'] = $mandate; + + return $this; + } + /** * Gets name * diff --git a/src/Adyen/Model/Checkout/TokenMandate.php b/src/Adyen/Model/Checkout/TokenMandate.php new file mode 100644 index 000000000..542534940 --- /dev/null +++ b/src/Adyen/Model/Checkout/TokenMandate.php @@ -0,0 +1,1006 @@ + + */ +class TokenMandate implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'TokenMandate'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'accountIdType' => 'string', + 'amount' => 'string', + 'amountRule' => 'string', + 'billingAttemptsRule' => 'string', + 'billingDay' => 'string', + 'count' => 'string', + 'currency' => 'string', + 'endsAt' => 'string', + 'frequency' => 'string', + 'mandateId' => 'string', + 'maskedAccountId' => 'string', + 'providerId' => 'string', + 'remarks' => 'string', + 'startsAt' => 'string', + 'status' => 'string', + 'txVariant' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'accountIdType' => null, + 'amount' => null, + 'amountRule' => null, + 'billingAttemptsRule' => null, + 'billingDay' => null, + 'count' => null, + 'currency' => null, + 'endsAt' => null, + 'frequency' => null, + 'mandateId' => null, + 'maskedAccountId' => null, + 'providerId' => null, + 'remarks' => null, + 'startsAt' => null, + 'status' => null, + 'txVariant' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'accountIdType' => false, + 'amount' => false, + 'amountRule' => false, + 'billingAttemptsRule' => false, + 'billingDay' => false, + 'count' => false, + 'currency' => false, + 'endsAt' => false, + 'frequency' => false, + 'mandateId' => false, + 'maskedAccountId' => false, + 'providerId' => false, + 'remarks' => false, + 'startsAt' => false, + 'status' => false, + 'txVariant' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accountIdType' => 'accountIdType', + 'amount' => 'amount', + 'amountRule' => 'amountRule', + 'billingAttemptsRule' => 'billingAttemptsRule', + 'billingDay' => 'billingDay', + 'count' => 'count', + 'currency' => 'currency', + 'endsAt' => 'endsAt', + 'frequency' => 'frequency', + 'mandateId' => 'mandateId', + 'maskedAccountId' => 'maskedAccountId', + 'providerId' => 'providerId', + 'remarks' => 'remarks', + 'startsAt' => 'startsAt', + 'status' => 'status', + 'txVariant' => 'txVariant' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accountIdType' => 'setAccountIdType', + 'amount' => 'setAmount', + 'amountRule' => 'setAmountRule', + 'billingAttemptsRule' => 'setBillingAttemptsRule', + 'billingDay' => 'setBillingDay', + 'count' => 'setCount', + 'currency' => 'setCurrency', + 'endsAt' => 'setEndsAt', + 'frequency' => 'setFrequency', + 'mandateId' => 'setMandateId', + 'maskedAccountId' => 'setMaskedAccountId', + 'providerId' => 'setProviderId', + 'remarks' => 'setRemarks', + 'startsAt' => 'setStartsAt', + 'status' => 'setStatus', + 'txVariant' => 'setTxVariant' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accountIdType' => 'getAccountIdType', + 'amount' => 'getAmount', + 'amountRule' => 'getAmountRule', + 'billingAttemptsRule' => 'getBillingAttemptsRule', + 'billingDay' => 'getBillingDay', + 'count' => 'getCount', + 'currency' => 'getCurrency', + 'endsAt' => 'getEndsAt', + 'frequency' => 'getFrequency', + 'mandateId' => 'getMandateId', + 'maskedAccountId' => 'getMaskedAccountId', + 'providerId' => 'getProviderId', + 'remarks' => 'getRemarks', + 'startsAt' => 'getStartsAt', + 'status' => 'getStatus', + 'txVariant' => 'getTxVariant' + ]; + + /** + * 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 AMOUNT_RULE_MAX = 'max'; + public const AMOUNT_RULE_EXACT = 'exact'; + public const BILLING_ATTEMPTS_RULE_ON = 'on'; + public const BILLING_ATTEMPTS_RULE_BEFORE = 'before'; + public const BILLING_ATTEMPTS_RULE_AFTER = 'after'; + public const FREQUENCY_ADHOC = 'adhoc'; + public const FREQUENCY_DAILY = 'daily'; + public const FREQUENCY_WEEKLY = 'weekly'; + public const FREQUENCY_BI_WEEKLY = 'biWeekly'; + public const FREQUENCY_MONTHLY = 'monthly'; + public const FREQUENCY_QUARTERLY = 'quarterly'; + public const FREQUENCY_HALF_YEARLY = 'halfYearly'; + public const FREQUENCY_YEARLY = 'yearly'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAmountRuleAllowableValues() + { + return [ + self::AMOUNT_RULE_MAX, + self::AMOUNT_RULE_EXACT, + ]; + } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getBillingAttemptsRuleAllowableValues() + { + return [ + self::BILLING_ATTEMPTS_RULE_ON, + self::BILLING_ATTEMPTS_RULE_BEFORE, + self::BILLING_ATTEMPTS_RULE_AFTER, + ]; + } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFrequencyAllowableValues() + { + return [ + self::FREQUENCY_ADHOC, + self::FREQUENCY_DAILY, + self::FREQUENCY_WEEKLY, + self::FREQUENCY_BI_WEEKLY, + self::FREQUENCY_MONTHLY, + self::FREQUENCY_QUARTERLY, + self::FREQUENCY_HALF_YEARLY, + self::FREQUENCY_YEARLY, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('accountIdType', $data ?? [], null); + $this->setIfExists('amount', $data ?? [], null); + $this->setIfExists('amountRule', $data ?? [], null); + $this->setIfExists('billingAttemptsRule', $data ?? [], null); + $this->setIfExists('billingDay', $data ?? [], null); + $this->setIfExists('count', $data ?? [], null); + $this->setIfExists('currency', $data ?? [], null); + $this->setIfExists('endsAt', $data ?? [], null); + $this->setIfExists('frequency', $data ?? [], null); + $this->setIfExists('mandateId', $data ?? [], null); + $this->setIfExists('maskedAccountId', $data ?? [], null); + $this->setIfExists('providerId', $data ?? [], null); + $this->setIfExists('remarks', $data ?? [], null); + $this->setIfExists('startsAt', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('txVariant', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + $allowedValues = $this->getAmountRuleAllowableValues(); + if (!is_null($this->container['amountRule']) && !in_array($this->container['amountRule'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'amountRule', must be one of '%s'", + $this->container['amountRule'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getBillingAttemptsRuleAllowableValues(); + if (!is_null($this->container['billingAttemptsRule']) && !in_array($this->container['billingAttemptsRule'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'billingAttemptsRule', must be one of '%s'", + $this->container['billingAttemptsRule'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['endsAt'] === null) { + $invalidProperties[] = "'endsAt' can't be null"; + } + if ($this->container['frequency'] === null) { + $invalidProperties[] = "'frequency' can't be null"; + } + $allowedValues = $this->getFrequencyAllowableValues(); + if (!is_null($this->container['frequency']) && !in_array($this->container['frequency'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'frequency', must be one of '%s'", + $this->container['frequency'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['mandateId'] === null) { + $invalidProperties[] = "'mandateId' can't be null"; + } + if ($this->container['providerId'] === null) { + $invalidProperties[] = "'providerId' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + if ($this->container['txVariant'] === null) { + $invalidProperties[] = "'txVariant' 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 accountIdType + * + * @return string|null + */ + public function getAccountIdType() + { + return $this->container['accountIdType']; + } + + /** + * Sets accountIdType + * + * @param string|null $accountIdType The type of account identifier for the masked account number. + * + * @return self + */ + public function setAccountIdType($accountIdType) + { + $this->container['accountIdType'] = $accountIdType; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount The billing amount (in minor units) of the recurring transactions. + * + * @return self + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets amountRule + * + * @return string|null + */ + public function getAmountRule() + { + return $this->container['amountRule']; + } + + /** + * Sets amountRule + * + * @param string|null $amountRule The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + * + * @return self + */ + public function setAmountRule($amountRule) + { + $allowedValues = $this->getAmountRuleAllowableValues(); + if (!in_array($amountRule, $allowedValues, true)) { + error_log( + sprintf( + "amountRule: unexpected enum value '%s' - Supported values are [%s]", + $amountRule, + implode(', ', $allowedValues) + ) + ); + } + $this->container['amountRule'] = $amountRule; + + return $this; + } + + /** + * Gets billingAttemptsRule + * + * @return string|null + */ + public function getBillingAttemptsRule() + { + return $this->container['billingAttemptsRule']; + } + + /** + * Sets billingAttemptsRule + * + * @param string|null $billingAttemptsRule The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + * + * @return self + */ + public function setBillingAttemptsRule($billingAttemptsRule) + { + $allowedValues = $this->getBillingAttemptsRuleAllowableValues(); + if (!in_array($billingAttemptsRule, $allowedValues, true)) { + error_log( + sprintf( + "billingAttemptsRule: unexpected enum value '%s' - Supported values are [%s]", + $billingAttemptsRule, + implode(', ', $allowedValues) + ) + ); + } + $this->container['billingAttemptsRule'] = $billingAttemptsRule; + + return $this; + } + + /** + * Gets billingDay + * + * @return string|null + */ + public function getBillingDay() + { + return $this->container['billingDay']; + } + + /** + * Sets billingDay + * + * @param string|null $billingDay The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + * + * @return self + */ + public function setBillingDay($billingDay) + { + $this->container['billingDay'] = $billingDay; + + return $this; + } + + /** + * Gets count + * + * @return string|null + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param string|null $count The number of transactions that can be performed within the given frequency. + * + * @return self + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * + * @return self + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets endsAt + * + * @return string + */ + public function getEndsAt() + { + return $this->container['endsAt']; + } + + /** + * Sets endsAt + * + * @param string $endsAt End date of the billing plan, in YYYY-MM-DD format. + * + * @return self + */ + public function setEndsAt($endsAt) + { + $this->container['endsAt'] = $endsAt; + + return $this; + } + + /** + * Gets frequency + * + * @return string + */ + public function getFrequency() + { + return $this->container['frequency']; + } + + /** + * Sets frequency + * + * @param string $frequency The frequency with which a shopper should be charged. Possible values: **adhoc**, **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + * + * @return self + */ + public function setFrequency($frequency) + { + $allowedValues = $this->getFrequencyAllowableValues(); + if (!in_array($frequency, $allowedValues, true)) { + error_log( + sprintf( + "frequency: unexpected enum value '%s' - Supported values are [%s]", + $frequency, + implode(', ', $allowedValues) + ) + ); + } + $this->container['frequency'] = $frequency; + + return $this; + } + + /** + * Gets mandateId + * + * @return string + */ + public function getMandateId() + { + return $this->container['mandateId']; + } + + /** + * Sets mandateId + * + * @param string $mandateId The unique identifier of the mandate. + * + * @return self + */ + public function setMandateId($mandateId) + { + $this->container['mandateId'] = $mandateId; + + return $this; + } + + /** + * Gets maskedAccountId + * + * @return string|null + */ + public function getMaskedAccountId() + { + return $this->container['maskedAccountId']; + } + + /** + * Sets maskedAccountId + * + * @param string|null $maskedAccountId The masked account number associated with the mandate. + * + * @return self + */ + public function setMaskedAccountId($maskedAccountId) + { + $this->container['maskedAccountId'] = $maskedAccountId; + + return $this; + } + + /** + * Gets providerId + * + * @return string + */ + public function getProviderId() + { + return $this->container['providerId']; + } + + /** + * Sets providerId + * + * @param string $providerId The provider-specific identifier for this mandate. + * + * @return self + */ + public function setProviderId($providerId) + { + $this->container['providerId'] = $providerId; + + return $this; + } + + /** + * Gets remarks + * + * @return string|null + */ + public function getRemarks() + { + return $this->container['remarks']; + } + + /** + * Sets remarks + * + * @param string|null $remarks Additional remarks or notes about the mandate. + * + * @return self + */ + public function setRemarks($remarks) + { + $this->container['remarks'] = $remarks; + + return $this; + } + + /** + * Gets startsAt + * + * @return string|null + */ + public function getStartsAt() + { + return $this->container['startsAt']; + } + + /** + * Sets startsAt + * + * @param string|null $startsAt Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + * + * @return self + */ + public function setStartsAt($startsAt) + { + $this->container['startsAt'] = $startsAt; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status The status of the mandate. Examples : active, revoked, completed, expired + * + * @return self + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets txVariant + * + * @return string + */ + public function getTxVariant() + { + return $this->container['txVariant']; + } + + /** + * Sets txVariant + * + * @param string $txVariant The transaction variant used for this mandate. + * + * @return self + */ + public function setTxVariant($txVariant) + { + $this->container['txVariant'] = $txVariant; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/TwintDetails.php b/src/Adyen/Model/Checkout/TwintDetails.php index df34a3f8b..8ba90088b 100644 --- a/src/Adyen/Model/Checkout/TwintDetails.php +++ b/src/Adyen/Model/Checkout/TwintDetails.php @@ -43,6 +43,7 @@ class TwintDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'subtype' => 'string', 'type' => 'string' @@ -58,6 +59,7 @@ class TwintDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'subtype' => null, 'type' => null @@ -71,6 +73,7 @@ class TwintDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'subtype' => false, 'type' => false @@ -164,6 +167,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'subtype' => 'subtype', 'type' => 'type' @@ -177,6 +181,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'subtype' => 'setSubtype', 'type' => 'setType' @@ -190,6 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'subtype' => 'getSubtype', 'type' => 'getType' @@ -266,6 +272,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('subtype', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -372,6 +379,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Checkout/UPIPaymentMethod.php b/src/Adyen/Model/Checkout/UPIPaymentMethod.php index 785ca65d6..7ce446609 100644 --- a/src/Adyen/Model/Checkout/UPIPaymentMethod.php +++ b/src/Adyen/Model/Checkout/UPIPaymentMethod.php @@ -14,7 +14,6 @@ namespace Adyen\Model\Checkout; - use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/UpiCollectDetails.php b/src/Adyen/Model/Checkout/UpiCollectDetails.php index c6f896863..1b2066d95 100644 --- a/src/Adyen/Model/Checkout/UpiCollectDetails.php +++ b/src/Adyen/Model/Checkout/UpiCollectDetails.php @@ -44,6 +44,7 @@ class UpiCollectDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'billingSequenceNumber' => 'string', 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'shopperNotificationReference' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string', @@ -61,6 +62,7 @@ class UpiCollectDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'billingSequenceNumber' => null, 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'shopperNotificationReference' => null, 'storedPaymentMethodId' => null, 'type' => null, @@ -76,6 +78,7 @@ class UpiCollectDetails implements ModelInterface, ArrayAccess, \JsonSerializabl 'billingSequenceNumber' => false, 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'shopperNotificationReference' => false, 'storedPaymentMethodId' => false, 'type' => false, @@ -171,6 +174,7 @@ public function isNullableSetToNull(string $property): bool 'billingSequenceNumber' => 'billingSequenceNumber', 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'shopperNotificationReference' => 'shopperNotificationReference', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type', @@ -186,6 +190,7 @@ public function isNullableSetToNull(string $property): bool 'billingSequenceNumber' => 'setBillingSequenceNumber', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'shopperNotificationReference' => 'setShopperNotificationReference', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType', @@ -201,6 +206,7 @@ public function isNullableSetToNull(string $property): bool 'billingSequenceNumber' => 'getBillingSequenceNumber', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'shopperNotificationReference' => 'getShopperNotificationReference', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType', @@ -279,6 +285,7 @@ public function __construct(?array $data = null) $this->setIfExists('billingSequenceNumber', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperNotificationReference', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -312,9 +319,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['billingSequenceNumber'] === null) { - $invalidProperties[] = "'billingSequenceNumber' can't be null"; - } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -345,7 +349,7 @@ public function valid() /** * Gets billingSequenceNumber * - * @return string + * @return string|null */ public function getBillingSequenceNumber() { @@ -355,7 +359,7 @@ public function getBillingSequenceNumber() /** * Sets billingSequenceNumber * - * @param string $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. * * @return self */ @@ -416,6 +420,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperNotificationReference * diff --git a/src/Adyen/Model/Checkout/UpiIntentDetails.php b/src/Adyen/Model/Checkout/UpiIntentDetails.php index d1eff89b4..4d7c87aad 100644 --- a/src/Adyen/Model/Checkout/UpiIntentDetails.php +++ b/src/Adyen/Model/Checkout/UpiIntentDetails.php @@ -42,8 +42,10 @@ class UpiIntentDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'appId' => 'string', + 'billingSequenceNumber' => 'string', 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'shopperNotificationReference' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' @@ -58,8 +60,10 @@ class UpiIntentDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'appId' => null, + 'billingSequenceNumber' => null, 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'shopperNotificationReference' => null, 'storedPaymentMethodId' => null, 'type' => null @@ -72,8 +76,10 @@ class UpiIntentDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'appId' => false, + 'billingSequenceNumber' => false, 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'shopperNotificationReference' => false, 'storedPaymentMethodId' => false, 'type' => false @@ -166,8 +172,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'appId' => 'appId', + 'billingSequenceNumber' => 'billingSequenceNumber', 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'shopperNotificationReference' => 'shopperNotificationReference', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' @@ -180,8 +188,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'appId' => 'setAppId', + 'billingSequenceNumber' => 'setBillingSequenceNumber', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'shopperNotificationReference' => 'setShopperNotificationReference', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' @@ -194,8 +204,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'appId' => 'getAppId', + 'billingSequenceNumber' => 'getBillingSequenceNumber', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'shopperNotificationReference' => 'getShopperNotificationReference', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' @@ -271,8 +283,10 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('appId', $data ?? [], null); + $this->setIfExists('billingSequenceNumber', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('shopperNotificationReference', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -356,6 +370,30 @@ public function setAppId($appId) return $this; } + /** + * Gets billingSequenceNumber + * + * @return string|null + */ + public function getBillingSequenceNumber() + { + return $this->container['billingSequenceNumber']; + } + + /** + * Sets billingSequenceNumber + * + * @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * + * @return self + */ + public function setBillingSequenceNumber($billingSequenceNumber) + { + $this->container['billingSequenceNumber'] = $billingSequenceNumber; + + return $this; + } + /** * Gets checkoutAttemptId * @@ -406,6 +444,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets shopperNotificationReference * diff --git a/src/Adyen/Model/Checkout/UpiQrDetails.php b/src/Adyen/Model/Checkout/UpiQrDetails.php new file mode 100644 index 000000000..6cd5ea258 --- /dev/null +++ b/src/Adyen/Model/Checkout/UpiQrDetails.php @@ -0,0 +1,626 @@ + + */ +class UpiQrDetails implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'UpiQrDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'billingSequenceNumber' => 'string', + 'checkoutAttemptId' => 'string', + 'recurringDetailReference' => 'string', + 'sdkData' => 'string', + 'shopperNotificationReference' => 'string', + 'storedPaymentMethodId' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'billingSequenceNumber' => null, + 'checkoutAttemptId' => null, + 'recurringDetailReference' => null, + 'sdkData' => null, + 'shopperNotificationReference' => null, + 'storedPaymentMethodId' => null, + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'billingSequenceNumber' => false, + 'checkoutAttemptId' => false, + 'recurringDetailReference' => false, + 'sdkData' => false, + 'shopperNotificationReference' => false, + 'storedPaymentMethodId' => false, + 'type' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'billingSequenceNumber' => 'billingSequenceNumber', + 'checkoutAttemptId' => 'checkoutAttemptId', + 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', + 'shopperNotificationReference' => 'shopperNotificationReference', + 'storedPaymentMethodId' => 'storedPaymentMethodId', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'billingSequenceNumber' => 'setBillingSequenceNumber', + 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', + 'shopperNotificationReference' => 'setShopperNotificationReference', + 'storedPaymentMethodId' => 'setStoredPaymentMethodId', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'billingSequenceNumber' => 'getBillingSequenceNumber', + 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', + 'shopperNotificationReference' => 'getShopperNotificationReference', + 'storedPaymentMethodId' => 'getStoredPaymentMethodId', + 'type' => 'getType' + ]; + + /** + * 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 TYPE_UPI_QR = 'upi_qr'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_UPI_QR, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('billingSequenceNumber', $data ?? [], null); + $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); + $this->setIfExists('shopperNotificationReference', $data ?? [], null); + $this->setIfExists('storedPaymentMethodId', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + 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 billingSequenceNumber + * + * @return string|null + */ + public function getBillingSequenceNumber() + { + return $this->container['billingSequenceNumber']; + } + + /** + * Sets billingSequenceNumber + * + * @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. + * + * @return self + */ + public function setBillingSequenceNumber($billingSequenceNumber) + { + $this->container['billingSequenceNumber'] = $billingSequenceNumber; + + return $this; + } + + /** + * Gets checkoutAttemptId + * + * @return string|null + */ + public function getCheckoutAttemptId() + { + return $this->container['checkoutAttemptId']; + } + + /** + * Sets checkoutAttemptId + * + * @param string|null $checkoutAttemptId The checkout attempt identifier. + * + * @return self + */ + public function setCheckoutAttemptId($checkoutAttemptId) + { + $this->container['checkoutAttemptId'] = $checkoutAttemptId; + + return $this; + } + + /** + * Gets recurringDetailReference + * + * @return string|null + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function getRecurringDetailReference() + { + return $this->container['recurringDetailReference']; + } + + /** + * Sets recurringDetailReference + * + * @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function setRecurringDetailReference($recurringDetailReference) + { + $this->container['recurringDetailReference'] = $recurringDetailReference; + + return $this; + } + + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + + /** + * Gets shopperNotificationReference + * + * @return string|null + */ + public function getShopperNotificationReference() + { + return $this->container['shopperNotificationReference']; + } + + /** + * Sets shopperNotificationReference + * + * @param string|null $shopperNotificationReference The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only. + * + * @return self + */ + public function setShopperNotificationReference($shopperNotificationReference) + { + $this->container['shopperNotificationReference'] = $shopperNotificationReference; + + return $this; + } + + /** + * Gets storedPaymentMethodId + * + * @return string|null + */ + public function getStoredPaymentMethodId() + { + return $this->container['storedPaymentMethodId']; + } + + /** + * Sets storedPaymentMethodId + * + * @param string|null $storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + */ + public function setStoredPaymentMethodId($storedPaymentMethodId) + { + $this->container['storedPaymentMethodId'] = $storedPaymentMethodId; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type **upi_qr** + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + error_log( + sprintf( + "type: unexpected enum value '%s' - Supported values are [%s]", + $type, + implode(', ', $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php b/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php index 1815a1fad..be310d2b5 100644 --- a/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php +++ b/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php @@ -293,7 +293,7 @@ public function getReason() /** * Sets reason * - * @param string|null $reason reason + * @param string|null $reason Reason for the result. * * @return self */ diff --git a/src/Adyen/Model/Checkout/VippsDetails.php b/src/Adyen/Model/Checkout/VippsDetails.php index eb3f52b9d..0782e9ef0 100644 --- a/src/Adyen/Model/Checkout/VippsDetails.php +++ b/src/Adyen/Model/Checkout/VippsDetails.php @@ -43,6 +43,7 @@ class VippsDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'telephoneNumber' => 'string', 'type' => 'string' @@ -58,6 +59,7 @@ class VippsDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'telephoneNumber' => null, 'type' => null @@ -71,6 +73,7 @@ class VippsDetails implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'telephoneNumber' => false, 'type' => false @@ -164,6 +167,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'telephoneNumber' => 'telephoneNumber', 'type' => 'type' @@ -177,6 +181,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'telephoneNumber' => 'setTelephoneNumber', 'type' => 'setType' @@ -190,6 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'telephoneNumber' => 'getTelephoneNumber', 'type' => 'getType' @@ -266,6 +272,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('telephoneNumber', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -375,6 +382,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * @@ -412,7 +443,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/VisaCheckoutDetails.php b/src/Adyen/Model/Checkout/VisaCheckoutDetails.php index 47fbe4adb..f910b4b0f 100644 --- a/src/Adyen/Model/Checkout/VisaCheckoutDetails.php +++ b/src/Adyen/Model/Checkout/VisaCheckoutDetails.php @@ -43,6 +43,7 @@ class VisaCheckoutDetails implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', 'fundingSource' => 'string', + 'sdkData' => 'string', 'type' => 'string', 'visaCheckoutCallId' => 'string' ]; @@ -57,6 +58,7 @@ class VisaCheckoutDetails implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPIFormats = [ 'checkoutAttemptId' => null, 'fundingSource' => null, + 'sdkData' => null, 'type' => null, 'visaCheckoutCallId' => null ]; @@ -69,6 +71,7 @@ class VisaCheckoutDetails implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPINullables = [ 'checkoutAttemptId' => false, 'fundingSource' => false, + 'sdkData' => false, 'type' => false, 'visaCheckoutCallId' => false ]; @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', 'fundingSource' => 'fundingSource', + 'sdkData' => 'sdkData', 'type' => 'type', 'visaCheckoutCallId' => 'visaCheckoutCallId' ]; @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', 'fundingSource' => 'setFundingSource', + 'sdkData' => 'setSdkData', 'type' => 'setType', 'visaCheckoutCallId' => 'setVisaCheckoutCallId' ]; @@ -185,6 +190,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', 'fundingSource' => 'getFundingSource', + 'sdkData' => 'getSdkData', 'type' => 'getType', 'visaCheckoutCallId' => 'getVisaCheckoutCallId' ]; @@ -274,6 +280,7 @@ public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('fundingSource', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); $this->setIfExists('visaCheckoutCallId', $data ?? [], null); } @@ -399,6 +406,30 @@ public function setFundingSource($fundingSource) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/WeChatPayDetails.php b/src/Adyen/Model/Checkout/WeChatPayDetails.php index 4c3f58636..a801572fa 100644 --- a/src/Adyen/Model/Checkout/WeChatPayDetails.php +++ b/src/Adyen/Model/Checkout/WeChatPayDetails.php @@ -42,6 +42,7 @@ class WeChatPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'sdkData' => 'string', 'type' => 'string' ]; @@ -54,6 +55,7 @@ class WeChatPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'sdkData' => null, 'type' => null ]; @@ -64,6 +66,7 @@ class WeChatPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'sdkData' => false, 'type' => false ]; @@ -154,6 +157,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -164,6 +168,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -174,6 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -249,6 +255,7 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -327,6 +334,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php b/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php index 6743b7319..121cb2d45 100644 --- a/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php +++ b/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php @@ -44,6 +44,9 @@ class WeChatPayMiniProgramDetails implements ModelInterface, ArrayAccess, \JsonS 'appId' => 'string', 'checkoutAttemptId' => 'string', 'openid' => 'string', + 'recurringDetailReference' => 'string', + 'sdkData' => 'string', + 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -58,6 +61,9 @@ class WeChatPayMiniProgramDetails implements ModelInterface, ArrayAccess, \JsonS 'appId' => null, 'checkoutAttemptId' => null, 'openid' => null, + 'recurringDetailReference' => null, + 'sdkData' => null, + 'storedPaymentMethodId' => null, 'type' => null ]; @@ -70,6 +76,9 @@ class WeChatPayMiniProgramDetails implements ModelInterface, ArrayAccess, \JsonS 'appId' => false, 'checkoutAttemptId' => false, 'openid' => false, + 'recurringDetailReference' => false, + 'sdkData' => false, + 'storedPaymentMethodId' => false, 'type' => false ]; @@ -162,6 +171,9 @@ public function isNullableSetToNull(string $property): bool 'appId' => 'appId', 'checkoutAttemptId' => 'checkoutAttemptId', 'openid' => 'openid', + 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', + 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -174,6 +186,9 @@ public function isNullableSetToNull(string $property): bool 'appId' => 'setAppId', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'openid' => 'setOpenid', + 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', + 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -186,6 +201,9 @@ public function isNullableSetToNull(string $property): bool 'appId' => 'getAppId', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'openid' => 'getOpenid', + 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', + 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -261,6 +279,9 @@ public function __construct(?array $data = null) $this->setIfExists('appId', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('openid', $data ?? [], null); + $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); + $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -387,6 +408,80 @@ public function setOpenid($openid) return $this; } + /** + * Gets recurringDetailReference + * + * @return string|null + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function getRecurringDetailReference() + { + return $this->container['recurringDetailReference']; + } + + /** + * Sets recurringDetailReference + * + * @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function setRecurringDetailReference($recurringDetailReference) + { + $this->container['recurringDetailReference'] = $recurringDetailReference; + + return $this; + } + + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + + /** + * Gets storedPaymentMethodId + * + * @return string|null + */ + public function getStoredPaymentMethodId() + { + return $this->container['storedPaymentMethodId']; + } + + /** + * Sets storedPaymentMethodId + * + * @param string|null $storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + */ + public function setStoredPaymentMethodId($storedPaymentMethodId) + { + $this->container['storedPaymentMethodId'] = $storedPaymentMethodId; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Checkout/ZipDetails.php b/src/Adyen/Model/Checkout/ZipDetails.php index 6775fe063..9b9ca86ee 100644 --- a/src/Adyen/Model/Checkout/ZipDetails.php +++ b/src/Adyen/Model/Checkout/ZipDetails.php @@ -44,6 +44,7 @@ class ZipDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => 'string', 'clickAndCollect' => 'string', 'recurringDetailReference' => 'string', + 'sdkData' => 'string', 'storedPaymentMethodId' => 'string', 'type' => 'string' ]; @@ -59,6 +60,7 @@ class ZipDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => null, 'clickAndCollect' => null, 'recurringDetailReference' => null, + 'sdkData' => null, 'storedPaymentMethodId' => null, 'type' => null ]; @@ -72,6 +74,7 @@ class ZipDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'checkoutAttemptId' => false, 'clickAndCollect' => false, 'recurringDetailReference' => false, + 'sdkData' => false, 'storedPaymentMethodId' => false, 'type' => false ]; @@ -165,6 +168,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'checkoutAttemptId', 'clickAndCollect' => 'clickAndCollect', 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', 'storedPaymentMethodId' => 'storedPaymentMethodId', 'type' => 'type' ]; @@ -178,6 +182,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'setCheckoutAttemptId', 'clickAndCollect' => 'setClickAndCollect', 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'type' => 'setType' ]; @@ -191,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'checkoutAttemptId' => 'getCheckoutAttemptId', 'clickAndCollect' => 'getClickAndCollect', 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'type' => 'getType' ]; @@ -269,6 +275,7 @@ public function __construct(?array $data = null) $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('clickAndCollect', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -398,6 +405,30 @@ public function setRecurringDetailReference($recurringDetailReference) return $this; } + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + /** * Gets storedPaymentMethodId * diff --git a/src/Adyen/Model/Disputes/ObjectSerializer.php b/src/Adyen/Model/Disputes/ObjectSerializer.php index d77f1730a..ec6232593 100644 --- a/src/Adyen/Model/Disputes/ObjectSerializer.php +++ b/src/Adyen/Model/Disputes/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Payments/AdditionalDataLevel23.php b/src/Adyen/Model/Payments/AdditionalDataLevel23.php index 524e9541a..683825811 100644 --- a/src/Adyen/Model/Payments/AdditionalDataLevel23.php +++ b/src/Adyen/Model/Payments/AdditionalDataLevel23.php @@ -542,7 +542,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() /** * Sets enhancedSchemeDataItemDetailLineItemNrCommodityCode * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * * @return self */ @@ -782,7 +782,7 @@ public function getEnhancedSchemeDataTotalTaxAmount() /** * Sets enhancedSchemeDataTotalTaxAmount * - * @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. + * @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero. * * @return self */ diff --git a/src/Adyen/Model/Payments/AdditionalDataSubMerchant.php b/src/Adyen/Model/Payments/AdditionalDataSubMerchant.php index 19f267341..e9f8e5872 100644 --- a/src/Adyen/Model/Payments/AdditionalDataSubMerchant.php +++ b/src/Adyen/Model/Payments/AdditionalDataSubMerchant.php @@ -531,7 +531,7 @@ public function getSubMerchantSubSellerSubSellerNrPhoneNumber() /** * Sets subMerchantSubSellerSubSellerNrPhoneNumber * - * @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters + * @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters * * @return self */ diff --git a/src/Adyen/Model/Payments/ObjectSerializer.php b/src/Adyen/Model/Payments/ObjectSerializer.php index 7938941f0..13446888e 100644 --- a/src/Adyen/Model/Payments/ObjectSerializer.php +++ b/src/Adyen/Model/Payments/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Payments/PaymentRequest.php b/src/Adyen/Model/Payments/PaymentRequest.php index 667c6b33c..896e23b65 100644 --- a/src/Adyen/Model/Payments/PaymentRequest.php +++ b/src/Adyen/Model/Payments/PaymentRequest.php @@ -1288,7 +1288,7 @@ public function getLocalizedShopperStatement() /** * Sets localizedShopperStatement * - * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. * * @return self */ diff --git a/src/Adyen/Model/Payments/PaymentRequest3d.php b/src/Adyen/Model/Payments/PaymentRequest3d.php index 1964f2077..80376953a 100644 --- a/src/Adyen/Model/Payments/PaymentRequest3d.php +++ b/src/Adyen/Model/Payments/PaymentRequest3d.php @@ -1015,7 +1015,7 @@ public function getLocalizedShopperStatement() /** * Sets localizedShopperStatement * - * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. * * @return self */ diff --git a/src/Adyen/Model/Payments/PaymentRequest3ds2.php b/src/Adyen/Model/Payments/PaymentRequest3ds2.php index 4d22ade22..9f2a27994 100644 --- a/src/Adyen/Model/Payments/PaymentRequest3ds2.php +++ b/src/Adyen/Model/Payments/PaymentRequest3ds2.php @@ -1015,7 +1015,7 @@ public function getLocalizedShopperStatement() /** * Sets localizedShopperStatement * - * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana and ja-Hani character set for Visa, Mastercard and JCB payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, Kanji, capital letters, numbers and special characters. * Half-width or full-width characters. + * @param array|null $localizedShopperStatement The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If this parameter is left empty, not provided, or not applicable (in case of cross-border transactions), then **shopperStatement** is used. Currently, `localizedShopperStatement` is only supported for payments with Visa, Mastercard, JCB, Diners, and Discover. **Supported characters**: Hiragana, Katakana, Kanji, and alphanumeric. * * @return self */ diff --git a/src/Adyen/Model/Payments/Recurring.php b/src/Adyen/Model/Payments/Recurring.php index 330a96d4d..9ccd30a0f 100644 --- a/src/Adyen/Model/Payments/Recurring.php +++ b/src/Adyen/Model/Payments/Recurring.php @@ -237,8 +237,10 @@ public function getModelName() } public const CONTRACT_ONECLICK = 'ONECLICK'; + public const CONTRACT_ONECLICKRECURRING = 'ONECLICK,RECURRING'; public const CONTRACT_RECURRING = 'RECURRING'; public const CONTRACT_PAYOUT = 'PAYOUT'; + public const CONTRACT_EXTERNAL = 'EXTERNAL'; public const TOKEN_SERVICE_VISATOKENSERVICE = 'VISATOKENSERVICE'; public const TOKEN_SERVICE_MCTOKENSERVICE = 'MCTOKENSERVICE'; public const TOKEN_SERVICE_AMEXTOKENSERVICE = 'AMEXTOKENSERVICE'; @@ -253,8 +255,10 @@ public function getContractAllowableValues() { return [ self::CONTRACT_ONECLICK, + self::CONTRACT_ONECLICKRECURRING, self::CONTRACT_RECURRING, self::CONTRACT_PAYOUT, + self::CONTRACT_EXTERNAL, ]; } /** @@ -366,7 +370,7 @@ public function getContract() /** * Sets contract * - * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. * * @return self */ diff --git a/src/Adyen/Model/Payments/ResponseAdditionalDataSepa.php b/src/Adyen/Model/Payments/ResponseAdditionalDataSepa.php index 7fa24f347..409537796 100644 --- a/src/Adyen/Model/Payments/ResponseAdditionalDataSepa.php +++ b/src/Adyen/Model/Payments/ResponseAdditionalDataSepa.php @@ -43,6 +43,7 @@ class ResponseAdditionalDataSepa implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPITypes = [ 'sepadirectdebitDateOfSignature' => 'string', 'sepadirectdebitMandateId' => 'string', + 'sepadirectdebitSepadirectdebitDueDate' => 'string', 'sepadirectdebitSequenceType' => 'string' ]; @@ -56,6 +57,7 @@ class ResponseAdditionalDataSepa implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPIFormats = [ 'sepadirectdebitDateOfSignature' => null, 'sepadirectdebitMandateId' => null, + 'sepadirectdebitSepadirectdebitDueDate' => null, 'sepadirectdebitSequenceType' => null ]; @@ -67,6 +69,7 @@ class ResponseAdditionalDataSepa implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPINullables = [ 'sepadirectdebitDateOfSignature' => false, 'sepadirectdebitMandateId' => false, + 'sepadirectdebitSepadirectdebitDueDate' => false, 'sepadirectdebitSequenceType' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'sepadirectdebitDateOfSignature' => 'sepadirectdebit.dateOfSignature', 'sepadirectdebitMandateId' => 'sepadirectdebit.mandateId', + 'sepadirectdebitSepadirectdebitDueDate' => 'sepadirectdebit.sepadirectdebit.dueDate', 'sepadirectdebitSequenceType' => 'sepadirectdebit.sequenceType' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'sepadirectdebitDateOfSignature' => 'setSepadirectdebitDateOfSignature', 'sepadirectdebitMandateId' => 'setSepadirectdebitMandateId', + 'sepadirectdebitSepadirectdebitDueDate' => 'setSepadirectdebitSepadirectdebitDueDate', 'sepadirectdebitSequenceType' => 'setSepadirectdebitSequenceType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'sepadirectdebitDateOfSignature' => 'getSepadirectdebitDateOfSignature', 'sepadirectdebitMandateId' => 'getSepadirectdebitMandateId', + 'sepadirectdebitSepadirectdebitDueDate' => 'getSepadirectdebitSepadirectdebitDueDate', 'sepadirectdebitSequenceType' => 'getSepadirectdebitSequenceType' ]; @@ -242,6 +248,7 @@ public function __construct(?array $data = null) { $this->setIfExists('sepadirectdebitDateOfSignature', $data ?? [], null); $this->setIfExists('sepadirectdebitMandateId', $data ?? [], null); + $this->setIfExists('sepadirectdebitSepadirectdebitDueDate', $data ?? [], null); $this->setIfExists('sepadirectdebitSequenceType', $data ?? [], null); } @@ -335,6 +342,30 @@ public function setSepadirectdebitMandateId($sepadirectdebitMandateId) return $this; } + /** + * Gets sepadirectdebitSepadirectdebitDueDate + * + * @return string|null + */ + public function getSepadirectdebitSepadirectdebitDueDate() + { + return $this->container['sepadirectdebitSepadirectdebitDueDate']; + } + + /** + * Sets sepadirectdebitSepadirectdebitDueDate + * + * @param string|null $sepadirectdebitSepadirectdebitDueDate The date that the the shopper's bank account is charged. + * + * @return self + */ + public function setSepadirectdebitSepadirectdebitDueDate($sepadirectdebitSepadirectdebitDueDate) + { + $this->container['sepadirectdebitSepadirectdebitDueDate'] = $sepadirectdebitSepadirectdebitDueDate; + + return $this; + } + /** * Gets sepadirectdebitSequenceType * diff --git a/src/Adyen/Model/Payments/ResponseAdditionalDataSwish.php b/src/Adyen/Model/Payments/ResponseAdditionalDataSwish.php new file mode 100644 index 000000000..31e787738 --- /dev/null +++ b/src/Adyen/Model/Payments/ResponseAdditionalDataSwish.php @@ -0,0 +1,404 @@ + + */ +class ResponseAdditionalDataSwish implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ResponseAdditionalDataSwish'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'swishPayerAlias' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'swishPayerAlias' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'swishPayerAlias' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'swishPayerAlias' => 'swish.payerAlias' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'swishPayerAlias' => 'setSwishPayerAlias' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'swishPayerAlias' => 'getSwishPayerAlias' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('swishPayerAlias', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets swishPayerAlias + * + * @return string|null + */ + public function getSwishPayerAlias() + { + return $this->container['swishPayerAlias']; + } + + /** + * Sets swishPayerAlias + * + * @param string|null $swishPayerAlias A Swish shopper's telephone number. + * + * @return self + */ + public function setSwishPayerAlias($swishPayerAlias) + { + $this->container['swishPayerAlias'] = $swishPayerAlias; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Payments/Split.php b/src/Adyen/Model/Payments/Split.php index 1cccd3c73..087949d5b 100644 --- a/src/Adyen/Model/Payments/Split.php +++ b/src/Adyen/Model/Payments/Split.php @@ -464,7 +464,7 @@ public function getType() /** * Sets type * - * @param string $type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. + * @param string $type The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**. * * @return self */ diff --git a/src/Adyen/Model/PaymentsApp/ObjectSerializer.php b/src/Adyen/Model/PaymentsApp/ObjectSerializer.php index a9aae963f..9f9959282 100644 --- a/src/Adyen/Model/PaymentsApp/ObjectSerializer.php +++ b/src/Adyen/Model/PaymentsApp/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Payout/ObjectSerializer.php b/src/Adyen/Model/Payout/ObjectSerializer.php index 1f3961622..96e192c0c 100644 --- a/src/Adyen/Model/Payout/ObjectSerializer.php +++ b/src/Adyen/Model/Payout/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Payout/Recurring.php b/src/Adyen/Model/Payout/Recurring.php index 27af5f886..aa7be240e 100644 --- a/src/Adyen/Model/Payout/Recurring.php +++ b/src/Adyen/Model/Payout/Recurring.php @@ -237,8 +237,10 @@ public function getModelName() } public const CONTRACT_ONECLICK = 'ONECLICK'; + public const CONTRACT_ONECLICKRECURRING = 'ONECLICK,RECURRING'; public const CONTRACT_RECURRING = 'RECURRING'; public const CONTRACT_PAYOUT = 'PAYOUT'; + public const CONTRACT_EXTERNAL = 'EXTERNAL'; public const TOKEN_SERVICE_VISATOKENSERVICE = 'VISATOKENSERVICE'; public const TOKEN_SERVICE_MCTOKENSERVICE = 'MCTOKENSERVICE'; public const TOKEN_SERVICE_AMEXTOKENSERVICE = 'AMEXTOKENSERVICE'; @@ -253,8 +255,10 @@ public function getContractAllowableValues() { return [ self::CONTRACT_ONECLICK, + self::CONTRACT_ONECLICKRECURRING, self::CONTRACT_RECURRING, self::CONTRACT_PAYOUT, + self::CONTRACT_EXTERNAL, ]; } /** @@ -366,7 +370,7 @@ public function getContract() /** * Sets contract * - * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. * * @return self */ diff --git a/src/Adyen/Model/Payout/ResponseAdditionalDataSwish.php b/src/Adyen/Model/Payout/ResponseAdditionalDataSwish.php new file mode 100644 index 000000000..157908bc8 --- /dev/null +++ b/src/Adyen/Model/Payout/ResponseAdditionalDataSwish.php @@ -0,0 +1,404 @@ + + */ +class ResponseAdditionalDataSwish implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ResponseAdditionalDataSwish'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'swishPayerAlias' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'swishPayerAlias' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'swishPayerAlias' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'swishPayerAlias' => 'swish.payerAlias' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'swishPayerAlias' => 'setSwishPayerAlias' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'swishPayerAlias' => 'getSwishPayerAlias' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('swishPayerAlias', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets swishPayerAlias + * + * @return string|null + */ + public function getSwishPayerAlias() + { + return $this->container['swishPayerAlias']; + } + + /** + * Sets swishPayerAlias + * + * @param string|null $swishPayerAlias A Swish shopper's telephone number. + * + * @return self + */ + public function setSwishPayerAlias($swishPayerAlias) + { + $this->container['swishPayerAlias'] = $swishPayerAlias; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/PosMobile/ObjectSerializer.php b/src/Adyen/Model/PosMobile/ObjectSerializer.php index cf8a85eb6..6ed79921b 100644 --- a/src/Adyen/Model/PosMobile/ObjectSerializer.php +++ b/src/Adyen/Model/PosMobile/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Recurring/ObjectSerializer.php b/src/Adyen/Model/Recurring/ObjectSerializer.php index 50f6dc097..ad9f78192 100644 --- a/src/Adyen/Model/Recurring/ObjectSerializer.php +++ b/src/Adyen/Model/Recurring/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Recurring/Recurring.php b/src/Adyen/Model/Recurring/Recurring.php index 47aa00f8b..9f4a272ec 100644 --- a/src/Adyen/Model/Recurring/Recurring.php +++ b/src/Adyen/Model/Recurring/Recurring.php @@ -237,8 +237,10 @@ public function getModelName() } public const CONTRACT_ONECLICK = 'ONECLICK'; + public const CONTRACT_ONECLICKRECURRING = 'ONECLICK,RECURRING'; public const CONTRACT_RECURRING = 'RECURRING'; public const CONTRACT_PAYOUT = 'PAYOUT'; + public const CONTRACT_EXTERNAL = 'EXTERNAL'; public const TOKEN_SERVICE_VISATOKENSERVICE = 'VISATOKENSERVICE'; public const TOKEN_SERVICE_MCTOKENSERVICE = 'MCTOKENSERVICE'; public const TOKEN_SERVICE_AMEXTOKENSERVICE = 'AMEXTOKENSERVICE'; @@ -253,8 +255,10 @@ public function getContractAllowableValues() { return [ self::CONTRACT_ONECLICK, + self::CONTRACT_ONECLICKRECURRING, self::CONTRACT_RECURRING, self::CONTRACT_PAYOUT, + self::CONTRACT_EXTERNAL, ]; } /** @@ -366,7 +370,7 @@ public function getContract() /** * Sets contract * - * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + * @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request. * * @return self */ diff --git a/src/Adyen/Model/StoredValue/ObjectSerializer.php b/src/Adyen/Model/StoredValue/ObjectSerializer.php index 1bf61977b..ffd02efdc 100644 --- a/src/Adyen/Model/StoredValue/ObjectSerializer.php +++ b/src/Adyen/Model/StoredValue/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,9 +118,7 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) { - return $timestamp; - } + if (!is_string($timestamp)) return $timestamp; return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Service/Checkout/DonationsApi.php b/src/Adyen/Service/Checkout/DonationsApi.php index 0cadbe4c7..63caab460 100644 --- a/src/Adyen/Service/Checkout/DonationsApi.php +++ b/src/Adyen/Service/Checkout/DonationsApi.php @@ -55,7 +55,7 @@ public function donationCampaigns(\Adyen\Model\Checkout\DonationCampaignsRequest } /** - * Start a transaction for donations + * Make a donation * * @param \Adyen\Model\Checkout\DonationPaymentRequest $donationPaymentRequest * @param array|null $requestOptions diff --git a/src/Adyen/Service/Checkout/RecurringApi.php b/src/Adyen/Service/Checkout/RecurringApi.php index 70f099ede..bc4c51cff 100644 --- a/src/Adyen/Service/Checkout/RecurringApi.php +++ b/src/Adyen/Service/Checkout/RecurringApi.php @@ -44,13 +44,14 @@ public function __construct(Client $client) * * @param string $storedPaymentMethodId * @param array|null $requestOptions ['queryParams' => ['shopperReference'=> string, 'merchantAccount'=> string]] - + * @throws AdyenException */ public function deleteTokenForStoredPaymentDetails(string $storedPaymentMethodId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{storedPaymentMethodId}'], [$storedPaymentMethodId], "/storedPaymentMethods/{storedPaymentMethodId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } /** diff --git a/src/Adyen/Service/Checkout/UtilityApi.php b/src/Adyen/Service/Checkout/UtilityApi.php index 6bbb00557..4559f214a 100644 --- a/src/Adyen/Service/Checkout/UtilityApi.php +++ b/src/Adyen/Service/Checkout/UtilityApi.php @@ -57,7 +57,7 @@ public function getApplePaySession(\Adyen\Model\Checkout\ApplePaySessionRequest /** * Create originKey values for domains * - * @deprecated since Adyen Checkout API v67. + * @deprecated since Adyen Checkout API v67. * @param \Adyen\Model\Checkout\UtilityRequest $utilityRequest * @param array|null $requestOptions * @return \Adyen\Model\Checkout\UtilityResponse diff --git a/src/Adyen/Service/RecurringApi.php b/src/Adyen/Service/RecurringApi.php index 3a815a3f0..c73bf0a65 100644 --- a/src/Adyen/Service/RecurringApi.php +++ b/src/Adyen/Service/RecurringApi.php @@ -42,7 +42,7 @@ public function __construct(Client $client) /** * Create new permits linked to a recurring contract. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\CreatePermitRequest $createPermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\CreatePermitResult @@ -58,7 +58,6 @@ public function createPermit(\Adyen\Model\Recurring\CreatePermitRequest $createP /** * Disable stored payment details * - * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\DisableRequest $disableRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\DisableResult @@ -74,7 +73,7 @@ public function disable(\Adyen\Model\Recurring\DisableRequest $disableRequest, ? /** * Disable an existing permit. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\DisablePermitRequest $disablePermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\DisablePermitResult @@ -90,7 +89,6 @@ public function disablePermit(\Adyen\Model\Recurring\DisablePermitRequest $disab /** * Get stored payment details * - * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\RecurringDetailsRequest $recurringDetailsRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\RecurringDetailsResult @@ -106,7 +104,6 @@ public function listRecurringDetails(\Adyen\Model\Recurring\RecurringDetailsRequ /** * Ask issuer to notify the shopper * - * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\NotifyShopperRequest $notifyShopperRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\NotifyShopperResult @@ -122,7 +119,6 @@ public function notifyShopper(\Adyen\Model\Recurring\NotifyShopperRequest $notif /** * Schedule running the Account Updater * - * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\ScheduleAccountUpdaterRequest $scheduleAccountUpdaterRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\ScheduleAccountUpdaterResult From 5e77c18acf813de9cc4cbc0f0adf578f5c9d7b5c Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Thu, 6 Nov 2025 08:39:07 +0000 Subject: [PATCH 2/2] style(fmt): code formatted --- src/Adyen/Model/BinLookup/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Checkout/CheckoutPaymentMethod.php | 4 ++-- src/Adyen/Model/Checkout/MbwayDetails.php | 4 ++-- src/Adyen/Model/Checkout/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Checkout/PayToPaymentMethod.php | 1 + src/Adyen/Model/Checkout/Result.php | 2 +- src/Adyen/Model/Checkout/UPIPaymentMethod.php | 1 + src/Adyen/Model/Checkout/VippsDetails.php | 2 +- src/Adyen/Model/Disputes/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Payments/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/PaymentsApp/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Payout/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/PosMobile/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Recurring/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/StoredValue/ObjectSerializer.php | 6 ++++-- src/Adyen/Service/Checkout/RecurringApi.php | 3 +-- src/Adyen/Service/Checkout/UtilityApi.php | 2 +- src/Adyen/Service/RecurringApi.php | 4 ++-- 18 files changed, 48 insertions(+), 29 deletions(-) diff --git a/src/Adyen/Model/BinLookup/ObjectSerializer.php b/src/Adyen/Model/BinLookup/ObjectSerializer.php index d9c9dec53..67b57c23b 100644 --- a/src/Adyen/Model/BinLookup/ObjectSerializer.php +++ b/src/Adyen/Model/BinLookup/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php index a8ee96167..499a10790 100644 --- a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php +++ b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php @@ -2160,7 +2160,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -2184,7 +2184,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/MbwayDetails.php b/src/Adyen/Model/Checkout/MbwayDetails.php index 36162b567..0bab34d56 100644 --- a/src/Adyen/Model/Checkout/MbwayDetails.php +++ b/src/Adyen/Model/Checkout/MbwayDetails.php @@ -389,7 +389,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string $shopperEmail + * @param string $shopperEmail * * @return self */ @@ -413,7 +413,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Checkout/ObjectSerializer.php b/src/Adyen/Model/Checkout/ObjectSerializer.php index 1e8e6df61..c9a8102b9 100644 --- a/src/Adyen/Model/Checkout/ObjectSerializer.php +++ b/src/Adyen/Model/Checkout/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Checkout/PayToPaymentMethod.php b/src/Adyen/Model/Checkout/PayToPaymentMethod.php index b2ff170fa..efd654a37 100644 --- a/src/Adyen/Model/Checkout/PayToPaymentMethod.php +++ b/src/Adyen/Model/Checkout/PayToPaymentMethod.php @@ -14,6 +14,7 @@ namespace Adyen\Model\Checkout; + use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/Result.php b/src/Adyen/Model/Checkout/Result.php index 6dd17f86e..f409e9302 100644 --- a/src/Adyen/Model/Checkout/Result.php +++ b/src/Adyen/Model/Checkout/Result.php @@ -14,6 +14,7 @@ namespace Adyen\Model\Checkout; + use Adyen\Model\Checkout\ObjectSerializer; /** @@ -45,4 +46,3 @@ public static function getAllowableEnumValues() ]; } } - diff --git a/src/Adyen/Model/Checkout/UPIPaymentMethod.php b/src/Adyen/Model/Checkout/UPIPaymentMethod.php index 7ce446609..785ca65d6 100644 --- a/src/Adyen/Model/Checkout/UPIPaymentMethod.php +++ b/src/Adyen/Model/Checkout/UPIPaymentMethod.php @@ -14,6 +14,7 @@ namespace Adyen\Model\Checkout; + use Adyen\Model\Checkout\ObjectSerializer; /** diff --git a/src/Adyen/Model/Checkout/VippsDetails.php b/src/Adyen/Model/Checkout/VippsDetails.php index 0782e9ef0..f6f982c8c 100644 --- a/src/Adyen/Model/Checkout/VippsDetails.php +++ b/src/Adyen/Model/Checkout/VippsDetails.php @@ -443,7 +443,7 @@ public function getTelephoneNumber() /** * Sets telephoneNumber * - * @param string $telephoneNumber + * @param string $telephoneNumber * * @return self */ diff --git a/src/Adyen/Model/Disputes/ObjectSerializer.php b/src/Adyen/Model/Disputes/ObjectSerializer.php index ec6232593..d77f1730a 100644 --- a/src/Adyen/Model/Disputes/ObjectSerializer.php +++ b/src/Adyen/Model/Disputes/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Payments/ObjectSerializer.php b/src/Adyen/Model/Payments/ObjectSerializer.php index 13446888e..7938941f0 100644 --- a/src/Adyen/Model/Payments/ObjectSerializer.php +++ b/src/Adyen/Model/Payments/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/PaymentsApp/ObjectSerializer.php b/src/Adyen/Model/PaymentsApp/ObjectSerializer.php index 9f9959282..a9aae963f 100644 --- a/src/Adyen/Model/PaymentsApp/ObjectSerializer.php +++ b/src/Adyen/Model/PaymentsApp/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Payout/ObjectSerializer.php b/src/Adyen/Model/Payout/ObjectSerializer.php index 96e192c0c..1f3961622 100644 --- a/src/Adyen/Model/Payout/ObjectSerializer.php +++ b/src/Adyen/Model/Payout/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/PosMobile/ObjectSerializer.php b/src/Adyen/Model/PosMobile/ObjectSerializer.php index 6ed79921b..cf8a85eb6 100644 --- a/src/Adyen/Model/PosMobile/ObjectSerializer.php +++ b/src/Adyen/Model/PosMobile/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/Recurring/ObjectSerializer.php b/src/Adyen/Model/Recurring/ObjectSerializer.php index ad9f78192..50f6dc097 100644 --- a/src/Adyen/Model/Recurring/ObjectSerializer.php +++ b/src/Adyen/Model/Recurring/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Model/StoredValue/ObjectSerializer.php b/src/Adyen/Model/StoredValue/ObjectSerializer.php index ffd02efdc..1bf61977b 100644 --- a/src/Adyen/Model/StoredValue/ObjectSerializer.php +++ b/src/Adyen/Model/StoredValue/ObjectSerializer.php @@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach($data as $property => $value) { + foreach ($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } @@ -118,7 +118,9 @@ public static function sanitizeFilename($filename) */ public static function sanitizeTimestamp($timestamp) { - if (!is_string($timestamp)) return $timestamp; + if (!is_string($timestamp)) { + return $timestamp; + } return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp); } diff --git a/src/Adyen/Service/Checkout/RecurringApi.php b/src/Adyen/Service/Checkout/RecurringApi.php index bc4c51cff..70f099ede 100644 --- a/src/Adyen/Service/Checkout/RecurringApi.php +++ b/src/Adyen/Service/Checkout/RecurringApi.php @@ -44,14 +44,13 @@ public function __construct(Client $client) * * @param string $storedPaymentMethodId * @param array|null $requestOptions ['queryParams' => ['shopperReference'=> string, 'merchantAccount'=> string]] - + * @throws AdyenException */ public function deleteTokenForStoredPaymentDetails(string $storedPaymentMethodId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{storedPaymentMethodId}'], [$storedPaymentMethodId], "/storedPaymentMethods/{storedPaymentMethodId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } /** diff --git a/src/Adyen/Service/Checkout/UtilityApi.php b/src/Adyen/Service/Checkout/UtilityApi.php index 4559f214a..6bbb00557 100644 --- a/src/Adyen/Service/Checkout/UtilityApi.php +++ b/src/Adyen/Service/Checkout/UtilityApi.php @@ -57,7 +57,7 @@ public function getApplePaySession(\Adyen\Model\Checkout\ApplePaySessionRequest /** * Create originKey values for domains * - * @deprecated since Adyen Checkout API v67. + * @deprecated since Adyen Checkout API v67. * @param \Adyen\Model\Checkout\UtilityRequest $utilityRequest * @param array|null $requestOptions * @return \Adyen\Model\Checkout\UtilityResponse diff --git a/src/Adyen/Service/RecurringApi.php b/src/Adyen/Service/RecurringApi.php index c73bf0a65..2591fc892 100644 --- a/src/Adyen/Service/RecurringApi.php +++ b/src/Adyen/Service/RecurringApi.php @@ -42,7 +42,7 @@ public function __construct(Client $client) /** * Create new permits linked to a recurring contract. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\CreatePermitRequest $createPermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\CreatePermitResult @@ -73,7 +73,7 @@ public function disable(\Adyen\Model\Recurring\DisableRequest $disableRequest, ? /** * Disable an existing permit. * - * @deprecated since Adyen Recurring API v68. + * @deprecated since Adyen Recurring API v68. * @param \Adyen\Model\Recurring\DisablePermitRequest $disablePermitRequest * @param array|null $requestOptions * @return \Adyen\Model\Recurring\DisablePermitResult