<?php
namespace Srmklive\PayPal\Tests\Mocks\Responses;
use GuzzleHttp\Utils;
trait DisputesActions
{
/**
* @return array
*/
private function mockAcceptDisputesClaimResponse(): array
{
return Utils::jsonDecode('{
"links": [
{
"rel": "self",
"method": "GET",
"href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-D-27803"
}
]
}', true);
}
/**
* @return array
*/
private function mockAcceptDisputesOfferResolutionResponse(): array
{
return Utils::jsonDecode('{
"links": [
{
"rel": "self",
"method": "GET",
"href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-000-000-651-454"
}
]
}', true);
}
/**
* @return array
*/
private function mockAcknowledgeItemReturnedResponse(): array
{
return Utils::jsonDecode('{
"links": [
{
"rel": "self",
"method": "GET",
"href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-000-000-651-454"
}
]
}', 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.