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
70f7782
commit a21530a
Showing
7 changed files
with
299 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
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
46 changes: 46 additions & 0 deletions
46
src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/CashPaymentProduct1506SpecificInput.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,46 @@ | ||
<?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 CashPaymentProduct1506SpecificInput extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $returnUrl = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->returnUrl)) { | ||
$object->returnUrl = $this->returnUrl; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'returnUrl')) { | ||
$this->returnUrl = $object->returnUrl; | ||
} | ||
return $this; | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/CashPaymentProduct1508SpecificInput.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,46 @@ | ||
<?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 CashPaymentProduct1508SpecificInput extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $returnUrl = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->returnUrl)) { | ||
$object->returnUrl = $this->returnUrl; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'returnUrl')) { | ||
$this->returnUrl = $object->returnUrl; | ||
} | ||
return $this; | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/CashPaymentProduct1511SpecificInput.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,46 @@ | ||
<?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 CashPaymentProduct1511SpecificInput extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $returnUrl = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->returnUrl)) { | ||
$object->returnUrl = $this->returnUrl; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'returnUrl')) { | ||
$this->returnUrl = $object->returnUrl; | ||
} | ||
return $this; | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
src/Ingenico/Connect/Sdk/Domain/Services/SettlementDetails.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,84 @@ | ||
<?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\Services; | ||
|
||
use Ingenico\Connect\Sdk\DataObject; | ||
use Ingenico\Connect\Sdk\Domain\Definitions\AmountOfMoney; | ||
use UnexpectedValueException; | ||
|
||
/** | ||
* @package Ingenico\Connect\Sdk\Domain\Services | ||
*/ | ||
class SettlementDetails extends DataObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $acquirerReferenceNumber = null; | ||
|
||
/** | ||
* @var AmountOfMoney | ||
*/ | ||
public $amountOfMoney = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $paymentId = null; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $retrievalReferenceNumber = null; | ||
|
||
/** | ||
* @return object | ||
*/ | ||
public function toObject() | ||
{ | ||
$object = parent::toObject(); | ||
if (!is_null($this->acquirerReferenceNumber)) { | ||
$object->acquirerReferenceNumber = $this->acquirerReferenceNumber; | ||
} | ||
if (!is_null($this->amountOfMoney)) { | ||
$object->amountOfMoney = $this->amountOfMoney->toObject(); | ||
} | ||
if (!is_null($this->paymentId)) { | ||
$object->paymentId = $this->paymentId; | ||
} | ||
if (!is_null($this->retrievalReferenceNumber)) { | ||
$object->retrievalReferenceNumber = $this->retrievalReferenceNumber; | ||
} | ||
return $object; | ||
} | ||
|
||
/** | ||
* @param object $object | ||
* @return $this | ||
* @throws UnexpectedValueException | ||
*/ | ||
public function fromObject($object) | ||
{ | ||
parent::fromObject($object); | ||
if (property_exists($object, 'acquirerReferenceNumber')) { | ||
$this->acquirerReferenceNumber = $object->acquirerReferenceNumber; | ||
} | ||
if (property_exists($object, 'amountOfMoney')) { | ||
if (!is_object($object->amountOfMoney)) { | ||
throw new UnexpectedValueException('value \'' . print_r($object->amountOfMoney, true) . '\' is not an object'); | ||
} | ||
$value = new AmountOfMoney(); | ||
$this->amountOfMoney = $value->fromObject($object->amountOfMoney); | ||
} | ||
if (property_exists($object, 'paymentId')) { | ||
$this->paymentId = $object->paymentId; | ||
} | ||
if (property_exists($object, 'retrievalReferenceNumber')) { | ||
$this->retrievalReferenceNumber = $object->retrievalReferenceNumber; | ||
} | ||
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