-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Miguel Vela Romera
committed
Dec 22, 2020
1 parent
fe29223
commit 43dbac1
Showing
44 changed files
with
2,942 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
src/Domain/Checkouts/Service/Builder/Checkout/RequestThreeDSecure.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2018-2020 Payvision B.V. (https://www.payvision.com/) | ||
* @license see LICENCE.TXT | ||
* | ||
* Warning! This file is auto-generated! Any changes made to this file will be deleted in the future! | ||
*/ | ||
|
||
namespace Payvision\SDK\Domain\Checkouts\Service\Builder\Checkout; | ||
|
||
use Payvision\SDK\Domain\Checkouts\ValueObject\Checkout\RequestThreeDSecure as RequestThreeDSecureObject; | ||
use Payvision\SDK\Domain\Checkouts\ValueObject\ThreeDSecureAdditionalInfo; | ||
use Payvision\SDK\Domain\Checkouts\ValueObject\ThreeDSecureExemption; | ||
use Payvision\SDK\Domain\Checkouts\ValueObject\ThreeDSecureRecurringInfo; | ||
use Payvision\SDK\Domain\Service\Builder\Basic; | ||
|
||
class RequestThreeDSecure extends Basic | ||
{ | ||
/** | ||
* @return RequestThreeDSecureObject | ||
*/ | ||
public function build(): RequestThreeDSecureObject | ||
{ | ||
return $this->buildAndReset(); | ||
} | ||
|
||
/** | ||
* @param ThreeDSecureAdditionalInfo $additionalInfo | ||
* @return RequestThreeDSecure | ||
*/ | ||
public function setAdditionalInfo(ThreeDSecureAdditionalInfo $additionalInfo): RequestThreeDSecure | ||
{ | ||
return $this->set('additionalInfo', $additionalInfo); | ||
} | ||
|
||
/** | ||
* @param ThreeDSecureExemption $exemption | ||
* @return RequestThreeDSecure | ||
*/ | ||
public function setExemption(ThreeDSecureExemption $exemption): RequestThreeDSecure | ||
{ | ||
return $this->set('exemption', $exemption); | ||
} | ||
|
||
/** | ||
* @param ThreeDSecureRecurringInfo $recurringInfo | ||
* @return RequestThreeDSecure | ||
*/ | ||
public function setRecurringInfo(ThreeDSecureRecurringInfo $recurringInfo): RequestThreeDSecure | ||
{ | ||
return $this->set('recurringInfo', $recurringInfo); | ||
} | ||
|
||
/** | ||
* @param string $version | ||
* @return RequestThreeDSecure | ||
*/ | ||
public function setVersion(string $version): RequestThreeDSecure | ||
{ | ||
return $this->set('version', $version); | ||
} | ||
|
||
/** | ||
* @return RequestThreeDSecureObject | ||
*/ | ||
protected function buildObject(): RequestThreeDSecureObject | ||
{ | ||
return new RequestThreeDSecureObject( | ||
$this->get('additionalInfo'), | ||
$this->get('exemption'), | ||
$this->get('recurringInfo'), | ||
$this->get('version') | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
src/Domain/Checkouts/Service/Builder/Composite/Checkout/RequestThreeDSecure.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2018-2020 Payvision B.V. (https://www.payvision.com/) | ||
* @license see LICENCE.TXT | ||
* | ||
* Warning! This file is auto-generated! Any changes made to this file will be deleted in the future! | ||
*/ | ||
|
||
namespace Payvision\SDK\Domain\Checkouts\Service\Builder\Composite\Checkout; | ||
|
||
use Payvision\SDK\Domain\Checkouts\ValueObject\Checkout\RequestThreeDSecure as RequestThreeDSecureObject; | ||
use Payvision\SDK\Domain\Checkouts\Service\Builder\ThreeDSecureAdditionalInfo as ThreeDSecureAdditionalInfoBuilder; | ||
use Payvision\SDK\Domain\Checkouts\Service\Builder\ThreeDSecureExemption as ThreeDSecureExemptionBuilder; | ||
use Payvision\SDK\Domain\Checkouts\Service\Builder\ThreeDSecureRecurringInfo as ThreeDSecureRecurringInfoBuilder; | ||
use Payvision\SDK\Domain\Service\Builder\Basic; | ||
|
||
class RequestThreeDSecure extends Basic | ||
{ | ||
/** | ||
* @var ThreeDSecureAdditionalInfoBuilder | ||
*/ | ||
private $additionalInfoBuilder; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
private $isAdditionalInfoBuilderTouched = false; | ||
|
||
/** | ||
* @var ThreeDSecureExemptionBuilder | ||
*/ | ||
private $exemptionBuilder; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
private $isExemptionBuilderTouched = false; | ||
|
||
/** | ||
* @var ThreeDSecureRecurringInfoBuilder | ||
*/ | ||
private $recurringInfoBuilder; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
private $isRecurringInfoBuilderTouched = false; | ||
|
||
public function __construct() | ||
{ | ||
$this->additionalInfoBuilder = new ThreeDSecureAdditionalInfoBuilder(); | ||
$this->exemptionBuilder = new ThreeDSecureExemptionBuilder(); | ||
$this->recurringInfoBuilder = new ThreeDSecureRecurringInfoBuilder(); | ||
} | ||
|
||
/** | ||
* @return RequestThreeDSecureObject | ||
*/ | ||
public function build(): RequestThreeDSecureObject | ||
{ | ||
return $this->buildAndReset(); | ||
} | ||
|
||
/** | ||
* @return ThreeDSecureAdditionalInfoBuilder | ||
*/ | ||
public function additionalInfo(): ThreeDSecureAdditionalInfoBuilder | ||
{ | ||
$this->isAdditionalInfoBuilderTouched = true; | ||
return $this->additionalInfoBuilder; | ||
} | ||
|
||
/** | ||
* @return ThreeDSecureExemptionBuilder | ||
*/ | ||
public function exemption(): ThreeDSecureExemptionBuilder | ||
{ | ||
$this->isExemptionBuilderTouched = true; | ||
return $this->exemptionBuilder; | ||
} | ||
|
||
/** | ||
* @return ThreeDSecureRecurringInfoBuilder | ||
*/ | ||
public function recurringInfo(): ThreeDSecureRecurringInfoBuilder | ||
{ | ||
$this->isRecurringInfoBuilderTouched = true; | ||
return $this->recurringInfoBuilder; | ||
} | ||
|
||
/** | ||
* @param string $version | ||
* @return RequestThreeDSecure | ||
*/ | ||
public function setVersion(string $version): RequestThreeDSecure | ||
{ | ||
return $this->set('version', $version); | ||
} | ||
|
||
/** | ||
* @return RequestThreeDSecureObject | ||
*/ | ||
protected function buildObject(): RequestThreeDSecureObject | ||
{ | ||
return new RequestThreeDSecureObject( | ||
$this->isAdditionalInfoBuilderTouched ? $this->additionalInfoBuilder->build() : null, | ||
$this->isExemptionBuilderTouched ? $this->exemptionBuilder->build() : null, | ||
$this->isRecurringInfoBuilderTouched ? $this->recurringInfoBuilder->build() : null, | ||
$this->get('version') | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.