Skip to content

Commit

Permalink
Merge pull request #698 from Adyen/sdk-automation/models
Browse files Browse the repository at this point in the history
Update all services
  • Loading branch information
ayodejidev authored Oct 15, 2024
2 parents 7c5244a + c94eca8 commit 07f7a13
Show file tree
Hide file tree
Showing 52 changed files with 5,404 additions and 254 deletions.
31 changes: 31 additions & 0 deletions src/Adyen/Model/BalancePlatform/BankAccountDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class BankAccountDetails implements ModelInterface, ArrayAccess, \JsonSerializab
protected static $openAPITypes = [
'accountNumber' => 'string',
'accountType' => 'string',
'branchNumber' => 'string',
'formFactor' => 'string',
'iban' => 'string',
'routingNumber' => 'string',
Expand All @@ -63,6 +64,7 @@ class BankAccountDetails implements ModelInterface, ArrayAccess, \JsonSerializab
protected static $openAPIFormats = [
'accountNumber' => null,
'accountType' => null,
'branchNumber' => null,
'formFactor' => null,
'iban' => null,
'routingNumber' => null,
Expand All @@ -78,6 +80,7 @@ class BankAccountDetails implements ModelInterface, ArrayAccess, \JsonSerializab
protected static $openAPINullables = [
'accountNumber' => false,
'accountType' => false,
'branchNumber' => false,
'formFactor' => false,
'iban' => false,
'routingNumber' => false,
Expand Down Expand Up @@ -173,6 +176,7 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'accountNumber' => 'accountNumber',
'accountType' => 'accountType',
'branchNumber' => 'branchNumber',
'formFactor' => 'formFactor',
'iban' => 'iban',
'routingNumber' => 'routingNumber',
Expand All @@ -188,6 +192,7 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'accountNumber' => 'setAccountNumber',
'accountType' => 'setAccountType',
'branchNumber' => 'setBranchNumber',
'formFactor' => 'setFormFactor',
'iban' => 'setIban',
'routingNumber' => 'setRoutingNumber',
Expand All @@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'accountNumber' => 'getAccountNumber',
'accountType' => 'getAccountType',
'branchNumber' => 'getBranchNumber',
'formFactor' => 'getFormFactor',
'iban' => 'getIban',
'routingNumber' => 'getRoutingNumber',
Expand Down Expand Up @@ -269,6 +275,7 @@ public function __construct(array $data = null)
{
$this->setIfExists('accountNumber', $data ?? [], null);
$this->setIfExists('accountType', $data ?? [], null);
$this->setIfExists('branchNumber', $data ?? [], null);
$this->setIfExists('formFactor', $data ?? [], null);
$this->setIfExists('iban', $data ?? [], null);
$this->setIfExists('routingNumber', $data ?? [], null);
Expand Down Expand Up @@ -369,6 +376,30 @@ public function setAccountType($accountType)
return $this;
}

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

/**
* Sets branchNumber
*
* @param string|null $branchNumber The bank account branch number, without separators or whitespace
*
* @return self
*/
public function setBranchNumber($branchNumber)
{
$this->container['branchNumber'] = $branchNumber;

return $this;
}

/**
* Gets formFactor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ public function getModelName()
public const PRIORITIES_INTERNAL = 'internal';
public const PRIORITIES_REGULAR = 'regular';
public const PRIORITIES_WIRE = 'wire';
public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive';
public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded';
public const REASON_APPROVED = 'approved';
public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule';
Expand All @@ -313,12 +314,15 @@ public function getModelName()
public const REASON_COUNTERPARTY_BANK_UNAVAILABLE = 'counterpartyBankUnavailable';
public const REASON_DECLINED = 'declined';
public const REASON_DECLINED_BY_TRANSACTION_RULE = 'declinedByTransactionRule';
public const REASON_DIRECT_DEBIT_NOT_SUPPORTED = 'directDebitNotSupported';
public const REASON_ERROR = 'error';
public const REASON_NOT_ENOUGH_BALANCE = 'notEnoughBalance';
public const REASON_PENDING_APPROVAL = 'pendingApproval';
public const REASON_PENDING_EXECUTION = 'pendingExecution';
public const REASON_REFUSED_BY_COUNTERPARTY_BANK = 'refusedByCounterpartyBank';
public const REASON_ROUTE_NOT_FOUND = 'routeNotFound';
public const REASON_SCA_FAILED = 'scaFailed';
public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist';
public const REASON_UNKNOWN = 'unknown';
public const STATUS_ACTIVE = 'active';
public const STATUS_INACTIVE = 'inactive';
Expand Down Expand Up @@ -362,6 +366,7 @@ public function getPrioritiesAllowableValues()
public function getReasonAllowableValues()
{
return [
self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE,
self::REASON_AMOUNT_LIMIT_EXCEEDED,
self::REASON_APPROVED,
self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE,
Expand All @@ -373,12 +378,15 @@ public function getReasonAllowableValues()
self::REASON_COUNTERPARTY_BANK_UNAVAILABLE,
self::REASON_DECLINED,
self::REASON_DECLINED_BY_TRANSACTION_RULE,
self::REASON_DIRECT_DEBIT_NOT_SUPPORTED,
self::REASON_ERROR,
self::REASON_NOT_ENOUGH_BALANCE,
self::REASON_PENDING_APPROVAL,
self::REASON_PENDING_EXECUTION,
self::REASON_REFUSED_BY_COUNTERPARTY_BANK,
self::REASON_ROUTE_NOT_FOUND,
self::REASON_SCA_FAILED,
self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST,
self::REASON_UNKNOWN,
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function getSettlementDelayDays()
/**
* Sets settlementDelayDays
*
* @param int|null $settlementDelayDays Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
* @param int|null $settlementDelayDays Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
*
* @return self
*/
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/BalancePlatform/RegisterSCARequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class RegisterSCARequest implements ModelInterface, ArrayAccess, \JsonSerializab
* @var string[]
*/
protected static $openAPITypes = [
'name' => 'string',
'paymentInstrumentId' => 'string',
'strongCustomerAuthentication' => '\Adyen\Model\BalancePlatform\DelegatedAuthenticationData'
];
Expand All @@ -56,6 +57,7 @@ class RegisterSCARequest implements ModelInterface, ArrayAccess, \JsonSerializab
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'name' => null,
'paymentInstrumentId' => null,
'strongCustomerAuthentication' => null
];
Expand All @@ -66,6 +68,7 @@ class RegisterSCARequest implements ModelInterface, ArrayAccess, \JsonSerializab
* @var boolean[]
*/
protected static $openAPINullables = [
'name' => false,
'paymentInstrumentId' => false,
'strongCustomerAuthentication' => false
];
Expand Down Expand Up @@ -156,6 +159,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'name' => 'name',
'paymentInstrumentId' => 'paymentInstrumentId',
'strongCustomerAuthentication' => 'strongCustomerAuthentication'
];
Expand All @@ -166,6 +170,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'name' => 'setName',
'paymentInstrumentId' => 'setPaymentInstrumentId',
'strongCustomerAuthentication' => 'setStrongCustomerAuthentication'
];
Expand All @@ -176,6 +181,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'name' => 'getName',
'paymentInstrumentId' => 'getPaymentInstrumentId',
'strongCustomerAuthentication' => 'getStrongCustomerAuthentication'
];
Expand Down Expand Up @@ -237,6 +243,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('paymentInstrumentId', $data ?? [], null);
$this->setIfExists('strongCustomerAuthentication', $data ?? [], null);
}
Expand Down Expand Up @@ -289,6 +296,30 @@ public function valid()
}


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

