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

Commit

Permalink
Release 6.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Jul 15, 2019
1 parent 233214b commit a5a0101
Show file tree
Hide file tree
Showing 3 changed files with 23 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.1.0';
const SDK_VERSION = '6.2.0';

const AUTHORIZATION_ID = 'GCS';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class CaptureOutput extends OrderOutput
*/
public $amountPaid = null;

/**
* @var int
*/
public $amountReversed = null;

/**
* @var BankTransferPaymentMethodSpecificOutput
*/
Expand Down Expand Up @@ -86,6 +91,9 @@ public function toObject()
if (!is_null($this->amountPaid)) {
$object->amountPaid = $this->amountPaid;
}
if (!is_null($this->amountReversed)) {
$object->amountReversed = $this->amountReversed;
}
if (!is_null($this->bankTransferPaymentMethodSpecificOutput)) {
$object->bankTransferPaymentMethodSpecificOutput = $this->bankTransferPaymentMethodSpecificOutput->toObject();
}
Expand Down Expand Up @@ -130,6 +138,9 @@ public function fromObject($object)
if (property_exists($object, 'amountPaid')) {
$this->amountPaid = $object->amountPaid;
}
if (property_exists($object, 'amountReversed')) {
$this->amountReversed = $object->amountReversed;
}
if (property_exists($object, 'bankTransferPaymentMethodSpecificOutput')) {
if (!is_object($object->bankTransferPaymentMethodSpecificOutput)) {
throw new UnexpectedValueException('value \'' . print_r($object->bankTransferPaymentMethodSpecificOutput, true) . '\' is not an object');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class PaymentOutput extends OrderOutput
*/
public $amountPaid = null;

/**
* @var int
*/
public $amountReversed = null;

/**
* @var BankTransferPaymentMethodSpecificOutput
*/
Expand Down Expand Up @@ -76,6 +81,9 @@ public function toObject()
if (!is_null($this->amountPaid)) {
$object->amountPaid = $this->amountPaid;
}
if (!is_null($this->amountReversed)) {
$object->amountReversed = $this->amountReversed;
}
if (!is_null($this->bankTransferPaymentMethodSpecificOutput)) {
$object->bankTransferPaymentMethodSpecificOutput = $this->bankTransferPaymentMethodSpecificOutput->toObject();
}
Expand Down Expand Up @@ -120,6 +128,9 @@ public function fromObject($object)
if (property_exists($object, 'amountPaid')) {
$this->amountPaid = $object->amountPaid;
}
if (property_exists($object, 'amountReversed')) {
$this->amountReversed = $object->amountReversed;
}
if (property_exists($object, 'bankTransferPaymentMethodSpecificOutput')) {
if (!is_object($object->bankTransferPaymentMethodSpecificOutput)) {
throw new UnexpectedValueException('value \'' . print_r($object->bankTransferPaymentMethodSpecificOutput, true) . '\' is not an object');
Expand Down

0 comments on commit a5a0101

Please sign in to comment.