src/Genesis/API/Request/Financial/Alternatives/Klarna/Item.php
protected function verifyUnitPriceField($value)
    {
        $this->verifyRequiredField('unit_price', $value);

        if (in_array($this->item_type, [self::ITEM_TYPE_DISCOUNT, self::ITEM_TYPE_STORE_CREDIT])) {
            $this->verifyNegativeField('unit_price', $value);
            return;
        }
        
        $this->verifyNonNegativeField('unit_price', $value);
    }
protected function verifyUnitPriceField($value)
    {
        $this->verifyRequiredField('unit_price', $value);

        if (in_array($this->item_type, [self::ITEM_TYPE_DISCOUNT, self::ITEM_TYPE_STORE_CREDIT])) {
            $this->verifyNegativeField('unit_price', $value);
            return;
        }
        
        $this->verifyNonNegativeField('unit_price', $value);
    }
protected function verifyUnitPriceField ( $ value ) { $ this -> verifyRequiredField ( 'unit_price' , $ value ) ; if ( in_array ( $ this -> item_type , [ self :: ITEM_TYPE_DISCOUNT , self :: ITEM_TYPE_STORE_CREDIT ] ) ) { $ this -> verifyNegativeField ( 'unit_price' , $ value ) ; return ; } $ this -> verifyNonNegativeField ( 'unit_price' , $ value ) ; }
Verify unit_price filed

@param $value
@throws \Genesis\Exceptions\ErrorParameter
Verify unit_price filed