Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct ApiClient return value doc comments #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public function __construct(array $options) {

/**
* @param array $params
* @return Response
* @return Http\Response
*/
public function createOrder(array $params) {
return $this->httpClient->post($this->getUrl('merchant/orders'), $params);
}

/**
* @param $reference
* @return Response
* @return Http\Response
* @internal param array $params
*/
public function getTransactionDetails($reference) {
Expand All @@ -65,23 +65,23 @@ public function getTransactionDetails($reference) {

/**
* @param array $params
* @return Response
* @return Http\Response
*/
public function void(array $params) {
return $this->httpClient->post($this->getUrl('merchant/transactions/void'), $params);
}

/**
* @param array $params
* @return Response
* @return Http\Response
*/
public function capture(array $params) {
return $this->httpClient->post($this->getUrl('merchant/transactions/capture'), $params);
}

/**
* @param array $params
* @return Response
* @return Http\Response
*/
public function credit(array $params) {
return $this->httpClient->post($this->getUrl('merchant/transactions/credit'), $params);
Expand All @@ -90,7 +90,7 @@ public function credit(array $params) {
/**
* Authorize a transaction from an existing customer (i.e. recharge).
* @param array $params
* @return Response
* @return Http\Response
*/
public function authorize(array $params) {
return $this->httpClient->post($this->getUrl('merchant/transactions/authorize'), $params);
Expand All @@ -99,7 +99,7 @@ public function authorize(array $params) {
/**
* Manually review a transaction that is in the reversibly_rejected state.
* @param array $params
* @return Response
* @return Http\Response
*/
public function review(array $params) {
return $this->httpClient->post($this->getUrl('merchant/transactions/review'), $params);
Expand All @@ -108,7 +108,7 @@ public function review(array $params) {
/**
* Send shipment tracking details
* @param array $params
* @return Response
* @return Http\Response
*/
public function trackShipment(array $params) {
return $this->httpClient->post($this->getUrl('merchant/track_shipment'), $params);
Expand Down