Paranoia\Payment\Adapter\Gvp::isAmountRequired PHP Method

isAmountRequired() private method

returns boolean true, when amount field is required for request transaction type.
private isAmountRequired ( string $transactionType ) : boolean
$transactionType string
return boolean
    private function isAmountRequired($transactionType)
    {
        return in_array($transactionType, array(self::TRANSACTION_TYPE_SALE, self::TRANSACTION_TYPE_PREAUTHORIZATION, self::TRANSACTION_TYPE_POSTAUTHORIZATION));
    }