Skip to content

Commit

Permalink
valore nullable saldo contabile
Browse files Browse the repository at this point in the history
Matteo Bertoldi committed May 16, 2024
1 parent 7a4d7ac commit d07ec14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Balance.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class Balance extends GenericModel {
private $AvailableBalance;

/**
* @var float
* @var float|null
*/
private $AccountingBalance;

@@ -36,7 +36,7 @@ protected function hydrateData( stdClass $data ) {

$this->Currency = is_null( $payload->currency ) ? null : (string)$payload->currency;
$this->AvailableBalance = is_null( $payload->availableBalance ) ? null : (float)$payload->availableBalance;
$this->AccountingBalance = (float)$payload->accountingBalance;
$this->AccountingBalance = is_null( $payload->accountingBalance ) ? null : (float)$payload->accountingBalance;
$this->CreditLine = is_null( $payload->creditLine ) ? null : (float)$payload->creditLine;
}

0 comments on commit d07ec14

Please sign in to comment.