diff --git a/sdk-generation-log/payment.json b/sdk-generation-log/payment.json new file mode 100644 index 000000000..33f6eccf8 --- /dev/null +++ b/sdk-generation-log/payment.json @@ -0,0 +1,8 @@ +{ + "service": "payment", + "project": "php", + "generatedAt": "2026-04-13T10:19:05Z", + "openapiCommitSha": "ab42e887fd36d43b82acbd9ff6ea3f5957c43a2e", + "automationCommitSha": "855b6c5526cb5fae757e921687c38df66d31dc4b", + "libraryCommitSha": "043387b2f1347a705b8ace39a84aa0ac03a09acf" +} diff --git a/src/Adyen/Model/Payments/ModificationResult.php b/src/Adyen/Model/Payments/ModificationResult.php index 4a6c8e1bd..b9216cb22 100644 --- a/src/Adyen/Model/Payments/ModificationResult.php +++ b/src/Adyen/Model/Payments/ModificationResult.php @@ -233,6 +233,8 @@ public function getModelName() public const RESPONSE_TECHNICAL_CANCEL_RECEIVED = '[technical-cancel-received]'; public const RESPONSE_VOID_PENDING_REFUND_RECEIVED = '[voidPendingRefund-received]'; public const RESPONSE_AUTHORISED = 'Authorised'; + public const RESPONSE_REFUSED = 'Refused'; + public const RESPONSE_ERROR = 'Error'; /** * Gets allowable values of the enum @@ -251,6 +253,8 @@ public function getResponseAllowableValues() self::RESPONSE_TECHNICAL_CANCEL_RECEIVED, self::RESPONSE_VOID_PENDING_REFUND_RECEIVED, self::RESPONSE_AUTHORISED, + self::RESPONSE_REFUSED, + self::RESPONSE_ERROR, ]; } /** diff --git a/src/Adyen/Model/Payments/ResponseAdditionalDataCard.php b/src/Adyen/Model/Payments/ResponseAdditionalDataCard.php index 9c63d9494..233d6de5f 100644 --- a/src/Adyen/Model/Payments/ResponseAdditionalDataCard.php +++ b/src/Adyen/Model/Payments/ResponseAdditionalDataCard.php @@ -41,6 +41,7 @@ class ResponseAdditionalDataCard implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ + 'cardAltID' => 'string', 'cardBin' => 'string', 'cardHolderName' => 'string', 'cardIssuingBank' => 'string', @@ -60,6 +61,7 @@ class ResponseAdditionalDataCard implements ModelInterface, ArrayAccess, \JsonSe * @psalm-var array */ protected static $openAPIFormats = [ + 'cardAltID' => null, 'cardBin' => null, 'cardHolderName' => null, 'cardIssuingBank' => null, @@ -77,6 +79,7 @@ class ResponseAdditionalDataCard implements ModelInterface, ArrayAccess, \JsonSe * @var boolean[] */ protected static $openAPINullables = [ + 'cardAltID' => false, 'cardBin' => false, 'cardHolderName' => false, 'cardIssuingBank' => false, @@ -174,6 +177,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'cardAltID' => 'cardAltID', 'cardBin' => 'cardBin', 'cardHolderName' => 'cardHolderName', 'cardIssuingBank' => 'cardIssuingBank', @@ -191,6 +195,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'cardAltID' => 'setCardAltID', 'cardBin' => 'setCardBin', 'cardHolderName' => 'setCardHolderName', 'cardIssuingBank' => 'setCardIssuingBank', @@ -208,6 +213,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'cardAltID' => 'getCardAltID', 'cardBin' => 'getCardBin', 'cardHolderName' => 'getCardHolderName', 'cardIssuingBank' => 'getCardIssuingBank', @@ -308,6 +314,7 @@ public function getCardProductIdAllowableValues() */ public function __construct(?array $data = null) { + $this->setIfExists('cardAltID', $data ?? [], null); $this->setIfExists('cardBin', $data ?? [], null); $this->setIfExists('cardHolderName', $data ?? [], null); $this->setIfExists('cardIssuingBank', $data ?? [], null); @@ -370,6 +377,30 @@ public function valid() } + /** + * Gets cardAltID + * + * @return string|null + */ + public function getCardAltID() + { + return $this->container['cardAltID']; + } + + /** + * Sets cardAltID + * + * @param string|null $cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of Ecommerce Card Payment in India + * + * @return self + */ + public function setCardAltID($cardAltID) + { + $this->container['cardAltID'] = $cardAltID; + + return $this; + } + /** * Gets cardBin * diff --git a/src/Adyen/Model/Payments/ResponseAdditionalDataCommon.php b/src/Adyen/Model/Payments/ResponseAdditionalDataCommon.php index c9b5b16bf..58e4e9419 100644 --- a/src/Adyen/Model/Payments/ResponseAdditionalDataCommon.php +++ b/src/Adyen/Model/Payments/ResponseAdditionalDataCommon.php @@ -74,6 +74,7 @@ class ResponseAdditionalDataCommon implements ModelInterface, ArrayAccess, \Json 'mcBankNetReferenceNumber' => 'string', 'merchantAdviceCode' => 'string', 'merchantReference' => 'string', + 'networkProcessingMode' => 'string', 'networkTxReference' => 'string', 'ownerName' => 'string', 'paymentAccountReference' => 'string', @@ -147,6 +148,7 @@ class ResponseAdditionalDataCommon implements ModelInterface, ArrayAccess, \Json 'mcBankNetReferenceNumber' => null, 'merchantAdviceCode' => null, 'merchantReference' => null, + 'networkProcessingMode' => null, 'networkTxReference' => null, 'ownerName' => null, 'paymentAccountReference' => null, @@ -218,6 +220,7 @@ class ResponseAdditionalDataCommon implements ModelInterface, ArrayAccess, \Json 'mcBankNetReferenceNumber' => false, 'merchantAdviceCode' => false, 'merchantReference' => false, + 'networkProcessingMode' => false, 'networkTxReference' => false, 'ownerName' => false, 'paymentAccountReference' => false, @@ -369,6 +372,7 @@ public function isNullableSetToNull(string $property): bool 'mcBankNetReferenceNumber' => 'mcBankNetReferenceNumber', 'merchantAdviceCode' => 'merchantAdviceCode', 'merchantReference' => 'merchantReference', + 'networkProcessingMode' => 'networkProcessingMode', 'networkTxReference' => 'networkTxReference', 'ownerName' => 'ownerName', 'paymentAccountReference' => 'paymentAccountReference', @@ -440,6 +444,7 @@ public function isNullableSetToNull(string $property): bool 'mcBankNetReferenceNumber' => 'setMcBankNetReferenceNumber', 'merchantAdviceCode' => 'setMerchantAdviceCode', 'merchantReference' => 'setMerchantReference', + 'networkProcessingMode' => 'setNetworkProcessingMode', 'networkTxReference' => 'setNetworkTxReference', 'ownerName' => 'setOwnerName', 'paymentAccountReference' => 'setPaymentAccountReference', @@ -511,6 +516,7 @@ public function isNullableSetToNull(string $property): bool 'mcBankNetReferenceNumber' => 'getMcBankNetReferenceNumber', 'merchantAdviceCode' => 'getMerchantAdviceCode', 'merchantReference' => 'getMerchantReference', + 'networkProcessingMode' => 'getNetworkProcessingMode', 'networkTxReference' => 'getNetworkTxReference', 'ownerName' => 'getOwnerName', 'paymentAccountReference' => 'getPaymentAccountReference', @@ -584,8 +590,9 @@ public function getModelName() return self::$openAPIModelName; } + public const FRAUD_RESULT_TYPE_AMBER = 'AMBER'; public const FRAUD_RESULT_TYPE_GREEN = 'GREEN'; - public const FRAUD_RESULT_TYPE_FRAUD = 'FRAUD'; + public const FRAUD_RESULT_TYPE_RED = 'RED'; public const FRAUD_RISK_LEVEL_VERY_LOW = 'veryLow'; public const FRAUD_RISK_LEVEL_LOW = 'low'; public const FRAUD_RISK_LEVEL_MEDIUM = 'medium'; @@ -606,8 +613,9 @@ public function getModelName() public function getFraudResultTypeAllowableValues() { return [ + self::FRAUD_RESULT_TYPE_AMBER, self::FRAUD_RESULT_TYPE_GREEN, - self::FRAUD_RESULT_TYPE_FRAUD, + self::FRAUD_RESULT_TYPE_RED, ]; } /** @@ -699,6 +707,7 @@ public function __construct(?array $data = null) $this->setIfExists('mcBankNetReferenceNumber', $data ?? [], null); $this->setIfExists('merchantAdviceCode', $data ?? [], null); $this->setIfExists('merchantReference', $data ?? [], null); + $this->setIfExists('networkProcessingMode', $data ?? [], null); $this->setIfExists('networkTxReference', $data ?? [], null); $this->setIfExists('ownerName', $data ?? [], null); $this->setIfExists('paymentAccountReference', $data ?? [], null); @@ -1350,7 +1359,7 @@ public function getFraudResultType() /** * Sets fraudResultType * - * @param string|null $fraudResultType The fraud result properties of the payment. + * @param string|null $fraudResultType The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED * * @return self */ @@ -1384,7 +1393,7 @@ public function getFraudRiskLevel() /** * Sets fraudRiskLevel * - * @param string|null $fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh + * @param string|null $fraudRiskLevel The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh * * @return self */ @@ -1621,6 +1630,30 @@ public function setMerchantReference($merchantReference) return $this; } + /** + * Gets networkProcessingMode + * + * @return string|null + */ + public function getNetworkProcessingMode() + { + return $this->container['networkProcessingMode']; + } + + /** + * Sets networkProcessingMode + * + * @param string|null $networkProcessingMode Indicates the processing flow. Possible values: * **sale**: You do not need to separately capture the funds, because capture happens automatically as part of the transaction. * **auth**: If you have not [configured automatic capture for the transaction](https://docs.adyen.com/online-payments/capture#types-of-capture), you must manually capture the funds. + * + * @return self + */ + public function setNetworkProcessingMode($networkProcessingMode) + { + $this->container['networkProcessingMode'] = $networkProcessingMode; + + return $this; + } + /** * Gets networkTxReference *