-
Notifications
You must be signed in to change notification settings - Fork 119
[transfers] Code generation: update services and models #913
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "service": "transfers", | ||
| "project": "php", | ||
| "generatedAt": "2026-09-04T09:50:56Z", | ||
| "openapiCommitSha": "f82d1fe674e536cc2c6b0d7946e0e827873a4fbf", | ||
| "automationCommitSha": "712ab8db80d60bee9054458ea1522cae0073333a", | ||
| "libraryCommitSha": "077f8fe9bba23381af53c625b18db85e7887c50f" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ | |
| */ | ||
| class BankAccountV3AccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable | ||
| { | ||
| public const DISCRIMINATOR = null; | ||
| public const DISCRIMINATOR = 'type'; | ||
|
|
||
| /** | ||
| * The original name of the model. | ||
|
|
@@ -53,9 +53,9 @@ class BankAccountV3AccountIdentification implements ModelInterface, ArrayAccess, | |
| 'institutionNumber' => 'string', | ||
| 'transitNumber' => 'string', | ||
| 'clearingCode' => 'string', | ||
| 'bic' => 'string', | ||
| 'iban' => 'string', | ||
| 'additionalBankIdentification' => '\Adyen\Model\Transfers\AdditionalBankIdentification', | ||
| 'bic' => 'string', | ||
| 'clearingNumber' => 'string', | ||
| 'sortCode' => 'string', | ||
| 'routingNumber' => 'string' | ||
|
|
@@ -79,9 +79,9 @@ class BankAccountV3AccountIdentification implements ModelInterface, ArrayAccess, | |
| 'institutionNumber' => null, | ||
| 'transitNumber' => null, | ||
| 'clearingCode' => null, | ||
| 'bic' => null, | ||
| 'iban' => null, | ||
| 'additionalBankIdentification' => null, | ||
| 'bic' => null, | ||
| 'clearingNumber' => null, | ||
| 'sortCode' => null, | ||
| 'routingNumber' => null | ||
|
|
@@ -103,9 +103,9 @@ class BankAccountV3AccountIdentification implements ModelInterface, ArrayAccess, | |
| 'institutionNumber' => false, | ||
| 'transitNumber' => false, | ||
| 'clearingCode' => false, | ||
| 'bic' => false, | ||
| 'iban' => false, | ||
| 'additionalBankIdentification' => false, | ||
| 'bic' => false, | ||
| 'clearingNumber' => false, | ||
| 'sortCode' => false, | ||
| 'routingNumber' => false | ||
|
|
@@ -207,9 +207,9 @@ public function isNullableSetToNull(string $property): bool | |
| 'institutionNumber' => 'institutionNumber', | ||
| 'transitNumber' => 'transitNumber', | ||
| 'clearingCode' => 'clearingCode', | ||
| 'bic' => 'bic', | ||
| 'iban' => 'iban', | ||
| 'additionalBankIdentification' => 'additionalBankIdentification', | ||
| 'bic' => 'bic', | ||
| 'clearingNumber' => 'clearingNumber', | ||
| 'sortCode' => 'sortCode', | ||
| 'routingNumber' => 'routingNumber' | ||
|
|
@@ -231,9 +231,9 @@ public function isNullableSetToNull(string $property): bool | |
| 'institutionNumber' => 'setInstitutionNumber', | ||
| 'transitNumber' => 'setTransitNumber', | ||
| 'clearingCode' => 'setClearingCode', | ||
| 'bic' => 'setBic', | ||
| 'iban' => 'setIban', | ||
| 'additionalBankIdentification' => 'setAdditionalBankIdentification', | ||
| 'bic' => 'setBic', | ||
| 'clearingNumber' => 'setClearingNumber', | ||
| 'sortCode' => 'setSortCode', | ||
| 'routingNumber' => 'setRoutingNumber' | ||
|
|
@@ -255,9 +255,9 @@ public function isNullableSetToNull(string $property): bool | |
| 'institutionNumber' => 'getInstitutionNumber', | ||
| 'transitNumber' => 'getTransitNumber', | ||
| 'clearingCode' => 'getClearingCode', | ||
| 'bic' => 'getBic', | ||
| 'iban' => 'getIban', | ||
| 'additionalBankIdentification' => 'getAdditionalBankIdentification', | ||
| 'bic' => 'getBic', | ||
| 'clearingNumber' => 'getClearingNumber', | ||
| 'sortCode' => 'getSortCode', | ||
| 'routingNumber' => 'getRoutingNumber' | ||
|
|
@@ -329,12 +329,15 @@ public function __construct(?array $data = null) | |
| $this->setIfExists('institutionNumber', $data ?? [], null); | ||
| $this->setIfExists('transitNumber', $data ?? [], null); | ||
| $this->setIfExists('clearingCode', $data ?? [], null); | ||
| $this->setIfExists('bic', $data ?? [], null); | ||
| $this->setIfExists('iban', $data ?? [], null); | ||
| $this->setIfExists('additionalBankIdentification', $data ?? [], null); | ||
| $this->setIfExists('bic', $data ?? [], null); | ||
| $this->setIfExists('clearingNumber', $data ?? [], null); | ||
| $this->setIfExists('sortCode', $data ?? [], null); | ||
| $this->setIfExists('routingNumber', $data ?? [], null); | ||
|
|
||
| // Initialize discriminator property with the model name. | ||
| $this->container['type'] = static::$openAPIModelName; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -390,12 +393,12 @@ public function listInvalidProperties() | |
| if ($this->container['clearingCode'] === null) { | ||
| $invalidProperties[] = "'clearingCode' can't be null"; | ||
| } | ||
| if ($this->container['iban'] === null) { | ||
| $invalidProperties[] = "'iban' can't be null"; | ||
| } | ||
| if ($this->container['bic'] === null) { | ||
| $invalidProperties[] = "'bic' can't be null"; | ||
| } | ||
| if ($this->container['iban'] === null) { | ||
| $invalidProperties[] = "'iban' can't be null"; | ||
| } | ||
| if ($this->container['clearingNumber'] === null) { | ||
| $invalidProperties[] = "'clearingNumber' can't be null"; | ||
| } | ||
|
Comment on lines
393
to
404
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since |
||
|
|
@@ -661,73 +664,73 @@ public function setClearingCode($clearingCode) | |
| } | ||
|
|
||
| /** | ||
| * Gets iban | ||
| * Gets bic | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getIban() | ||
| public function getBic() | ||
| { | ||
| return $this->container['iban']; | ||
| return $this->container['bic']; | ||
| } | ||
|
|
||
| /** | ||
| * Sets iban | ||
| * Sets bic | ||
| * | ||
| * @param string $iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. | ||
| * @param string $bic The bank's 8- or 11-character BIC or SWIFT code. | ||
| * | ||
| * @return self | ||
| */ | ||
| public function setIban($iban) | ||
| public function setBic($bic) | ||
| { | ||
| $this->container['iban'] = $iban; | ||
| $this->container['bic'] = $bic; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
| /** | ||
| * Gets additionalBankIdentification | ||
| * Gets iban | ||
| * | ||
| * @return \Adyen\Model\Transfers\AdditionalBankIdentification|null | ||
| * @return string | ||
| */ | ||
| public function getAdditionalBankIdentification() | ||
| public function getIban() | ||
| { | ||
| return $this->container['additionalBankIdentification']; | ||
| return $this->container['iban']; | ||
| } | ||
|
|
||
| /** | ||
| * Sets additionalBankIdentification | ||
| * Sets iban | ||
| * | ||
| * @param \Adyen\Model\Transfers\AdditionalBankIdentification|null $additionalBankIdentification additionalBankIdentification | ||
| * @param string $iban The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. | ||
| * | ||
| * @return self | ||
| */ | ||
| public function setAdditionalBankIdentification($additionalBankIdentification) | ||
| public function setIban($iban) | ||
| { | ||
| $this->container['additionalBankIdentification'] = $additionalBankIdentification; | ||
| $this->container['iban'] = $iban; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
| /** | ||
| * Gets bic | ||
| * Gets additionalBankIdentification | ||
| * | ||
| * @return string | ||
| * @return \Adyen\Model\Transfers\AdditionalBankIdentification|null | ||
| */ | ||
| public function getBic() | ||
| public function getAdditionalBankIdentification() | ||
| { | ||
| return $this->container['bic']; | ||
| return $this->container['additionalBankIdentification']; | ||
| } | ||
|
|
||
| /** | ||
| * Sets bic | ||
| * Sets additionalBankIdentification | ||
| * | ||
| * @param string $bic The bank's 8- or 11-character BIC or SWIFT code. | ||
| * @param \Adyen\Model\Transfers\AdditionalBankIdentification|null $additionalBankIdentification additionalBankIdentification | ||
| * | ||
| * @return self | ||
| */ | ||
| public function setBic($bic) | ||
| public function setAdditionalBankIdentification($additionalBankIdentification) | ||
| { | ||
| $this->container['bic'] = $bic; | ||
| $this->container['additionalBankIdentification'] = $additionalBankIdentification; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unconditionally overwriting
$this->container['type']withstatic::$openAPIModelNameat the end of the constructor discards any customtypevalue passed via the$dataarray (e.g., during manual instantiation). It should only initialize the discriminator if it is not already set.