Skip to content

Commit

Permalink
chore: release v4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Vela Romera committed Jun 15, 2020
1 parent 5f6f563 commit 867872c
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "payvision/payvision-sdk-php",
"description": "Payvision PHP SDK",
"type": "library",
"version": "4.1.0",
"version": "4.1.1",
"license": "MIT",
"require": {
"php": "^7.0.13|^7.1",
Expand Down
1 change: 1 addition & 0 deletions src/DataType/CountryCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,5 +310,6 @@ public function get()
{
return $this->countryCode;
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/CurrencyCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,6 @@ public function get()
{
return $this->currencyCode;
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ public function get()
{
return $this->value->format('Y-m-d');
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ public function get()
{
return $this->value->format('Y-m-d\TH:i:s\Z');
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/Enumerated.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public function get()
{
return $this->value;
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/LanguageCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,5 +245,6 @@ public function get()
{
return $this->languageCode;
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/LimitedString.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ public function get()
{
return $this->str;
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/NonNegativeAmount.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ public function get()
{
return $this->amount;
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
1 change: 1 addition & 0 deletions src/DataType/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ public function get()
{
return $this->url;
}

// phpcs:enable SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Payvision\SDK\Domain\Payments\Service\Builder\Error as ErrorBuilder;
use Payvision\SDK\Domain\Payments\Service\Builder\Payment\ResponseRedirect as ResponseRedirectBuilder;
use Payvision\SDK\Domain\Payments\Service\Builder\Payment\ResponseThreeDSecure as ResponseThreeDSecureBuilder;
use Payvision\SDK\Domain\Payments\Service\Builder\Payment\ResponseQr as ResponseQrBuilder;
use Payvision\SDK\Domain\Payments\Service\Builder\Payment\ResponseToken as ResponseTokenBuilder;
use Payvision\SDK\Domain\Payments\Service\Builder\Status\ResponseTransaction as ResponseTransactionBuilder;
use Payvision\SDK\Domain\Service\Builder\Basic;

Expand Down Expand Up @@ -74,7 +74,7 @@ class ResponseBody extends Basic
private $isThreeDSecureBuilderTouched = false;

/**
* @var ResponseQrBuilder
* @var ResponseTokenBuilder
*/
private $tokenBuilder;

Expand All @@ -100,7 +100,7 @@ public function __construct()
$this->errorBuilder = new ErrorBuilder();
$this->redirectBuilder = new ResponseRedirectBuilder();
$this->threeDSecureBuilder = new ResponseThreeDSecureBuilder();
$this->tokenBuilder = new ResponseQrBuilder();
$this->tokenBuilder = new ResponseTokenBuilder();
$this->transactionBuilder = new ResponseTransactionBuilder();
}

Expand Down Expand Up @@ -158,9 +158,9 @@ public function threeDSecure(): ResponseThreeDSecureBuilder
}

/**
* @return ResponseQrBuilder
* @return ResponseTokenBuilder
*/
public function token(): ResponseQrBuilder
public function token(): ResponseTokenBuilder
{
$this->isTokenBuilderTouched = true;
return $this->tokenBuilder;
Expand Down
6 changes: 3 additions & 3 deletions src/Domain/Payments/Service/Builder/Status/ResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Payvision\SDK\Domain\Payments\ValueObject\Error;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseRedirect;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseThreeDSecure;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseQr;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseToken;
use Payvision\SDK\Domain\Payments\ValueObject\Status\ResponseTransaction;
use Payvision\SDK\Domain\Service\Builder\Basic;

Expand Down Expand Up @@ -77,10 +77,10 @@ public function setThreeDSecure(ResponseThreeDSecure $threeDSecure): self
}

/**
* @param ResponseQr $token
* @param ResponseToken $token
* @return self
*/
public function setToken(ResponseQr $token): self
public function setToken(ResponseToken $token): self
{
return $this->set('token', $token);
}
Expand Down
10 changes: 5 additions & 5 deletions src/Domain/Payments/ValueObject/Status/ResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Payvision\SDK\Domain\Payments\ValueObject\Error;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseRedirect;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseThreeDSecure;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseQr;
use Payvision\SDK\Domain\Payments\ValueObject\Payment\ResponseToken;

class ResponseBody
{
Expand Down Expand Up @@ -46,7 +46,7 @@ class ResponseBody
private $threeDSecure;

/**
* @var ResponseQr
* @var ResponseToken
*/
private $token;

Expand All @@ -63,7 +63,7 @@ class ResponseBody
* @param Error $error
* @param ResponseRedirect $redirect
* @param ResponseThreeDSecure $threeDSecure
* @param ResponseQr $token
* @param ResponseToken $token
* @param ResponseTransaction $transaction
*/
public function __construct(
Expand All @@ -72,7 +72,7 @@ public function __construct(
Error $error = null,
ResponseRedirect $redirect = null,
ResponseThreeDSecure $threeDSecure = null,
ResponseQr $token = null,
ResponseToken $token = null,
ResponseTransaction $transaction = null
) {
$this->bank = $bank;
Expand Down Expand Up @@ -125,7 +125,7 @@ public function getThreeDSecure()
}

/**
* @return ResponseQr|null
* @return ResponseToken|null
*/
public function getToken()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@ public function testBuildResponse()
self::assertNull($payload->getBody()->getBank()->getBic());
self::assertNull($payload->getBody()->getBank()->getIban());
}

// phpcs:enable ObjectCalisthenics.Files.FunctionLength.ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff
}

0 comments on commit 867872c

Please sign in to comment.