<?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);
}
}
Kueue Pay API responses include standard HTTP status codes to indicate the success or failure of a request. Successful responses will have a status code of 200 OK, while various error conditions will be represented by different status codes along with error messages in the response body.