public function verify($accountId, $file, $purpose)
    {
        $upload = (new FileUploads($this->config))->create(
            $file, $purpose, [ 'Stripe-Account' => $accountId ]
        );

        $this->update($accountId, [
            'legal_entity' => [
                'verification' => [
                    'document' => $upload['id'],
                ],
            ],
        ]);

        return $this->_get('accounts/'.$accountId);
    }
public function verify($accountId, $file, $purpose)
    {
        $upload = (new FileUploads($this->config))->create(
            $file, $purpose, [ 'Stripe-Account' => $accountId ]
        );

        $this->update($accountId, [
            'legal_entity' => [
                'verification' => [
                    'document' => $upload['id'],
                ],
            ],
        ]);

        return $this->_get('accounts/'.$accountId);
    }
public function verify ( $ accountId , $ file , $ purpose ) { $ upload = ( new FileUploads ( $ this -> config ) ) -> create ( $ file , $ purpose , [ 'Stripe-Account' => $ accountId ] ) ; $ this -> update ( $ accountId , [ 'legal_entity' => [ 'verification' => [ 'document' => $ upload [ 'id' ] , ] , ] , ] ) ; return $ this -> _get ( 'accounts/' . $ accountId ) ; }
Updates an existing account.

@param  string  $accountId
@param  string  $file
@param  array  $parameters
@return array
Updates an existing account .