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
ebab846
commit fdd0e12
Showing
9 changed files
with
295 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
110 changes: 110 additions & 0 deletions
110
src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/AccountFundingRecipient.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,110 @@ | ||
<?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\Payment\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use Ingenico\Connect\Sdk\Domain\Definitions\Address; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Payment\Definitions | ||
*/ | ||
class AccountFundingRecipient extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $accountNumber = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $accountNumberType = null; | ||
|
||
/** | ||
* @var Address | ||
*/ | ||
public $address = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $dateOfBirth = null; | ||
|
||
/** | ||
* @var AfrName | ||
*/ | ||
public $name = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $partialPan = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->accountNumber)) { | ||
$object->accountNumber = $this->accountNumber; | ||
} | ||
if (!is_null($this->accountNumberType)) { | ||
$object->accountNumberType = $this->accountNumberType; | ||
} | ||
if (!is_null($this->address)) { | ||
$object->address = $this->address->toObject(); | ||
} | ||
if (!is_null($this->dateOfBirth)) { | ||
$object->dateOfBirth = $this->dateOfBirth; | ||
} | ||
if (!is_null($this->name)) { | ||
$object->name = $this->name->toObject(); | ||
} | ||
if (!is_null($this->partialPan)) { | ||
$object->partialPan = $this->partialPan; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'accountNumber')) { | ||
$this->accountNumber = $object->accountNumber; | ||
} | ||
if (property_exists($object, 'accountNumberType')) { | ||
$this->accountNumberType = $object->accountNumberType; | ||
} | ||
if (property_exists($object, 'address')) { | ||
if (!is_object($object->address)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->address, true) . '\' is not an object'); | ||
} | ||
$value = new Address(); | ||
$this->address = $value->fromObject($object->address); | ||
} | ||
if (property_exists($object, 'dateOfBirth')) { | ||
$this->dateOfBirth = $object->dateOfBirth; | ||
} | ||
if (property_exists($object, 'name')) { | ||
if (!is_object($object->name)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->name, true) . '\' is not an object'); | ||
} | ||
$value = new AfrName(); | ||
$this->name = $value->fromObject($object->name); | ||
} | ||
if (property_exists($object, 'partialPan')) { | ||
$this->partialPan = $object->partialPan; | ||
} | ||
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
57 changes: 57 additions & 0 deletions
57
src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/AfrName.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\Payment\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Payment\Definitions | ||
*/ | ||
class AfrName extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $firstName = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $surname = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->firstName)) { | ||
$object->firstName = $this->firstName; | ||
} | ||
if (!is_null($this->surname)) { | ||
$object->surname = $this->surname; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'firstName')) { | ||
$this->firstName = $object->firstName; | ||
} | ||
if (property_exists($object, 'surname')) { | ||
$this->surname = $object->surname; | ||
} | ||
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
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
68 changes: 68 additions & 0 deletions
68
src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/PersonalIdentification.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\Payment\Definitions; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Payment\Definitions | ||
*/ | ||
class PersonalIdentification extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $idIssuingCountryCode = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $idType = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $idValue = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->idIssuingCountryCode)) { | ||
$object->idIssuingCountryCode = $this->idIssuingCountryCode; | ||
} | ||
if (!is_null($this->idType)) { | ||
$object->idType = $this->idType; | ||
} | ||
if (!is_null($this->idValue)) { | ||
$object->idValue = $this->idValue; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'idIssuingCountryCode')) { | ||
$this->idIssuingCountryCode = $object->idIssuingCountryCode; | ||
} | ||
if (property_exists($object, 'idType')) { | ||
$this->idType = $object->idType; | ||
} | ||
if (property_exists($object, 'idValue')) { | ||
$this->idValue = $object->idValue; | ||
} | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.