@@ 320-330 (lines=11) @@ | ||
317 | * @param string $end [Format - DD/MM/YYYY] |
|
318 | * @return object |
|
319 | */ |
|
320 | public function getInvoiceHistory($period, $start = null, $end = null){ |
|
321 | if(!$period){ |
|
322 | throw new RequiredValueMissing("Error Processing Request - period Missing"); |
|
323 | } |
|
324 | ||
325 | $post_data = checkHistory($period, $start, $end); |
|
326 | ||
327 | $url = "/invoices/history"; |
|
328 | ||
329 | return $this->sendRequest('post', $url, ['form_params' => $post_data]); |
|
330 | } |
|
331 | ||
332 | ||
333 | ||
@@ 416-427 (lines=12) @@ | ||
413 | * @param string $end [Format - DD/MM/YYYY] |
|
414 | * @return object |
|
415 | */ |
|
416 | public function getTransferHistory($period, $start = null, $end = null){ |
|
417 | if(!$period){ |
|
418 | throw new RequiredValueMissing("Error Processing Request - period Missing"); |
|
419 | } |
|
420 | ||
421 | // validate period |
|
422 | $post_data = checkHistory($period, $start, $end); |
|
423 | ||
424 | $url = "/transfers/history"; |
|
425 | ||
426 | return $this->sendRequest('post', $url, ['form_params' => $post_data]); |
|
427 | } |
|
428 | ||
429 | ||
430 | ||
@@ 524-535 (lines=12) @@ | ||
521 | * @param string $end [Format - DD/MM/YYYY || Optional if $period !== 'custom'] |
|
522 | * @return object |
|
523 | */ |
|
524 | public function getPaymentHistory(string $period, string $start, string $end){ |
|
525 | if(!$period){ |
|
526 | throw new RequiredValueMissing("Error Processing Request - period Missing"); |
|
527 | } |
|
528 | ||
529 | // validate period |
|
530 | $post_data = checkHistory($period, $start, $end); |
|
531 | ||
532 | $url = "/payments/history"; |
|
533 | ||
534 | return $this->sendRequest('post', $url, ['form_params' => $post_data]); |
|
535 | } |
|
536 | ||
537 | ||
538 |