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

Commit

Permalink
Release 6.43.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Oct 16, 2023
1 parent 972c575 commit ebab846
Show file tree
Hide file tree
Showing 13 changed files with 675 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.42.0';
const SDK_VERSION = '6.43.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class HostedCheckoutSpecificInput extends DataObject
*/
public $paymentProductFilters = null;

/**
* @var RecurringPaymentsData
*/
public $recurringPaymentsData = null;

/**
* @var bool
*/
Expand Down Expand Up @@ -73,6 +78,9 @@ public function toObject()
if (!is_null($this->paymentProductFilters)) {
$object->paymentProductFilters = $this->paymentProductFilters->toObject();
}
if (!is_null($this->recurringPaymentsData)) {
$object->recurringPaymentsData = $this->recurringPaymentsData->toObject();
}
if (!is_null($this->returnCancelState)) {
$object->returnCancelState = $this->returnCancelState;
}
Expand Down Expand Up @@ -115,6 +123,13 @@ public function fromObject($object)
$value = new PaymentProductFiltersHostedCheckout();
$this->paymentProductFilters = $value->fromObject($object->paymentProductFilters);
}
if (property_exists($object, 'recurringPaymentsData')) {
if (!is_object($object->recurringPaymentsData)) {
throw new UnexpectedValueException('value \'' . print_r($object->recurringPaymentsData, true) . '\' is not an object');
}
$value = new RecurringPaymentsData();
$this->recurringPaymentsData = $value->fromObject($object->recurringPaymentsData);
}
if (property_exists($object, 'returnCancelState')) {
$this->returnCancelState = $object->returnCancelState;
}
Expand Down
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;
}
}
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;
}
}
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;
}
}
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;
}
}
Loading

0 comments on commit ebab846

Please sign in to comment.