This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
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
1 parent
972c575
commit ebab846
Showing
13 changed files
with
675 additions
and
1 deletion.
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
57 changes: 57 additions & 0 deletions
57
src/Ingenico/Connect/Sdk/Domain/Hostedcheckout/Definitions/Frequency.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,57 @@ | ||
<?php | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
namespace Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions | ||
*/ | ||
class Frequency extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $interval = null; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $intervalFrequency = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->interval)) { | ||
$object->interval = $this->interval; | ||
} | ||
if (!is_null($this->intervalFrequency)) { | ||
$object->intervalFrequency = $this->intervalFrequency; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'interval')) { | ||
$this->interval = $object->interval; | ||
} | ||
if (property_exists($object, 'intervalFrequency')) { | ||
$this->intervalFrequency = $object->intervalFrequency; | ||
} | ||
return $this; | ||
} | ||
} |
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
65 changes: 65 additions & 0 deletions
65
src/Ingenico/Connect/Sdk/Domain/Hostedcheckout/Definitions/RecurringPaymentsData.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,65 @@ | ||
<?php | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
namespace Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions | ||
*/ | ||
class RecurringPaymentsData extends DataObject | ||
{ | ||
/** | ||
* @var Frequency | ||
*/ | ||
public $recurringInterval = null; | ||
|
||
/** | ||
* @var TrialInformation | ||
*/ | ||
public $trialInformation = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->recurringInterval)) { | ||
$object->recurringInterval = $this->recurringInterval->toObject(); | ||
} | ||
if (!is_null($this->trialInformation)) { | ||
$object->trialInformation = $this->trialInformation->toObject(); | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'recurringInterval')) { | ||
if (!is_object($object->recurringInterval)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->recurringInterval, true) . '\' is not an object'); | ||
} | ||
$value = new Frequency(); | ||
$this->recurringInterval = $value->fromObject($object->recurringInterval); | ||
} | ||
if (property_exists($object, 'trialInformation')) { | ||
if (!is_object($object->trialInformation)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->trialInformation, true) . '\' is not an object'); | ||
} | ||
$value = new TrialInformation(); | ||
$this->trialInformation = $value->fromObject($object->trialInformation); | ||
} | ||
return $this; | ||
} | ||
} |
103 changes: 103 additions & 0 deletions
103
src/Ingenico/Connect/Sdk/Domain/Hostedcheckout/Definitions/TrialInformation.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,103 @@ | ||
<?php | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
namespace Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use Ingenico\Connect\Sdk\Domain\Definitions\AmountOfMoney; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions | ||
*/ | ||
class TrialInformation extends DataObject | ||
{ | ||
/** | ||
* @var AmountOfMoney | ||
*/ | ||
public $amountOfMoneyAfterTrial = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $endDate = null; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $isRecurring = null; | ||
|
||
/** | ||
* @var TrialPeriod | ||
*/ | ||
public $trialPeriod = null; | ||
|
||
/** | ||
* @var Frequency | ||
*/ | ||
public $trialPeriodRecurring = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->amountOfMoneyAfterTrial)) { | ||
$object->amountOfMoneyAfterTrial = $this->amountOfMoneyAfterTrial->toObject(); | ||
} | ||
if (!is_null($this->endDate)) { | ||
$object->endDate = $this->endDate; | ||
} | ||
if (!is_null($this->isRecurring)) { | ||
$object->isRecurring = $this->isRecurring; | ||
} | ||
if (!is_null($this->trialPeriod)) { | ||
$object->trialPeriod = $this->trialPeriod->toObject(); | ||
} | ||
if (!is_null($this->trialPeriodRecurring)) { | ||
$object->trialPeriodRecurring = $this->trialPeriodRecurring->toObject(); | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'amountOfMoneyAfterTrial')) { | ||
if (!is_object($object->amountOfMoneyAfterTrial)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->amountOfMoneyAfterTrial, true) . '\' is not an object'); | ||
} | ||
$value = new AmountOfMoney(); | ||
$this->amountOfMoneyAfterTrial = $value->fromObject($object->amountOfMoneyAfterTrial); | ||
} | ||
if (property_exists($object, 'endDate')) { | ||
$this->endDate = $object->endDate; | ||
} | ||
if (property_exists($object, 'isRecurring')) { | ||
$this->isRecurring = $object->isRecurring; | ||
} | ||
if (property_exists($object, 'trialPeriod')) { | ||
if (!is_object($object->trialPeriod)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->trialPeriod, true) . '\' is not an object'); | ||
} | ||
$value = new TrialPeriod(); | ||
$this->trialPeriod = $value->fromObject($object->trialPeriod); | ||
} | ||
if (property_exists($object, 'trialPeriodRecurring')) { | ||
if (!is_object($object->trialPeriodRecurring)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->trialPeriodRecurring, true) . '\' is not an object'); | ||
} | ||
$value = new Frequency(); | ||
$this->trialPeriodRecurring = $value->fromObject($object->trialPeriodRecurring); | ||
} | ||
return $this; | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
src/Ingenico/Connect/Sdk/Domain/Hostedcheckout/Definitions/TrialPeriod.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,57 @@ | ||
<?php | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
namespace Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Hostedcheckout\Definitions | ||
*/ | ||
class TrialPeriod extends DataObject | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
public $duration = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $interval = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->duration)) { | ||
$object->duration = $this->duration; | ||
} | ||
if (!is_null($this->interval)) { | ||
$object->interval = $this->interval; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'duration')) { | ||
$this->duration = $object->duration; | ||
} | ||
if (property_exists($object, 'interval')) { | ||
$this->interval = $object->interval; | ||
} | ||
return $this; | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
src/Ingenico/Connect/Sdk/Domain/Installments/Definitions/InstallmentDisplayHints.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,68 @@ | ||
<?php | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
namespace Ingenico\Connect\Sdk\Domain\Installments\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Installments\Definitions | ||
*/ | ||
class InstallmentDisplayHints extends DataObject | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
public $displayOrder = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $label = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $logo = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->displayOrder)) { | ||
$object->displayOrder = $this->displayOrder; | ||
} | ||
if (!is_null($this->label)) { | ||
$object->label = $this->label; | ||
} | ||
if (!is_null($this->logo)) { | ||
$object->logo = $this->logo; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'displayOrder')) { | ||
$this->displayOrder = $object->displayOrder; | ||
} | ||
if (property_exists($object, 'label')) { | ||
$this->label = $object->label; | ||
} | ||
if (property_exists($object, 'logo')) { | ||
$this->logo = $object->logo; | ||
} | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.