|
@@ 384-395 (lines=12) @@
|
| 381 |
|
} |
| 382 |
|
|
| 383 |
|
|
| 384 |
|
public function checkBalance() |
| 385 |
|
{ |
| 386 |
|
$api = $this->getApi($this->config->apiOperationBalance); |
| 387 |
|
$this->prepareApiForBalanceCheck($api); |
| 388 |
|
$this->logApiCall('balance', 'request'); |
| 389 |
|
$this->logStoredValuePayload($api, true, 'Sending StoredValueBalanceRequest.'); |
| 390 |
|
$this->sendRequest($api); |
| 391 |
|
$this->logApiCall('balance', 'response'); |
| 392 |
|
$this->logStoredValuePayload($api, false, 'Received StoredValueBalanceReply response.'); |
| 393 |
|
$this->handleBalanceResponse($api); |
| 394 |
|
return $this; |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
public function redeem() |
| 398 |
|
{ |
|
@@ 397-408 (lines=12) @@
|
| 394 |
|
return $this; |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
public function redeem() |
| 398 |
|
{ |
| 399 |
|
$api = $this->getApi($this->config->apiOperationRedeem); |
| 400 |
|
$this->prepareApiForRedeem($api); |
| 401 |
|
$this->logApiCall('redeem', 'request'); |
| 402 |
|
$this->logStoredValuePayload($api, true, 'Sending StoredValueRedeemRequest.'); |
| 403 |
|
$this->sendRequest($api); |
| 404 |
|
$this->logApiCall('redeem', 'response'); |
| 405 |
|
$this->logStoredValuePayload($api, false, 'Received StoredValueRedeemReply response.'); |
| 406 |
|
$this->handleRedeemResponse($api); |
| 407 |
|
return $this; |
| 408 |
|
} |
| 409 |
|
|
| 410 |
|
public function void() |
| 411 |
|
{ |
|
@@ 410-421 (lines=12) @@
|
| 407 |
|
return $this; |
| 408 |
|
} |
| 409 |
|
|
| 410 |
|
public function void() |
| 411 |
|
{ |
| 412 |
|
$api = $this->getApi($this->config->apiOperationVoid); |
| 413 |
|
$this->prepareApiForVoid($api); |
| 414 |
|
$this->logApiCall('void', 'request'); |
| 415 |
|
$this->logStoredValuePayload($api, true, 'Sending StoredValueRedeemVoidRequest.'); |
| 416 |
|
$this->sendRequest($api); |
| 417 |
|
$this->logApiCall('void', 'response'); |
| 418 |
|
$this->logStoredValuePayload($api, false, 'Received StoredValueRedeemVoidReply response.'); |
| 419 |
|
$this->handleVoidResponse($api); |
| 420 |
|
return $this; |
| 421 |
|
} |
| 422 |
|
|
| 423 |
|
/** |
| 424 |
|
* Get a new SDK Api instance for an API call. |