Skip to content

Commit 2ea95de

Browse files
[payment] Automated update from Adyen/adyen-openapi@d265ad5
1 parent 043387b commit 2ea95de

4 files changed

Lines changed: 80 additions & 4 deletions

File tree

sdk-generation-log/payment.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"service": "payment",
3+
"project": "php",
4+
"generatedAt": "2026-04-09T08:19:28Z",
5+
"openapiCommitSha": "d265ad51923ee8ae4cd1960e1f35ade7fb6b859c",
6+
"automationCommitSha": "fd3af884561ca43c276338fa6ab68342d24b74f0",
7+
"libraryCommitSha": "043387b2f1347a705b8ace39a84aa0ac03a09acf"
8+
}

src/Adyen/Model/Payments/ModificationResult.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ public function getModelName()
233233
public const RESPONSE_TECHNICAL_CANCEL_RECEIVED = '[technical-cancel-received]';
234234
public const RESPONSE_VOID_PENDING_REFUND_RECEIVED = '[voidPendingRefund-received]';
235235
public const RESPONSE_AUTHORISED = 'Authorised';
236+
public const RESPONSE_REFUSED = 'Refused';
237+
public const RESPONSE_ERROR = 'Error';
236238

237239
/**
238240
* Gets allowable values of the enum
@@ -251,6 +253,8 @@ public function getResponseAllowableValues()
251253
self::RESPONSE_TECHNICAL_CANCEL_RECEIVED,
252254
self::RESPONSE_VOID_PENDING_REFUND_RECEIVED,
253255
self::RESPONSE_AUTHORISED,
256+
self::RESPONSE_REFUSED,
257+
self::RESPONSE_ERROR,
254258
];
255259
}
256260
/**

src/Adyen/Model/Payments/ResponseAdditionalDataCard.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class ResponseAdditionalDataCard implements ModelInterface, ArrayAccess, \JsonSe
4141
* @var string[]
4242
*/
4343
protected static $openAPITypes = [
44+
'cardAltID' => 'string',
4445
'cardBin' => 'string',
4546
'cardHolderName' => 'string',
4647
'cardIssuingBank' => 'string',
@@ -60,6 +61,7 @@ class ResponseAdditionalDataCard implements ModelInterface, ArrayAccess, \JsonSe
6061
* @psalm-var array<string, string|null>
6162
*/
6263
protected static $openAPIFormats = [
64+
'cardAltID' => null,
6365
'cardBin' => null,
6466
'cardHolderName' => null,
6567
'cardIssuingBank' => null,
@@ -77,6 +79,7 @@ class ResponseAdditionalDataCard implements ModelInterface, ArrayAccess, \JsonSe
7779
* @var boolean[]
7880
*/
7981
protected static $openAPINullables = [
82+
'cardAltID' => false,
8083
'cardBin' => false,
8184
'cardHolderName' => false,
8285
'cardIssuingBank' => false,
@@ -174,6 +177,7 @@ public function isNullableSetToNull(string $property): bool
174177
* @var string[]
175178
*/
176179
protected static $attributeMap = [
180+
'cardAltID' => 'cardAltID',
177181
'cardBin' => 'cardBin',
178182
'cardHolderName' => 'cardHolderName',
179183
'cardIssuingBank' => 'cardIssuingBank',
@@ -191,6 +195,7 @@ public function isNullableSetToNull(string $property): bool
191195
* @var string[]
192196
*/
193197
protected static $setters = [
198+
'cardAltID' => 'setCardAltID',
194199
'cardBin' => 'setCardBin',
195200
'cardHolderName' => 'setCardHolderName',
196201
'cardIssuingBank' => 'setCardIssuingBank',
@@ -208,6 +213,7 @@ public function isNullableSetToNull(string $property): bool
208213
* @var string[]
209214
*/
210215
protected static $getters = [
216+
'cardAltID' => 'getCardAltID',
211217
'cardBin' => 'getCardBin',
212218
'cardHolderName' => 'getCardHolderName',
213219
'cardIssuingBank' => 'getCardIssuingBank',
@@ -308,6 +314,7 @@ public function getCardProductIdAllowableValues()
308314
*/
309315
public function __construct(?array $data = null)
310316
{
317+
$this->setIfExists('cardAltID', $data ?? [], null);
311318
$this->setIfExists('cardBin', $data ?? [], null);
312319
$this->setIfExists('cardHolderName', $data ?? [], null);
313320
$this->setIfExists('cardIssuingBank', $data ?? [], null);
@@ -370,6 +377,30 @@ public function valid()
370377
}
371378

372379

380+
/**
381+
* Gets cardAltID
382+
*
383+
* @return string|null
384+
*/
385+
public function getCardAltID()
386+
{
387+
return $this->container['cardAltID'];
388+
}
389+
390+
/**
391+
* Sets cardAltID
392+
*
393+
* @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
394+
*
395+
* @return self
396+
*/
397+
public function setCardAltID($cardAltID)
398+
{
399+
$this->container['cardAltID'] = $cardAltID;
400+
401+
return $this;
402+
}
403+
373404
/**
374405
* Gets cardBin
375406
*

src/Adyen/Model/Payments/ResponseAdditionalDataCommon.php

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class ResponseAdditionalDataCommon implements ModelInterface, ArrayAccess, \Json
7474
'mcBankNetReferenceNumber' => 'string',
7575
'merchantAdviceCode' => 'string',
7676
'merchantReference' => 'string',
77+
'networkProcessingMode' => 'string',
7778
'networkTxReference' => 'string',
7879
'ownerName' => 'string',
7980
'paymentAccountReference' => 'string',
@@ -147,6 +148,7 @@ class ResponseAdditionalDataCommon implements ModelInterface, ArrayAccess, \Json
147148
'mcBankNetReferenceNumber' => null,
148149
'merchantAdviceCode' => null,
149150
'merchantReference' => null,
151+
'networkProcessingMode' => null,
150152
'networkTxReference' => null,
151153
'ownerName' => null,
152154
'paymentAccountReference' => null,
@@ -218,6 +220,7 @@ class ResponseAdditionalDataCommon implements ModelInterface, ArrayAccess, \Json
218220
'mcBankNetReferenceNumber' => false,
219221
'merchantAdviceCode' => false,
220222
'merchantReference' => false,
223+
'networkProcessingMode' => false,
221224
'networkTxReference' => false,
222225
'ownerName' => false,
223226
'paymentAccountReference' => false,
@@ -369,6 +372,7 @@ public function isNullableSetToNull(string $property): bool
369372
'mcBankNetReferenceNumber' => 'mcBankNetReferenceNumber',
370373
'merchantAdviceCode' => 'merchantAdviceCode',
371374
'merchantReference' => 'merchantReference',
375+
'networkProcessingMode' => 'networkProcessingMode',
372376
'networkTxReference' => 'networkTxReference',
373377
'ownerName' => 'ownerName',
374378
'paymentAccountReference' => 'paymentAccountReference',
@@ -440,6 +444,7 @@ public function isNullableSetToNull(string $property): bool
440444
'mcBankNetReferenceNumber' => 'setMcBankNetReferenceNumber',
441445
'merchantAdviceCode' => 'setMerchantAdviceCode',
442446
'merchantReference' => 'setMerchantReference',
447+
'networkProcessingMode' => 'setNetworkProcessingMode',
443448
'networkTxReference' => 'setNetworkTxReference',
444449
'ownerName' => 'setOwnerName',
445450
'paymentAccountReference' => 'setPaymentAccountReference',
@@ -511,6 +516,7 @@ public function isNullableSetToNull(string $property): bool
511516
'mcBankNetReferenceNumber' => 'getMcBankNetReferenceNumber',
512517
'merchantAdviceCode' => 'getMerchantAdviceCode',
513518
'merchantReference' => 'getMerchantReference',
519+
'networkProcessingMode' => 'getNetworkProcessingMode',
514520
'networkTxReference' => 'getNetworkTxReference',
515521
'ownerName' => 'getOwnerName',
516522
'paymentAccountReference' => 'getPaymentAccountReference',
@@ -584,8 +590,9 @@ public function getModelName()
584590
return self::$openAPIModelName;
585591
}
586592

593+
public const FRAUD_RESULT_TYPE_AMBER = 'AMBER';
587594
public const FRAUD_RESULT_TYPE_GREEN = 'GREEN';
588-
public const FRAUD_RESULT_TYPE_FRAUD = 'FRAUD';
595+
public const FRAUD_RESULT_TYPE_RED = 'RED';
589596
public const FRAUD_RISK_LEVEL_VERY_LOW = 'veryLow';
590597
public const FRAUD_RISK_LEVEL_LOW = 'low';
591598
public const FRAUD_RISK_LEVEL_MEDIUM = 'medium';
@@ -606,8 +613,9 @@ public function getModelName()
606613
public function getFraudResultTypeAllowableValues()
607614
{
608615
return [
616+
self::FRAUD_RESULT_TYPE_AMBER,
609617
self::FRAUD_RESULT_TYPE_GREEN,
610-
self::FRAUD_RESULT_TYPE_FRAUD,
618+
self::FRAUD_RESULT_TYPE_RED,
611619
];
612620
}
613621
/**
@@ -699,6 +707,7 @@ public function __construct(?array $data = null)
699707
$this->setIfExists('mcBankNetReferenceNumber', $data ?? [], null);
700708
$this->setIfExists('merchantAdviceCode', $data ?? [], null);
701709
$this->setIfExists('merchantReference', $data ?? [], null);
710+
$this->setIfExists('networkProcessingMode', $data ?? [], null);
702711
$this->setIfExists('networkTxReference', $data ?? [], null);
703712
$this->setIfExists('ownerName', $data ?? [], null);
704713
$this->setIfExists('paymentAccountReference', $data ?? [], null);
@@ -1350,7 +1359,7 @@ public function getFraudResultType()
13501359
/**
13511360
* Sets fraudResultType
13521361
*
1353-
* @param string|null $fraudResultType The fraud result properties of the payment.
1362+
* @param string|null $fraudResultType The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED
13541363
*
13551364
* @return self
13561365
*/
@@ -1384,7 +1393,7 @@ public function getFraudRiskLevel()
13841393
/**
13851394
* Sets fraudRiskLevel
13861395
*
1387-
* @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
1396+
* @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
13881397
*
13891398
* @return self
13901399
*/
@@ -1621,6 +1630,30 @@ public function setMerchantReference($merchantReference)
16211630
return $this;
16221631
}
16231632

1633+
/**
1634+
* Gets networkProcessingMode
1635+
*
1636+
* @return string|null
1637+
*/
1638+
public function getNetworkProcessingMode()
1639+
{
1640+
return $this->container['networkProcessingMode'];
1641+
}
1642+
1643+
/**
1644+
* Sets networkProcessingMode
1645+
*
1646+
* @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.
1647+
*
1648+
* @return self
1649+
*/
1650+
public function setNetworkProcessingMode($networkProcessingMode)
1651+
{
1652+
$this->container['networkProcessingMode'] = $networkProcessingMode;
1653+
1654+
return $this;
1655+
}
1656+
16241657
/**
16251658
* Gets networkTxReference
16261659
*

0 commit comments

Comments
 (0)