Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 6.29.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Jan 25, 2022
1 parent 70f7782 commit a21530a
Show file tree
Hide file tree
Showing 7 changed files with 299 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ingenico/Connect/Sdk/RequestHeaderGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
class RequestHeaderGenerator
{
const SDK_VERSION = '6.28.0';
const SDK_VERSION = '6.29.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ class CashPaymentMethodSpecificInput extends AbstractCashPaymentMethodSpecificIn
*/
public $paymentProduct1504SpecificInput = null;

/**
* @var CashPaymentProduct1506SpecificInput
*/
public $paymentProduct1506SpecificInput = null;

/**
* @var CashPaymentProduct1508SpecificInput
*/
public $paymentProduct1508SpecificInput = null;

/**
* @var CashPaymentProduct1511SpecificInput
*/
public $paymentProduct1511SpecificInput = null;

/**
* @var CashPaymentProduct1521SpecificInput
*/
Expand Down Expand Up @@ -60,6 +75,15 @@ public function toObject()
if (!is_null($this->paymentProduct1504SpecificInput)) {
$object->paymentProduct1504SpecificInput = $this->paymentProduct1504SpecificInput->toObject();
}
if (!is_null($this->paymentProduct1506SpecificInput)) {
$object->paymentProduct1506SpecificInput = $this->paymentProduct1506SpecificInput->toObject();
}
if (!is_null($this->paymentProduct1508SpecificInput)) {
$object->paymentProduct1508SpecificInput = $this->paymentProduct1508SpecificInput->toObject();
}
if (!is_null($this->paymentProduct1511SpecificInput)) {
$object->paymentProduct1511SpecificInput = $this->paymentProduct1511SpecificInput->toObject();
}
if (!is_null($this->paymentProduct1521SpecificInput)) {
$object->paymentProduct1521SpecificInput = $this->paymentProduct1521SpecificInput->toObject();
}
Expand Down Expand Up @@ -100,6 +124,27 @@ public function fromObject($object)
$value = new CashPaymentProduct1504SpecificInput();
$this->paymentProduct1504SpecificInput = $value->fromObject($object->paymentProduct1504SpecificInput);
}
if (property_exists($object, 'paymentProduct1506SpecificInput')) {
if (!is_object($object->paymentProduct1506SpecificInput)) {
throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1506SpecificInput, true) . '\' is not an object');
}
$value = new CashPaymentProduct1506SpecificInput();
$this->paymentProduct1506SpecificInput = $value->fromObject($object->paymentProduct1506SpecificInput);
}
if (property_exists($object, 'paymentProduct1508SpecificInput')) {
if (!is_object($object->paymentProduct1508SpecificInput)) {
throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1508SpecificInput, true) . '\' is not an object');
}
$value = new CashPaymentProduct1508SpecificInput();
$this->paymentProduct1508SpecificInput = $value->fromObject($object->paymentProduct1508SpecificInput);
}
if (property_exists($object, 'paymentProduct1511SpecificInput')) {
if (!is_object($object->paymentProduct1511SpecificInput)) {
throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1511SpecificInput, true) . '\' is not an object');
}
$value = new CashPaymentProduct1511SpecificInput();
$this->paymentProduct1511SpecificInput = $value->fromObject($object->paymentProduct1511SpecificInput);
}
if (property_exists($object, 'paymentProduct1521SpecificInput')) {
if (!is_object($object->paymentProduct1521SpecificInput)) {
throw new UnexpectedValueException('value \'' . print_r($object->paymentProduct1521SpecificInput, true) . '\' is not an object');
Expand Down
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;
}
}
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;
}
}
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 src/Ingenico/Connect/Sdk/Domain/Services/SettlementDetails.php
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;
}
}
31 changes: 31 additions & 0 deletions src/Ingenico/Connect/Sdk/Merchant/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Ingenico\Connect\Sdk\Domain\Services\GetIINDetailsRequest;
use Ingenico\Connect\Sdk\Domain\Services\GetIINDetailsResponse;
use Ingenico\Connect\Sdk\Domain\Services\GetPrivacyPolicyResponse;
use Ingenico\Connect\Sdk\Domain\Services\SettlementDetails;
use Ingenico\Connect\Sdk\Domain\Services\TestConnection;
use Ingenico\Connect\Sdk\GlobalCollectException;
use Ingenico\Connect\Sdk\IdempotenceException;
Expand Down Expand Up @@ -175,4 +176,34 @@ public function testconnection(CallContext $callContext = null)
$callContext
);
}

/**
* Resource /{merchantId}/services/settlementdetails/{paymentId} - Get Settlement details
*
* @param string $paymentId
* @param CallContext $callContext
* @return SettlementDetails
*
* @throws ValidationException
* @throws AuthorizationException
* @throws IdempotenceException
* @throws ReferenceException
* @throws GlobalCollectException
* @throws ApiException
* @throws InvalidResponseException
* @link https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/php/services/settlementdetails.html Get Settlement details
*/
public function settlementdetails($paymentId, CallContext $callContext = null)
{
$this->context['paymentId'] = $paymentId;
$responseClassMap = new ResponseClassMap();
$responseClassMap->defaultSuccessResponseClassName = '\Ingenico\Connect\Sdk\Domain\Services\SettlementDetails';
return $this->getCommunicator()->get(
$responseClassMap,
$this->instantiateUri('/v1/{merchantId}/services/settlementdetails/{paymentId}'),
$this->getClientMetaInfo(),
null,
$callContext
);
}
}

0 comments on commit a21530a

Please sign in to comment.