/**
* Sets name
*
* @param string|null $name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one.
*
* @return self
*/
public function setName($name)
{
$this->container['name'] = $name;

return $this;
}

/**
* Gets paymentInstrumentId
*
Expand Down
8 changes: 8 additions & 0 deletions src/Adyen/Model/BalancePlatform/SweepConfigurationV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ public function getModelName()
public const PRIORITIES_INTERNAL = 'internal';
public const PRIORITIES_REGULAR = 'regular';
public const PRIORITIES_WIRE = 'wire';
public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive';
public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded';
public const REASON_APPROVED = 'approved';
public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule';
Expand All @@ -319,12 +320,15 @@ public function getModelName()
public const REASON_COUNTERPARTY_BANK_UNAVAILABLE = 'counterpartyBankUnavailable';
public const REASON_DECLINED = 'declined';
public const REASON_DECLINED_BY_TRANSACTION_RULE = 'declinedByTransactionRule';
public const REASON_DIRECT_DEBIT_NOT_SUPPORTED = 'directDebitNotSupported';
public const REASON_ERROR = 'error';
public const REASON_NOT_ENOUGH_BALANCE = 'notEnoughBalance';
public const REASON_PENDING_APPROVAL = 'pendingApproval';
public const REASON_PENDING_EXECUTION = 'pendingExecution';
public const REASON_REFUSED_BY_COUNTERPARTY_BANK = 'refusedByCounterpartyBank';
public const REASON_ROUTE_NOT_FOUND = 'routeNotFound';
public const REASON_SCA_FAILED = 'scaFailed';
public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist';
public const REASON_UNKNOWN = 'unknown';
public const STATUS_ACTIVE = 'active';
public const STATUS_INACTIVE = 'inactive';
Expand Down Expand Up @@ -368,6 +372,7 @@ public function getPrioritiesAllowableValues()
public function getReasonAllowableValues()
{
return [
self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE,
self::REASON_AMOUNT_LIMIT_EXCEEDED,
self::REASON_APPROVED,
self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE,
Expand All @@ -379,12 +384,15 @@ public function getReasonAllowableValues()
self::REASON_COUNTERPARTY_BANK_UNAVAILABLE,
self::REASON_DECLINED,
self::REASON_DECLINED_BY_TRANSACTION_RULE,
self::REASON_DIRECT_DEBIT_NOT_SUPPORTED,
self::REASON_ERROR,
self::REASON_NOT_ENOUGH_BALANCE,
self::REASON_PENDING_APPROVAL,
self::REASON_PENDING_EXECUTION,
self::REASON_REFUSED_BY_COUNTERPARTY_BANK,
self::REASON_ROUTE_NOT_FOUND,
self::REASON_SCA_FAILED,
self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST,
self::REASON_UNKNOWN,
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/TransactionRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ public function getOutcomeType()
/**
* Sets outcomeType
*
* @param string|null $outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.
* @param string|null $outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/TransactionRuleInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ public function getOutcomeType()
/**
* Sets outcomeType
*
* @param string|null $outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.
* @param string|null $outcomeType The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**.
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ public function getModelName()
public const PRIORITIES_INTERNAL = 'internal';
public const PRIORITIES_REGULAR = 'regular';
public const PRIORITIES_WIRE = 'wire';
public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive';
public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded';
public const REASON_APPROVED = 'approved';
public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule';
Expand All @@ -319,12 +320,15 @@ public function getModelName()
public const REASON_COUNTERPARTY_BANK_UNAVAILABLE = 'counterpartyBankUnavailable';
public const REASON_DECLINED = 'declined';
public const REASON_DECLINED_BY_TRANSACTION_RULE = 'declinedByTransactionRule';
public const REASON_DIRECT_DEBIT_NOT_SUPPORTED = 'directDebitNotSupported';
public const REASON_ERROR = 'error';
public const REASON_NOT_ENOUGH_BALANCE = 'notEnoughBalance';
public const REASON_PENDING_APPROVAL = 'pendingApproval';
public const REASON_PENDING_EXECUTION = 'pendingExecution';
public const REASON_REFUSED_BY_COUNTERPARTY_BANK = 'refusedByCounterpartyBank';
public const REASON_ROUTE_NOT_FOUND = 'routeNotFound';
public const REASON_SCA_FAILED = 'scaFailed';
public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist';
public const REASON_UNKNOWN = 'unknown';
public const STATUS_ACTIVE = 'active';
public const STATUS_INACTIVE = 'inactive';
Expand Down Expand Up @@ -368,6 +372,7 @@ public function getPrioritiesAllowableValues()
public function getReasonAllowableValues()
{
return [
self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE,
self::REASON_AMOUNT_LIMIT_EXCEEDED,
self::REASON_APPROVED,
self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE,
Expand All @@ -379,12 +384,15 @@ public function getReasonAllowableValues()
self::REASON_COUNTERPARTY_BANK_UNAVAILABLE,
self::REASON_DECLINED,
self::REASON_DECLINED_BY_TRANSACTION_RULE,
self::REASON_DIRECT_DEBIT_NOT_SUPPORTED,
self::REASON_ERROR,
self::REASON_NOT_ENOUGH_BALANCE,
self::REASON_PENDING_APPROVAL,
self::REASON_PENDING_EXECUTION,
self::REASON_REFUSED_BY_COUNTERPARTY_BANK,
self::REASON_ROUTE_NOT_FOUND,
self::REASON_SCA_FAILED,
self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST,
self::REASON_UNKNOWN,
];
}
Expand Down
2 changes: 2 additions & 0 deletions src/Adyen/Model/BalancePlatform/VerificationDeadline.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ public function getModelName()
public const CAPABILITIES_ISSUE_CARD = 'issueCard';
public const CAPABILITIES_ISSUE_CARD_COMMERCIAL = 'issueCardCommercial';
public const CAPABILITIES_ISSUE_CARD_CONSUMER = 'issueCardConsumer';
public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit';
public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance';
public const CAPABILITIES_PAYOUT = 'payout';
public const CAPABILITIES_PAYOUT_TO_TRANSFER_INSTRUMENT = 'payoutToTransferInstrument';
Expand Down Expand Up @@ -307,6 +308,7 @@ public function getCapabilitiesAllowableValues()
self::CAPABILITIES_ISSUE_CARD,
self::CAPABILITIES_ISSUE_CARD_COMMERCIAL,
self::CAPABILITIES_ISSUE_CARD_CONSUMER,
self::CAPABILITIES_ISSUE_CREDIT_LIMIT,
self::CAPABILITIES_LOCAL_ACCEPTANCE,
self::CAPABILITIES_PAYOUT,
self::CAPABILITIES_PAYOUT_TO_TRANSFER_INSTRUMENT,
Expand Down
2 changes: 2 additions & 0 deletions src/Adyen/Model/BalancePlatform/VerificationError.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ public function getModelName()
public const CAPABILITIES_ISSUE_CARD = 'issueCard';
public const CAPABILITIES_ISSUE_CARD_COMMERCIAL = 'issueCardCommercial';
public const CAPABILITIES_ISSUE_CARD_CONSUMER = 'issueCardConsumer';
public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit';
public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance';
public const CAPABILITIES_PAYOUT = 'payout';
public const CAPABILITIES_PAYOUT_TO_TRANSFER_INSTRUMENT = 'payoutToTransferInstrument';
Expand Down Expand Up @@ -328,6 +329,7 @@ public function getCapabilitiesAllowableValues()
self::CAPABILITIES_ISSUE_CARD,
self::CAPABILITIES_ISSUE_CARD_COMMERCIAL,
self::CAPABILITIES_ISSUE_CARD_CONSUMER,
self::CAPABILITIES_ISSUE_CREDIT_LIMIT,
self::CAPABILITIES_LOCAL_ACCEPTANCE,
self::CAPABILITIES_PAYOUT,
self::CAPABILITIES_PAYOUT_TO_TRANSFER_INSTRUMENT,
Expand Down
Loading

0 comments on commit 07f7a13

Please sign in to comment.