Skip to content

Commit

Permalink
[reformat][adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Jun 5, 2024
1 parent 222cb94 commit b282ac5
Show file tree
Hide file tree
Showing 100 changed files with 5,891 additions and 258 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function getNotificationResponse()
/**
* Sets notificationResponse
*
* @param string|null $notificationResponse Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
* @param string|null $notificationResponse Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
*
* @return self
*/
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/AcsWebhooks/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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);
}
}
Expand Down Expand Up @@ -117,9 +117,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);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/BalanceControl/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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);
}
}
Expand Down Expand Up @@ -117,9 +117,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);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
8 changes: 4 additions & 4 deletions src/Adyen/Model/BalancePlatform/CapabilitySettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function getAmountPerIndustry()
/**
* Sets amountPerIndustry
*
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
*
* @return self
*/
Expand All @@ -385,7 +385,7 @@ public function getAuthorizedCardUsers()
/**
* Sets authorizedCardUsers
*
* @param bool|null $authorizedCardUsers
* @param bool|null $authorizedCardUsers
*
* @return self
*/
Expand All @@ -412,7 +412,7 @@ public function getFundingSource()
/**
* Sets fundingSource
*
* @param string[]|null $fundingSource
* @param string[]|null $fundingSource
*
* @return self
*/
Expand Down Expand Up @@ -448,7 +448,7 @@ public function getInterval()
/**
* Sets interval
*
* @param string|null $interval
* @param string|null $interval
*
* @return self
*/
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/BalancePlatform/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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);
}
}
Expand Down Expand Up @@ -117,9 +117,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);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/BinLookup/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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);
}
}
Expand Down Expand Up @@ -117,9 +117,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);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
34 changes: 34 additions & 0 deletions src/Adyen/Model/Checkout/AdditionalDataAirline.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class AdditionalDataAirline implements ModelInterface, ArrayAccess, \JsonSeriali
'airlineCustomerReferenceNumber' => 'string',
'airlineDocumentType' => 'string',
'airlineFlightDate' => 'string',
'airlineIssueDate' => 'string',
'airlineLegCarrierCode' => 'string',
'airlineLegClassOfTravel' => 'string',
'airlineLegDateOfTravel' => 'string',
Expand Down Expand Up @@ -91,6 +92,7 @@ class AdditionalDataAirline implements ModelInterface, ArrayAccess, \JsonSeriali
'airlineCustomerReferenceNumber' => null,
'airlineDocumentType' => null,
'airlineFlightDate' => null,
'airlineIssueDate' => null,
'airlineLegCarrierCode' => null,
'airlineLegClassOfTravel' => null,
'airlineLegDateOfTravel' => null,
Expand Down Expand Up @@ -127,6 +129,7 @@ class AdditionalDataAirline implements ModelInterface, ArrayAccess, \JsonSeriali
'airlineCustomerReferenceNumber' => false,
'airlineDocumentType' => false,
'airlineFlightDate' => false,
'airlineIssueDate' => false,
'airlineLegCarrierCode' => false,
'airlineLegClassOfTravel' => false,
'airlineLegDateOfTravel' => false,
Expand Down Expand Up @@ -243,6 +246,7 @@ public function isNullableSetToNull(string $property): bool
'airlineCustomerReferenceNumber' => 'airline.customer_reference_number',
'airlineDocumentType' => 'airline.document_type',
'airlineFlightDate' => 'airline.flight_date',
'airlineIssueDate' => 'airline.issue_date',
'airlineLegCarrierCode' => 'airline.leg.carrier_code',
'airlineLegClassOfTravel' => 'airline.leg.class_of_travel',
'airlineLegDateOfTravel' => 'airline.leg.date_of_travel',
Expand Down Expand Up @@ -279,6 +283,7 @@ public function isNullableSetToNull(string $property): bool
'airlineCustomerReferenceNumber' => 'setAirlineCustomerReferenceNumber',
'airlineDocumentType' => 'setAirlineDocumentType',
'airlineFlightDate' => 'setAirlineFlightDate',
'airlineIssueDate' => 'setAirlineIssueDate',
'airlineLegCarrierCode' => 'setAirlineLegCarrierCode',
'airlineLegClassOfTravel' => 'setAirlineLegClassOfTravel',
'airlineLegDateOfTravel' => 'setAirlineLegDateOfTravel',
Expand Down Expand Up @@ -315,6 +320,7 @@ public function isNullableSetToNull(string $property): bool
'airlineCustomerReferenceNumber' => 'getAirlineCustomerReferenceNumber',
'airlineDocumentType' => 'getAirlineDocumentType',
'airlineFlightDate' => 'getAirlineFlightDate',
'airlineIssueDate' => 'getAirlineIssueDate',
'airlineLegCarrierCode' => 'getAirlineLegCarrierCode',
'airlineLegClassOfTravel' => 'getAirlineLegClassOfTravel',
'airlineLegDateOfTravel' => 'getAirlineLegDateOfTravel',
Expand Down Expand Up @@ -402,6 +408,7 @@ public function __construct(array $data = null)
$this->setIfExists('airlineCustomerReferenceNumber', $data ?? [], null);
$this->setIfExists('airlineDocumentType', $data ?? [], null);
$this->setIfExists('airlineFlightDate', $data ?? [], null);
$this->setIfExists('airlineIssueDate', $data ?? [], null);
$this->setIfExists('airlineLegCarrierCode', $data ?? [], null);
$this->setIfExists('airlineLegClassOfTravel', $data ?? [], null);
$this->setIfExists('airlineLegDateOfTravel', $data ?? [], null);
Expand Down Expand Up @@ -711,6 +718,33 @@ public function setAirlineFlightDate($airlineFlightDate)
return $this;
}

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

