Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Refund Class Reference

Inheritance diagram for Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Refund:

Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Abstract Varien_Object

List of all members.

Public Member Functions

 isValid ()
 setTransactionId ($transactionId)
 setReferenceId ($referenceId)
 setDescription ($description)
 setAmount ($amount)


Detailed Description

Definition at line 34 of file Refund.php.


Member Function Documentation

isValid (  ) 

rewrited for Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Abstract

Reimplemented from Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Abstract.

Definition at line 39 of file Refund.php.

00040     {
00041         if (!$this->getData('TransactionId') ||
00042             !$this->getData('CallerReference')) {
00043             return false;
00044         }
00045         return parent::isValid();
00046     }    

setAmount ( amount  ) 

Set request amount

Parameters:
Mage_AmazonPayments_Model_Api_Asp_Amount $amount
Returns:
Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Refund

Definition at line 87 of file Refund.php.

00088     {
00089         return $this->setData('RefundAmount.Value', $amount->getValue())
00090                     ->setData('RefundAmount.CurrencyCode', $amount->getCurrencyCode());
00091     }

setDescription ( description  ) 

Set request description

Parameters:
string $description
Returns:
Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Refund

Definition at line 76 of file Refund.php.

00077     {
00078         return $this->setData('CallerDescription', $description);
00079     }

setReferenceId ( referenceId  ) 

Set request referenceId

Parameters:
string $referenceId
Returns:
Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Refund

Definition at line 65 of file Refund.php.

00066     {
00067         return $this->setData('CallerReference', $referenceId);
00068     }

setTransactionId ( transactionId  ) 

Set request transactionId

Parameters:
string $transactionId
Returns:
Mage_AmazonPayments_Model_Api_Asp_Fps_Request_Refund

Definition at line 54 of file Refund.php.

00055     {
00056         return $this->setData('TransactionId', $transactionId);
00057     }


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