Skip to content

Commit

Permalink
[create-pull-request] automated change (#556)
Browse files Browse the repository at this point in the history
Co-authored-by: Wouter Boereboom <[email protected]>
  • Loading branch information
AdyenAutomationBot and wboereboom authored Sep 4, 2023
1 parent ec34f71 commit 7618942
Show file tree
Hide file tree
Showing 23 changed files with 2,202 additions and 134 deletions.
2 changes: 2 additions & 0 deletions src/Adyen/Model/Checkout/CardDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ public function getModelName()
}

public const FUNDING_SOURCE_DEBIT = 'debit';
public const TYPE_BCMC = 'bcmc';
public const TYPE_SCHEME = 'scheme';
public const TYPE_NETWORK_TOKEN = 'networkToken';
public const TYPE_GIFTCARD = 'giftcard';
Expand All @@ -349,6 +350,7 @@ public function getFundingSourceAllowableValues()
public function getTypeAllowableValues()
{
return [
self::TYPE_BCMC,
self::TYPE_SCHEME,
self::TYPE_NETWORK_TOKEN,
self::TYPE_GIFTCARD,
Expand Down
16 changes: 0 additions & 16 deletions src/Adyen/Model/Checkout/Split.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,18 +244,10 @@ public function getModelName()
public const TYPE__DEFAULT = 'Default';
public const TYPE_MARKET_PLACE = 'MarketPlace';
public const TYPE_PAYMENT_FEE = 'PaymentFee';
public const TYPE_PAYMENT_FEE_ACQUIRING = 'PaymentFeeAcquiring';
public const TYPE_PAYMENT_FEE_ADYEN = 'PaymentFeeAdyen';
public const TYPE_PAYMENT_FEE_ADYEN_COMMISSION = 'PaymentFeeAdyenCommission';
public const TYPE_PAYMENT_FEE_ADYEN_MARKUP = 'PaymentFeeAdyenMarkup';
public const TYPE_PAYMENT_FEE_INTERCHANGE = 'PaymentFeeInterchange';
public const TYPE_PAYMENT_FEE_SCHEME_FEE = 'PaymentFeeSchemeFee';
public const TYPE_REMAINDER = 'Remainder';
public const TYPE_SURCHARGE = 'Surcharge';
public const TYPE_TIP = 'Tip';
public const TYPE_TOP_UP = 'TopUp';
public const TYPE_VAT = 'VAT';
public const TYPE_VERIFICATION = 'Verification';

/**
* Gets allowable values of the enum
Expand All @@ -270,18 +262,10 @@ public function getTypeAllowableValues()
self::TYPE__DEFAULT,
self::TYPE_MARKET_PLACE,
self::TYPE_PAYMENT_FEE,
self::TYPE_PAYMENT_FEE_ACQUIRING,
self::TYPE_PAYMENT_FEE_ADYEN,
self::TYPE_PAYMENT_FEE_ADYEN_COMMISSION,
self::TYPE_PAYMENT_FEE_ADYEN_MARKUP,
self::TYPE_PAYMENT_FEE_INTERCHANGE,
self::TYPE_PAYMENT_FEE_SCHEME_FEE,
self::TYPE_REMAINDER,
self::TYPE_SURCHARGE,
self::TYPE_TIP,
self::TYPE_TOP_UP,
self::TYPE_VAT,
self::TYPE_VERIFICATION,
];
}
/**
Expand Down
39 changes: 38 additions & 1 deletion src/Adyen/Model/LegalEntityManagement/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable
'institutionNumber' => 'string',
'transitNumber' => 'string',
'bankCode' => 'string',
'clearingCode' => 'string',
'iban' => 'string',
'additionalBankIdentification' => '\Adyen\Model\LegalEntityManagement\AdditionalBankIdentification',
'bic' => 'string',
Expand All @@ -75,6 +76,7 @@ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable
'institutionNumber' => null,
'transitNumber' => null,
'bankCode' => null,
'clearingCode' => null,
'iban' => null,
'additionalBankIdentification' => null,
'bic' => null,
Expand All @@ -96,6 +98,7 @@ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable
'institutionNumber' => false,
'transitNumber' => false,
'bankCode' => false,
'clearingCode' => false,
'iban' => false,
'additionalBankIdentification' => false,
'bic' => false,
Expand Down Expand Up @@ -197,6 +200,7 @@ public function isNullableSetToNull(string $property): bool
'institutionNumber' => 'institutionNumber',
'transitNumber' => 'transitNumber',
'bankCode' => 'bankCode',
'clearingCode' => 'clearingCode',
'iban' => 'iban',
'additionalBankIdentification' => 'additionalBankIdentification',
'bic' => 'bic',
Expand All @@ -218,6 +222,7 @@ public function isNullableSetToNull(string $property): bool
'institutionNumber' => 'setInstitutionNumber',
'transitNumber' => 'setTransitNumber',
'bankCode' => 'setBankCode',
'clearingCode' => 'setClearingCode',
'iban' => 'setIban',
'additionalBankIdentification' => 'setAdditionalBankIdentification',
'bic' => 'setBic',
Expand All @@ -239,6 +244,7 @@ public function isNullableSetToNull(string $property): bool
'institutionNumber' => 'getInstitutionNumber',
'transitNumber' => 'getTransitNumber',
'bankCode' => 'getBankCode',
'clearingCode' => 'getClearingCode',
'iban' => 'getIban',
'additionalBankIdentification' => 'getAdditionalBankIdentification',
'bic' => 'getBic',
Expand Down Expand Up @@ -310,6 +316,7 @@ public function __construct(array $data = null)
$this->setIfExists('institutionNumber', $data ?? [], null);
$this->setIfExists('transitNumber', $data ?? [], null);
$this->setIfExists('bankCode', $data ?? [], null);
$this->setIfExists('clearingCode', $data ?? [], null);
$this->setIfExists('iban', $data ?? [], null);
$this->setIfExists('additionalBankIdentification', $data ?? [], null);
$this->setIfExists('bic', $data ?? [], null);
Expand Down Expand Up @@ -365,6 +372,9 @@ public function listInvalidProperties()
if ($this->container['bankCode'] === null) {
$invalidProperties[] = "'bankCode' can't be null";
}
if ($this->container['clearingCode'] === null) {
$invalidProperties[] = "'clearingCode' can't be null";
}
if ($this->container['iban'] === null) {
$invalidProperties[] = "'iban' can't be null";
}
Expand Down Expand Up @@ -570,7 +580,7 @@ public function getBankCode()
/**
* Sets bankCode
*
* @param string $bankCode The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace.
* @param string $bankCode The 4-digit bank code (Registreringsnummer) (without separators or whitespace).
*
* @return self
*/
Expand All @@ -584,6 +594,33 @@ public function setBankCode($bankCode)
return $this;
}

/**
* Gets clearingCode
*
* @return string
*/
public function getClearingCode()
{
return $this->container['clearingCode'];
}

/**
* Sets clearingCode
*
* @param string $clearingCode The 3-digit clearing code, without separators or whitespace.
*
* @return self
*/
public function setClearingCode($clearingCode)
{
if (is_null($clearingCode)) {
throw new \InvalidArgumentException('non-nullable clearingCode cannot be null');
}
$this->container['clearingCode'] = $clearingCode;

return $this;
}

/**
* Gets iban
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class HKLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
*/
protected static $openAPITypes = [
'accountNumber' => 'string',
'bankCode' => 'string',
'clearingCode' => 'string',
'type' => 'string'
];

Expand All @@ -58,7 +58,7 @@ class HKLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
*/
protected static $openAPIFormats = [
'accountNumber' => null,
'bankCode' => null,
'clearingCode' => null,
'type' => null
];

Expand All @@ -69,7 +69,7 @@ class HKLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
*/
protected static $openAPINullables = [
'accountNumber' => false,
'bankCode' => false,
'clearingCode' => false,
'type' => false
];

Expand Down Expand Up @@ -160,7 +160,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'accountNumber' => 'accountNumber',
'bankCode' => 'bankCode',
'clearingCode' => 'clearingCode',
'type' => 'type'
];