/**
* Sets airlineIssueDate
*
* @param string|null $airlineIssueDate The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD
*
* @return self
*/
public function setAirlineIssueDate($airlineIssueDate)
{
if (is_null($airlineIssueDate)) {
throw new \InvalidArgumentException('non-nullable airlineIssueDate cannot be null');
}
$this->container['airlineIssueDate'] = $airlineIssueDate;

return $this;
}

/**
* Gets airlineLegCarrierCode
*
Expand Down
34 changes: 34 additions & 0 deletions src/Adyen/Model/Checkout/AdditionalDataLodging.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class AdditionalDataLodging implements ModelInterface, ArrayAccess, \JsonSeriali
* @var string[]
*/
protected static $openAPITypes = [
'lodgingSpecialProgramCode' => 'string',
'lodgingCheckInDate' => 'string',
'lodgingCheckOutDate' => 'string',
'lodgingCustomerServiceTollFreeNumber' => 'string',
Expand All @@ -70,6 +71,7 @@ class AdditionalDataLodging implements ModelInterface, ArrayAccess, \JsonSeriali
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'lodgingSpecialProgramCode' => null,
'lodgingCheckInDate' => null,
'lodgingCheckOutDate' => null,
'lodgingCustomerServiceTollFreeNumber' => null,
Expand All @@ -94,6 +96,7 @@ class AdditionalDataLodging implements ModelInterface, ArrayAccess, \JsonSeriali
* @var boolean[]
*/
protected static $openAPINullables = [
'lodgingSpecialProgramCode' => false,
'lodgingCheckInDate' => false,
'lodgingCheckOutDate' => false,
'lodgingCustomerServiceTollFreeNumber' => false,
Expand Down Expand Up @@ -198,6 +201,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'lodgingSpecialProgramCode' => 'lodging.SpecialProgramCode',
'lodgingCheckInDate' => 'lodging.checkInDate',
'lodgingCheckOutDate' => 'lodging.checkOutDate',
'lodgingCustomerServiceTollFreeNumber' => 'lodging.customerServiceTollFreeNumber',
Expand All @@ -222,6 +226,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'lodgingSpecialProgramCode' => 'setLodgingSpecialProgramCode',
'lodgingCheckInDate' => 'setLodgingCheckInDate',
'lodgingCheckOutDate' => 'setLodgingCheckOutDate',
'lodgingCustomerServiceTollFreeNumber' => 'setLodgingCustomerServiceTollFreeNumber',
Expand All @@ -246,6 +251,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'lodgingSpecialProgramCode' => 'getLodgingSpecialProgramCode',
'lodgingCheckInDate' => 'getLodgingCheckInDate',
'lodgingCheckOutDate' => 'getLodgingCheckOutDate',
'lodgingCustomerServiceTollFreeNumber' => 'getLodgingCustomerServiceTollFreeNumber',
Expand Down Expand Up @@ -321,6 +327,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->setIfExists('lodgingSpecialProgramCode', $data ?? [], null);
$this->setIfExists('lodgingCheckInDate', $data ?? [], null);
$this->setIfExists('lodgingCheckOutDate', $data ?? [], null);
$this->setIfExists('lodgingCustomerServiceTollFreeNumber', $data ?? [], null);
Expand Down Expand Up @@ -381,6 +388,33 @@ public function valid()
}


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

/**
* Sets lodgingSpecialProgramCode
*
* @param string|null $lodgingSpecialProgramCode A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit
*
* @return self
*/
public function setLodgingSpecialProgramCode($lodgingSpecialProgramCode)
{
if (is_null($lodgingSpecialProgramCode)) {
throw new \InvalidArgumentException('non-nullable lodgingSpecialProgramCode cannot be null');
}
$this->container['lodgingSpecialProgramCode'] = $lodgingSpecialProgramCode;

return $this;
}

/**
* Gets lodgingCheckInDate
*
Expand Down
Loading

0 comments on commit b282ac5

Please sign in to comment.