Skip to content
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
2 changes: 1 addition & 1 deletion src/Adyen/Model/Management/AlipayPlusInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function getSettlementCurrencyCode()
/**
* Sets settlementCurrencyCode
*
* @param string|null $settlementCurrencyCode currency used for settlement. Defaults to USD
* @param string|null $settlementCurrencyCode The currency used for settlement. Defaults to USD.
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ public function getType()
/**
* Sets type
*
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks).
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ public function getType()
/**
* Sets type
*
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
* @param string $type The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes) and [other types of webhooks](https://docs.adyen.com/development-resources/webhooks/webhook-types/#other-webhooks).
*
* @return self
*/
Expand Down
64 changes: 32 additions & 32 deletions src/Adyen/Model/Management/PayByBankPlaidInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
public const DISCRIMINATOR = null;

/**
* The original name of the model.
*
* @var string
*/
* The original name of the model.
*
* @var string
*/
protected static $openAPIModelName = 'PayByBankPlaidInfo';

/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPITypes = [
'countryCode' => 'string',
'logo' => 'string',
Expand All @@ -53,12 +53,12 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
];

/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
* @phpstan-var array<string, string|null>
* @psalm-var array<string, string|null>
*/
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
* @phpstan-var array<string, string|null>
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'countryCode' => null,
'logo' => null,
Expand All @@ -72,10 +72,10 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
];

/**
* Array of nullable properties. Used for (de)serialization
*
* @var boolean[]
*/
* Array of nullable properties. Used for (de)serialization
*
* @var boolean[]
*/
protected static $openAPINullables = [
'countryCode' => false,
'logo' => false,
Expand All @@ -89,10 +89,10 @@ class PayByBankPlaidInfo implements ModelInterface, ArrayAccess, \JsonSerializab
];

/**
* If a nullable field gets set to null, insert it here
*
* @var boolean[]
*/
* If a nullable field gets set to null, insert it here
*
* @var boolean[]
*/
protected $openAPINullablesSetToNull = [];

