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

Commit

Permalink
Release 6.44.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Oct 26, 2023
1 parent ebab846 commit fdd0e12
Show file tree
Hide file tree
Showing 9 changed files with 295 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.43.0';
const SDK_VERSION = '6.44.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
*/
class AdditionalOrderInput extends DataObject
{
/**
* @var AccountFundingRecipient
*/
public $accountFundingRecipient = null;

/**
* @var AirlineData
*/
Expand All @@ -33,6 +38,7 @@ class AdditionalOrderInput extends DataObject

/**
* @var LoanRecipient
* @deprecated No replacement
*/
public $loanRecipient = null;

Expand Down Expand Up @@ -63,6 +69,9 @@ class AdditionalOrderInput extends DataObject
public function toObject()
{
$object = parent::toObject();
if (!is_null($this->accountFundingRecipient)) {
$object->accountFundingRecipient = $this->accountFundingRecipient->toObject();
}
if (!is_null($this->airlineData)) {
$object->airlineData = $this->airlineData->toObject();
}
Expand Down Expand Up @@ -98,6 +107,13 @@ public function toObject()
public function fromObject($object)
{
parent::fromObject($object);
if (property_exists($object, 'accountFundingRecipient')) {
if (!is_object($object->accountFundingRecipient)) {
throw new UnexpectedValueException('value \'' . print_r($object->accountFundingRecipient, true) . '\' is not an object');
}
$value = new AccountFundingRecipient();
$this->accountFundingRecipient = $value->fromObject($object->accountFundingRecipient);
}
if (property_exists($object, 'airlineData')) {
if (!is_object($object->airlineData)) {
throw new UnexpectedValueException('value \'' . print_r($object->airlineData, true) . '\' is not an object');
Expand Down
57 changes: 57 additions & 0 deletions src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/AfrName.php
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;
}
}
11 changes: 11 additions & 0 deletions src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ class Customer extends CustomerBase
*/
public $fiscalNumber = null;

/**
* @var bool
*/
public $isCompany = null;

/**
* @var bool
*/
Expand Down Expand Up @@ -89,6 +94,9 @@ public function toObject()
if (!is_null($this->fiscalNumber)) {
$object->fiscalNumber = $this->fiscalNumber;
}
if (!is_null($this->isCompany)) {
$object->isCompany = $this->isCompany;
}
if (!is_null($this->isPreviousCustomer)) {
$object->isPreviousCustomer = $this->isPreviousCustomer;
}
Expand Down Expand Up @@ -146,6 +154,9 @@ public function fromObject($object)
if (property_exists($object, 'fiscalNumber')) {
$this->fiscalNumber = $object->fiscalNumber;
}
if (property_exists($object, 'isCompany')) {
$this->isCompany = $object->isCompany;
}
if (property_exists($object, 'isPreviousCustomer')) {
$this->isPreviousCustomer = $object->isPreviousCustomer;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,37 @@

/**
* @package Ingenico\Connect\Sdk\Domain\Payment\Definitions
* @deprecated No replacement
*/
class LoanRecipient extends DataObject
{
/**
* @var string
* @deprecated No replacement
*/
public $accountNumber = null;

/**
* @var string
* @deprecated No replacement
*/
public $dateOfBirth = null;

/**
* @var string
* @deprecated No replacement
*/
public $partialPan = null;

/**
* @var string
* @deprecated No replacement
*/
public $surname = null;

/**
* @var string
* @deprecated No replacement
*/
public $zip = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
*/
class OrderTypeInformation extends DataObject
{
/**
* @var string
*/
public $fundingType = null;

/**
* @var string
*/
Expand All @@ -34,6 +39,9 @@ class OrderTypeInformation extends DataObject
public function toObject()
{
$object = parent::toObject();
if (!is_null($this->fundingType)) {
$object->fundingType = $this->fundingType;
}
if (!is_null($this->purchaseType)) {
$object->purchaseType = $this->purchaseType;
}
Expand All @@ -54,6 +62,9 @@ public function toObject()
public function fromObject($object)
{
parent::fromObject($object);
if (property_exists($object, 'fundingType')) {
$this->fundingType = $object->fundingType;
}
if (property_exists($object, 'purchaseType')) {
$this->purchaseType = $object->purchaseType;
}
Expand Down
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;
}
}
Loading

0 comments on commit fdd0e12

Please sign in to comment.