Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Refund Class Reference

Inheritance diagram for Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Refund:

Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Abstract Varien_Object

List of all members.

Public Member Functions

 getTransactionId ()

Protected Member Functions

 parse ($responseBody)


Detailed Description

Definition at line 34 of file Refund.php.


Member Function Documentation

getTransactionId (  ) 

Return response TransactionId

Returns:
string

Definition at line 63 of file Refund.php.

00064     {
00065         return $this->getData('TransactionId');        
00066     }

parse ( responseBody  )  [protected]

rewrited for Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Abstract

Reimplemented from Mage_AmazonPayments_Model_Api_Asp_Fps_Response_Abstract.

Definition at line 39 of file Refund.php.

00040     {
00041         if ($responseBody->getName() != 'RefundResponse') {
00042             return false;
00043         }
00044                 
00045         $transactionId = (string)$responseBody->RefundResult->TransactionId;
00046         $transactionStatus = (string)$responseBody->RefundResult->TransactionStatus;
00047         
00048         if($transactionId == '' || $transactionStatus == '') {
00049            return false;   
00050         }
00051         
00052         $this->setData('TransactionId', $transactionId);
00053         $this->setData('Status', $transactionStatus);
00054         
00055         return parent::parse($responseBody);
00056     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:31 2009 for Magento by  doxygen 1.5.8