Skip to content
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
6 changes: 5 additions & 1 deletion src/Adyen/Model/BinLookup/Recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ public function getModelName()
}

public const CONTRACT_ONECLICK = 'ONECLICK';
public const CONTRACT_ONECLICKRECURRING = 'ONECLICK,RECURRING';
public const CONTRACT_RECURRING = 'RECURRING';
public const CONTRACT_PAYOUT = 'PAYOUT';
public const CONTRACT_EXTERNAL = 'EXTERNAL';
public const TOKEN_SERVICE_VISATOKENSERVICE = 'VISATOKENSERVICE';
public const TOKEN_SERVICE_MCTOKENSERVICE = 'MCTOKENSERVICE';
public const TOKEN_SERVICE_AMEXTOKENSERVICE = 'AMEXTOKENSERVICE';
Expand All @@ -253,8 +255,10 @@ public function getContractAllowableValues()
{
return [
self::CONTRACT_ONECLICK,
self::CONTRACT_ONECLICKRECURRING,
self::CONTRACT_RECURRING,
self::CONTRACT_PAYOUT,
self::CONTRACT_EXTERNAL,
];
}
/**
Expand Down Expand Up @@ -366,7 +370,7 @@ public function getContract()
/**
* Sets contract
*
* @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts).
* @param string|null $contract The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request.
*
* @return self
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/AdditionalDataLevel23.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrCommodityCode()
/**
* Sets enhancedSchemeDataItemDetailLineItemNrCommodityCode
*
* @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
* @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros.
*
* @return self
*/
Expand Down Expand Up @@ -782,7 +782,7 @@ public function getEnhancedSchemeDataTotalTaxAmount()
/**
* Sets enhancedSchemeDataTotalTaxAmount
*
* @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros.
* @param string|null $enhancedSchemeDataTotalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public function getSubMerchantSubSellerSubSellerNrPhoneNumber()
/**
* Sets subMerchantSubSellerSubSellerNrPhoneNumber
*
* @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* @param string|null $subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*
* @return self
*/
Expand Down
62 changes: 62 additions & 0 deletions src/Adyen/Model/Checkout/CardDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
'billingSequenceNumber' => 'string',
'brand' => 'string',
'checkoutAttemptId' => 'string',
'cupsecureplusSmscode' => 'string',
Expand All @@ -49,6 +50,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'encryptedCardNumber' => 'string',
'encryptedExpiryMonth' => 'string',
'encryptedExpiryYear' => 'string',
'encryptedPassword' => 'string',
'encryptedSecurityCode' => 'string',
'expiryMonth' => 'string',
'expiryYear' => 'string',
Expand Down Expand Up @@ -76,6 +78,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'billingSequenceNumber' => null,
'brand' => null,
'checkoutAttemptId' => null,
'cupsecureplusSmscode' => null,
Expand All @@ -84,6 +87,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'encryptedCardNumber' => null,
'encryptedExpiryMonth' => null,
'encryptedExpiryYear' => null,
'encryptedPassword' => null,
'encryptedSecurityCode' => null,
'expiryMonth' => null,
'expiryYear' => null,
Expand All @@ -109,6 +113,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
* @var boolean[]
*/
protected static $openAPINullables = [
'billingSequenceNumber' => false,
'brand' => false,
'checkoutAttemptId' => false,
'cupsecureplusSmscode' => false,
Expand All @@ -117,6 +122,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'encryptedCardNumber' => false,
'encryptedExpiryMonth' => false,
'encryptedExpiryYear' => false,
'encryptedPassword' => false,
'encryptedSecurityCode' => false,
'expiryMonth' => false,
'expiryYear' => false,
Expand Down Expand Up @@ -222,6 +228,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'billingSequenceNumber' => 'billingSequenceNumber',
'brand' => 'brand',
'checkoutAttemptId' => 'checkoutAttemptId',
'cupsecureplusSmscode' => 'cupsecureplus.smscode',
Expand All @@ -230,6 +237,7 @@ public function isNullableSetToNull(string $property): bool
'encryptedCardNumber' => 'encryptedCardNumber',
'encryptedExpiryMonth' => 'encryptedExpiryMonth',
'encryptedExpiryYear' => 'encryptedExpiryYear',
'encryptedPassword' => 'encryptedPassword',
'encryptedSecurityCode' => 'encryptedSecurityCode',
'expiryMonth' => 'expiryMonth',
'expiryYear' => 'expiryYear',
Expand All @@ -255,6 +263,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'billingSequenceNumber' => 'setBillingSequenceNumber',
'brand' => 'setBrand',
'checkoutAttemptId' => 'setCheckoutAttemptId',
'cupsecureplusSmscode' => 'setCupsecureplusSmscode',
Expand All @@ -263,6 +272,7 @@ public function isNullableSetToNull(string $property): bool
'encryptedCardNumber' => 'setEncryptedCardNumber',
'encryptedExpiryMonth' => 'setEncryptedExpiryMonth',
'encryptedExpiryYear' => 'setEncryptedExpiryYear',
'encryptedPassword' => 'setEncryptedPassword',
'encryptedSecurityCode' => 'setEncryptedSecurityCode',
'expiryMonth' => 'setExpiryMonth',
'expiryYear' => 'setExpiryYear',
Expand All @@ -288,6 +298,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'billingSequenceNumber' => 'getBillingSequenceNumber',
'brand' => 'getBrand',
'checkoutAttemptId' => 'getCheckoutAttemptId',
'cupsecureplusSmscode' => 'getCupsecureplusSmscode',
Expand All @@ -296,6 +307,7 @@ public function isNullableSetToNull(string $property): bool
'encryptedCardNumber' => 'getEncryptedCardNumber',
'encryptedExpiryMonth' => 'getEncryptedExpiryMonth',
'encryptedExpiryYear' => 'getEncryptedExpiryYear',
'encryptedPassword' => 'getEncryptedPassword',
'encryptedSecurityCode' => 'getEncryptedSecurityCode',
'expiryMonth' => 'getExpiryMonth',
'expiryYear' => 'getExpiryYear',
Expand Down Expand Up @@ -408,6 +420,7 @@ public function getTypeAllowableValues()
*/
public function __construct(?array $data = null)
{
$this->setIfExists('billingSequenceNumber', $data ?? [], null);
$this->setIfExists('brand', $data ?? [], null);
$this->setIfExists('checkoutAttemptId', $data ?? [], null);
$this->setIfExists('cupsecureplusSmscode', $data ?? [], null);
Expand All @@ -416,6 +429,7 @@ public function __construct(?array $data = null)
$this->setIfExists('encryptedCardNumber', $data ?? [], null);
$this->setIfExists('encryptedExpiryMonth', $data ?? [], null);
$this->setIfExists('encryptedExpiryYear', $data ?? [], null);
$this->setIfExists('encryptedPassword', $data ?? [], null);
$this->setIfExists('encryptedSecurityCode', $data ?? [], null);
$this->setIfExists('expiryMonth', $data ?? [], null);
$this->setIfExists('expiryYear', $data ?? [], null);
Expand Down Expand Up @@ -495,6 +509,30 @@ public function valid()
}


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

/**
* Sets billingSequenceNumber
*
* @param string|null $billingSequenceNumber The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper.
*
* @return self
*/
public function setBillingSequenceNumber($billingSequenceNumber)
{
$this->container['billingSequenceNumber'] = $billingSequenceNumber;

return $this;
}

/**
* Gets brand
*
Expand Down Expand Up @@ -689,6 +727,30 @@ public function setEncryptedExpiryYear($encryptedExpiryYear)
return $this;
}

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

/**
* Sets encryptedPassword
*
* @param string|null $encryptedPassword This field contains an encrypted, one-time password or an authentication code provided by the cardholder.
*
* @return self
*/
public function setEncryptedPassword($encryptedPassword)
{
$this->container['encryptedPassword'] = $encryptedPassword;

return $this;
}

/**
* Gets encryptedSecurityCode
*
Expand Down
7 changes: 2 additions & 5 deletions src/Adyen/Model/Checkout/CardDetailsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,6 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['cardNumber'] === null) {
$invalidProperties[] = "'cardNumber' can't be null";
}
if ($this->container['merchantAccount'] === null) {
$invalidProperties[] = "'merchantAccount' can't be null";
}
Expand All @@ -310,7 +307,7 @@ public function valid()
/**
* Gets cardNumber
*
* @return string
* @return string|null
*/
public function getCardNumber()
{
Expand All @@ -320,7 +317,7 @@ public function getCardNumber()
/**
* Sets cardNumber
*
* @param string $cardNumber A minimum of the first eight digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field.
* @param string|null $cardNumber A minimum of the first six digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field.
*
* @return self
*/
Expand Down
Loading