InvoicesSearch.php 721 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Srmklive\PayPal\Tests\Mocks\Requests;
  3. use GuzzleHttp\Utils;
  4. trait InvoicesSearch
  5. {
  6. /**
  7. * @return array
  8. */
  9. private function invoiceSearchParams(): array
  10. {
  11. return Utils::jsonDecode('{
  12. "total_amount_range": {
  13. "lower_amount": {
  14. "currency_code": "USD",
  15. "value": "20.00"
  16. },
  17. "upper_amount": {
  18. "currency_code": "USD",
  19. "value": "50.00"
  20. }
  21. },
  22. "invoice_date_range": {
  23. "start": "2018-06-01",
  24. "end": "2018-06-21"
  25. }
  26. }', true);
  27. }
  28. }