Skip to content

Commit

Permalink
Revert "Code generation: update services and models"
Browse files Browse the repository at this point in the history
  • Loading branch information
ayodejidev authored Jan 21, 2025
1 parent d840742 commit de6b603
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1,140 deletions.
28 changes: 14 additions & 14 deletions src/Adyen/Model/Checkout/AdditionalDataAirline.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class AdditionalDataAirline implements ModelInterface, ArrayAccess, \JsonSeriali
'airlinePassengerDateOfBirth' => 'string',
'airlinePassengerFirstName' => 'string',
'airlinePassengerLastName' => 'string',
'airlinePassengerPhoneNumber' => 'string',
'airlinePassengerTelephoneNumber' => 'string',
'airlinePassengerTravellerType' => 'string',
'airlinePassengerName' => 'string',
'airlineTicketIssueAddress' => 'string',
Expand Down Expand Up @@ -105,7 +105,7 @@ class AdditionalDataAirline implements ModelInterface, ArrayAccess, \JsonSeriali
'airlinePassengerDateOfBirth' => null,
'airlinePassengerFirstName' => null,
'airlinePassengerLastName' => null,
'airlinePassengerPhoneNumber' => null,
'airlinePassengerTelephoneNumber' => null,
'airlinePassengerTravellerType' => null,
'airlinePassengerName' => null,
'airlineTicketIssueAddress' => null,
Expand Down Expand Up @@ -142,7 +142,7 @@ class AdditionalDataAirline implements ModelInterface, ArrayAccess, \JsonSeriali
'airlinePassengerDateOfBirth' => false,
'airlinePassengerFirstName' => false,
'airlinePassengerLastName' => false,
'airlinePassengerPhoneNumber' => false,
'airlinePassengerTelephoneNumber' => false,
'airlinePassengerTravellerType' => false,
'airlinePassengerName' => false,
'airlineTicketIssueAddress' => false,
Expand Down Expand Up @@ -259,7 +259,7 @@ public function isNullableSetToNull(string $property): bool
'airlinePassengerDateOfBirth' => 'airline.passenger.date_of_birth',
'airlinePassengerFirstName' => 'airline.passenger.first_name',
'airlinePassengerLastName' => 'airline.passenger.last_name',
'airlinePassengerPhoneNumber' => 'airline.passenger.phone_number',
'airlinePassengerTelephoneNumber' => 'airline.passenger.telephone_number',
'airlinePassengerTravellerType' => 'airline.passenger.traveller_type',
'airlinePassengerName' => 'airline.passenger_name',
'airlineTicketIssueAddress' => 'airline.ticket_issue_address',
Expand Down Expand Up @@ -296,7 +296,7 @@ public function isNullableSetToNull(string $property): bool
'airlinePassengerDateOfBirth' => 'setAirlinePassengerDateOfBirth',
'airlinePassengerFirstName' => 'setAirlinePassengerFirstName',
'airlinePassengerLastName' => 'setAirlinePassengerLastName',
'airlinePassengerPhoneNumber' => 'setAirlinePassengerPhoneNumber',
'airlinePassengerTelephoneNumber' => 'setAirlinePassengerTelephoneNumber',
'airlinePassengerTravellerType' => 'setAirlinePassengerTravellerType',
'airlinePassengerName' => 'setAirlinePassengerName',
'airlineTicketIssueAddress' => 'setAirlineTicketIssueAddress',
Expand Down Expand Up @@ -333,7 +333,7 @@ public function isNullableSetToNull(string $property): bool
'airlinePassengerDateOfBirth' => 'getAirlinePassengerDateOfBirth',
'airlinePassengerFirstName' => 'getAirlinePassengerFirstName',
'airlinePassengerLastName' => 'getAirlinePassengerLastName',
'airlinePassengerPhoneNumber' => 'getAirlinePassengerPhoneNumber',
'airlinePassengerTelephoneNumber' => 'getAirlinePassengerTelephoneNumber',
'airlinePassengerTravellerType' => 'getAirlinePassengerTravellerType',
'airlinePassengerName' => 'getAirlinePassengerName',
'airlineTicketIssueAddress' => 'getAirlineTicketIssueAddress',
Expand Down Expand Up @@ -421,7 +421,7 @@ public function __construct(array $data = null)
$this->setIfExists('airlinePassengerDateOfBirth', $data ?? [], null);
$this->setIfExists('airlinePassengerFirstName', $data ?? [], null);
$this->setIfExists('airlinePassengerLastName', $data ?? [], null);
$this->setIfExists('airlinePassengerPhoneNumber', $data ?? [], null);
$this->setIfExists('airlinePassengerTelephoneNumber', $data ?? [], null);
$this->setIfExists('airlinePassengerTravellerType', $data ?? [], null);
$this->setIfExists('airlinePassengerName', $data ?? [], null);
$this->setIfExists('airlineTicketIssueAddress', $data ?? [], null);
Expand Down Expand Up @@ -1004,25 +1004,25 @@ public function setAirlinePassengerLastName($airlinePassengerLastName)
}

