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

Commit ad1ed4c

Browse files
Release 6.40.0.
1 parent f8bd448 commit ad1ed4c

7 files changed

Lines changed: 125 additions & 1 deletion

File tree

.github/workflows/api-docs.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: API docs
2+
3+
on:
4+
push:
5+
tags: ['[0-9]+.[0-9]+*']
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
api-docs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
with:
17+
path: code
18+
persist-credentials: false
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '5.6'
23+
- name: Install apigen
24+
run: composer global require apigen/apigen
25+
- name: Build API docs
26+
run: apigen generate -s lib,src -d docs --deprecated --no-source-code --title 'Ingenico Connect PHP SDK'
27+
working-directory: code
28+
- name: Checkout pages
29+
uses: actions/checkout@v3
30+
with:
31+
ref: gh-pages
32+
path: pages
33+
- name: Deploy pages
34+
run: |
35+
SDK_VERSION_FOLDER=`echo "$SDK_VERSION" | awk --field-separator '.' '{print $1".x";}'`
36+
37+
# Create .nojekyll if it doesn't exist yet
38+
touch .nojekyll
39+
40+
mkdir -p "apidoc/$SDK_VERSION_FOLDER"
41+
rsync --quiet --archive --checksum --delete --exclude .git ../code/docs/ "apidoc/$SDK_VERSION_FOLDER/"
42+
if [ -e apidoc/latest ]; then rm -r apidoc/latest; fi
43+
pushd apidoc && ln -s "$SDK_VERSION_FOLDER" latest && popd
44+
45+
git config user.email "$USER_EMAIL"
46+
git config user.name "$USER_NAME"
47+
git add --all .
48+
# Only commit when there are changes
49+
git diff --quiet && git diff --staged --quiet || git commit --message "Generated API docs for version ${SDK_VERSION}"
50+
git push
51+
shell: bash
52+
working-directory: pages
53+
env:
54+
SDK_VERSION: ${{ github.ref_name }}
55+
USER_EMAIL: ${{ github.event.pusher.email }}
56+
USER_NAME: ${{ github.event.pusher.name }}

