DisputesActions.php 781 B

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