/**
* Gets airlinePassengerPhoneNumber
* Gets airlinePassengerTelephoneNumber
*
* @return string|null
*/
public function getAirlinePassengerPhoneNumber()
public function getAirlinePassengerTelephoneNumber()
{
return $this->container['airlinePassengerPhoneNumber'];
return $this->container['airlinePassengerTelephoneNumber'];
}

/**
* Sets airlinePassengerPhoneNumber
* Sets airlinePassengerTelephoneNumber
*
* @param string|null $airlinePassengerPhoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters
* @param string|null $airlinePassengerTelephoneNumber The passenger's telephone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters
*
* @return self
*/
public function setAirlinePassengerPhoneNumber($airlinePassengerPhoneNumber)
public function setAirlinePassengerTelephoneNumber($airlinePassengerTelephoneNumber)
{
$this->container['airlinePassengerPhoneNumber'] = $airlinePassengerPhoneNumber;
$this->container['airlinePassengerTelephoneNumber'] = $airlinePassengerTelephoneNumber;

return $this;
}
Expand Down
62 changes: 0 additions & 62 deletions src/Adyen/Model/Checkout/AdditionalDataCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ class AdditionalDataCommon implements ModelInterface, ArrayAccess, \JsonSerializ
'requestedTestErrorResponseCode' => 'string',
'allowPartialAuth' => 'string',
'authorisationType' => 'string',
'autoRescue' => 'string',
'customRoutingFlag' => 'string',
'industryUsage' => 'string',
'manualCapture' => 'string',
'maxDaysToRescue' => 'string',
'networkTxReference' => 'string',
'overwriteBrand' => 'string',
'subMerchantCity' => 'string',
Expand All @@ -75,11 +73,9 @@ class AdditionalDataCommon implements ModelInterface, ArrayAccess, \JsonSerializ
'requestedTestErrorResponseCode' => null,
'allowPartialAuth' => null,
'authorisationType' => null,
'autoRescue' => null,
'customRoutingFlag' => null,
'industryUsage' => null,
'manualCapture' => null,
'maxDaysToRescue' => null,
'networkTxReference' => null,
'overwriteBrand' => null,
'subMerchantCity' => null,
Expand All @@ -101,11 +97,9 @@ class AdditionalDataCommon implements ModelInterface, ArrayAccess, \JsonSerializ
'requestedTestErrorResponseCode' => false,
'allowPartialAuth' => false,
'authorisationType' => false,
'autoRescue' => false,
'customRoutingFlag' => false,
'industryUsage' => false,
'manualCapture' => false,
'maxDaysToRescue' => false,
'networkTxReference' => false,
'overwriteBrand' => false,
'subMerchantCity' => false,
Expand Down Expand Up @@ -207,11 +201,9 @@ public function isNullableSetToNull(string $property): bool
'requestedTestErrorResponseCode' => 'RequestedTestErrorResponseCode',
'allowPartialAuth' => 'allowPartialAuth',
'authorisationType' => 'authorisationType',
'autoRescue' => 'autoRescue',
'customRoutingFlag' => 'customRoutingFlag',
'industryUsage' => 'industryUsage',
'manualCapture' => 'manualCapture',
'maxDaysToRescue' => 'maxDaysToRescue',
'networkTxReference' => 'networkTxReference',
'overwriteBrand' => 'overwriteBrand',
'subMerchantCity' => 'subMerchantCity',
Expand All @@ -233,11 +225,9 @@ public function isNullableSetToNull(string $property): bool
'requestedTestErrorResponseCode' => 'setRequestedTestErrorResponseCode',
'allowPartialAuth' => 'setAllowPartialAuth',
'authorisationType' => 'setAuthorisationType',
'autoRescue' => 'setAutoRescue',
'customRoutingFlag' => 'setCustomRoutingFlag',
'industryUsage' => 'setIndustryUsage',
'manualCapture' => 'setManualCapture',
'maxDaysToRescue' => 'setMaxDaysToRescue',
'networkTxReference' => 'setNetworkTxReference',
'overwriteBrand' => 'setOverwriteBrand',
'subMerchantCity' => 'setSubMerchantCity',
Expand All @@ -259,11 +249,9 @@ public function isNullableSetToNull(string $property): bool
'requestedTestErrorResponseCode' => 'getRequestedTestErrorResponseCode',
'allowPartialAuth' => 'getAllowPartialAuth',
'authorisationType' => 'getAuthorisationType',
'autoRescue' => 'getAutoRescue',
'customRoutingFlag' => 'getCustomRoutingFlag',
'industryUsage' => 'getIndustryUsage',
'manualCapture' => 'getManualCapture',
'maxDaysToRescue' => 'getMaxDaysToRescue',
'networkTxReference' => 'getNetworkTxReference',
'overwriteBrand' => 'getOverwriteBrand',
'subMerchantCity' => 'getSubMerchantCity',
Expand Down Expand Up @@ -350,11 +338,9 @@ public function __construct(array $data = null)
$this->setIfExists('requestedTestErrorResponseCode', $data ?? [], null);
$this->setIfExists('allowPartialAuth', $data ?? [], null);
$this->setIfExists('authorisationType', $data ?? [], null);
$this->setIfExists('autoRescue', $data ?? [], null);
$this->setIfExists('customRoutingFlag', $data ?? [], null);
$this->setIfExists('industryUsage', $data ?? [], null);
$this->setIfExists('manualCapture', $data ?? [], null);
$this->setIfExists('maxDaysToRescue', $data ?? [], null);
$this->setIfExists('networkTxReference', $data ?? [], null);
$this->setIfExists('overwriteBrand', $data ?? [], null);
$this->setIfExists('subMerchantCity', $data ?? [], null);
Expand Down Expand Up @@ -490,30 +476,6 @@ public function setAuthorisationType($authorisationType)
return $this;
}

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

/**
* Sets autoRescue
*
* @param string|null $autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window.
*
* @return self
*/
public function setAutoRescue($autoRescue)
{
$this->container['autoRescue'] = $autoRescue;

return $this;
}

/**
* Gets customRoutingFlag
*
Expand Down Expand Up @@ -596,30 +558,6 @@ public function setManualCapture($manualCapture)
return $this;
}

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

/**
* Sets maxDaysToRescue
*
* @param string|null $maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days.
*
* @return self
*/
public function setMaxDaysToRescue($maxDaysToRescue)
{
$this->container['maxDaysToRescue'] = $maxDaysToRescue;

return $this;
}

/**
* Gets networkTxReference
*
Expand Down
Loading

0 comments on commit de6b603

Please sign in to comment.