57 lines
1.0 KiB
PHP
57 lines
1.0 KiB
PHP
<?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);
|
|
}
|
|
}
|