lms/vendor/srmklive/paypal/tests/Mocks/Requests/InvoicesSearch.php
2025-12-15 12:26:23 +01:00

32 lines
721 B
PHP

<?php
namespace Srmklive\PayPal\Tests\Mocks\Requests;
use GuzzleHttp\Utils;
trait InvoicesSearch
{
/**
* @return array
*/
private function invoiceSearchParams(): array
{
return Utils::jsonDecode('{
"total_amount_range": {
"lower_amount": {
"currency_code": "USD",
"value": "20.00"
},
"upper_amount": {
"currency_code": "USD",
"value": "50.00"
}
},
"invoice_date_range": {
"start": "2018-06-01",
"end": "2018-06-21"
}
}', true);
}
}