|
@@ 314-324 (lines=11) @@
|
| 311 |
|
* @param string $end [Format - DD/MM/YYYY] |
| 312 |
|
* @return object |
| 313 |
|
*/ |
| 314 |
|
public function getInvoiceHistory($period, $start = null, $end = null){ |
| 315 |
|
if(!$period){ |
| 316 |
|
throw new RequiredValueMissing("Error Processing Request - period Missing"); |
| 317 |
|
} |
| 318 |
|
|
| 319 |
|
check($period, $start, $end); |
| 320 |
|
|
| 321 |
|
$url = "/invoices/history"; |
| 322 |
|
|
| 323 |
|
return $this->sendRequest('post', $url, ['form_params' => $post_data]); |
| 324 |
|
} |
| 325 |
|
|
| 326 |
|
|
| 327 |
|
|
|
@@ 409-420 (lines=12) @@
|
| 406 |
|
* @param string $end [Format - DD/MM/YYYY] |
| 407 |
|
* @return object |
| 408 |
|
*/ |
| 409 |
|
public function getTransferHistory($period, $start = null, $end = null){ |
| 410 |
|
if(!$period){ |
| 411 |
|
throw new RequiredValueMissing("Error Processing Request - period Missing"); |
| 412 |
|
} |
| 413 |
|
|
| 414 |
|
// validate period |
| 415 |
|
check($period, $start, $end); |
| 416 |
|
|
| 417 |
|
$url = "/transfers/history"; |
| 418 |
|
|
| 419 |
|
return $this->sendRequest('post', $url, ['form_params' => $post_data]); |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
|
| 423 |
|
|
|
@@ 515-526 (lines=12) @@
|
| 512 |
|
* @param string $end [Format - DD/MM/YYYY || Optional if $period !== 'custom'] |
| 513 |
|
* @return object |
| 514 |
|
*/ |
| 515 |
|
public function getPaymentHistory(string $period, string $start, string $end){ |
| 516 |
|
if(!$period){ |
| 517 |
|
throw new RequiredValueMissing("Error Processing Request - period Missing"); |
| 518 |
|
} |
| 519 |
|
|
| 520 |
|
// validate period |
| 521 |
|
check($period, $start, $end); |
| 522 |
|
|
| 523 |
|
$url = "/payments/history"; |
| 524 |
|
|
| 525 |
|
return $this->sendRequest('post', $url, ['form_params' => $post_data]); |
| 526 |
|
} |
| 527 |
|
|
| 528 |
|
|
| 529 |
|
|