Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function searchInvoices() |
||
21 | { |
||
22 | if (collect($this->invoice_search_filters)->count() < 1) { |
||
|
|||
23 | $this->invoice_search_filters = [ |
||
24 | 'currency_code' => $this->getCurrency(), |
||
25 | ]; |
||
26 | } |
||
27 | |||
28 | $this->apiEndPoint = "v2/invoicing/search-invoices?page={$this->current_page}&page_size={$this->page_size}&total_required={$this->show_totals}"; |
||
29 | |||
30 | $this->options['json'] = $this->invoice_search_filters; |
||
31 | |||
32 | $this->verb = 'post'; |
||
33 | |||
34 | return $this->doPayPalRequest(); |
||
35 | } |
||
37 |