Skip to content

Commit

Permalink
Versione 1.0.2 (#5)
Browse files Browse the repository at this point in the history
* Support to PHP 8.3 + Documentation

* CS Fix + Documentation Fix

* Update csfix script name to cs-fix

* Fix

* Typo Fix on "IstitutoFinanziario" + ID Struct validation
  • Loading branch information
AP - Axio Studio authored Jan 26, 2024
1 parent 6446c68 commit 57af02a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public ?string $DataScadenzaPagamento;
public ?string $DataRiferimentoTerminiPagamento;
public ?string $GiorniTerminiPagamento;
public ?string $Beneficiario;
public ?string $IstituroFinanziario;
public ?string $IstitutoFinanziario;
public ?string $IBAN;
public ?string $ABI;
public ?string $CAB;
Expand Down Expand Up @@ -155,7 +155,7 @@ public ?string $DataScadenzaPagamento;
public ?string $DataRiferimentoTerminiPagamento;
public ?string $GiorniTerminiPagamento;
public ?string $Beneficiario;
public ?string $IstituroFinanziario;
public ?string $IstitutoFinanziario;
public ?string $IBAN;
public ?string $ABI;
public ?string $CAB;
Expand Down
4 changes: 2 additions & 2 deletions src/Models/DettaglioPagamento.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DettaglioPagamento extends Model
public ?string $DataRiferimentoTerminiPagamento;
public ?string $GiorniTerminiPagamento;
public ?string $Beneficiario;
public ?string $IstituroFinanziario;
public ?string $IstitutoFinanziario;
public ?string $IBAN;
public ?string $ABI;
public ?string $CAB;
Expand Down Expand Up @@ -45,7 +45,7 @@ public function __construct(...$args)
}

if (isset($args[5]) && $args[5]) {
$this->IstituroFinanziario = $args[5];
$this->IstitutoFinanziario = $args[5];
}

if (isset($args[6]) && $args[6]) {
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Id.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class Id extends Model
{
public string $IdCodice;
public ?string $IdCodice;
public ?string $IdPaese;

public function __construct(...$args)
Expand Down
4 changes: 2 additions & 2 deletions tests/DettaglioPagamentoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testConstructorWithIBAN(): void
$this->assertEquals($dataRiferimentoTerminiPagamento, $dettaglioPagamento->DataRiferimentoTerminiPagamento);
$this->assertEquals($giorniTerminiPagamento, $dettaglioPagamento->GiorniTerminiPagamento);
$this->assertEquals($beneficiario, $dettaglioPagamento->Beneficiario);
$this->assertEquals($istitutoFinanziario, $dettaglioPagamento->IstituroFinanziario);
$this->assertEquals($istitutoFinanziario, $dettaglioPagamento->IstitutoFinanziario);
$this->assertEquals($iban, $dettaglioPagamento->IBAN);
$this->assertEquals($abi, $dettaglioPagamento->ABI);
$this->assertEquals($cab, $dettaglioPagamento->CAB);
Expand Down Expand Up @@ -80,7 +80,7 @@ public function testConstructorWithoutIBAN(): void
$this->assertEquals($dataRiferimentoTerminiPagamento, $dettaglioPagamento->DataRiferimentoTerminiPagamento);
$this->assertEquals($giorniTerminiPagamento, $dettaglioPagamento->GiorniTerminiPagamento);
$this->assertEquals($beneficiario, $dettaglioPagamento->Beneficiario);
$this->assertEquals($istitutoFinanziario, $dettaglioPagamento->IstituroFinanziario);
$this->assertEquals($istitutoFinanziario, $dettaglioPagamento->IstitutoFinanziario);
$this->assertEquals($modalitaPagamento, $dettaglioPagamento->ModalitaPagamento);
}

Expand Down

0 comments on commit 57af02a

Please sign in to comment.