diff --git a/src/DTOs/Recipient.php b/src/DTOs/Recipient.php index bade302..6f874e0 100644 --- a/src/DTOs/Recipient.php +++ b/src/DTOs/Recipient.php @@ -3,6 +3,7 @@ namespace Morningtrain\Economic\DTOs; use Morningtrain\Economic\Abstracts\Resource; +use Morningtrain\Economic\Enums\NemHandelType; use Morningtrain\Economic\Resources\VatZone; class Recipient extends Resource @@ -25,6 +26,8 @@ class Recipient extends Resource public ?Attention $attention = null; + public ?NemHandelType $nemHandelType = null; + public static function new( string $name, VatZone $vatZone, @@ -35,6 +38,7 @@ public static function new( ?string $ean = null, ?string $publicEntryNumber = null, ?Attention $attention = null, + ?NemHandelType $nemHandelType = null, ): static { return new static([ 'name' => $name, @@ -46,6 +50,7 @@ public static function new( 'ean' => $ean, 'publicEntryNumber' => $publicEntryNumber, 'attention' => $attention, + 'nemHandelType' => $nemHandelType, ]); } } diff --git a/src/Enums/NemHandelType.php b/src/Enums/NemHandelType.php new file mode 100644 index 0000000..0cf5d11 --- /dev/null +++ b/src/Enums/NemHandelType.php @@ -0,0 +1,10 @@ +