From a6332f77ca67c8a092ce3d8fb42e691cc72a9621 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 6 Aug 2025 07:40:22 +0000 Subject: [PATCH 1/3] [reformat][adyen-sdk-automation] automated changes --- .../Model/BalanceControl/ObjectSerializer.php | 6 +- src/Adyen/Model/Management/AlipayPlusInfo.php | 404 ++++++++++++++ src/Adyen/Model/Management/Key.php | 2 +- .../Model/Management/ObjectSerializer.php | 30 +- src/Adyen/Model/Management/PaymentMethod.php | 62 +++ .../Management/PaymentMethodResponse.php | 88 +++ .../Management/PaymentMethodSetupInfo.php | 150 ++++++ src/Adyen/Model/Management/Store.php | 43 +- .../Model/Management/StoreCreationRequest.php | 43 +- .../StoreCreationWithMerchantCodeRequest.php | 43 +- .../Model/Management/SubMerchantData.php | 509 ++++++++++++++++++ .../Management/UpdatePaymentMethodInfo.php | 31 ++ .../Model/Management/UpdateStoreRequest.php | 43 +- src/Adyen/Service/BalanceControlApi.php | 2 +- .../AllowedOriginsCompanyLevelApi.php | 3 +- .../AllowedOriginsMerchantLevelApi.php | 3 +- .../Service/Management/MyAPICredentialApi.php | 3 +- .../PaymentMethodsMerchantLevelApi.php | 3 +- .../PayoutSettingsMerchantLevelApi.php | 3 +- .../Management/TerminalsTerminalLevelApi.php | 3 +- .../Management/WebhooksCompanyLevelApi.php | 3 +- .../Management/WebhooksMerchantLevelApi.php | 3 +- 22 files changed, 1414 insertions(+), 66 deletions(-) create mode 100644 src/Adyen/Model/Management/AlipayPlusInfo.php create mode 100644 src/Adyen/Model/Management/SubMerchantData.php diff --git a/src/Adyen/Model/BalanceControl/ObjectSerializer.php b/src/Adyen/Model/BalanceControl/ObjectSerializer.php index 770dc3955..f5c510cf4 100644 --- a/src/Adyen/Model/BalanceControl/ObjectSerializer.php +++ b/src/Adyen/Model/BalanceControl/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/Management/AlipayPlusInfo.php b/src/Adyen/Model/Management/AlipayPlusInfo.php new file mode 100644 index 000000000..2a43b0d6a --- /dev/null +++ b/src/Adyen/Model/Management/AlipayPlusInfo.php @@ -0,0 +1,404 @@ + + */ +class AlipayPlusInfo implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'AlipayPlusInfo'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'settlementCurrencyCode' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'settlementCurrencyCode' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'settlementCurrencyCode' => 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 = [ + 'settlementCurrencyCode' => 'settlementCurrencyCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'settlementCurrencyCode' => 'setSettlementCurrencyCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'settlementCurrencyCode' => 'getSettlementCurrencyCode' + ]; + + /** + * 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('settlementCurrencyCode', $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 settlementCurrencyCode + * + * @return string|null + */ + public function getSettlementCurrencyCode() + { + return $this->container['settlementCurrencyCode']; + } + + /** + * Sets settlementCurrencyCode + * + * @param string|null $settlementCurrencyCode currency used for settlement. Defaults to USD + * + * @return self + */ + public function setSettlementCurrencyCode($settlementCurrencyCode) + { + $this->container['settlementCurrencyCode'] = $settlementCurrencyCode; + + 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/Management/Key.php b/src/Adyen/Model/Management/Key.php index 1e449990f..4b7101d4d 100644 --- a/src/Adyen/Model/Management/Key.php +++ b/src/Adyen/Model/Management/Key.php @@ -324,7 +324,7 @@ public function getPassphrase() /** * Sets passphrase * - * @param string|null $passphrase The secure passphrase to protect the shared key. + * @param string|null $passphrase The secure passphrase to protect the shared key. Must consist of: * At least 12 characters. * At least 1 uppercase letter: `[A-Z]`. * At least 1 lowercase letter: `[a-z]`. * At least 1 digit: `[0-9]`. * At least 1 special character. Limited to the following: `~`, `@`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `=`, `}`, `{`, `]`, `[`, `;`, `:`, `?`, `.`, `,`, `>`, `<`. * * @return self */ diff --git a/src/Adyen/Model/Management/ObjectSerializer.php b/src/Adyen/Model/Management/ObjectSerializer.php index 61d5df9a5..757cbcb0d 100644 --- a/src/Adyen/Model/Management/ObjectSerializer.php +++ b/src/Adyen/Model/Management/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); } @@ -237,30 +235,6 @@ public static function deserialize($data, $class, $httpHeaders = null) } } - if ($class === '\SplFileObject') { - $data = Utils::streamFor($data); - - /** @var \Psr\Http\Message\StreamInterface $data */ - - // determine file name - if (is_array($httpHeaders) - && array_key_exists('Content-Disposition', $httpHeaders) - && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match) - ) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); - } else { - $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); - } - - $file = fopen($filename, 'w'); - while ($chunk = $data->read(200)) { - fwrite($file, $chunk); - } - fclose($file); - - return new \SplFileObject($filename, 'r'); - } - /** @psalm-suppress ParadoxicalCondition */ if (in_array($class, ['\DateTime', '\SplFileObject', 'array', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { settype($data, $class); diff --git a/src/Adyen/Model/Management/PaymentMethod.php b/src/Adyen/Model/Management/PaymentMethod.php index 2f2ed2eaa..b619745c7 100644 --- a/src/Adyen/Model/Management/PaymentMethod.php +++ b/src/Adyen/Model/Management/PaymentMethod.php @@ -44,6 +44,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'accel' => '\Adyen\Model\Management\AccelInfo', 'affirm' => '\Adyen\Model\Management\AffirmInfo', 'afterpayTouch' => '\Adyen\Model\Management\AfterpayTouchInfo', + 'alipayPlus' => '\Adyen\Model\Management\AlipayPlusInfo', 'allowed' => 'bool', 'amex' => '\Adyen\Model\Management\AmexInfo', 'applePay' => '\Adyen\Model\Management\ApplePayInfo', @@ -68,6 +69,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'jcb' => '\Adyen\Model\Management\JCBInfo', 'klarna' => '\Adyen\Model\Management\KlarnaInfo', 'maestro' => '\Adyen\Model\Management\GenericPmWithTdiInfo', + 'maestroUsa' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'mc' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'mealVoucherFR' => '\Adyen\Model\Management\MealVoucherFRInfo', 'nyce' => '\Adyen\Model\Management\NyceInfo', @@ -104,6 +106,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'accel' => null, 'affirm' => null, 'afterpayTouch' => null, + 'alipayPlus' => null, 'allowed' => null, 'amex' => null, 'applePay' => null, @@ -128,6 +131,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'jcb' => null, 'klarna' => null, 'maestro' => null, + 'maestroUsa' => null, 'mc' => null, 'mealVoucherFR' => null, 'nyce' => null, @@ -162,6 +166,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'accel' => false, 'affirm' => false, 'afterpayTouch' => false, + 'alipayPlus' => false, 'allowed' => false, 'amex' => false, 'applePay' => false, @@ -186,6 +191,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'jcb' => false, 'klarna' => false, 'maestro' => false, + 'maestroUsa' => false, 'mc' => false, 'mealVoucherFR' => false, 'nyce' => false, @@ -300,6 +306,7 @@ public function isNullableSetToNull(string $property): bool 'accel' => 'accel', 'affirm' => 'affirm', 'afterpayTouch' => 'afterpayTouch', + 'alipayPlus' => 'alipayPlus', 'allowed' => 'allowed', 'amex' => 'amex', 'applePay' => 'applePay', @@ -324,6 +331,7 @@ public function isNullableSetToNull(string $property): bool 'jcb' => 'jcb', 'klarna' => 'klarna', 'maestro' => 'maestro', + 'maestroUsa' => 'maestro_usa', 'mc' => 'mc', 'mealVoucherFR' => 'mealVoucher_FR', 'nyce' => 'nyce', @@ -358,6 +366,7 @@ public function isNullableSetToNull(string $property): bool 'accel' => 'setAccel', 'affirm' => 'setAffirm', 'afterpayTouch' => 'setAfterpayTouch', + 'alipayPlus' => 'setAlipayPlus', 'allowed' => 'setAllowed', 'amex' => 'setAmex', 'applePay' => 'setApplePay', @@ -382,6 +391,7 @@ public function isNullableSetToNull(string $property): bool 'jcb' => 'setJcb', 'klarna' => 'setKlarna', 'maestro' => 'setMaestro', + 'maestroUsa' => 'setMaestroUsa', 'mc' => 'setMc', 'mealVoucherFR' => 'setMealVoucherFR', 'nyce' => 'setNyce', @@ -416,6 +426,7 @@ public function isNullableSetToNull(string $property): bool 'accel' => 'getAccel', 'affirm' => 'getAffirm', 'afterpayTouch' => 'getAfterpayTouch', + 'alipayPlus' => 'getAlipayPlus', 'allowed' => 'getAllowed', 'amex' => 'getAmex', 'applePay' => 'getApplePay', @@ -440,6 +451,7 @@ public function isNullableSetToNull(string $property): bool 'jcb' => 'getJcb', 'klarna' => 'getKlarna', 'maestro' => 'getMaestro', + 'maestroUsa' => 'getMaestroUsa', 'mc' => 'getMc', 'mealVoucherFR' => 'getMealVoucherFR', 'nyce' => 'getNyce', @@ -543,6 +555,7 @@ public function __construct(?array $data = null) $this->setIfExists('accel', $data ?? [], null); $this->setIfExists('affirm', $data ?? [], null); $this->setIfExists('afterpayTouch', $data ?? [], null); + $this->setIfExists('alipayPlus', $data ?? [], null); $this->setIfExists('allowed', $data ?? [], null); $this->setIfExists('amex', $data ?? [], null); $this->setIfExists('applePay', $data ?? [], null); @@ -567,6 +580,7 @@ public function __construct(?array $data = null) $this->setIfExists('jcb', $data ?? [], null); $this->setIfExists('klarna', $data ?? [], null); $this->setIfExists('maestro', $data ?? [], null); + $this->setIfExists('maestroUsa', $data ?? [], null); $this->setIfExists('mc', $data ?? [], null); $this->setIfExists('mealVoucherFR', $data ?? [], null); $this->setIfExists('nyce', $data ?? [], null); @@ -718,6 +732,30 @@ public function setAfterpayTouch($afterpayTouch) return $this; } + /** + * Gets alipayPlus + * + * @return \Adyen\Model\Management\AlipayPlusInfo|null + */ + public function getAlipayPlus() + { + return $this->container['alipayPlus']; + } + + /** + * Sets alipayPlus + * + * @param \Adyen\Model\Management\AlipayPlusInfo|null $alipayPlus alipayPlus + * + * @return self + */ + public function setAlipayPlus($alipayPlus) + { + $this->container['alipayPlus'] = $alipayPlus; + + return $this; + } + /** * Gets allowed * @@ -1294,6 +1332,30 @@ public function setMaestro($maestro) return $this; } + /** + * Gets maestroUsa + * + * @return \Adyen\Model\Management\GenericPmWithTdiInfo|null + */ + public function getMaestroUsa() + { + return $this->container['maestroUsa']; + } + + /** + * Sets maestroUsa + * + * @param \Adyen\Model\Management\GenericPmWithTdiInfo|null $maestroUsa maestroUsa + * + * @return self + */ + public function setMaestroUsa($maestroUsa) + { + $this->container['maestroUsa'] = $maestroUsa; + + return $this; + } + /** * Gets mc * diff --git a/src/Adyen/Model/Management/PaymentMethodResponse.php b/src/Adyen/Model/Management/PaymentMethodResponse.php index 9fd9bc48e..0f41b3628 100644 --- a/src/Adyen/Model/Management/PaymentMethodResponse.php +++ b/src/Adyen/Model/Management/PaymentMethodResponse.php @@ -243,9 +243,13 @@ public function getModelName() public const TYPES_WITH_ERRORS_ALELO = 'alelo'; public const TYPES_WITH_ERRORS_ALIPAY = 'alipay'; public const TYPES_WITH_ERRORS_ALIPAY_HK = 'alipay_hk'; + public const TYPES_WITH_ERRORS_ALIPAY_PLUS = 'alipay_plus'; public const TYPES_WITH_ERRORS_ALIPAY_WAP = 'alipay_wap'; public const TYPES_WITH_ERRORS_AMEX = 'amex'; public const TYPES_WITH_ERRORS_APPLEPAY = 'applepay'; + public const TYPES_WITH_ERRORS_AVANCARD = 'avancard'; + public const TYPES_WITH_ERRORS_AVANCARD_CREDIT = 'avancard_credit'; + public const TYPES_WITH_ERRORS_AVANCARD_DEBIT = 'avancard_debit'; public const TYPES_WITH_ERRORS_BANESE_CARD = 'banese_card'; public const TYPES_WITH_ERRORS_BANESE_CARD_CREDIT = 'banese_card_credit'; public const TYPES_WITH_ERRORS_BANESE_CARD_DEBIT = 'banese_card_debit'; @@ -255,6 +259,14 @@ public function getModelName() public const TYPES_WITH_ERRORS_CARTEBANCAIRE = 'cartebancaire'; public const TYPES_WITH_ERRORS_CLEARPAY = 'clearpay'; public const TYPES_WITH_ERRORS_CLICKTOPAY = 'clicktopay'; + public const TYPES_WITH_ERRORS_COOPER = 'cooper'; + public const TYPES_WITH_ERRORS_COOPER_CREDIT = 'cooper_credit'; + public const TYPES_WITH_ERRORS_COOPER_DEBIT = 'cooper_debit'; + public const TYPES_WITH_ERRORS_COOPER_FOOD_DEBIT = 'cooper_food_debit'; + public const TYPES_WITH_ERRORS_COOPER_MEAL_DEBIT = 'cooper_meal_debit'; + public const TYPES_WITH_ERRORS_COOPER_PREPAID = 'cooper_prepaid'; + public const TYPES_WITH_ERRORS_COOPER_PRIVATE_CREDIT = 'cooper_private_credit'; + public const TYPES_WITH_ERRORS_COOPER_RETAIL_CREDIT = 'cooper_retail_credit'; public const TYPES_WITH_ERRORS_CREDTODOS = 'credtodos'; public const TYPES_WITH_ERRORS_CREDTODOS_PRIVATE_CREDIT = 'credtodos_private_credit'; public const TYPES_WITH_ERRORS_CREDTODOS_PRIVATE_DEBIT = 'credtodos_private_debit'; @@ -270,6 +282,12 @@ public function getModelName() public const TYPES_WITH_ERRORS_ELODEBIT = 'elodebit'; public const TYPES_WITH_ERRORS_GIROCARD = 'girocard'; public const TYPES_WITH_ERRORS_GOOGLEPAY = 'googlepay'; + public const TYPES_WITH_ERRORS_GREEN_CARD = 'green_card'; + public const TYPES_WITH_ERRORS_GREEN_CARD_CREDIT = 'green_card_credit'; + public const TYPES_WITH_ERRORS_GREEN_CARD_DEBIT = 'green_card_debit'; + public const TYPES_WITH_ERRORS_GREEN_CARD_FOOD_PREPAID = 'green_card_food_prepaid'; + public const TYPES_WITH_ERRORS_GREEN_CARD_MEAL_PREPAID = 'green_card_meal_prepaid'; + public const TYPES_WITH_ERRORS_GREEN_CARD_PREPAID = 'green_card_prepaid'; public const TYPES_WITH_ERRORS_HIPER = 'hiper'; public const TYPES_WITH_ERRORS_HIPERCARD = 'hipercard'; public const TYPES_WITH_ERRORS_IDEAL = 'ideal'; @@ -278,13 +296,24 @@ public function getModelName() public const TYPES_WITH_ERRORS_KLARNA = 'klarna'; public const TYPES_WITH_ERRORS_KLARNA_ACCOUNT = 'klarna_account'; public const TYPES_WITH_ERRORS_KLARNA_PAYNOW = 'klarna_paynow'; + public const TYPES_WITH_ERRORS_LE_CARD = 'le_card'; + public const TYPES_WITH_ERRORS_LE_CARD_CREDIT = 'le_card_credit'; + public const TYPES_WITH_ERRORS_LE_CARD_DEBIT = 'le_card_debit'; public const TYPES_WITH_ERRORS_MAESTRO = 'maestro'; + public const TYPES_WITH_ERRORS_MAESTRO_USA = 'maestro_usa'; + public const TYPES_WITH_ERRORS_MAXIFROTA = 'maxifrota'; + public const TYPES_WITH_ERRORS_MAXIFROTA_PREPAID = 'maxifrota_prepaid'; public const TYPES_WITH_ERRORS_MBWAY = 'mbway'; public const TYPES_WITH_ERRORS_MC = 'mc'; public const TYPES_WITH_ERRORS_MCDEBIT = 'mcdebit'; public const TYPES_WITH_ERRORS_MEAL_VOUCHER_FR = 'mealVoucher_FR'; + public const TYPES_WITH_ERRORS_MEGALEVE = 'megaleve'; + public const TYPES_WITH_ERRORS_MEGALEVE_CREDIT = 'megaleve_credit'; + public const TYPES_WITH_ERRORS_MEGALEVE_DEBIT = 'megaleve_debit'; public const TYPES_WITH_ERRORS_MOBILEPAY = 'mobilepay'; public const TYPES_WITH_ERRORS_MULTIBANCO = 'multibanco'; + public const TYPES_WITH_ERRORS_NUTRICASH = 'nutricash'; + public const TYPES_WITH_ERRORS_NUTRICASH_PREPAID = 'nutricash_prepaid'; public const TYPES_WITH_ERRORS_NYCE = 'nyce'; public const TYPES_WITH_ERRORS_ONLINE_BANKING_PL = 'onlineBanking_PL'; public const TYPES_WITH_ERRORS_PAYBYBANK = 'paybybank'; @@ -295,7 +324,12 @@ public function getModelName() public const TYPES_WITH_ERRORS_PAYNOW_POS = 'paynow_pos'; public const TYPES_WITH_ERRORS_PAYPAL = 'paypal'; public const TYPES_WITH_ERRORS_PAYTO = 'payto'; + public const TYPES_WITH_ERRORS_PERSONAL_CARD = 'personal_card'; + public const TYPES_WITH_ERRORS_PERSONAL_CARD_CREDIT = 'personal_card_credit'; + public const TYPES_WITH_ERRORS_PERSONAL_CARD_DEBIT = 'personal_card_debit'; public const TYPES_WITH_ERRORS_PULSE = 'pulse'; + public const TYPES_WITH_ERRORS_SENFF = 'senff'; + public const TYPES_WITH_ERRORS_SENFF_CREDIT = 'senff_credit'; public const TYPES_WITH_ERRORS_SODEXO = 'sodexo'; public const TYPES_WITH_ERRORS_STAR = 'star'; public const TYPES_WITH_ERRORS_SWISH = 'swish'; @@ -304,9 +338,19 @@ public function getModelName() public const TYPES_WITH_ERRORS_TRUSTLY = 'trustly'; public const TYPES_WITH_ERRORS_TWINT = 'twint'; public const TYPES_WITH_ERRORS_TWINT_POS = 'twint_pos'; + public const TYPES_WITH_ERRORS_UP_BRAZIL = 'up_brazil'; public const TYPES_WITH_ERRORS_UP_BRAZIL_CREDIT = 'up_brazil_credit'; + public const TYPES_WITH_ERRORS_UP_BRAZIL_DEBIT = 'up_brazil_debit'; + public const TYPES_WITH_ERRORS_UP_BRAZIL_PREPAID = 'up_brazil_prepaid'; public const TYPES_WITH_ERRORS_VALE_REFEICAO = 'vale_refeicao'; public const TYPES_WITH_ERRORS_VALE_REFEICAO_PREPAID = 'vale_refeicao_prepaid'; + public const TYPES_WITH_ERRORS_VEGAS_CARD = 'vegas_card'; + public const TYPES_WITH_ERRORS_VEGAS_CARD_CREDIT = 'vegas_card_credit'; + public const TYPES_WITH_ERRORS_VEGAS_CARD_DEBIT = 'vegas_card_debit'; + public const TYPES_WITH_ERRORS_VERO_CARD = 'vero_card'; + public const TYPES_WITH_ERRORS_VERO_CARD_CREDIT = 'vero_card_credit'; + public const TYPES_WITH_ERRORS_VERO_CARD_DEBIT = 'vero_card_debit'; + public const TYPES_WITH_ERRORS_VERO_CARD_PREPAID = 'vero_card_prepaid'; public const TYPES_WITH_ERRORS_VIPPS = 'vipps'; public const TYPES_WITH_ERRORS_VISA = 'visa'; public const TYPES_WITH_ERRORS_VISADEBIT = 'visadebit'; @@ -329,9 +373,13 @@ public function getTypesWithErrorsAllowableValues() self::TYPES_WITH_ERRORS_ALELO, self::TYPES_WITH_ERRORS_ALIPAY, self::TYPES_WITH_ERRORS_ALIPAY_HK, + self::TYPES_WITH_ERRORS_ALIPAY_PLUS, self::TYPES_WITH_ERRORS_ALIPAY_WAP, self::TYPES_WITH_ERRORS_AMEX, self::TYPES_WITH_ERRORS_APPLEPAY, + self::TYPES_WITH_ERRORS_AVANCARD, + self::TYPES_WITH_ERRORS_AVANCARD_CREDIT, + self::TYPES_WITH_ERRORS_AVANCARD_DEBIT, self::TYPES_WITH_ERRORS_BANESE_CARD, self::TYPES_WITH_ERRORS_BANESE_CARD_CREDIT, self::TYPES_WITH_ERRORS_BANESE_CARD_DEBIT, @@ -341,6 +389,14 @@ public function getTypesWithErrorsAllowableValues() self::TYPES_WITH_ERRORS_CARTEBANCAIRE, self::TYPES_WITH_ERRORS_CLEARPAY, self::TYPES_WITH_ERRORS_CLICKTOPAY, + self::TYPES_WITH_ERRORS_COOPER, + self::TYPES_WITH_ERRORS_COOPER_CREDIT, + self::TYPES_WITH_ERRORS_COOPER_DEBIT, + self::TYPES_WITH_ERRORS_COOPER_FOOD_DEBIT, + self::TYPES_WITH_ERRORS_COOPER_MEAL_DEBIT, + self::TYPES_WITH_ERRORS_COOPER_PREPAID, + self::TYPES_WITH_ERRORS_COOPER_PRIVATE_CREDIT, + self::TYPES_WITH_ERRORS_COOPER_RETAIL_CREDIT, self::TYPES_WITH_ERRORS_CREDTODOS, self::TYPES_WITH_ERRORS_CREDTODOS_PRIVATE_CREDIT, self::TYPES_WITH_ERRORS_CREDTODOS_PRIVATE_DEBIT, @@ -356,6 +412,12 @@ public function getTypesWithErrorsAllowableValues() self::TYPES_WITH_ERRORS_ELODEBIT, self::TYPES_WITH_ERRORS_GIROCARD, self::TYPES_WITH_ERRORS_GOOGLEPAY, + self::TYPES_WITH_ERRORS_GREEN_CARD, + self::TYPES_WITH_ERRORS_GREEN_CARD_CREDIT, + self::TYPES_WITH_ERRORS_GREEN_CARD_DEBIT, + self::TYPES_WITH_ERRORS_GREEN_CARD_FOOD_PREPAID, + self::TYPES_WITH_ERRORS_GREEN_CARD_MEAL_PREPAID, + self::TYPES_WITH_ERRORS_GREEN_CARD_PREPAID, self::TYPES_WITH_ERRORS_HIPER, self::TYPES_WITH_ERRORS_HIPERCARD, self::TYPES_WITH_ERRORS_IDEAL, @@ -364,13 +426,24 @@ public function getTypesWithErrorsAllowableValues() self::TYPES_WITH_ERRORS_KLARNA, self::TYPES_WITH_ERRORS_KLARNA_ACCOUNT, self::TYPES_WITH_ERRORS_KLARNA_PAYNOW, + self::TYPES_WITH_ERRORS_LE_CARD, + self::TYPES_WITH_ERRORS_LE_CARD_CREDIT, + self::TYPES_WITH_ERRORS_LE_CARD_DEBIT, self::TYPES_WITH_ERRORS_MAESTRO, + self::TYPES_WITH_ERRORS_MAESTRO_USA, + self::TYPES_WITH_ERRORS_MAXIFROTA, + self::TYPES_WITH_ERRORS_MAXIFROTA_PREPAID, self::TYPES_WITH_ERRORS_MBWAY, self::TYPES_WITH_ERRORS_MC, self::TYPES_WITH_ERRORS_MCDEBIT, self::TYPES_WITH_ERRORS_MEAL_VOUCHER_FR, + self::TYPES_WITH_ERRORS_MEGALEVE, + self::TYPES_WITH_ERRORS_MEGALEVE_CREDIT, + self::TYPES_WITH_ERRORS_MEGALEVE_DEBIT, self::TYPES_WITH_ERRORS_MOBILEPAY, self::TYPES_WITH_ERRORS_MULTIBANCO, + self::TYPES_WITH_ERRORS_NUTRICASH, + self::TYPES_WITH_ERRORS_NUTRICASH_PREPAID, self::TYPES_WITH_ERRORS_NYCE, self::TYPES_WITH_ERRORS_ONLINE_BANKING_PL, self::TYPES_WITH_ERRORS_PAYBYBANK, @@ -381,7 +454,12 @@ public function getTypesWithErrorsAllowableValues() self::TYPES_WITH_ERRORS_PAYNOW_POS, self::TYPES_WITH_ERRORS_PAYPAL, self::TYPES_WITH_ERRORS_PAYTO, + self::TYPES_WITH_ERRORS_PERSONAL_CARD, + self::TYPES_WITH_ERRORS_PERSONAL_CARD_CREDIT, + self::TYPES_WITH_ERRORS_PERSONAL_CARD_DEBIT, self::TYPES_WITH_ERRORS_PULSE, + self::TYPES_WITH_ERRORS_SENFF, + self::TYPES_WITH_ERRORS_SENFF_CREDIT, self::TYPES_WITH_ERRORS_SODEXO, self::TYPES_WITH_ERRORS_STAR, self::TYPES_WITH_ERRORS_SWISH, @@ -390,9 +468,19 @@ public function getTypesWithErrorsAllowableValues() self::TYPES_WITH_ERRORS_TRUSTLY, self::TYPES_WITH_ERRORS_TWINT, self::TYPES_WITH_ERRORS_TWINT_POS, + self::TYPES_WITH_ERRORS_UP_BRAZIL, self::TYPES_WITH_ERRORS_UP_BRAZIL_CREDIT, + self::TYPES_WITH_ERRORS_UP_BRAZIL_DEBIT, + self::TYPES_WITH_ERRORS_UP_BRAZIL_PREPAID, self::TYPES_WITH_ERRORS_VALE_REFEICAO, self::TYPES_WITH_ERRORS_VALE_REFEICAO_PREPAID, + self::TYPES_WITH_ERRORS_VEGAS_CARD, + self::TYPES_WITH_ERRORS_VEGAS_CARD_CREDIT, + self::TYPES_WITH_ERRORS_VEGAS_CARD_DEBIT, + self::TYPES_WITH_ERRORS_VERO_CARD, + self::TYPES_WITH_ERRORS_VERO_CARD_CREDIT, + self::TYPES_WITH_ERRORS_VERO_CARD_DEBIT, + self::TYPES_WITH_ERRORS_VERO_CARD_PREPAID, self::TYPES_WITH_ERRORS_VIPPS, self::TYPES_WITH_ERRORS_VISA, self::TYPES_WITH_ERRORS_VISADEBIT, diff --git a/src/Adyen/Model/Management/PaymentMethodSetupInfo.php b/src/Adyen/Model/Management/PaymentMethodSetupInfo.php index c5308afee..4239a6609 100644 --- a/src/Adyen/Model/Management/PaymentMethodSetupInfo.php +++ b/src/Adyen/Model/Management/PaymentMethodSetupInfo.php @@ -44,6 +44,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'accel' => '\Adyen\Model\Management\AccelInfo', 'affirm' => '\Adyen\Model\Management\AffirmInfo', 'afterpayTouch' => '\Adyen\Model\Management\AfterpayTouchInfo', + 'alipayPlus' => '\Adyen\Model\Management\AlipayPlusInfo', 'amex' => '\Adyen\Model\Management\AmexInfo', 'applePay' => '\Adyen\Model\Management\ApplePayInfo', 'bcmc' => '\Adyen\Model\Management\BcmcInfo', @@ -65,6 +66,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'jcb' => '\Adyen\Model\Management\JCBInfo', 'klarna' => '\Adyen\Model\Management\KlarnaInfo', 'maestro' => '\Adyen\Model\Management\GenericPmWithTdiInfo', + 'maestroUsa' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'mc' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'mealVoucherFR' => '\Adyen\Model\Management\MealVoucherFRInfo', 'nyce' => '\Adyen\Model\Management\NyceInfo', @@ -100,6 +102,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'accel' => null, 'affirm' => null, 'afterpayTouch' => null, + 'alipayPlus' => null, 'amex' => null, 'applePay' => null, 'bcmc' => null, @@ -121,6 +124,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'jcb' => null, 'klarna' => null, 'maestro' => null, + 'maestroUsa' => null, 'mc' => null, 'mealVoucherFR' => null, 'nyce' => null, @@ -154,6 +158,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'accel' => false, 'affirm' => false, 'afterpayTouch' => false, + 'alipayPlus' => false, 'amex' => false, 'applePay' => false, 'bcmc' => false, @@ -175,6 +180,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'jcb' => false, 'klarna' => false, 'maestro' => false, + 'maestroUsa' => false, 'mc' => false, 'mealVoucherFR' => false, 'nyce' => false, @@ -288,6 +294,7 @@ public function isNullableSetToNull(string $property): bool 'accel' => 'accel', 'affirm' => 'affirm', 'afterpayTouch' => 'afterpayTouch', + 'alipayPlus' => 'alipayPlus', 'amex' => 'amex', 'applePay' => 'applePay', 'bcmc' => 'bcmc', @@ -309,6 +316,7 @@ public function isNullableSetToNull(string $property): bool 'jcb' => 'jcb', 'klarna' => 'klarna', 'maestro' => 'maestro', + 'maestroUsa' => 'maestro_usa', 'mc' => 'mc', 'mealVoucherFR' => 'mealVoucher_FR', 'nyce' => 'nyce', @@ -342,6 +350,7 @@ public function isNullableSetToNull(string $property): bool 'accel' => 'setAccel', 'affirm' => 'setAffirm', 'afterpayTouch' => 'setAfterpayTouch', + 'alipayPlus' => 'setAlipayPlus', 'amex' => 'setAmex', 'applePay' => 'setApplePay', 'bcmc' => 'setBcmc', @@ -363,6 +372,7 @@ public function isNullableSetToNull(string $property): bool 'jcb' => 'setJcb', 'klarna' => 'setKlarna', 'maestro' => 'setMaestro', + 'maestroUsa' => 'setMaestroUsa', 'mc' => 'setMc', 'mealVoucherFR' => 'setMealVoucherFR', 'nyce' => 'setNyce', @@ -396,6 +406,7 @@ public function isNullableSetToNull(string $property): bool 'accel' => 'getAccel', 'affirm' => 'getAffirm', 'afterpayTouch' => 'getAfterpayTouch', + 'alipayPlus' => 'getAlipayPlus', 'amex' => 'getAmex', 'applePay' => 'getApplePay', 'bcmc' => 'getBcmc', @@ -417,6 +428,7 @@ public function isNullableSetToNull(string $property): bool 'jcb' => 'getJcb', 'klarna' => 'getKlarna', 'maestro' => 'getMaestro', + 'maestroUsa' => 'getMaestroUsa', 'mc' => 'getMc', 'mealVoucherFR' => 'getMealVoucherFR', 'nyce' => 'getNyce', @@ -493,9 +505,13 @@ public function getModelName() public const TYPE_ALELO = 'alelo'; public const TYPE_ALIPAY = 'alipay'; public const TYPE_ALIPAY_HK = 'alipay_hk'; + public const TYPE_ALIPAY_PLUS = 'alipay_plus'; public const TYPE_ALIPAY_WAP = 'alipay_wap'; public const TYPE_AMEX = 'amex'; public const TYPE_APPLEPAY = 'applepay'; + public const TYPE_AVANCARD = 'avancard'; + public const TYPE_AVANCARD_CREDIT = 'avancard_credit'; + public const TYPE_AVANCARD_DEBIT = 'avancard_debit'; public const TYPE_BANESE_CARD = 'banese_card'; public const TYPE_BANESE_CARD_CREDIT = 'banese_card_credit'; public const TYPE_BANESE_CARD_DEBIT = 'banese_card_debit'; @@ -505,6 +521,14 @@ public function getModelName() public const TYPE_CARTEBANCAIRE = 'cartebancaire'; public const TYPE_CLEARPAY = 'clearpay'; public const TYPE_CLICKTOPAY = 'clicktopay'; + public const TYPE_COOPER = 'cooper'; + public const TYPE_COOPER_CREDIT = 'cooper_credit'; + public const TYPE_COOPER_DEBIT = 'cooper_debit'; + public const TYPE_COOPER_FOOD_DEBIT = 'cooper_food_debit'; + public const TYPE_COOPER_MEAL_DEBIT = 'cooper_meal_debit'; + public const TYPE_COOPER_PREPAID = 'cooper_prepaid'; + public const TYPE_COOPER_PRIVATE_CREDIT = 'cooper_private_credit'; + public const TYPE_COOPER_RETAIL_CREDIT = 'cooper_retail_credit'; public const TYPE_CREDTODOS = 'credtodos'; public const TYPE_CREDTODOS_PRIVATE_CREDIT = 'credtodos_private_credit'; public const TYPE_CREDTODOS_PRIVATE_DEBIT = 'credtodos_private_debit'; @@ -520,6 +544,12 @@ public function getModelName() public const TYPE_ELODEBIT = 'elodebit'; public const TYPE_GIROCARD = 'girocard'; public const TYPE_GOOGLEPAY = 'googlepay'; + public const TYPE_GREEN_CARD = 'green_card'; + public const TYPE_GREEN_CARD_CREDIT = 'green_card_credit'; + public const TYPE_GREEN_CARD_DEBIT = 'green_card_debit'; + public const TYPE_GREEN_CARD_FOOD_PREPAID = 'green_card_food_prepaid'; + public const TYPE_GREEN_CARD_MEAL_PREPAID = 'green_card_meal_prepaid'; + public const TYPE_GREEN_CARD_PREPAID = 'green_card_prepaid'; public const TYPE_HIPER = 'hiper'; public const TYPE_HIPERCARD = 'hipercard'; public const TYPE_IDEAL = 'ideal'; @@ -528,13 +558,24 @@ public function getModelName() public const TYPE_KLARNA = 'klarna'; public const TYPE_KLARNA_ACCOUNT = 'klarna_account'; public const TYPE_KLARNA_PAYNOW = 'klarna_paynow'; + public const TYPE_LE_CARD = 'le_card'; + public const TYPE_LE_CARD_CREDIT = 'le_card_credit'; + public const TYPE_LE_CARD_DEBIT = 'le_card_debit'; public const TYPE_MAESTRO = 'maestro'; + public const TYPE_MAESTRO_USA = 'maestro_usa'; + public const TYPE_MAXIFROTA = 'maxifrota'; + public const TYPE_MAXIFROTA_PREPAID = 'maxifrota_prepaid'; public const TYPE_MBWAY = 'mbway'; public const TYPE_MC = 'mc'; public const TYPE_MCDEBIT = 'mcdebit'; public const TYPE_MEAL_VOUCHER_FR = 'mealVoucher_FR'; + public const TYPE_MEGALEVE = 'megaleve'; + public const TYPE_MEGALEVE_CREDIT = 'megaleve_credit'; + public const TYPE_MEGALEVE_DEBIT = 'megaleve_debit'; public const TYPE_MOBILEPAY = 'mobilepay'; public const TYPE_MULTIBANCO = 'multibanco'; + public const TYPE_NUTRICASH = 'nutricash'; + public const TYPE_NUTRICASH_PREPAID = 'nutricash_prepaid'; public const TYPE_NYCE = 'nyce'; public const TYPE_ONLINE_BANKING_PL = 'onlineBanking_PL'; public const TYPE_PAYBYBANK = 'paybybank'; @@ -545,7 +586,12 @@ public function getModelName() public const TYPE_PAYNOW_POS = 'paynow_pos'; public const TYPE_PAYPAL = 'paypal'; public const TYPE_PAYTO = 'payto'; + public const TYPE_PERSONAL_CARD = 'personal_card'; + public const TYPE_PERSONAL_CARD_CREDIT = 'personal_card_credit'; + public const TYPE_PERSONAL_CARD_DEBIT = 'personal_card_debit'; public const TYPE_PULSE = 'pulse'; + public const TYPE_SENFF = 'senff'; + public const TYPE_SENFF_CREDIT = 'senff_credit'; public const TYPE_SODEXO = 'sodexo'; public const TYPE_STAR = 'star'; public const TYPE_SWISH = 'swish'; @@ -554,9 +600,19 @@ public function getModelName() public const TYPE_TRUSTLY = 'trustly'; public const TYPE_TWINT = 'twint'; public const TYPE_TWINT_POS = 'twint_pos'; + public const TYPE_UP_BRAZIL = 'up_brazil'; public const TYPE_UP_BRAZIL_CREDIT = 'up_brazil_credit'; + public const TYPE_UP_BRAZIL_DEBIT = 'up_brazil_debit'; + public const TYPE_UP_BRAZIL_PREPAID = 'up_brazil_prepaid'; public const TYPE_VALE_REFEICAO = 'vale_refeicao'; public const TYPE_VALE_REFEICAO_PREPAID = 'vale_refeicao_prepaid'; + public const TYPE_VEGAS_CARD = 'vegas_card'; + public const TYPE_VEGAS_CARD_CREDIT = 'vegas_card_credit'; + public const TYPE_VEGAS_CARD_DEBIT = 'vegas_card_debit'; + public const TYPE_VERO_CARD = 'vero_card'; + public const TYPE_VERO_CARD_CREDIT = 'vero_card_credit'; + public const TYPE_VERO_CARD_DEBIT = 'vero_card_debit'; + public const TYPE_VERO_CARD_PREPAID = 'vero_card_prepaid'; public const TYPE_VIPPS = 'vipps'; public const TYPE_VISA = 'visa'; public const TYPE_VISADEBIT = 'visadebit'; @@ -593,9 +649,13 @@ public function getTypeAllowableValues() self::TYPE_ALELO, self::TYPE_ALIPAY, self::TYPE_ALIPAY_HK, + self::TYPE_ALIPAY_PLUS, self::TYPE_ALIPAY_WAP, self::TYPE_AMEX, self::TYPE_APPLEPAY, + self::TYPE_AVANCARD, + self::TYPE_AVANCARD_CREDIT, + self::TYPE_AVANCARD_DEBIT, self::TYPE_BANESE_CARD, self::TYPE_BANESE_CARD_CREDIT, self::TYPE_BANESE_CARD_DEBIT, @@ -605,6 +665,14 @@ public function getTypeAllowableValues() self::TYPE_CARTEBANCAIRE, self::TYPE_CLEARPAY, self::TYPE_CLICKTOPAY, + self::TYPE_COOPER, + self::TYPE_COOPER_CREDIT, + self::TYPE_COOPER_DEBIT, + self::TYPE_COOPER_FOOD_DEBIT, + self::TYPE_COOPER_MEAL_DEBIT, + self::TYPE_COOPER_PREPAID, + self::TYPE_COOPER_PRIVATE_CREDIT, + self::TYPE_COOPER_RETAIL_CREDIT, self::TYPE_CREDTODOS, self::TYPE_CREDTODOS_PRIVATE_CREDIT, self::TYPE_CREDTODOS_PRIVATE_DEBIT, @@ -620,6 +688,12 @@ public function getTypeAllowableValues() self::TYPE_ELODEBIT, self::TYPE_GIROCARD, self::TYPE_GOOGLEPAY, + self::TYPE_GREEN_CARD, + self::TYPE_GREEN_CARD_CREDIT, + self::TYPE_GREEN_CARD_DEBIT, + self::TYPE_GREEN_CARD_FOOD_PREPAID, + self::TYPE_GREEN_CARD_MEAL_PREPAID, + self::TYPE_GREEN_CARD_PREPAID, self::TYPE_HIPER, self::TYPE_HIPERCARD, self::TYPE_IDEAL, @@ -628,13 +702,24 @@ public function getTypeAllowableValues() self::TYPE_KLARNA, self::TYPE_KLARNA_ACCOUNT, self::TYPE_KLARNA_PAYNOW, + self::TYPE_LE_CARD, + self::TYPE_LE_CARD_CREDIT, + self::TYPE_LE_CARD_DEBIT, self::TYPE_MAESTRO, + self::TYPE_MAESTRO_USA, + self::TYPE_MAXIFROTA, + self::TYPE_MAXIFROTA_PREPAID, self::TYPE_MBWAY, self::TYPE_MC, self::TYPE_MCDEBIT, self::TYPE_MEAL_VOUCHER_FR, + self::TYPE_MEGALEVE, + self::TYPE_MEGALEVE_CREDIT, + self::TYPE_MEGALEVE_DEBIT, self::TYPE_MOBILEPAY, self::TYPE_MULTIBANCO, + self::TYPE_NUTRICASH, + self::TYPE_NUTRICASH_PREPAID, self::TYPE_NYCE, self::TYPE_ONLINE_BANKING_PL, self::TYPE_PAYBYBANK, @@ -645,7 +730,12 @@ public function getTypeAllowableValues() self::TYPE_PAYNOW_POS, self::TYPE_PAYPAL, self::TYPE_PAYTO, + self::TYPE_PERSONAL_CARD, + self::TYPE_PERSONAL_CARD_CREDIT, + self::TYPE_PERSONAL_CARD_DEBIT, self::TYPE_PULSE, + self::TYPE_SENFF, + self::TYPE_SENFF_CREDIT, self::TYPE_SODEXO, self::TYPE_STAR, self::TYPE_SWISH, @@ -654,9 +744,19 @@ public function getTypeAllowableValues() self::TYPE_TRUSTLY, self::TYPE_TWINT, self::TYPE_TWINT_POS, + self::TYPE_UP_BRAZIL, self::TYPE_UP_BRAZIL_CREDIT, + self::TYPE_UP_BRAZIL_DEBIT, + self::TYPE_UP_BRAZIL_PREPAID, self::TYPE_VALE_REFEICAO, self::TYPE_VALE_REFEICAO_PREPAID, + self::TYPE_VEGAS_CARD, + self::TYPE_VEGAS_CARD_CREDIT, + self::TYPE_VEGAS_CARD_DEBIT, + self::TYPE_VERO_CARD, + self::TYPE_VERO_CARD_CREDIT, + self::TYPE_VERO_CARD_DEBIT, + self::TYPE_VERO_CARD_PREPAID, self::TYPE_VIPPS, self::TYPE_VISA, self::TYPE_VISADEBIT, @@ -683,6 +783,7 @@ public function __construct(?array $data = null) $this->setIfExists('accel', $data ?? [], null); $this->setIfExists('affirm', $data ?? [], null); $this->setIfExists('afterpayTouch', $data ?? [], null); + $this->setIfExists('alipayPlus', $data ?? [], null); $this->setIfExists('amex', $data ?? [], null); $this->setIfExists('applePay', $data ?? [], null); $this->setIfExists('bcmc', $data ?? [], null); @@ -704,6 +805,7 @@ public function __construct(?array $data = null) $this->setIfExists('jcb', $data ?? [], null); $this->setIfExists('klarna', $data ?? [], null); $this->setIfExists('maestro', $data ?? [], null); + $this->setIfExists('maestroUsa', $data ?? [], null); $this->setIfExists('mc', $data ?? [], null); $this->setIfExists('mealVoucherFR', $data ?? [], null); $this->setIfExists('nyce', $data ?? [], null); @@ -863,6 +965,30 @@ public function setAfterpayTouch($afterpayTouch) return $this; } + /** + * Gets alipayPlus + * + * @return \Adyen\Model\Management\AlipayPlusInfo|null + */ + public function getAlipayPlus() + { + return $this->container['alipayPlus']; + } + + /** + * Sets alipayPlus + * + * @param \Adyen\Model\Management\AlipayPlusInfo|null $alipayPlus alipayPlus + * + * @return self + */ + public function setAlipayPlus($alipayPlus) + { + $this->container['alipayPlus'] = $alipayPlus; + + return $this; + } + /** * Gets amex * @@ -1367,6 +1493,30 @@ public function setMaestro($maestro) return $this; } + /** + * Gets maestroUsa + * + * @return \Adyen\Model\Management\GenericPmWithTdiInfo|null + */ + public function getMaestroUsa() + { + return $this->container['maestroUsa']; + } + + /** + * Sets maestroUsa + * + * @param \Adyen\Model\Management\GenericPmWithTdiInfo|null $maestroUsa maestroUsa + * + * @return self + */ + public function setMaestroUsa($maestroUsa) + { + $this->container['maestroUsa'] = $maestroUsa; + + return $this; + } + /** * Gets mc * diff --git a/src/Adyen/Model/Management/Store.php b/src/Adyen/Model/Management/Store.php index 3f0e85699..0ac2f8eaa 100644 --- a/src/Adyen/Model/Management/Store.php +++ b/src/Adyen/Model/Management/Store.php @@ -52,7 +52,8 @@ class Store implements ModelInterface, ArrayAccess, \JsonSerializable 'reference' => 'string', 'shopperStatement' => 'string', 'splitConfiguration' => '\Adyen\Model\Management\StoreSplitConfiguration', - 'status' => 'string' + 'status' => 'string', + 'subMerchantData' => '\Adyen\Model\Management\SubMerchantData' ]; /** @@ -74,7 +75,8 @@ class Store implements ModelInterface, ArrayAccess, \JsonSerializable 'reference' => null, 'shopperStatement' => null, 'splitConfiguration' => null, - 'status' => null + 'status' => null, + 'subMerchantData' => null ]; /** @@ -94,7 +96,8 @@ class Store implements ModelInterface, ArrayAccess, \JsonSerializable 'reference' => false, 'shopperStatement' => false, 'splitConfiguration' => false, - 'status' => false + 'status' => false, + 'subMerchantData' => false ]; /** @@ -194,7 +197,8 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'reference', 'shopperStatement' => 'shopperStatement', 'splitConfiguration' => 'splitConfiguration', - 'status' => 'status' + 'status' => 'status', + 'subMerchantData' => 'subMerchantData' ]; /** @@ -214,7 +218,8 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'setReference', 'shopperStatement' => 'setShopperStatement', 'splitConfiguration' => 'setSplitConfiguration', - 'status' => 'setStatus' + 'status' => 'setStatus', + 'subMerchantData' => 'setSubMerchantData' ]; /** @@ -234,7 +239,8 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'getReference', 'shopperStatement' => 'getShopperStatement', 'splitConfiguration' => 'getSplitConfiguration', - 'status' => 'getStatus' + 'status' => 'getStatus', + 'subMerchantData' => 'getSubMerchantData' ]; /** @@ -322,6 +328,7 @@ public function __construct(?array $data = null) $this->setIfExists('shopperStatement', $data ?? [], null); $this->setIfExists('splitConfiguration', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('subMerchantData', $data ?? [], null); } /** @@ -672,6 +679,30 @@ public function setStatus($status) return $this; } + + /** + * Gets subMerchantData + * + * @return \Adyen\Model\Management\SubMerchantData|null + */ + public function getSubMerchantData() + { + return $this->container['subMerchantData']; + } + + /** + * Sets subMerchantData + * + * @param \Adyen\Model\Management\SubMerchantData|null $subMerchantData subMerchantData + * + * @return self + */ + public function setSubMerchantData($subMerchantData) + { + $this->container['subMerchantData'] = $subMerchantData; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Management/StoreCreationRequest.php b/src/Adyen/Model/Management/StoreCreationRequest.php index d265ee4f4..51ea75c3c 100644 --- a/src/Adyen/Model/Management/StoreCreationRequest.php +++ b/src/Adyen/Model/Management/StoreCreationRequest.php @@ -48,7 +48,8 @@ class StoreCreationRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'phoneNumber' => 'string', 'reference' => 'string', 'shopperStatement' => 'string', - 'splitConfiguration' => '\Adyen\Model\Management\StoreSplitConfiguration' + 'splitConfiguration' => '\Adyen\Model\Management\StoreSplitConfiguration', + 'subMerchantData' => '\Adyen\Model\Management\SubMerchantData' ]; /** @@ -66,7 +67,8 @@ class StoreCreationRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'phoneNumber' => null, 'reference' => null, 'shopperStatement' => null, - 'splitConfiguration' => null + 'splitConfiguration' => null, + 'subMerchantData' => null ]; /** @@ -82,7 +84,8 @@ class StoreCreationRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'phoneNumber' => false, 'reference' => false, 'shopperStatement' => false, - 'splitConfiguration' => false + 'splitConfiguration' => false, + 'subMerchantData' => false ]; /** @@ -178,7 +181,8 @@ public function isNullableSetToNull(string $property): bool 'phoneNumber' => 'phoneNumber', 'reference' => 'reference', 'shopperStatement' => 'shopperStatement', - 'splitConfiguration' => 'splitConfiguration' + 'splitConfiguration' => 'splitConfiguration', + 'subMerchantData' => 'subMerchantData' ]; /** @@ -194,7 +198,8 @@ public function isNullableSetToNull(string $property): bool 'phoneNumber' => 'setPhoneNumber', 'reference' => 'setReference', 'shopperStatement' => 'setShopperStatement', - 'splitConfiguration' => 'setSplitConfiguration' + 'splitConfiguration' => 'setSplitConfiguration', + 'subMerchantData' => 'setSubMerchantData' ]; /** @@ -210,7 +215,8 @@ public function isNullableSetToNull(string $property): bool 'phoneNumber' => 'getPhoneNumber', 'reference' => 'getReference', 'shopperStatement' => 'getShopperStatement', - 'splitConfiguration' => 'getSplitConfiguration' + 'splitConfiguration' => 'getSplitConfiguration', + 'subMerchantData' => 'getSubMerchantData' ]; /** @@ -278,6 +284,7 @@ public function __construct(?array $data = null) $this->setIfExists('reference', $data ?? [], null); $this->setIfExists('shopperStatement', $data ?? [], null); $this->setIfExists('splitConfiguration', $data ?? [], null); + $this->setIfExists('subMerchantData', $data ?? [], null); } /** @@ -525,6 +532,30 @@ public function setSplitConfiguration($splitConfiguration) return $this; } + + /** + * Gets subMerchantData + * + * @return \Adyen\Model\Management\SubMerchantData|null + */ + public function getSubMerchantData() + { + return $this->container['subMerchantData']; + } + + /** + * Sets subMerchantData + * + * @param \Adyen\Model\Management\SubMerchantData|null $subMerchantData subMerchantData + * + * @return self + */ + public function setSubMerchantData($subMerchantData) + { + $this->container['subMerchantData'] = $subMerchantData; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php b/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php index 693844507..71a9f21c9 100644 --- a/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php +++ b/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php @@ -49,7 +49,8 @@ class StoreCreationWithMerchantCodeRequest implements ModelInterface, ArrayAcces 'phoneNumber' => 'string', 'reference' => 'string', 'shopperStatement' => 'string', - 'splitConfiguration' => '\Adyen\Model\Management\StoreSplitConfiguration' + 'splitConfiguration' => '\Adyen\Model\Management\StoreSplitConfiguration', + 'subMerchantData' => '\Adyen\Model\Management\SubMerchantData' ]; /** @@ -68,7 +69,8 @@ class StoreCreationWithMerchantCodeRequest implements ModelInterface, ArrayAcces 'phoneNumber' => null, 'reference' => null, 'shopperStatement' => null, - 'splitConfiguration' => null + 'splitConfiguration' => null, + 'subMerchantData' => null ]; /** @@ -85,7 +87,8 @@ class StoreCreationWithMerchantCodeRequest implements ModelInterface, ArrayAcces 'phoneNumber' => false, 'reference' => false, 'shopperStatement' => false, - 'splitConfiguration' => false + 'splitConfiguration' => false, + 'subMerchantData' => false ]; /** @@ -182,7 +185,8 @@ public function isNullableSetToNull(string $property): bool 'phoneNumber' => 'phoneNumber', 'reference' => 'reference', 'shopperStatement' => 'shopperStatement', - 'splitConfiguration' => 'splitConfiguration' + 'splitConfiguration' => 'splitConfiguration', + 'subMerchantData' => 'subMerchantData' ]; /** @@ -199,7 +203,8 @@ public function isNullableSetToNull(string $property): bool 'phoneNumber' => 'setPhoneNumber', 'reference' => 'setReference', 'shopperStatement' => 'setShopperStatement', - 'splitConfiguration' => 'setSplitConfiguration' + 'splitConfiguration' => 'setSplitConfiguration', + 'subMerchantData' => 'setSubMerchantData' ]; /** @@ -216,7 +221,8 @@ public function isNullableSetToNull(string $property): bool 'phoneNumber' => 'getPhoneNumber', 'reference' => 'getReference', 'shopperStatement' => 'getShopperStatement', - 'splitConfiguration' => 'getSplitConfiguration' + 'splitConfiguration' => 'getSplitConfiguration', + 'subMerchantData' => 'getSubMerchantData' ]; /** @@ -285,6 +291,7 @@ public function __construct(?array $data = null) $this->setIfExists('reference', $data ?? [], null); $this->setIfExists('shopperStatement', $data ?? [], null); $this->setIfExists('splitConfiguration', $data ?? [], null); + $this->setIfExists('subMerchantData', $data ?? [], null); } /** @@ -559,6 +566,30 @@ public function setSplitConfiguration($splitConfiguration) return $this; } + + /** + * Gets subMerchantData + * + * @return \Adyen\Model\Management\SubMerchantData|null + */ + public function getSubMerchantData() + { + return $this->container['subMerchantData']; + } + + /** + * Sets subMerchantData + * + * @param \Adyen\Model\Management\SubMerchantData|null $subMerchantData subMerchantData + * + * @return self + */ + public function setSubMerchantData($subMerchantData) + { + $this->container['subMerchantData'] = $subMerchantData; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Management/SubMerchantData.php b/src/Adyen/Model/Management/SubMerchantData.php new file mode 100644 index 000000000..0a738cc75 --- /dev/null +++ b/src/Adyen/Model/Management/SubMerchantData.php @@ -0,0 +1,509 @@ + + */ +class SubMerchantData implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'SubMerchantData'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'email' => 'string', + 'id' => 'string', + 'mcc' => 'string', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'email' => null, + 'id' => null, + 'mcc' => null, + 'name' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'email' => false, + 'id' => false, + 'mcc' => false, + '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 = [ + 'email' => 'email', + 'id' => 'id', + 'mcc' => 'mcc', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'email' => 'setEmail', + 'id' => 'setId', + 'mcc' => 'setMcc', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'email' => 'getEmail', + 'id' => 'getId', + 'mcc' => 'getMcc', + '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('email', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('mcc', $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 = []; + + if ($this->container['email'] === null) { + $invalidProperties[] = "'email' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['mcc'] === null) { + $invalidProperties[] = "'mcc' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' 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 email + * + * @return string + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string $email The email associated with the sub-merchant's account. + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets mcc + * + * @return string + */ + public function getMcc() + { + return $this->container['mcc']; + } + + /** + * Sets mcc + * + * @param string $mcc The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + * + * @return self + */ + public function setMcc($mcc) + { + $this->container['mcc'] = $mcc; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + * + * @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/Management/UpdatePaymentMethodInfo.php b/src/Adyen/Model/Management/UpdatePaymentMethodInfo.php index 1b1616c26..b5898b85d 100644 --- a/src/Adyen/Model/Management/UpdatePaymentMethodInfo.php +++ b/src/Adyen/Model/Management/UpdatePaymentMethodInfo.php @@ -58,6 +58,7 @@ class UpdatePaymentMethodInfo implements ModelInterface, ArrayAccess, \JsonSeria 'interacCard' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'jcb' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'maestro' => '\Adyen\Model\Management\GenericPmWithTdiInfo', + 'maestroUsa' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'mc' => '\Adyen\Model\Management\GenericPmWithTdiInfo', 'nyce' => '\Adyen\Model\Management\NyceInfo', 'paybybankPlaid' => '\Adyen\Model\Management\PayByBankPlaidInfo', @@ -93,6 +94,7 @@ class UpdatePaymentMethodInfo implements ModelInterface, ArrayAccess, \JsonSeria 'interacCard' => null, 'jcb' => null, 'maestro' => null, + 'maestroUsa' => null, 'mc' => null, 'nyce' => null, 'paybybankPlaid' => null, @@ -126,6 +128,7 @@ class UpdatePaymentMethodInfo implements ModelInterface, ArrayAccess, \JsonSeria 'interacCard' => false, 'jcb' => false, 'maestro' => false, + 'maestroUsa' => false, 'mc' => false, 'nyce' => false, 'paybybankPlaid' => false, @@ -239,6 +242,7 @@ public function isNullableSetToNull(string $property): bool 'interacCard' => 'interac_card', 'jcb' => 'jcb', 'maestro' => 'maestro', + 'maestroUsa' => 'maestro_usa', 'mc' => 'mc', 'nyce' => 'nyce', 'paybybankPlaid' => 'paybybank_plaid', @@ -272,6 +276,7 @@ public function isNullableSetToNull(string $property): bool 'interacCard' => 'setInteracCard', 'jcb' => 'setJcb', 'maestro' => 'setMaestro', + 'maestroUsa' => 'setMaestroUsa', 'mc' => 'setMc', 'nyce' => 'setNyce', 'paybybankPlaid' => 'setPaybybankPlaid', @@ -305,6 +310,7 @@ public function isNullableSetToNull(string $property): bool 'interacCard' => 'getInteracCard', 'jcb' => 'getJcb', 'maestro' => 'getMaestro', + 'maestroUsa' => 'getMaestroUsa', 'mc' => 'getMc', 'nyce' => 'getNyce', 'paybybankPlaid' => 'getPaybybankPlaid', @@ -389,6 +395,7 @@ public function __construct(?array $data = null) $this->setIfExists('interacCard', $data ?? [], null); $this->setIfExists('jcb', $data ?? [], null); $this->setIfExists('maestro', $data ?? [], null); + $this->setIfExists('maestroUsa', $data ?? [], null); $this->setIfExists('mc', $data ?? [], null); $this->setIfExists('nyce', $data ?? [], null); $this->setIfExists('paybybankPlaid', $data ?? [], null); @@ -849,6 +856,30 @@ public function setMaestro($maestro) return $this; } + /** + * Gets maestroUsa + * + * @return \Adyen\Model\Management\GenericPmWithTdiInfo|null + */ + public function getMaestroUsa() + { + return $this->container['maestroUsa']; + } + + /** + * Sets maestroUsa + * + * @param \Adyen\Model\Management\GenericPmWithTdiInfo|null $maestroUsa maestroUsa + * + * @return self + */ + public function setMaestroUsa($maestroUsa) + { + $this->container['maestroUsa'] = $maestroUsa; + + return $this; + } + /** * Gets mc * diff --git a/src/Adyen/Model/Management/UpdateStoreRequest.php b/src/Adyen/Model/Management/UpdateStoreRequest.php index d47a40dbd..17f4ea150 100644 --- a/src/Adyen/Model/Management/UpdateStoreRequest.php +++ b/src/Adyen/Model/Management/UpdateStoreRequest.php @@ -47,7 +47,8 @@ class UpdateStoreRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'externalReferenceId' => 'string', 'phoneNumber' => 'string', 'splitConfiguration' => '\Adyen\Model\Management\StoreSplitConfiguration', - 'status' => 'string' + 'status' => 'string', + 'subMerchantData' => '\Adyen\Model\Management\SubMerchantData' ]; /** @@ -64,7 +65,8 @@ class UpdateStoreRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'externalReferenceId' => null, 'phoneNumber' => null, 'splitConfiguration' => null, - 'status' => null + 'status' => null, + 'subMerchantData' => null ]; /** @@ -79,7 +81,8 @@ class UpdateStoreRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'externalReferenceId' => false, 'phoneNumber' => false, 'splitConfiguration' => false, - 'status' => false + 'status' => false, + 'subMerchantData' => false ]; /** @@ -174,7 +177,8 @@ public function isNullableSetToNull(string $property): bool 'externalReferenceId' => 'externalReferenceId', 'phoneNumber' => 'phoneNumber', 'splitConfiguration' => 'splitConfiguration', - 'status' => 'status' + 'status' => 'status', + 'subMerchantData' => 'subMerchantData' ]; /** @@ -189,7 +193,8 @@ public function isNullableSetToNull(string $property): bool 'externalReferenceId' => 'setExternalReferenceId', 'phoneNumber' => 'setPhoneNumber', 'splitConfiguration' => 'setSplitConfiguration', - 'status' => 'setStatus' + 'status' => 'setStatus', + 'subMerchantData' => 'setSubMerchantData' ]; /** @@ -204,7 +209,8 @@ public function isNullableSetToNull(string $property): bool 'externalReferenceId' => 'getExternalReferenceId', 'phoneNumber' => 'getPhoneNumber', 'splitConfiguration' => 'getSplitConfiguration', - 'status' => 'getStatus' + 'status' => 'getStatus', + 'subMerchantData' => 'getSubMerchantData' ]; /** @@ -287,6 +293,7 @@ public function __construct(?array $data = null) $this->setIfExists('phoneNumber', $data ?? [], null); $this->setIfExists('splitConfiguration', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('subMerchantData', $data ?? [], null); } /** @@ -517,6 +524,30 @@ public function setStatus($status) return $this; } + + /** + * Gets subMerchantData + * + * @return \Adyen\Model\Management\SubMerchantData|null + */ + public function getSubMerchantData() + { + return $this->container['subMerchantData']; + } + + /** + * Sets subMerchantData + * + * @param \Adyen\Model\Management\SubMerchantData|null $subMerchantData subMerchantData + * + * @return self + */ + public function setSubMerchantData($subMerchantData) + { + $this->container['subMerchantData'] = $subMerchantData; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Service/BalanceControlApi.php b/src/Adyen/Service/BalanceControlApi.php index 8e9b2ac1d..054e9528a 100644 --- a/src/Adyen/Service/BalanceControlApi.php +++ b/src/Adyen/Service/BalanceControlApi.php @@ -42,7 +42,7 @@ public function __construct(Client $client) /** * Start a balance transfer * - * @deprecated since Adyen Balance Control API v1. + * @deprecated since Adyen Balance Control API v1. * @param \Adyen\Model\BalanceControl\BalanceTransferRequest $balanceTransferRequest * @param array|null $requestOptions * @return \Adyen\Model\BalanceControl\BalanceTransferResponse diff --git a/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php b/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php index b5bcb0363..72a1fcb62 100644 --- a/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php +++ b/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php @@ -63,13 +63,14 @@ public function createAllowedOrigin(string $companyId, string $apiCredentialId, * @param string $apiCredentialId * @param string $originId * @param array|null $requestOptions - + * @throws AdyenException */ public function deleteAllowedOrigin(string $companyId, string $apiCredentialId, string $originId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{companyId}', '{apiCredentialId}', '{originId}'], [$companyId, $apiCredentialId, $originId], "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } /** diff --git a/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php b/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php index 153d3c872..fe06b0700 100644 --- a/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php +++ b/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php @@ -63,13 +63,14 @@ public function createAllowedOrigin(string $merchantId, string $apiCredentialId, * @param string $apiCredentialId * @param string $originId * @param array|null $requestOptions - + * @throws AdyenException */ public function deleteAllowedOrigin(string $merchantId, string $apiCredentialId, string $originId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{apiCredentialId}', '{originId}'], [$merchantId, $apiCredentialId, $originId], "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } /** diff --git a/src/Adyen/Service/Management/MyAPICredentialApi.php b/src/Adyen/Service/Management/MyAPICredentialApi.php index 7300d12ce..e6bc34c2a 100644 --- a/src/Adyen/Service/Management/MyAPICredentialApi.php +++ b/src/Adyen/Service/Management/MyAPICredentialApi.php @@ -116,12 +116,13 @@ public function getApiCredentialDetails(?array $requestOptions = null): \Adyen\M * * @param string $originId * @param array|null $requestOptions - + * @throws AdyenException */ public function removeAllowedOrigin(string $originId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{originId}'], [$originId], "/me/allowedOrigins/{originId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } } diff --git a/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php b/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php index 5c57f0e10..387f6ead3 100644 --- a/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php +++ b/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php @@ -46,13 +46,14 @@ public function __construct(Client $client) * @param string $paymentMethodId * @param \Adyen\Model\Management\ApplePayInfo $applePayInfo * @param array|null $requestOptions - + * @throws AdyenException */ public function addApplePayDomain(string $merchantId, string $paymentMethodId, \Adyen\Model\Management\ApplePayInfo $applePayInfo, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{paymentMethodId}'], [$merchantId, $paymentMethodId], "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains"); $this->requestHttp($endpoint, strtolower('POST'), (array) $applePayInfo->jsonSerialize(), $requestOptions); + } /** diff --git a/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php b/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php index cd2c7a681..b1192762b 100644 --- a/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php +++ b/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php @@ -61,13 +61,14 @@ public function addPayoutSetting(string $merchantId, \Adyen\Model\Management\Pay * @param string $merchantId * @param string $payoutSettingsId * @param array|null $requestOptions - + * @throws AdyenException */ public function deletePayoutSetting(string $merchantId, string $payoutSettingsId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{payoutSettingsId}'], [$merchantId, $payoutSettingsId], "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } /** diff --git a/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php b/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php index 66db0d719..71b64e329 100644 --- a/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php +++ b/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php @@ -59,12 +59,13 @@ public function listTerminals(?array $requestOptions = null): \Adyen\Model\Manag * @param string $terminalId * @param \Adyen\Model\Management\TerminalReassignmentRequest $terminalReassignmentRequest * @param array|null $requestOptions - + * @throws AdyenException */ public function reassignTerminal(string $terminalId, \Adyen\Model\Management\TerminalReassignmentRequest $terminalReassignmentRequest, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{terminalId}'], [$terminalId], "/terminals/{terminalId}/reassign"); $this->requestHttp($endpoint, strtolower('POST'), (array) $terminalReassignmentRequest->jsonSerialize(), $requestOptions); + } } diff --git a/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php b/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php index 5453bff02..ed5e2e4ae 100644 --- a/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php +++ b/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php @@ -92,13 +92,14 @@ public function listAllWebhooks(string $companyId, ?array $requestOptions = null * @param string $companyId * @param string $webhookId * @param array|null $requestOptions - + * @throws AdyenException */ public function removeWebhook(string $companyId, string $webhookId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{companyId}', '{webhookId}'], [$companyId, $webhookId], "/companies/{companyId}/webhooks/{webhookId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } /** diff --git a/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php b/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php index fb166e203..54ce59354 100644 --- a/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php +++ b/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php @@ -92,13 +92,14 @@ public function listAllWebhooks(string $merchantId, ?array $requestOptions = nul * @param string $merchantId * @param string $webhookId * @param array|null $requestOptions - + * @throws AdyenException */ public function removeWebhook(string $merchantId, string $webhookId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{webhookId}'], [$merchantId, $webhookId], "/merchants/{merchantId}/webhooks/{webhookId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } /** From 6874e17073b0b643c7290a19d4662528e2564467 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Wed, 6 Aug 2025 07:43:41 +0000 Subject: [PATCH 2/3] style(fmt): code formatted --- src/Adyen/Model/BalanceControl/ObjectSerializer.php | 6 ++++-- src/Adyen/Model/Management/ObjectSerializer.php | 6 ++++-- src/Adyen/Service/BalanceControlApi.php | 2 +- .../Service/Management/AllowedOriginsCompanyLevelApi.php | 3 +-- .../Service/Management/AllowedOriginsMerchantLevelApi.php | 3 +-- src/Adyen/Service/Management/MyAPICredentialApi.php | 3 +-- .../Service/Management/PaymentMethodsMerchantLevelApi.php | 3 +-- .../Service/Management/PayoutSettingsMerchantLevelApi.php | 3 +-- src/Adyen/Service/Management/TerminalsTerminalLevelApi.php | 3 +-- src/Adyen/Service/Management/WebhooksCompanyLevelApi.php | 3 +-- src/Adyen/Service/Management/WebhooksMerchantLevelApi.php | 3 +-- 11 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/Adyen/Model/BalanceControl/ObjectSerializer.php b/src/Adyen/Model/BalanceControl/ObjectSerializer.php index f5c510cf4..770dc3955 100644 --- a/src/Adyen/Model/BalanceControl/ObjectSerializer.php +++ b/src/Adyen/Model/BalanceControl/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/Management/ObjectSerializer.php b/src/Adyen/Model/Management/ObjectSerializer.php index 757cbcb0d..09e0b2fce 100644 --- a/src/Adyen/Model/Management/ObjectSerializer.php +++ b/src/Adyen/Model/Management/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/BalanceControlApi.php b/src/Adyen/Service/BalanceControlApi.php index 054e9528a..8e9b2ac1d 100644 --- a/src/Adyen/Service/BalanceControlApi.php +++ b/src/Adyen/Service/BalanceControlApi.php @@ -42,7 +42,7 @@ public function __construct(Client $client) /** * Start a balance transfer * - * @deprecated since Adyen Balance Control API v1. + * @deprecated since Adyen Balance Control API v1. * @param \Adyen\Model\BalanceControl\BalanceTransferRequest $balanceTransferRequest * @param array|null $requestOptions * @return \Adyen\Model\BalanceControl\BalanceTransferResponse diff --git a/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php b/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php index 72a1fcb62..b5bcb0363 100644 --- a/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php +++ b/src/Adyen/Service/Management/AllowedOriginsCompanyLevelApi.php @@ -63,14 +63,13 @@ public function createAllowedOrigin(string $companyId, string $apiCredentialId, * @param string $apiCredentialId * @param string $originId * @param array|null $requestOptions - + * @throws AdyenException */ public function deleteAllowedOrigin(string $companyId, string $apiCredentialId, string $originId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{companyId}', '{apiCredentialId}', '{originId}'], [$companyId, $apiCredentialId, $originId], "/companies/{companyId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } /** diff --git a/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php b/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php index fe06b0700..153d3c872 100644 --- a/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php +++ b/src/Adyen/Service/Management/AllowedOriginsMerchantLevelApi.php @@ -63,14 +63,13 @@ public function createAllowedOrigin(string $merchantId, string $apiCredentialId, * @param string $apiCredentialId * @param string $originId * @param array|null $requestOptions - + * @throws AdyenException */ public function deleteAllowedOrigin(string $merchantId, string $apiCredentialId, string $originId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{apiCredentialId}', '{originId}'], [$merchantId, $apiCredentialId, $originId], "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } /** diff --git a/src/Adyen/Service/Management/MyAPICredentialApi.php b/src/Adyen/Service/Management/MyAPICredentialApi.php index e6bc34c2a..7300d12ce 100644 --- a/src/Adyen/Service/Management/MyAPICredentialApi.php +++ b/src/Adyen/Service/Management/MyAPICredentialApi.php @@ -116,13 +116,12 @@ public function getApiCredentialDetails(?array $requestOptions = null): \Adyen\M * * @param string $originId * @param array|null $requestOptions - + * @throws AdyenException */ public function removeAllowedOrigin(string $originId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{originId}'], [$originId], "/me/allowedOrigins/{originId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } } diff --git a/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php b/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php index 387f6ead3..5c57f0e10 100644 --- a/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php +++ b/src/Adyen/Service/Management/PaymentMethodsMerchantLevelApi.php @@ -46,14 +46,13 @@ public function __construct(Client $client) * @param string $paymentMethodId * @param \Adyen\Model\Management\ApplePayInfo $applePayInfo * @param array|null $requestOptions - + * @throws AdyenException */ public function addApplePayDomain(string $merchantId, string $paymentMethodId, \Adyen\Model\Management\ApplePayInfo $applePayInfo, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{paymentMethodId}'], [$merchantId, $paymentMethodId], "/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains"); $this->requestHttp($endpoint, strtolower('POST'), (array) $applePayInfo->jsonSerialize(), $requestOptions); - } /** diff --git a/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php b/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php index b1192762b..cd2c7a681 100644 --- a/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php +++ b/src/Adyen/Service/Management/PayoutSettingsMerchantLevelApi.php @@ -61,14 +61,13 @@ public function addPayoutSetting(string $merchantId, \Adyen\Model\Management\Pay * @param string $merchantId * @param string $payoutSettingsId * @param array|null $requestOptions - + * @throws AdyenException */ public function deletePayoutSetting(string $merchantId, string $payoutSettingsId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{payoutSettingsId}'], [$merchantId, $payoutSettingsId], "/merchants/{merchantId}/payoutSettings/{payoutSettingsId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } /** diff --git a/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php b/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php index 71b64e329..66db0d719 100644 --- a/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php +++ b/src/Adyen/Service/Management/TerminalsTerminalLevelApi.php @@ -59,13 +59,12 @@ public function listTerminals(?array $requestOptions = null): \Adyen\Model\Manag * @param string $terminalId * @param \Adyen\Model\Management\TerminalReassignmentRequest $terminalReassignmentRequest * @param array|null $requestOptions - + * @throws AdyenException */ public function reassignTerminal(string $terminalId, \Adyen\Model\Management\TerminalReassignmentRequest $terminalReassignmentRequest, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{terminalId}'], [$terminalId], "/terminals/{terminalId}/reassign"); $this->requestHttp($endpoint, strtolower('POST'), (array) $terminalReassignmentRequest->jsonSerialize(), $requestOptions); - } } diff --git a/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php b/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php index ed5e2e4ae..5453bff02 100644 --- a/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php +++ b/src/Adyen/Service/Management/WebhooksCompanyLevelApi.php @@ -92,14 +92,13 @@ public function listAllWebhooks(string $companyId, ?array $requestOptions = null * @param string $companyId * @param string $webhookId * @param array|null $requestOptions - + * @throws AdyenException */ public function removeWebhook(string $companyId, string $webhookId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{companyId}', '{webhookId}'], [$companyId, $webhookId], "/companies/{companyId}/webhooks/{webhookId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } /** diff --git a/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php b/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php index 54ce59354..fb166e203 100644 --- a/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php +++ b/src/Adyen/Service/Management/WebhooksMerchantLevelApi.php @@ -92,14 +92,13 @@ public function listAllWebhooks(string $merchantId, ?array $requestOptions = nul * @param string $merchantId * @param string $webhookId * @param array|null $requestOptions - + * @throws AdyenException */ public function removeWebhook(string $merchantId, string $webhookId, ?array $requestOptions = null) { $endpoint = $this->baseURL . str_replace(['{merchantId}', '{webhookId}'], [$merchantId, $webhookId], "/merchants/{merchantId}/webhooks/{webhookId}"); $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); - } /** From 16ecc267009d35a81a7dbfa739a9b6987deea09e Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Wed, 6 Aug 2025 15:25:38 +0200 Subject: [PATCH 3/3] Check for commits in Format workflow --- .github/workflows/format.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 34b1ecf2d..c89045568 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -7,7 +7,7 @@ on: jobs: format: - if: ${{ ! startsWith(github.event.head_commit.message, 'style(fmt)') }} + if: ${{ github.event.commits != null && !startsWith(github.event.head_commit.message, 'style(fmt)') }} permissions: contents: write runs-on: ubuntu-latest @@ -32,5 +32,5 @@ jobs: git config user.name AdyenAutomationBot git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}" git add . - git commit -m "style(fmt): code formatted" + git commit -m "style(fmt): code formatted" || echo "No changes to commit" git push