Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generation: update services and models #741

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Adyen/Model/AcsWebhooks/ChallengeInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,15 @@ public function getModelName()
return self::$openAPIModelName;
}

public const CHALLENGE_CANCEL__00 = '00';
public const CHALLENGE_CANCEL__01 = '01';
public const CHALLENGE_CANCEL__02 = '02';
public const CHALLENGE_CANCEL__03 = '03';
public const CHALLENGE_CANCEL__04 = '04';
public const CHALLENGE_CANCEL__05 = '05';
public const CHALLENGE_CANCEL__06 = '06';
public const CHALLENGE_CANCEL__07 = '07';
public const CHALLENGE_CANCEL__08 = '08';
public const FLOW_OTP_SMS = 'OTP_SMS';
public const FLOW_OOB = 'OOB';

Expand All @@ -263,13 +265,15 @@ public function getModelName()
public function getChallengeCancelAllowableValues()
{
return [
self::CHALLENGE_CANCEL__00,
self::CHALLENGE_CANCEL__01,
self::CHALLENGE_CANCEL__02,
self::CHALLENGE_CANCEL__03,
self::CHALLENGE_CANCEL__04,
self::CHALLENGE_CANCEL__05,
self::CHALLENGE_CANCEL__06,
self::CHALLENGE_CANCEL__07,
self::CHALLENGE_CANCEL__08,
];
}
/**
Expand Down Expand Up @@ -386,7 +390,7 @@ public function getChallengeCancel()
/**
* Sets challengeCancel
*
* @param string|null $challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
* @param string|null $challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK.
*
* @return self
*/
Expand Down
43 changes: 6 additions & 37 deletions src/Adyen/Model/BinLookup/CostEstimateResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ class CostEstimateResponse implements ModelInterface, ArrayAccess, \JsonSerializ
'cardBin' => '\Adyen\Model\BinLookup\CardBin',
'costEstimateAmount' => '\Adyen\Model\BinLookup\Amount',
'costEstimateReference' => 'string',
'resultCode' => 'string',
'surchargeType' => 'string'
'resultCode' => 'string'
];

/**
Expand All @@ -62,8 +61,7 @@ class CostEstimateResponse implements ModelInterface, ArrayAccess, \JsonSerializ
'cardBin' => null,
'costEstimateAmount' => null,
'costEstimateReference' => null,
'resultCode' => null,
'surchargeType' => null
'resultCode' => null
];

/**
Expand All @@ -75,8 +73,7 @@ class CostEstimateResponse implements ModelInterface, ArrayAccess, \JsonSerializ
'cardBin' => false,
'costEstimateAmount' => false,
'costEstimateReference' => false,
'resultCode' => false,
'surchargeType' => false
'resultCode' => false
];

/**
Expand Down Expand Up @@ -168,8 +165,7 @@ public function isNullableSetToNull(string $property): bool
'cardBin' => 'cardBin',
'costEstimateAmount' => 'costEstimateAmount',
'costEstimateReference' => 'costEstimateReference',
'resultCode' => 'resultCode',
'surchargeType' => 'surchargeType'
'resultCode' => 'resultCode'
];

/**
Expand All @@ -181,8 +177,7 @@ public function isNullableSetToNull(string $property): bool
'cardBin' => 'setCardBin',
'costEstimateAmount' => 'setCostEstimateAmount',
'costEstimateReference' => 'setCostEstimateReference',
'resultCode' => 'setResultCode',
'surchargeType' => 'setSurchargeType'
'resultCode' => 'setResultCode'
];

/**
Expand All @@ -194,8 +189,7 @@ public function isNullableSetToNull(string $property): bool
'cardBin' => 'getCardBin',
'costEstimateAmount' => 'getCostEstimateAmount',
'costEstimateReference' => 'getCostEstimateReference',
'resultCode' => 'getResultCode',
'surchargeType' => 'getSurchargeType'
'resultCode' => 'getResultCode'
];

/**
Expand Down Expand Up @@ -259,7 +253,6 @@ public function __construct(array $data = null)
$this->setIfExists('costEstimateAmount', $data ?? [], null);
$this->setIfExists('costEstimateReference', $data ?? [], null);
$this->setIfExists('resultCode', $data ?? [], null);
$this->setIfExists('surchargeType', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -399,30 +392,6 @@ public function setResultCode($resultCode)

return $this;
}

/**
* Gets surchargeType
*
* @return string|null
*/
public function getSurchargeType()
{
return $this->container['surchargeType'];
}

/**
* Sets surchargeType
*
* @param string|null $surchargeType Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on
*
* @return self
*/
public function setSurchargeType($surchargeType)
{
$this->container['surchargeType'] = $surchargeType;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
Loading