TransferInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Gateway\Http;
  7. /**
  8. * Interface TransferInterface
  9. * @package Magento\Payment\Gateway\Http
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface TransferInterface
  14. {
  15. /**
  16. * Returns gateway client configuration
  17. *
  18. * @return array
  19. */
  20. public function getClientConfig();
  21. /**
  22. * Returns method used to place request
  23. *
  24. * @return string|int
  25. */
  26. public function getMethod();
  27. /**
  28. * Returns headers
  29. *
  30. * @return array
  31. */
  32. public function getHeaders();
  33. /**
  34. * Whether body should be encoded before place
  35. *
  36. * @return bool
  37. */
  38. public function shouldEncode();
  39. /**
  40. * Returns request body
  41. *
  42. * @return array|string
  43. */
  44. public function getBody();
  45. /**
  46. * Returns URI
  47. *
  48. * @return string
  49. */
  50. public function getUri();
  51. /**
  52. * Returns Auth username
  53. *
  54. * @return string
  55. */
  56. public function getAuthUsername();
  57. /**
  58. * Returns Auth password
  59. *
  60. * @return string
  61. */
  62. public function getAuthPassword();
  63. }