diff --git a/src/Adyen/Model/BalancePlatform/Balance.php b/src/Adyen/Model/BalancePlatform/Balance.php index 5a6c3539..2a0fe2d0 100644 --- a/src/Adyen/Model/BalancePlatform/Balance.php +++ b/src/Adyen/Model/BalancePlatform/Balance.php @@ -353,7 +353,7 @@ public function getBalance() /** * Sets balance * - * @param int $balance The sum of transactions that have already been settled. + * @param int $balance The sum of the transactions that have already been settled. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/PriorityRestriction.php b/src/Adyen/Model/BalancePlatform/PriorityRestriction.php new file mode 100644 index 00000000..096a642e --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/PriorityRestriction.php @@ -0,0 +1,470 @@ + + */ +class PriorityRestriction implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PriorityRestriction'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'operation' => 'string', + 'value' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'operation' => null, + 'value' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'operation' => false, + 'value' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'operation' => 'operation', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'operation' => 'setOperation', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'operation' => 'getOperation', + 'value' => 'getValue' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const VALUE_CROSS_BORDER = 'crossBorder'; + public const VALUE_FAST = 'fast'; + public const VALUE_INSTANT = 'instant'; + public const VALUE_INTRA_BANK = 'intraBank'; + public const VALUE_REGULAR = 'regular'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getValueAllowableValues() + { + return [ + self::VALUE_CROSS_BORDER, + self::VALUE_FAST, + self::VALUE_INSTANT, + self::VALUE_INTRA_BANK, + self::VALUE_REGULAR, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('operation', $data ?? [], null); + $this->setIfExists('value', $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 + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['operation'] === null) { + $invalidProperties[] = "'operation' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets operation + * + * @return string + */ + public function getOperation() + { + return $this->container['operation']; + } + + /** + * Sets operation + * + * @param string $operation Defines how the condition must be evaluated. + * + * @return self + */ + public function setOperation($operation) + { + $this->container['operation'] = $operation; + + return $this; + } + + /** + * Gets value + * + * @return string[]|null + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string[]|null $value value + * + * @return self + */ + public function setValue($value) + { + $allowedValues = $this->getValueAllowableValues(); + if (array_diff($value, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'value', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // 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 + } 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 + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php b/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php index 5603255a..5ec2fc90 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php @@ -58,6 +58,7 @@ class TransactionRuleRestrictions implements ModelInterface, ArrayAccess, \JsonS 'mccs' => '\Adyen\Model\BalancePlatform\MccsRestriction', 'merchantNames' => '\Adyen\Model\BalancePlatform\MerchantNamesRestriction', 'merchants' => '\Adyen\Model\BalancePlatform\MerchantsRestriction', + 'priority' => '\Adyen\Model\BalancePlatform\PriorityRestriction', 'processingTypes' => '\Adyen\Model\BalancePlatform\ProcessingTypesRestriction', 'riskScores' => '\Adyen\Model\BalancePlatform\RiskScoresRestriction', 'sameAmountRestriction' => '\Adyen\Model\BalancePlatform\SameAmountRestriction', @@ -89,6 +90,7 @@ class TransactionRuleRestrictions implements ModelInterface, ArrayAccess, \JsonS 'mccs' => null, 'merchantNames' => null, 'merchants' => null, + 'priority' => null, 'processingTypes' => null, 'riskScores' => null, 'sameAmountRestriction' => null, @@ -118,6 +120,7 @@ class TransactionRuleRestrictions implements ModelInterface, ArrayAccess, \JsonS 'mccs' => false, 'merchantNames' => false, 'merchants' => false, + 'priority' => false, 'processingTypes' => false, 'riskScores' => false, 'sameAmountRestriction' => false, @@ -227,6 +230,7 @@ public function isNullableSetToNull(string $property): bool 'mccs' => 'mccs', 'merchantNames' => 'merchantNames', 'merchants' => 'merchants', + 'priority' => 'priority', 'processingTypes' => 'processingTypes', 'riskScores' => 'riskScores', 'sameAmountRestriction' => 'sameAmountRestriction', @@ -256,6 +260,7 @@ public function isNullableSetToNull(string $property): bool 'mccs' => 'setMccs', 'merchantNames' => 'setMerchantNames', 'merchants' => 'setMerchants', + 'priority' => 'setPriority', 'processingTypes' => 'setProcessingTypes', 'riskScores' => 'setRiskScores', 'sameAmountRestriction' => 'setSameAmountRestriction', @@ -285,6 +290,7 @@ public function isNullableSetToNull(string $property): bool 'mccs' => 'getMccs', 'merchantNames' => 'getMerchantNames', 'merchants' => 'getMerchants', + 'priority' => 'getPriority', 'processingTypes' => 'getProcessingTypes', 'riskScores' => 'getRiskScores', 'sameAmountRestriction' => 'getSameAmountRestriction', @@ -365,6 +371,7 @@ public function __construct(array $data = null) $this->setIfExists('mccs', $data ?? [], null); $this->setIfExists('merchantNames', $data ?? [], null); $this->setIfExists('merchants', $data ?? [], null); + $this->setIfExists('priority', $data ?? [], null); $this->setIfExists('processingTypes', $data ?? [], null); $this->setIfExists('riskScores', $data ?? [], null); $this->setIfExists('sameAmountRestriction', $data ?? [], null); @@ -752,6 +759,30 @@ public function setMerchants($merchants) return $this; } + /** + * Gets priority + * + * @return \Adyen\Model\BalancePlatform\PriorityRestriction|null + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param \Adyen\Model\BalancePlatform\PriorityRestriction|null $priority priority + * + * @return self + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + /** * Gets processingTypes * diff --git a/src/Adyen/Model/BalancePlatform/VerificationDeadline.php b/src/Adyen/Model/BalancePlatform/VerificationDeadline.php index 84065d01..07ca8696 100644 --- a/src/Adyen/Model/BalancePlatform/VerificationDeadline.php +++ b/src/Adyen/Model/BalancePlatform/VerificationDeadline.php @@ -248,6 +248,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -272,6 +274,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -308,6 +312,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -332,6 +338,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/BalancePlatform/VerificationError.php b/src/Adyen/Model/BalancePlatform/VerificationError.php index 6b1691b0..b172a7f1 100644 --- a/src/Adyen/Model/BalancePlatform/VerificationError.php +++ b/src/Adyen/Model/BalancePlatform/VerificationError.php @@ -266,6 +266,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -290,6 +292,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -329,6 +333,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -353,6 +359,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php b/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php index 628eca78..a06c8ec6 100644 --- a/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php +++ b/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php @@ -260,6 +260,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -284,6 +286,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -323,6 +327,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -347,6 +353,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/Checkout/PaymentRefundRequest.php b/src/Adyen/Model/Checkout/PaymentRefundRequest.php index 610c8de3..3c595dde 100644 --- a/src/Adyen/Model/Checkout/PaymentRefundRequest.php +++ b/src/Adyen/Model/Checkout/PaymentRefundRequest.php @@ -469,7 +469,7 @@ public function getMerchantRefundReason() /** * Sets merchantRefundReason * - * @param string|null $merchantRefundReason Your reason for the refund request + * @param string|null $merchantRefundReason The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER** * * @return self */ diff --git a/src/Adyen/Model/ConfigurationWebhooks/Balance.php b/src/Adyen/Model/ConfigurationWebhooks/Balance.php index 9f903f59..82f36853 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/Balance.php +++ b/src/Adyen/Model/ConfigurationWebhooks/Balance.php @@ -353,7 +353,7 @@ public function getBalance() /** * Sets balance * - * @param int $balance The sum of transactions that have already been settled. + * @param int $balance The sum of the transactions that have already been settled. * * @return self */ diff --git a/src/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.php b/src/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.php index 1443cedf..d83642f2 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.php +++ b/src/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.php @@ -248,6 +248,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -272,6 +274,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -308,6 +312,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -332,6 +338,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php b/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php index 7e0529e1..e1f87a22 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php +++ b/src/Adyen/Model/ConfigurationWebhooks/VerificationError.php @@ -266,6 +266,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -290,6 +292,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -329,6 +333,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -353,6 +359,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php b/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php index 1cd8c453..a5ce0842 100644 --- a/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php +++ b/src/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.php @@ -260,6 +260,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -284,6 +286,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -323,6 +327,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -347,6 +353,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php b/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php index c6634917..1536c893 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php @@ -248,6 +248,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -272,6 +274,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -308,6 +312,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -332,6 +338,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationError.php b/src/Adyen/Model/LegalEntityManagement/VerificationError.php index e43fd1e5..a6e230b3 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationError.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationError.php @@ -266,6 +266,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -290,6 +292,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -331,6 +335,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -355,6 +361,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php b/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php index cf7ccc47..92f320a3 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php @@ -260,6 +260,8 @@ 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_CHARGE_CARD = 'issueChargeCard'; + public const CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL = 'issueChargeCardCommercial'; public const CAPABILITIES_ISSUE_CREDIT_LIMIT = 'issueCreditLimit'; public const CAPABILITIES_LOCAL_ACCEPTANCE = 'localAcceptance'; public const CAPABILITIES_PAYOUT = 'payout'; @@ -284,6 +286,8 @@ public function getModelName() public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES = 'useCardInRestrictedIndustries'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL = 'useCardInRestrictedIndustriesCommercial'; public const CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER = 'useCardInRestrictedIndustriesConsumer'; + public const CAPABILITIES_USE_CHARGE_CARD = 'useChargeCard'; + public const CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL = 'useChargeCardCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM = 'withdrawFromAtm'; public const CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL = 'withdrawFromAtmCommercial'; public const CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER = 'withdrawFromAtmConsumer'; @@ -325,6 +329,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_ISSUE_CARD, self::CAPABILITIES_ISSUE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CARD_CONSUMER, + self::CAPABILITIES_ISSUE_CHARGE_CARD, + self::CAPABILITIES_ISSUE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_ISSUE_CREDIT_LIMIT, self::CAPABILITIES_LOCAL_ACCEPTANCE, self::CAPABILITIES_PAYOUT, @@ -349,6 +355,8 @@ public function getCapabilitiesAllowableValues() self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_COMMERCIAL, self::CAPABILITIES_USE_CARD_IN_RESTRICTED_INDUSTRIES_CONSUMER, + self::CAPABILITIES_USE_CHARGE_CARD, + self::CAPABILITIES_USE_CHARGE_CARD_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM, self::CAPABILITIES_WITHDRAW_FROM_ATM_COMMERCIAL, self::CAPABILITIES_WITHDRAW_FROM_ATM_CONSUMER, diff --git a/src/Adyen/Model/ReportWebhooks/ReportNotificationData.php b/src/Adyen/Model/ReportWebhooks/ReportNotificationData.php index 897e96b8..bb9de4f4 100644 --- a/src/Adyen/Model/ReportWebhooks/ReportNotificationData.php +++ b/src/Adyen/Model/ReportWebhooks/ReportNotificationData.php @@ -50,6 +50,7 @@ class ReportNotificationData implements ModelInterface, ArrayAccess, \JsonSerial 'creationDate' => '\DateTime', 'downloadUrl' => 'string', 'fileName' => 'string', + 'id' => 'string', 'reportType' => 'string' ]; @@ -67,6 +68,7 @@ class ReportNotificationData implements ModelInterface, ArrayAccess, \JsonSerial 'creationDate' => 'date-time', 'downloadUrl' => null, 'fileName' => null, + 'id' => null, 'reportType' => null ]; @@ -82,6 +84,7 @@ class ReportNotificationData implements ModelInterface, ArrayAccess, \JsonSerial 'creationDate' => false, 'downloadUrl' => false, 'fileName' => false, + 'id' => false, 'reportType' => false ]; @@ -177,6 +180,7 @@ public function isNullableSetToNull(string $property): bool 'creationDate' => 'creationDate', 'downloadUrl' => 'downloadUrl', 'fileName' => 'fileName', + 'id' => 'id', 'reportType' => 'reportType' ]; @@ -192,6 +196,7 @@ public function isNullableSetToNull(string $property): bool 'creationDate' => 'setCreationDate', 'downloadUrl' => 'setDownloadUrl', 'fileName' => 'setFileName', + 'id' => 'setId', 'reportType' => 'setReportType' ]; @@ -207,6 +212,7 @@ public function isNullableSetToNull(string $property): bool 'creationDate' => 'getCreationDate', 'downloadUrl' => 'getDownloadUrl', 'fileName' => 'getFileName', + 'id' => 'getId', 'reportType' => 'getReportType' ]; @@ -273,6 +279,7 @@ public function __construct(array $data = null) $this->setIfExists('creationDate', $data ?? [], null); $this->setIfExists('downloadUrl', $data ?? [], null); $this->setIfExists('fileName', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); $this->setIfExists('reportType', $data ?? [], null); } @@ -471,6 +478,30 @@ public function setFileName($fileName) return $this; } + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id The ID of the resource. + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + /** * Gets reportType *