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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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/BinLookup/CostEstimateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/AdditionalData3DSecure.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public function getThreeDSVersion()
/**
* Sets threeDSVersion
*
* @param string|null $threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error.
* @param string|null $threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/BalanceCheckRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/Checkout/CheckoutPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payerSelected' => 'string',
'shopperAccountIdentifier' => 'string',
'virtualPaymentAddress' => 'string',
'pixRecurring' => '\Adyen\Model\Checkout\PixRecurring',
'bank' => 'string',
'clientType' => 'string',
'identification' => 'string',
Expand Down Expand Up @@ -189,6 +190,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payerSelected' => null,
'shopperAccountIdentifier' => null,
'virtualPaymentAddress' => null,
'pixRecurring' => null,
'bank' => null,
'clientType' => null,
'identification' => null,
Expand Down Expand Up @@ -270,6 +272,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payerSelected' => false,
'shopperAccountIdentifier' => false,
'virtualPaymentAddress' => false,
'pixRecurring' => false,
'bank' => false,
'clientType' => false,
'identification' => false,
Expand Down Expand Up @@ -431,6 +434,7 @@ public function isNullableSetToNull(string $property): bool
'payerSelected' => 'payerSelected',
'shopperAccountIdentifier' => 'shopperAccountIdentifier',
'virtualPaymentAddress' => 'virtualPaymentAddress',
'pixRecurring' => 'pixRecurring',
'bank' => 'bank',
'clientType' => 'clientType',
'identification' => 'identification',
Expand Down Expand Up @@ -512,6 +516,7 @@ public function isNullableSetToNull(string $property): bool
'payerSelected' => 'setPayerSelected',
'shopperAccountIdentifier' => 'setShopperAccountIdentifier',
'virtualPaymentAddress' => 'setVirtualPaymentAddress',
'pixRecurring' => 'setPixRecurring',
'bank' => 'setBank',
'clientType' => 'setClientType',
'identification' => 'setIdentification',
Expand Down Expand Up @@ -593,6 +598,7 @@ public function isNullableSetToNull(string $property): bool
'payerSelected' => 'getPayerSelected',
'shopperAccountIdentifier' => 'getShopperAccountIdentifier',
'virtualPaymentAddress' => 'getVirtualPaymentAddress',
'pixRecurring' => 'getPixRecurring',
'bank' => 'getBank',
'clientType' => 'getClientType',
'identification' => 'getIdentification',
Expand Down Expand Up @@ -724,6 +730,7 @@ public function __construct(array $data = null)
$this->setIfExists('payerSelected', $data ?? [], null);
$this->setIfExists('shopperAccountIdentifier', $data ?? [], null);
$this->setIfExists('virtualPaymentAddress', $data ?? [], null);
$this->setIfExists('pixRecurring', $data ?? [], null);
$this->setIfExists('bank', $data ?? [], null);
$this->setIfExists('clientType', $data ?? [], null);
$this->setIfExists('identification', $data ?? [], null);
Expand Down Expand Up @@ -2308,6 +2315,30 @@ public function setVirtualPaymentAddress($virtualPaymentAddress)
return $this;
}

/**
* Gets pixRecurring
*
* @return \Adyen\Model\Checkout\PixRecurring|null
*/
public function getPixRecurring()
{
return $this->container['pixRecurring'];
}

/**
* Sets pixRecurring
*
* @param \Adyen\Model\Checkout\PixRecurring|null $pixRecurring pixRecurring
*
* @return self
*/
public function setPixRecurring($pixRecurring)
{
$this->container['pixRecurring'] = $pixRecurring;

return $this;
}

/**
* Gets bank
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/FundRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Adyen/Model/Checkout/PaymentDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ public function getModelName()
public const TYPE_MOLPAY_EBANKING_MY = 'molpay_ebanking_MY';
public const TYPE_MOLPAY_EBANKING_DIRECT_MY = 'molpay_ebanking_direct_MY';
public const TYPE_SWISH = 'swish';
public const TYPE_PIX = 'pix';
public const TYPE_BIZUM = 'bizum';
public const TYPE_WALLEY = 'walley';
public const TYPE_WALLEY_B2B = 'walley_b2b';
Expand Down Expand Up @@ -351,7 +350,6 @@ public function getTypeAllowableValues()
self::TYPE_MOLPAY_EBANKING_MY,
self::TYPE_MOLPAY_EBANKING_DIRECT_MY,
self::TYPE_SWISH,
self::TYPE_PIX,
self::TYPE_BIZUM,
self::TYPE_WALLEY,
self::TYPE_WALLEY_B2B,
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentLinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentLinkResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentMethodsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/Checkout/PaymentRefundResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class PaymentRefundResponse implements ModelInterface, ArrayAccess, \JsonSeriali
*/
protected static $openAPITypes = [
'amount' => '\Adyen\Model\Checkout\Amount',
'capturePspReference' => 'string',
'lineItems' => '\Adyen\Model\Checkout\LineItem[]',
'merchantAccount' => 'string',
'merchantRefundReason' => 'string',
Expand All @@ -65,6 +66,7 @@ class PaymentRefundResponse implements ModelInterface, ArrayAccess, \JsonSeriali
*/
protected static $openAPIFormats = [
'amount' => null,
'capturePspReference' => null,
'lineItems' => null,
'merchantAccount' => null,
'merchantRefundReason' => null,
Expand All @@ -83,6 +85,7 @@ class PaymentRefundResponse implements ModelInterface, ArrayAccess, \JsonSeriali
*/
protected static $openAPINullables = [
'amount' => false,
'capturePspReference' => false,
'lineItems' => false,
'merchantAccount' => false,
'merchantRefundReason' => true,
Expand Down Expand Up @@ -181,6 +184,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'amount' => 'amount',
'capturePspReference' => 'capturePspReference',
'lineItems' => 'lineItems',
'merchantAccount' => 'merchantAccount',
'merchantRefundReason' => 'merchantRefundReason',
Expand All @@ -199,6 +203,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'amount' => 'setAmount',
'capturePspReference' => 'setCapturePspReference',
'lineItems' => 'setLineItems',
'merchantAccount' => 'setMerchantAccount',
'merchantRefundReason' => 'setMerchantRefundReason',
Expand All @@ -217,6 +222,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'amount' => 'getAmount',
'capturePspReference' => 'getCapturePspReference',
'lineItems' => 'getLineItems',
'merchantAccount' => 'getMerchantAccount',
'merchantRefundReason' => 'getMerchantRefundReason',
Expand Down Expand Up @@ -318,6 +324,7 @@ public function getStatusAllowableValues()
public function __construct(array $data = null)
{
$this->setIfExists('amount', $data ?? [], null);
$this->setIfExists('capturePspReference', $data ?? [], null);
$this->setIfExists('lineItems', $data ?? [], null);
$this->setIfExists('merchantAccount', $data ?? [], null);
$this->setIfExists('merchantRefundReason', $data ?? [], null);
Expand Down Expand Up @@ -428,6 +435,30 @@ public function setAmount($amount)
return $this;
}

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

/**
* Sets capturePspReference
*
* @param string|null $capturePspReference This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the specific capture to refund.
*
* @return self
*/
public function setCapturePspReference($capturePspReference)
{
$this->container['capturePspReference'] = $capturePspReference;

return $this;
}

/**
* Gets lineItems
*
Expand Down
Loading