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 #726

Merged
merged 2 commits into from
Jan 21, 2025
Merged
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
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',
'airlinePassengerTelephoneNumber' => 'string',
'airlinePassengerPhoneNumber' => '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,
'airlinePassengerTelephoneNumber' => null,
'airlinePassengerPhoneNumber' => 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,
'airlinePassengerTelephoneNumber' => false,
'airlinePassengerPhoneNumber' => 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',
'airlinePassengerTelephoneNumber' => 'airline.passenger.telephone_number',
'airlinePassengerPhoneNumber' => 'airline.passenger.phone_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',
'airlinePassengerTelephoneNumber' => 'setAirlinePassengerTelephoneNumber',
'airlinePassengerPhoneNumber' => 'setAirlinePassengerPhoneNumber',
'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',
'airlinePassengerTelephoneNumber' => 'getAirlinePassengerTelephoneNumber',
'airlinePassengerPhoneNumber' => 'getAirlinePassengerPhoneNumber',
'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('airlinePassengerTelephoneNumber', $data ?? [], null);
$this->setIfExists('airlinePassengerPhoneNumber', $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 airlinePassengerTelephoneNumber
* Gets airlinePassengerPhoneNumber
*
* @return string|null
*/
public function getAirlinePassengerTelephoneNumber()
public function getAirlinePassengerPhoneNumber()
{
return $this->container['airlinePassengerTelephoneNumber'];
return $this->container['airlinePassengerPhoneNumber'];
}

/**
* Sets airlinePassengerTelephoneNumber
* Sets airlinePassengerPhoneNumber
*
* @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
* @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
*
* @return self
*/
public function setAirlinePassengerTelephoneNumber($airlinePassengerTelephoneNumber)
public function setAirlinePassengerPhoneNumber($airlinePassengerPhoneNumber)
{
$this->container['airlinePassengerTelephoneNumber'] = $airlinePassengerTelephoneNumber;
$this->container['airlinePassengerPhoneNumber'] = $airlinePassengerPhoneNumber;

return $this;
}
Expand Down
62 changes: 62 additions & 0 deletions src/Adyen/Model/Checkout/AdditionalDataCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ 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 @@ -73,9 +75,11 @@ 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 @@ -97,9 +101,11 @@ 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 @@ -201,9 +207,11 @@ 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 @@ -225,9 +233,11 @@ 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 @@ -249,9 +259,11 @@ 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 @@ -338,9 +350,11 @@ 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 @@ -476,6 +490,30 @@ 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 @@ -558,6 +596,30 @@ 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
Loading