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

Commit f83c776

Browse files
author
Pascal Krason
committed
2 parents 900393e + b11d86d commit f83c776

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

src/Request/Method/Payment/AddRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public function execute(array $optional = [])
154154
{
155155
$params = [
156156
'amount' => $this->getAmount(),
157+
'force' => $this->isForced(),
157158
];
158159

159160
if($this->getMemo() !== null) {

src/Response/Hydrator/Payment/Amount.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function __construct()
1919

2020
$namingStrategy = new MapNamingStrategy([
2121
'amount (BTC)' => 'bitcoins',
22+
'amount (LTC)' => 'litecoins',
2223
'amount' => 'satoshis',
2324
]);
2425

src/Response/Model/Payment/Amount.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ class Amount
1212
*/
1313
private $bitcoins = 0;
1414

15+
/**
16+
* @var float
17+
*/
18+
private $litecoins = 0;
19+
1520
/**
1621
* @var int
1722
*/
@@ -37,6 +42,26 @@ public function setBitcoins($bitcoins)
3742
return $this;
3843
}
3944

45+
/**
46+
* @return float
47+
*/
48+
public function getLitecoins()
49+
{
50+
return $this->litecoins;
51+
}
52+
53+
/**
54+
* @param float $litecoins
55+
*
56+
* @return Amount
57+
*/
58+
public function setLitecoins($litecoins)
59+
{
60+
$this->litecoins = $litecoins;
61+
62+
return $this;
63+
}
64+
4065
/**
4166
* @return int
4267
*/

0 commit comments

Comments
 (0)