Skip to content

Commit

Permalink
Update AbstractRequest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zek committed Oct 28, 2018
1 parent d929b95 commit 141b516
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,28 @@ public function setCode($value)
{
return $this->setParameter('code', $value);
}

/**
* Get the request description.
*
* @return string
*/
public function getPricingType()
{
return $this->getParameter('pricing_type');
}

/**
* Sets the request description.
*
* @param string $value
* @return $this
*/
public function setPricingType($value)
{
return $this->setParameter('pricing_type', $value);
}

public function sendRequest($method, $action, $data = null)
{
$url = $this->getEndpoint() . $action;
Expand Down Expand Up @@ -79,4 +100,4 @@ protected function getEndpoint()
{
return $this->liveEndpoint;
}
}
}

0 comments on commit 141b516

Please sign in to comment.