DisputesActions.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace Srmklive\PayPal\Tests\Mocks\Responses;
  3. use GuzzleHttp\Utils;
  4. trait DisputesActions
  5. {
  6. /**
  7. * @return array
  8. */
  9. private function mockAcceptDisputesClaimResponse(): array
  10. {
  11. return Utils::jsonDecode('{
  12. "links": [
  13. {
  14. "rel": "self",
  15. "method": "GET",
  16. "href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-D-27803"
  17. }
  18. ]
  19. }', true);
  20. }
  21. /**
  22. * @return array
  23. */
  24. private function mockAcceptDisputesOfferResolutionResponse(): array
  25. {
  26. return Utils::jsonDecode('{
  27. "links": [
  28. {
  29. "rel": "self",
  30. "method": "GET",
  31. "href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-000-000-651-454"
  32. }
  33. ]
  34. }', true);
  35. }
  36. /**
  37. * @return array
  38. */
  39. private function mockAcknowledgeItemReturnedResponse(): array
  40. {
  41. return Utils::jsonDecode('{
  42. "links": [
  43. {
  44. "rel": "self",
  45. "method": "GET",
  46. "href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-000-000-651-454"
  47. }
  48. ]
  49. }', true);
  50. }
  51. }