<commit_before><?php

namespace Omnipay\Bardo\Message;

use Omnipay\Common\Message\AbstractRequest;
use Omnipay\Common\Exception\InvalidRequestException;

/**
 * Bardo Complete Purchase Request
 */
class CompletePurchaseRequest extends AbstractRequest
{
    public function getData()
    {
		$shopnumber = $this->getParameter('transactionId');
		$username = $this->getParameter('username');
		$password = $this->getParameter('password');

		if (is_null($username) or is_null($password)) {
			throw new \Exception("Missing username or password", 1);
		}

		$data = $this->httpClient->post('https://pay.bardo-gateway.com/trm/TransactionHandler.ashx')
		->setPostField('UserName', $username)
		->setPostField('Password', $password)
		->setPostField('SHOP_NUMBER', $shopnumber)
		->send();

		return $data;

    }

    public function sendData($data)
    {
        return $this->response = new CompletePurchaseResponse($this, $data->json());
    }

    public function getEndpoint()
    {
        return $this->endpoint;
    }

	public function setUsername($value)
	{
		$this->setParameter('username', $value);
	}

	public function getUsername()
	{
		$this->getParameter('username');
	}

	public function setPassword($value)
	{
		$this->setParameter('password', $value);
	}

	public function getPassword()
	{
		$this->getParameter('password');
	}
}<commit_msg>Added parameter ClientId to query string<commit_after><?php

namespace Omnipay\Bardo\Message;

use Omnipay\Common\Message\AbstractRequest;
use Omnipay\Common\Exception\InvalidRequestException;

/**
 * Bardo Complete Purchase Request
 */
class CompletePurchaseRequest extends AbstractRequest
{
    public function getData()
    {
		$shopnumber = $this->getParameter('transactionId');
		$username = $this->getParameter('username');
		$password = $this->getParameter('password');
		$clientid = $this->getParameter('clientid');

		if (is_null($username) or is_null($password)) {
			throw new \Exception("Missing username or password", 1);
		}

		$data = $this->httpClient->post('https://pay.bardo-gateway.com/trm/TransactionHandler.ashx')
		->setPostField('UserName', $username)
		->setPostField('Password', $password)
		->setPostField('SHOP_NUMBER', $shopnumber)
		->setPostField('ClientId', $clientid)
		->send();

		return $data;

    }

    public function sendData($data)
    {
        return $this->response = new CompletePurchaseResponse($this, $data->json());
    }

    public function getEndpoint()
    {
        return $this->endpoint;
    }

	public function setUsername($value)
	{
		$this->setParameter('username', $value);
	}

	public function getUsername()
	{
		$this->getParameter('username');
	}

	public function setPassword($value)
	{
		$this->setParameter('password', $value);
	}

	public function getPassword()
	{
		$this->getParameter('password');
	}
	public function setClientId($value)
	{
		$this->setParameter('clientid', $value);
	}
	public function getClientId()
	{
		$this->getParameter('clientid');
	}
}
{'fraction_non_alphanumeric': 0.15382037533512063, 'fraction_numerical': 0.0006702412868632708, 'mean_word_length': 4.527777777777778, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3419114', 'n_tokens_mistral': 973, 'n_tokens_neox': 913, 'n_words': 172}