Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
676 lars 1
<?php
2
 
3
namespace Srmklive\PayPal\Tests\Mocks\Requests;
4
 
5
use GuzzleHttp\Utils;
6
 
7
trait DisputesActions
8
{
9
    /**
10
     * @return array
11
     */
12
    protected function acceptDisputeClaimParams(): array
13
    {
14
        return Utils::jsonDecode('{
15
  "note": "Full refund to the customer.",
16
  "accept_claim_type": "REFUND"
17
}', true);
18
    }
19
 
20
    /**
21
     * @return array
22
     */
23
    protected function acceptDisputeResolutionParams(): array
24
    {
25
        return Utils::jsonDecode('{
26
  "note": "I am ok with the refund offered."
27
}', true);
28
    }
29
 
30
    /**
31
     * @return array
32
     */
33
    protected function acknowledgeItemReturnedParams(): array
34
    {
35
        return Utils::jsonDecode('{
36
  "note": "I have received the item back.",
37
  "acknowledgement_type": "ITEM_RECEIVED"
38
}', true);
39
    }
40
}