/**
Expand Down Expand Up @@ -288,14 +288,14 @@ public function __construct(?array $data = null)
}

/**
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
* $this->openAPINullablesSetToNull array
*
* @param string $variableName
* @param array $fields
* @param mixed $defaultValue
*/
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
* $this->openAPINullablesSetToNull array
*
* @param string $variableName
* @param array $fields
* @param mixed $defaultValue
*/
private function setIfExists(string $variableName, array $fields, $defaultValue): void
{
if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
Expand Down Expand Up @@ -620,10 +620,10 @@ public function toArray(): array
// Check if the property value is an object and has a toArray() method
if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) {
$array[$propertyName] = $propertyValue->toArray();
// Check if it's type datetime
// Check if it's type datetime
} elseif ($propertyValue instanceof \DateTime) {
$array[$propertyName] = $propertyValue->format(DATE_ATOM);
// If it's an array type we should check whether it contains objects and if so call toArray method
// If it's an array type we should check whether it contains objects and if so call toArray method
} elseif (is_array($propertyValue)) {
$array[$propertyName] = array_map(function ($item) {
return $item instanceof ModelInterface ? $item->toArray() : $item;
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/Management/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable
'payto' => '\Adyen\Model\Management\PayToInfo',
'pulse' => '\Adyen\Model\Management\PulseInfo',
'reference' => 'string',
'sepadirectdebit' => '\Adyen\Model\Management\SepaDirectDebitInfo',
'shopperInteraction' => 'string',
'sodexo' => '\Adyen\Model\Management\SodexoInfo',
'sofort' => '\Adyen\Model\Management\SofortInfo',
Expand Down Expand Up @@ -141,6 +142,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable
'payto' => null,
'pulse' => null,
'reference' => null,
'sepadirectdebit' => null,
'shopperInteraction' => null,
'sodexo' => null,
'sofort' => null,
Expand Down Expand Up @@ -201,6 +203,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable
'payto' => false,
'pulse' => false,
'reference' => false,
'sepadirectdebit' => false,
'shopperInteraction' => false,
'sodexo' => false,
'sofort' => false,
Expand Down Expand Up @@ -341,6 +344,7 @@ public function isNullableSetToNull(string $property): bool
'payto' => 'payto',
'pulse' => 'pulse',
'reference' => 'reference',
'sepadirectdebit' => 'sepadirectdebit',
'shopperInteraction' => 'shopperInteraction',
'sodexo' => 'sodexo',
'sofort' => 'sofort',
Expand Down Expand Up @@ -401,6 +405,7 @@ public function isNullableSetToNull(string $property): bool
'payto' => 'setPayto',
'pulse' => 'setPulse',
'reference' => 'setReference',
'sepadirectdebit' => 'setSepadirectdebit',
'shopperInteraction' => 'setShopperInteraction',
'sodexo' => 'setSodexo',
'sofort' => 'setSofort',
Expand Down Expand Up @@ -461,6 +466,7 @@ public function isNullableSetToNull(string $property): bool
'payto' => 'getPayto',
'pulse' => 'getPulse',
'reference' => 'getReference',
'sepadirectdebit' => 'getSepadirectdebit',
'shopperInteraction' => 'getShopperInteraction',
'sodexo' => 'getSodexo',
'sofort' => 'getSofort',
Expand Down Expand Up @@ -590,6 +596,7 @@ public function __construct(?array $data = null)
$this->setIfExists('payto', $data ?? [], null);
$this->setIfExists('pulse', $data ?? [], null);
$this->setIfExists('reference', $data ?? [], null);
$this->setIfExists('sepadirectdebit', $data ?? [], null);
$this->setIfExists('shopperInteraction', $data ?? [], null);
$this->setIfExists('sodexo', $data ?? [], null);
$this->setIfExists('sofort', $data ?? [], null);
Expand Down Expand Up @@ -1572,6 +1579,30 @@ public function setReference($reference)
return $this;
}

/**
* Gets sepadirectdebit
*
* @return \Adyen\Model\Management\SepaDirectDebitInfo|null
*/
public function getSepadirectdebit()
{
return $this->container['sepadirectdebit'];
}

/**
* Sets sepadirectdebit
*
* @param \Adyen\Model\Management\SepaDirectDebitInfo|null $sepadirectdebit sepadirectdebit
*
* @return self
*/
public function setSepadirectdebit($sepadirectdebit)
{
$this->container['sepadirectdebit'] = $sepadirectdebit;

return $this;
}

/**
* Gets shopperInteraction
*
Expand Down
18 changes: 17 additions & 1 deletion src/Adyen/Model/Management/PaymentMethodResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ public function getModelName()
return self::$openAPIModelName;
}

public const TYPES_WITH_ERRORS_ABRAPETITE = 'abrapetite';
public const TYPES_WITH_ERRORS_ABRAPETITE_CREDIT = 'abrapetite_credit';
public const TYPES_WITH_ERRORS_ABRAPETITE_DEBIT = 'abrapetite_debit';
public const TYPES_WITH_ERRORS_ABRAPETITE_PREPAID = 'abrapetite_prepaid';
public const TYPES_WITH_ERRORS_ACCEL = 'accel';
public const TYPES_WITH_ERRORS_ACH = 'ach';
public const TYPES_WITH_ERRORS_AFFIRM = 'affirm';
Expand Down Expand Up @@ -328,8 +332,12 @@ public function getModelName()
public const TYPES_WITH_ERRORS_PERSONAL_CARD_CREDIT = 'personal_card_credit';
public const TYPES_WITH_ERRORS_PERSONAL_CARD_DEBIT = 'personal_card_debit';
public const TYPES_WITH_ERRORS_PULSE = 'pulse';
public const TYPES_WITH_ERRORS_ROMCARD = 'romcard';
public const TYPES_WITH_ERRORS_ROMCARD_CREDIT = 'romcard_credit';
public const TYPES_WITH_ERRORS_ROMCARD_DEBIT = 'romcard_debit';
public const TYPES_WITH_ERRORS_SENFF = 'senff';
public const TYPES_WITH_ERRORS_SENFF_CREDIT = 'senff_credit';
public const TYPES_WITH_ERRORS_SEPADIRECTDEBIT = 'sepadirectdebit';
public const TYPES_WITH_ERRORS_SODEXO = 'sodexo';
public const TYPES_WITH_ERRORS_STAR = 'star';
public const TYPES_WITH_ERRORS_SWISH = 'swish';
Expand Down Expand Up @@ -366,6 +374,10 @@ public function getModelName()
public function getTypesWithErrorsAllowableValues()
{
return [
self::TYPES_WITH_ERRORS_ABRAPETITE,
self::TYPES_WITH_ERRORS_ABRAPETITE_CREDIT,
self::TYPES_WITH_ERRORS_ABRAPETITE_DEBIT,
self::TYPES_WITH_ERRORS_ABRAPETITE_PREPAID,
self::TYPES_WITH_ERRORS_ACCEL,
self::TYPES_WITH_ERRORS_ACH,
self::TYPES_WITH_ERRORS_AFFIRM,
Expand Down Expand Up @@ -458,8 +470,12 @@ public function getTypesWithErrorsAllowableValues()
self::TYPES_WITH_ERRORS_PERSONAL_CARD_CREDIT,
self::TYPES_WITH_ERRORS_PERSONAL_CARD_DEBIT,
self::TYPES_WITH_ERRORS_PULSE,
self::TYPES_WITH_ERRORS_ROMCARD,
self::TYPES_WITH_ERRORS_ROMCARD_CREDIT,
self::TYPES_WITH_ERRORS_ROMCARD_DEBIT,
self::TYPES_WITH_ERRORS_SENFF,
self::TYPES_WITH_ERRORS_SENFF_CREDIT,
self::TYPES_WITH_ERRORS_SEPADIRECTDEBIT,
self::TYPES_WITH_ERRORS_SODEXO,
self::TYPES_WITH_ERRORS_STAR,
self::TYPES_WITH_ERRORS_SWISH,
Expand Down Expand Up @@ -668,7 +684,7 @@ public function getTypesWithErrors()
/**
* Sets typesWithErrors
*
* @param string[]|null $typesWithErrors Payment method types with errors.
* @param string[]|null $typesWithErrors The payment method types that were not successfully requested and their corresponding errors.
*
* @return self
*/
Expand Down
Loading