Commit 493a39d8 authored by Tomek Jankowski's avatar Tomek Jankowski

Update Request.php

parent a20191d4
......@@ -14,6 +14,7 @@ use \OUTRAGElib\Payment\STPP\Fragment\Customer;
use \OUTRAGElib\Payment\STPP\Fragment\Merchant;
use \OUTRAGElib\Payment\STPP\Fragment\Operation;
use \OUTRAGElib\Payment\STPP\Fragment\Settlement;
use \OUTRAGElib\Payment\STPP\Fragment\Filter;
use \OUTRAGElib\Payment\STPP\Response;
use \SimpleXMLElement;
......@@ -90,6 +91,22 @@ class Request
}
public function setFilter(Filter $filter)
{
$this->objects["filter"] = $filter;
return $this;
}
public function getFilter()
{
if(!isset($this->objects["filter"]))
$this->objects["filter"] = new Filter();
return $this->objects["filter"];
}
/**
* Sets the merchant object - you can either separately supply an object
* that represents a merchant, or you can use the simulated methods which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment