ResponseInterface.php 685 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace AmazonPay;
  3. /* Interface for ResponseParser.php */
  4. interface ResponseInterface
  5. {
  6. /* Returns the XML portion of the response */
  7. public function toXml();
  8. /* toJson - converts XML into Json
  9. * @param $response [XML]
  10. */
  11. public function toJson();
  12. /* toArray - converts XML into associative array
  13. * @param $this->_response [XML]
  14. */
  15. public function toArray();
  16. /* Get the status of the BillingAgreement */
  17. public function getBillingAgreementDetailsStatus($response);
  18. /* Get the status of the OrderReference */
  19. public function getOrderReferenceDetailsStatus($response);
  20. }