Class Mage_Paypal_Model_Report_Settlement_Row

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /Paypal/Model/Report/Settlement/Row.php (line 30)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_Paypal_Model_Report_Settlement_Row
Variable Summary
static array $_eventList
Method Summary
mixed getData ([mixed $key = ''], [mixed $index = null])
string|array getDebitCreditText ([string $code = null])
string|array getReferenceType ([string $code = null])
string getTransactionEvent (string $code)
void _castAmount (string $key, string $creditKey)
void _construct ()
Variables
Methods
getData (line 134)

Invoke casting some amounts

  • access: public
mixed getData ([mixed $key = ''], [mixed $index = null])
  • mixed $key
  • mixed $index
getDebitCreditText (line 112)

Return description of "Debit or Credit" value If no code specified, return full list of codes with their description

  • access: public
string|array getDebitCreditText ([string $code = null])
  • string $code: code
getReferenceType (line 61)

Return description of Reference ID Type If no code specified, return full list of codes with their description

  • access: public
string|array getReferenceType ([string $code = null])
  • string $code: code
getTransactionEvent (line 85)

Get native description for transaction code

  • access: public
string getTransactionEvent (string $code)
  • string $code: code
getTransactionEvents (line 99)

Get full list of codes with their description

  • access: public
&array &getTransactionEvents ()
_castAmount (line 150)

Cast amounts of the specified keys

PayPal settlement reports contain amounts in cents, hence the values need to be divided by 100 Also if the "credit" value is detected, it will be casted to negative amount

  • access: public
void _castAmount (string $key, string $creditKey)
  • string $key
  • string $creditKey
_construct (line 49)

Initialize resource model

  • access: protected
void _construct ()
_generateEventLabels (line 169)

Fill/translate and sort all event codes/labels

  • access: protected
void _generateEventLabels ()

Inherited Methods

Inherited From Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()

Documentation generated on Fri, 11 Feb 2011 17:11:39 +0200 by phpDocumentor 1.4.3