Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit 21ffd4e

Browse files
authored
Merge pull request #4 from LordS4me/master
Added confirmations field in PaymentRequest
2 parents 8d72678 + 487ad19 commit 21ffd4e

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

src/Response/Hydrator/Payment/PaymentRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function __construct()
2323
'URI' => 'uri',
2424
'exp' => 'expires',
2525
'time' => 'time',
26+
'confirmations' => 'confirmations',
2627
]);
2728

2829
$this->setNamingStrategy($namingStrategy);

src/Response/Model/Payment/PaymentRequest.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ class PaymentRequest implements ResponseInterface
7171
*/
7272
private $time = 0;
7373

74+
/**
75+
* @var int
76+
*/
77+
private $confirmations = null;
78+
7479
/**
7580
* Factory method
7681
*
@@ -246,4 +251,24 @@ public function setTime($time)
246251
return $this;
247252
}
248253

254+
/**
255+
* @return int
256+
*/
257+
public function getConfirmations()
258+
{
259+
return $this->confirmations;
260+
}
261+
262+
/**
263+
* @param int $confirmations
264+
*
265+
* @return PaymentRequest
266+
*/
267+
public function setConfirmations($confirmations)
268+
{
269+
$this->confirmations = $confirmations;
270+
271+
return $this;
272+
}
273+
249274
}

0 commit comments

Comments
 (0)