From f4cfd792316878886b72cc11be8e0df1fd1e35dd Mon Sep 17 00:00:00 2001
From: Patrick
Date: Tue, 7 May 2024 16:21:10 -0400
Subject: [PATCH] SP-935: Update satoshisPerByte to float and bump version
---
phpdoc.dist.xml | 2 +-
src/BitPaySDK/Env.php | 2 +-
src/BitPaySDK/Model/Invoice/MinerFeesItem.php | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml
index 334d60a1..ce9b71b0 100644
--- a/phpdoc.dist.xml
+++ b/phpdoc.dist.xml
@@ -10,7 +10,7 @@
-
+
src
diff --git a/src/BitPaySDK/Env.php b/src/BitPaySDK/Env.php
index 0efc6642..1ec59acc 100644
--- a/src/BitPaySDK/Env.php
+++ b/src/BitPaySDK/Env.php
@@ -17,7 +17,7 @@ interface Env
public const TEST_URL = "https://test.bitpay.com/";
public const PROD_URL = "https://bitpay.com/";
public const BITPAY_API_VERSION = "2.0.0";
- public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.0.1";
+ public const BITPAY_PLUGIN_INFO = "BitPay_PHP_Client_v9.0.2";
public const BITPAY_API_FRAME = "std";
public const BITPAY_API_FRAME_VERSION = "1.0.0";
}
diff --git a/src/BitPaySDK/Model/Invoice/MinerFeesItem.php b/src/BitPaySDK/Model/Invoice/MinerFeesItem.php
index b313aa44..474d938d 100644
--- a/src/BitPaySDK/Model/Invoice/MinerFeesItem.php
+++ b/src/BitPaySDK/Model/Invoice/MinerFeesItem.php
@@ -18,7 +18,7 @@
*/
class MinerFeesItem
{
- protected ?int $satoshisPerByte = null;
+ protected ?float $satoshisPerByte = null;
protected ?int $totalFee = null;
protected ?float $fiatAmount = null;
@@ -26,12 +26,12 @@ public function __construct()
{
}
- public function getSatoshisPerByte(): ?int
+ public function getSatoshisPerByte(): ?float
{
return $this->satoshisPerByte;
}
- public function setSatoshisPerByte(int $satoshisPerByte): void
+ public function setSatoshisPerByte(float $satoshisPerByte): void
{
$this->satoshisPerByte = $satoshisPerByte;
}