diff --git a/composer.json b/composer.json index 782057a..17bf803 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "postfinancecheckout/sdk", - "version": "2.1.1", + "version": "2.1.2", "description": "PostFinance Checkout SDK for PHP", "keywords": [ "postfinancecheckout", diff --git a/lib/ApiClient.php b/lib/ApiClient.php index 351ff53..892b62e 100644 --- a/lib/ApiClient.php +++ b/lib/ApiClient.php @@ -54,7 +54,7 @@ final class ApiClient { * * @var string */ - private $userAgent = 'PHP-Client/2.1.1/php'; + private $userAgent = 'PHP-Client/2.1.2/php'; /** * The path to the certificate authority file. diff --git a/lib/Configuration.php b/lib/Configuration.php index a932cb1..8c1907b 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -80,7 +80,7 @@ class Configuration * * @var string */ - protected $userAgent = 'PostFinanceCheckout\Sdk/2.1.1/php'; + protected $userAgent = 'PostFinanceCheckout\Sdk/2.1.2/php'; /** * Debug switch (default set to false) @@ -388,8 +388,8 @@ public static function toDebugReport() $report = 'PHP SDK (PostFinanceCheckout\Sdk) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 2.1.1' . PHP_EOL; - $report .= ' SDK Package Version: 2.1.1' . PHP_EOL; + $report .= ' OpenAPI Spec Version: 2.1.2' . PHP_EOL; + $report .= ' SDK Package Version: 2.1.2' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/AbstractAccountUpdate.php b/lib/Model/AbstractAccountUpdate.php index f4391a7..d8a56bc 100644 --- a/lib/Model/AbstractAccountUpdate.php +++ b/lib/Model/AbstractAccountUpdate.php @@ -48,6 +48,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'last_modified_date' => '\DateTime', 'name' => 'string', 'subaccount_limit' => 'int' ]; @@ -58,6 +59,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'last_modified_date' => 'date-time', 'name' => null, 'subaccount_limit' => 'int64' ]; @@ -69,6 +71,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'subaccount_limit' => 'subaccountLimit' ]; @@ -79,6 +82,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'subaccount_limit' => 'setSubaccountLimit' ]; @@ -89,6 +93,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'subaccount_limit' => 'getSubaccountLimit' ]; @@ -111,6 +116,8 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess public function __construct(array $data = null) { + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['subaccount_limit'] = isset($data['subaccount_limit']) ? $data['subaccount_limit'] : null; @@ -214,6 +221,31 @@ public function valid() + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name * diff --git a/lib/Model/AbstractSpaceUpdate.php b/lib/Model/AbstractSpaceUpdate.php index 19c0101..ec199e5 100644 --- a/lib/Model/AbstractSpaceUpdate.php +++ b/lib/Model/AbstractSpaceUpdate.php @@ -48,6 +48,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'last_modified_date' => '\DateTime', 'name' => 'string', 'postal_address' => '\PostFinanceCheckout\Sdk\Model\SpaceAddressCreate', 'primary_currency' => 'string', @@ -63,6 +64,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'last_modified_date' => 'date-time', 'name' => null, 'postal_address' => null, 'primary_currency' => null, @@ -79,6 +81,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'postal_address' => 'postalAddress', 'primary_currency' => 'primaryCurrency', @@ -94,6 +97,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'postal_address' => 'setPostalAddress', 'primary_currency' => 'setPrimaryCurrency', @@ -109,6 +113,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'postal_address' => 'getPostalAddress', 'primary_currency' => 'getPrimaryCurrency', @@ -136,6 +141,8 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess public function __construct(array $data = null) { + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['postal_address'] = isset($data['postal_address']) ? $data['postal_address'] : null; @@ -249,6 +256,31 @@ public function valid() + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name * diff --git a/lib/Model/Account.php b/lib/Model/Account.php index d4f5258..d36474a 100644 --- a/lib/Model/Account.php +++ b/lib/Model/Account.php @@ -54,6 +54,7 @@ class Account implements ModelInterface, ArrayAccess 'deleted_by' => 'int', 'deleted_on' => '\DateTime', 'id' => 'int', + 'last_modified_date' => '\DateTime', 'name' => 'string', 'parent_account' => '\PostFinanceCheckout\Sdk\Model\Account', 'planned_purge_date' => '\DateTime', @@ -76,6 +77,7 @@ class Account implements ModelInterface, ArrayAccess 'deleted_by' => 'int64', 'deleted_on' => 'date-time', 'id' => 'int64', + 'last_modified_date' => 'date-time', 'name' => null, 'parent_account' => null, 'planned_purge_date' => 'date-time', @@ -99,6 +101,7 @@ class Account implements ModelInterface, ArrayAccess 'deleted_by' => 'deletedBy', 'deleted_on' => 'deletedOn', 'id' => 'id', + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'parent_account' => 'parentAccount', 'planned_purge_date' => 'plannedPurgeDate', @@ -121,6 +124,7 @@ class Account implements ModelInterface, ArrayAccess 'deleted_by' => 'setDeletedBy', 'deleted_on' => 'setDeletedOn', 'id' => 'setId', + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'parent_account' => 'setParentAccount', 'planned_purge_date' => 'setPlannedPurgeDate', @@ -143,6 +147,7 @@ class Account implements ModelInterface, ArrayAccess 'deleted_by' => 'getDeletedBy', 'deleted_on' => 'getDeletedOn', 'id' => 'getId', + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'parent_account' => 'getParentAccount', 'planned_purge_date' => 'getPlannedPurgeDate', @@ -182,6 +187,8 @@ public function __construct(array $data = null) $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['parent_account'] = isset($data['parent_account']) ? $data['parent_account'] : null; @@ -424,6 +431,31 @@ public function setId($id) } + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name * diff --git a/lib/Model/Space.php b/lib/Model/Space.php index e52bd15..1d6524e 100644 --- a/lib/Model/Space.php +++ b/lib/Model/Space.php @@ -56,6 +56,7 @@ class Space implements ModelInterface, ArrayAccess 'deleted_by' => 'int', 'deleted_on' => '\DateTime', 'id' => 'int', + 'last_modified_date' => '\DateTime', 'name' => 'string', 'planned_purge_date' => '\DateTime', 'postal_address' => '\PostFinanceCheckout\Sdk\Model\SpaceAddress', @@ -81,6 +82,7 @@ class Space implements ModelInterface, ArrayAccess 'deleted_by' => 'int64', 'deleted_on' => 'date-time', 'id' => 'int64', + 'last_modified_date' => 'date-time', 'name' => null, 'planned_purge_date' => 'date-time', 'postal_address' => null, @@ -107,6 +109,7 @@ class Space implements ModelInterface, ArrayAccess 'deleted_by' => 'deletedBy', 'deleted_on' => 'deletedOn', 'id' => 'id', + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'planned_purge_date' => 'plannedPurgeDate', 'postal_address' => 'postalAddress', @@ -132,6 +135,7 @@ class Space implements ModelInterface, ArrayAccess 'deleted_by' => 'setDeletedBy', 'deleted_on' => 'setDeletedOn', 'id' => 'setId', + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'planned_purge_date' => 'setPlannedPurgeDate', 'postal_address' => 'setPostalAddress', @@ -157,6 +161,7 @@ class Space implements ModelInterface, ArrayAccess 'deleted_by' => 'getDeletedBy', 'deleted_on' => 'getDeletedOn', 'id' => 'getId', + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'planned_purge_date' => 'getPlannedPurgeDate', 'postal_address' => 'getPostalAddress', @@ -201,6 +206,8 @@ public function __construct(array $data = null) $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; @@ -495,6 +502,31 @@ public function setId($id) } + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name *