Skip to content

Commit

Permalink
Release 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Aug 4, 2020
1 parent 7a945c5 commit eb010d7
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postfinancecheckout/sdk",
"version": "2.1.1",
"version": "2.1.2",
"description": "PostFinance Checkout SDK for PHP",
"keywords": [
"postfinancecheckout",
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/AbstractAccountUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
'last_modified_date' => '\DateTime',
'name' => 'string',
'subaccount_limit' => 'int'
];
Expand All @@ -58,6 +59,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
'last_modified_date' => 'date-time',
'name' => null,
'subaccount_limit' => 'int64'
];
Expand All @@ -69,6 +71,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $attributeMap = [
'last_modified_date' => 'lastModifiedDate',
'name' => 'name',
'subaccount_limit' => 'subaccountLimit'
];
Expand All @@ -79,6 +82,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $setters = [
'last_modified_date' => 'setLastModifiedDate',
'name' => 'setName',
'subaccount_limit' => 'setSubaccountLimit'
];
Expand All @@ -89,6 +93,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $getters = [
'last_modified_date' => 'getLastModifiedDate',
'name' => 'getName',
'subaccount_limit' => 'getSubaccountLimit'
];
Expand All @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/AbstractSpaceUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/Space.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down

0 comments on commit eb010d7

Please sign in to comment.