Expand All @@ -171,7 +171,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'accountNumber' => 'setAccountNumber',
'bankCode' => 'setBankCode',
'clearingCode' => 'setClearingCode',
'type' => 'setType'
];

Expand All @@ -182,7 +182,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'accountNumber' => 'getAccountNumber',
'bankCode' => 'getBankCode',
'clearingCode' => 'getClearingCode',
'type' => 'getType'
];

Expand Down Expand Up @@ -256,7 +256,7 @@ public function getTypeAllowableValues()
public function __construct(array $data = null)
{
$this->setIfExists('accountNumber', $data ?? [], null);
$this->setIfExists('bankCode', $data ?? [], null);
$this->setIfExists('clearingCode', $data ?? [], null);
$this->setIfExists('type', $data ?? [], 'hkLocal');
}

Expand Down Expand Up @@ -290,8 +290,8 @@ public function listInvalidProperties()
if ($this->container['accountNumber'] === null) {
$invalidProperties[] = "'accountNumber' can't be null";
}
if ($this->container['bankCode'] === null) {
$invalidProperties[] = "'bankCode' can't be null";
if ($this->container['clearingCode'] === null) {
$invalidProperties[] = "'clearingCode' can't be null";
}
if ($this->container['type'] === null) {
$invalidProperties[] = "'type' can't be null";
Expand Down Expand Up @@ -333,7 +333,7 @@ public function getAccountNumber()
/**
* Sets accountNumber
*
* @param string $accountNumber The 6- to 19-character bank account number (alphanumeric), without separators or whitespace.
* @param string $accountNumber The 9- to 12-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.
*
* @return self
*/
Expand All @@ -348,28 +348,28 @@ public function setAccountNumber($accountNumber)
}

/**
* Gets bankCode
* Gets clearingCode
*
* @return string
*/
public function getBankCode()
public function getClearingCode()
{
return $this->container['bankCode'];
return $this->container['clearingCode'];
}

/**
* Sets bankCode
* Sets clearingCode
*
* @param string $bankCode The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace.
* @param string $clearingCode The 3-digit clearing code, without separators or whitespace.
*
* @return self
*/
public function setBankCode($bankCode)
public function setClearingCode($clearingCode)
{
if (is_null($bankCode)) {
throw new \InvalidArgumentException('non-nullable bankCode cannot be null');
if (is_null($clearingCode)) {
throw new \InvalidArgumentException('non-nullable clearingCode cannot be null');
}
$this->container['bankCode'] = $bankCode;
$this->container['clearingCode'] = $clearingCode;

return $this;
}
Expand Down
36 changes: 35 additions & 1 deletion src/Adyen/Model/Management/AndroidApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class AndroidApp implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPITypes = [
'description' => 'string',
'errorCode' => 'string',
'id' => 'string',
'label' => 'string',
'packageName' => 'string',
Expand All @@ -62,6 +63,7 @@ class AndroidApp implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPIFormats = [
'description' => null,
'errorCode' => null,
'id' => null,
'label' => null,
'packageName' => null,
Expand All @@ -77,6 +79,7 @@ class AndroidApp implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPINullables = [
'description' => false,
'errorCode' => false,
'id' => false,
'label' => false,
'packageName' => false,
Expand Down Expand Up @@ -172,6 +175,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'description' => 'description',
'errorCode' => 'errorCode',
'id' => 'id',
'label' => 'label',
'packageName' => 'packageName',
Expand All @@ -187,6 +191,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'description' => 'setDescription',
'errorCode' => 'setErrorCode',
'id' => 'setId',
'label' => 'setLabel',
'packageName' => 'setPackageName',
Expand All @@ -202,6 +207,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'description' => 'getDescription',
'errorCode' => 'getErrorCode',
'id' => 'getId',
'label' => 'getLabel',
'packageName' => 'getPackageName',
Expand Down Expand Up @@ -268,6 +274,7 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->setIfExists('description', $data ?? [], null);
$this->setIfExists('errorCode', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('label', $data ?? [], null);
$this->setIfExists('packageName', $data ?? [], null);
Expand Down Expand Up @@ -351,6 +358,33 @@ public function setDescription($description)
return $this;
}

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

/**
* Sets errorCode
*
* @param string|null $errorCode The error code of the app. It exists if the status is error or invalid.
*
* @return self
*/
public function setErrorCode($errorCode)
{
if (is_null($errorCode)) {
throw new \InvalidArgumentException('non-nullable errorCode cannot be null');
}
$this->container['errorCode'] = $errorCode;

return $this;
}

/**
* Gets id
*
Expand Down Expand Up @@ -445,7 +479,7 @@ public function getStatus()
/**
* Sets status
*
* @param string $status The status of the app. Possible values: * `processing`: The app is being signed and converted to a format that the terminal can handle. * `error`: Something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: There is something wrong with the APK file of the app. * `ready`: The app has been signed and converted. * `archived`: The app is no longer available.
* @param string $status The status of the app. Possible values: * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available.
*
* @return self
*/
Expand Down
Loading

0 comments on commit 7618942

Please sign in to comment.