lib/Ingenico/Connect/Sdk/RequestHeaderGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class RequestHeaderGenerator
1313
{
14-
const SDK_VERSION = '6.39.0';
14+
const SDK_VERSION = '6.40.0';
1515

1616
const AUTHORIZATION_ID = 'GCS';
1717

src/Ingenico/Connect/Sdk/Domain/Hostedcheckout/Definitions/CreatedPaymentOutput.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ class CreatedPaymentOutput extends DataObject
2020
*/
2121
public $displayedData = null;
2222

23+
/**
24+
* @var bool
25+
*/
26+
public $isCheckedRememberMe = null;
27+
2328
/**
2429
* @var Payment
2530
*/
@@ -55,6 +60,9 @@ public function toObject()
5560
if (!is_null($this->displayedData)) {
5661
$object->displayedData = $this->displayedData->toObject();
5762
}
63+
if (!is_null($this->isCheckedRememberMe)) {
64+
$object->isCheckedRememberMe = $this->isCheckedRememberMe;
65+
}
5866
if (!is_null($this->payment)) {
5967
$object->payment = $this->payment->toObject();
6068
}
@@ -88,6 +96,9 @@ public function fromObject($object)
8896
$value = new DisplayedData();
8997
$this->displayedData = $value->fromObject($object->displayedData);
9098
}
99+
if (property_exists($object, 'isCheckedRememberMe')) {
100+
$this->isCheckedRememberMe = $object->isCheckedRememberMe;
101+
}
91102
if (property_exists($object, 'payment')) {
92103
if (!is_object($object->payment)) {
93104
throw new UnexpectedValueException('value \'' . print_r($object->payment, true) . '\' is not an object');

src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/PaymentCreationOutput.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
*/
1313
class PaymentCreationOutput extends PaymentCreationReferences
1414
{
15+
/**
16+
* @var bool
17+
*/
18+
public $isCheckedRememberMe = null;
19+
1520
/**
1621
* @var bool
1722
*/
@@ -33,6 +38,9 @@ class PaymentCreationOutput extends PaymentCreationReferences
3338
public function toObject()
3439
{
3540
$object = parent::toObject();
41+
if (!is_null($this->isCheckedRememberMe)) {
42+
$object->isCheckedRememberMe = $this->isCheckedRememberMe;
43+
}
3644
if (!is_null($this->isNewToken)) {
3745
$object->isNewToken = $this->isNewToken;
3846
}
@@ -53,6 +61,9 @@ public function toObject()
5361
public function fromObject($object)
5462
{
5563
parent::fromObject($object);
64+
if (property_exists($object, 'isCheckedRememberMe')) {
65+
$this->isCheckedRememberMe = $object->isCheckedRememberMe;
66+
}
5667
if (property_exists($object, 'isNewToken')) {
5768
$this->isNewToken = $object->isNewToken;
5869
}

src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/PaymentReferences.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ class PaymentReferences extends DataObject
3333
*/
3434
public $providerId = null;
3535

36+
/**
37+
* @var string
38+
*/
39+
public $providerMerchantId = null;
40+
3641
/**
3742
* @var string
3843
*/
@@ -61,6 +66,9 @@ public function toObject()
6166
if (!is_null($this->providerId)) {
6267
$object->providerId = $this->providerId;
6368
}
69+
if (!is_null($this->providerMerchantId)) {
70+
$object->providerMerchantId = $this->providerMerchantId;
71+
}
6472
if (!is_null($this->providerReference)) {
6573
$object->providerReference = $this->providerReference;
6674
}
@@ -90,6 +98,9 @@ public function fromObject($object)
9098
if (property_exists($object, 'providerId')) {
9199
$this->providerId = $object->providerId;
92100
}
101+
if (property_exists($object, 'providerMerchantId')) {
102+
$this->providerMerchantId = $object->providerMerchantId;
103+
}
93104
if (property_exists($object, 'providerReference')) {
94105
$this->providerReference = $object->providerReference;
95106
}

src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/PaymentStatusOutput.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Ingenico\Connect\Sdk\Domain\Payment\Definitions;
77

8+
use Ingenico\Connect\Sdk\Domain\Definitions\KeyValuePair;
89
use Ingenico\Connect\Sdk\Domain\Definitions\OrderStatusOutput;
910
use UnexpectedValueException;
1011

@@ -28,6 +29,11 @@ class PaymentStatusOutput extends OrderStatusOutput
2829
*/
2930
public $isRetriable = null;
3031

32+
/**
33+
* @var KeyValuePair[]
34+
*/
35+
public $providerRawOutput = null;
36+
3137
/**
3238
* @var string
3339
*/
@@ -48,6 +54,14 @@ public function toObject()
4854
if (!is_null($this->isRetriable)) {
4955
$object->isRetriable = $this->isRetriable;
5056
}
57+
if (!is_null($this->providerRawOutput)) {
58+
$object->providerRawOutput = [];
59+
foreach ($this->providerRawOutput as $element) {
60+
if (!is_null($element)) {
61+
$object->providerRawOutput[] = $element->toObject();
62+
}
63+
}
64+
}
5165
if (!is_null($this->threeDSecureStatus)) {
5266
$object->threeDSecureStatus = $this->threeDSecureStatus;
5367
}
@@ -71,6 +85,16 @@ public function fromObject($object)
7185
if (property_exists($object, 'isRetriable')) {
7286
$this->isRetriable = $object->isRetriable;
7387
}
88+
if (property_exists($object, 'providerRawOutput')) {
89+
if (!is_array($object->providerRawOutput) && !is_object($object->providerRawOutput)) {
90+
throw new UnexpectedValueException('value \'' . print_r($object->providerRawOutput, true) . '\' is not an array or object');
91+
}
92+
$this->providerRawOutput = [];
93+
foreach ($object->providerRawOutput as $element) {
94+
$value = new KeyValuePair();
95+
$this->providerRawOutput[] = $value->fromObject($element);
96+
}
97+
}
7498
if (property_exists($object, 'threeDSecureStatus')) {
7599
$this->threeDSecureStatus = $object->threeDSecureStatus;
76100
}

src/Ingenico/Connect/Sdk/Domain/Payment/Definitions/SchemeTokenData.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
*/
1414
class SchemeTokenData extends DataObject
1515
{
16+
/**
17+
* @var string
18+
*/
19+
public $cardholderName = null;
20+
1621
/**
1722
* @var string
1823
*/
@@ -39,6 +44,9 @@ class SchemeTokenData extends DataObject
3944
public function toObject()
4045
{
4146
$object = parent::toObject();
47+
if (!is_null($this->cardholderName)) {
48+
$object->cardholderName = $this->cardholderName;
49+
}
4250
if (!is_null($this->cryptogram)) {
4351
$object->cryptogram = $this->cryptogram;
4452
}
@@ -62,6 +70,9 @@ public function toObject()
6270
public function fromObject($object)
6371
{
6472
parent::fromObject($object);
73+
if (property_exists($object, 'cardholderName')) {
74+
$this->cardholderName = $object->cardholderName;
75+
}
6576
if (property_exists($object, 'cryptogram')) {
6677
$this->cryptogram = $object->cryptogram;
6778
}

0 commit comments

Comments
 (0)