src/Genesis/API/Request/WPF/Create.php
public function addTransactionType($name, $parameters = [])
    {
        $this->verifyTransactionType($name, $parameters);

        $structure = [
            'transaction_type' => [
                '@attributes' => [
                    'name' => $name
                ],
                $parameters
            ]
        ];

        array_push($this->transaction_types, $structure);

        return $this;
    }
public function addTransactionType($name, $parameters = [])
    {
        $this->verifyTransactionType($name, $parameters);

        $structure = [
            'transaction_type' => [
                '@attributes' => [
                    'name' => $name
                ],
                $parameters
            ]
        ];

        array_push($this->transaction_types, $structure);

        return $this;
    }
public function addTransactionType ( $ name , $ parameters = [ ] ) { $ this -> verifyTransactionType ( $ name , $ parameters ) ; $ structure = [ 'transaction_type' => [ '@attributes' => [ 'name' => $ name ] , $ parameters ] ] ; array_push ( $ this -> transaction_types , $ structure ) ; return $ this ; }
Add transaction type to the list of available types

@param string $name

@param array  $parameters

@return $this
Add transaction type to the list of available types