ReferencedPayouts.php 734 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Srmklive\PayPal\Tests\Mocks\Requests;
  3. use GuzzleHttp\Utils;
  4. trait ReferencedPayouts
  5. {
  6. /**
  7. * @return array
  8. */
  9. private function mockCreateReferencedBatchPayoutParams(): array
  10. {
  11. return Utils::jsonDecode('{
  12. "referenced_payouts": [
  13. {
  14. "reference_id": "2KP03934U4415543C",
  15. "reference_type": "TRANSACTION_ID"
  16. },
  17. {
  18. "reference_id": "8TA4226978212399L",
  19. "reference_type": "TRANSACTION_ID"
  20. }
  21. ]
  22. }', true);
  23. }
  24. /**
  25. * @return array
  26. */
  27. private function mockCreateReferencedBatchPayoutItemParams(): array
  28. {
  29. return Utils::jsonDecode('{
  30. "reference_id": "CAPTURETXNID",
  31. "reference_type": "TRANSACTION_ID"
  32. }', true);
  33. }
  34. }