Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Paypal_Adminhtml_Paypal_ReportsController
  • Mage_Paypal_Block_Adminhtml_Settlement_Details
  • Mage_Paypal_Block_Adminhtml_Settlement_Details_Form
  • Mage_Paypal_Block_Adminhtml_Settlement_Report
  • Mage_Paypal_Block_Adminhtml_Settlement_Report_Grid
  • Mage_Paypal_Block_Adminhtml_System_Config_ApiWizard
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Country
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Hidden
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Expanded
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Group
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Hint
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Location
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Payment
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Store
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Advanced
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Info
  • Mage_Paypal_Block_Express_Form
  • Mage_Paypal_Block_Express_Review
  • Mage_Paypal_Block_Express_Review_Billing
  • Mage_Paypal_Block_Express_Review_Details
  • Mage_Paypal_Block_Express_Review_Shipping
  • Mage_Paypal_Block_Express_Shortcut
  • Mage_Paypal_Block_Hosted_Pro_Form
  • Mage_Paypal_Block_Hosted_Pro_Iframe
  • Mage_Paypal_Block_Hosted_Pro_Info
  • Mage_Paypal_Block_Iframe
  • Mage_Paypal_Block_Logo
  • Mage_Paypal_Block_Payflow_Advanced_Form
  • Mage_Paypal_Block_Payflow_Advanced_Iframe
  • Mage_Paypal_Block_Payflow_Advanced_Info
  • Mage_Paypal_Block_Payflow_Link_Form
  • Mage_Paypal_Block_Payflow_Link_Iframe
  • Mage_Paypal_Block_Payflow_Link_Info
  • Mage_Paypal_Block_Payment_Info
  • Mage_Paypal_Block_Standard_Form
  • Mage_Paypal_Block_Standard_Redirect
  • Mage_Paypal_Controller_Express_Abstract
  • Mage_Paypal_ExpressController
  • Mage_Paypal_Helper_Data
  • Mage_Paypal_Helper_Hss
  • Mage_Paypal_HostedproController
  • Mage_Paypal_IpnController
  • Mage_Paypal_Model_Api_Abstract
  • Mage_Paypal_Model_Api_Nvp
  • Mage_Paypal_Model_Api_Standard
  • Mage_Paypal_Model_Cart
  • Mage_Paypal_Model_Cert
  • Mage_Paypal_Model_Config
  • Mage_Paypal_Model_Direct
  • Mage_Paypal_Model_Express
  • Mage_Paypal_Model_Express_Checkout
  • Mage_Paypal_Model_Hostedpro
  • Mage_Paypal_Model_Hostedpro_Request
  • Mage_Paypal_Model_Info
  • Mage_Paypal_Model_Ipn
  • Mage_Paypal_Model_Method_Agreement
  • Mage_Paypal_Model_Mysql4_Cert
  • Mage_Paypal_Model_Mysql4_Report_Settlement
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Mysql4_Setup
  • Mage_Paypal_Model_Observer
  • Mage_Paypal_Model_Payflow_Request
  • Mage_Paypal_Model_Payflowadvanced
  • Mage_Paypal_Model_Payflowlink
  • Mage_Paypal_Model_Payflowpro
  • Mage_Paypal_Model_Payment_Transaction
  • Mage_Paypal_Model_Pro
  • Mage_Paypal_Model_Report_Settlement
  • Mage_Paypal_Model_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Cert
  • Mage_Paypal_Model_Resource_Report_Settlement
  • Mage_Paypal_Model_Resource_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Resource_Setup
  • Mage_Paypal_Model_Session
  • Mage_Paypal_Model_Standard
  • Mage_Paypal_Model_System_Config_Backend_Cert
  • Mage_Paypal_Model_System_Config_Backend_Cron
  • Mage_Paypal_Model_System_Config_Backend_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_BuyerCountry
  • Mage_Paypal_Model_System_Config_Source_FetchingSchedule
  • Mage_Paypal_Model_System_Config_Source_Logo
  • Mage_Paypal_Model_System_Config_Source_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_PaymentActions
  • Mage_Paypal_Model_System_Config_Source_PaymentActions_Express
  • Mage_Paypal_Model_System_Config_Source_RequireBillingAddress
  • Mage_Paypal_Model_System_Config_Source_UrlMethod
  • Mage_Paypal_PayflowadvancedController
  • Mage_Paypal_PayflowController
  • Mage_Paypal_StandardController

Exceptions

  • Mage_Paypal_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Paypal_Model_Report_Settlement

Enter description here ...

Varien_Object
Extended by Mage_Core_Model_Abstract
Extended by Mage_Paypal_Model_Report_Settlement
Package: Mage\Paypal
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Paypal/Model/Report/Settlement.php
Methods summary
protected
# _construct( )

Initialize resource model

Initialize resource model

protected Mage_Core_Model_Abstract
# _beforeSave( )

Stop saving process if file with same report date, account ID and last modified date was already ferched

Stop saving process if file with same report date, account ID and last modified date was already ferched

Returns

Mage_Core_Model_Abstract

Overrides

Mage_Core_Model_Abstract::_beforeSave()
public integer
# fetchAndSave( array $config )

Goes to specified host/path and fetches reports from there. Save reports to database.

Goes to specified host/path and fetches reports from there. Save reports to database.

Parameters

$config
array
$config SFTP credentials

Returns

integer
Number of report rows that were fetched and saved successfully
public Mage_Paypal_Model_Report_Settlement
# parseCsv( string $localCsv, string $format = 'new' )

Parse CSV file and collect report rows

Parse CSV file and collect report rows

Parameters

$localCsv
string
$localCsv Path to CSV file
$format
string
$format CSV format(column names)

Returns

Mage_Paypal_Model_Report_Settlement
public Mage_Paypal_Model_Report_Settlement
# loadByAccountAndDate( )

Load report by unique key (accoutn + report date)

Load report by unique key (accoutn + report date)

Returns

Mage_Paypal_Model_Report_Settlement
public array
# getRows( )

Return collected rows for further processing.

Return collected rows for further processing.

Returns

array
public string
# getFieldLabel( string $field )

Return name for row column

Return name for row column

Parameters

$field
string
$field Field name in row model

Returns

string
public array
# getSftpCredentials( boolean $automaticMode = false )

Iterate through website configurations and collect all SFTP configurations Filter config values if necessary

Iterate through website configurations and collect all SFTP configurations Filter config values if necessary

Parameters

$automaticMode
boolean
$automaticMode Whether to skip settings with disabled Automatic Fetching or not

Returns

array
protected string
# _fileNameToDate( string $filename )

Converts a filename to date of report.

Converts a filename to date of report.

Parameters

$filename
string
$filename

Returns

string
protected array
# _filterReportsList( array $list )

Filter SFTP file list by filename format

Filter SFTP file list by filename format

Parameters

$list
array
$list List of files as per $connection->rawls()

Returns

array
Trimmed down list of files
Methods inherited from Mage_Core_Model_Abstract
_afterDelete(), _afterDeleteCommit(), _afterLoad(), _afterSave(), _beforeDelete(), _beforeLoad(), _clearData(), _clearReferences(), _getEventData(), _getResource(), _hasModelChanged(), _init(), _protectFromNonAdmin(), _setResourceModel(), afterCommitCallback(), afterLoad(), cleanModelCache(), clearInstance(), delete(), getCacheIdTags(), getCacheTags(), getCollection(), getEntityId(), getId(), getIdFieldName(), getResource(), getResourceCollection(), getResourceName(), isObjectNew(), load(), save(), setId()
Constants summary
string REPORTS_HOSTNAME "reports.paypal.com"
#

Default PayPal SFTP host

Default PayPal SFTP host

string SANDBOX_REPORTS_HOSTNAME "reports.sandbox.paypal.com"
#

Default PayPal SFTP host for sandbox mode

Default PayPal SFTP host for sandbox mode

string REPORTS_PATH "/ppreports/outgoing"
#

PayPal SFTP path

PayPal SFTP path

string FILES_IN_CHARSET "UTF-16"
#

Original charset of old report files

Original charset of old report files

string FILES_OUT_CHARSET "UTF-8"
#

Target charset of report files to be parsed

Target charset of report files to be parsed

Properties summary
protected array $_rows array()
#

Reports rows storage

Reports rows storage

protected array $_csvColumns array( 'old' => array( 'section_columns' => array( '' => 0, 'TransactionID' => 1, 'InvoiceID' => 2, 'PayPalReferenceID' => 3, 'PayPalReferenceIDType' => 4, 'TransactionEventCode' => 5, 'TransactionInitiationDate' => 6, 'TransactionCompletionDate' => 7, 'TransactionDebitOrCredit' => 8, 'GrossTransactionAmount' => 9, 'GrossTransactionCurrency' => 10, 'FeeDebitOrCredit' => 11, 'FeeAmount' => 12, 'FeeCurrency' => 13, 'CustomField' => 14, 'ConsumerID' => 15 ), 'rowmap' => array( 'TransactionID' => 'transaction_id', 'InvoiceID' => 'invoice_id', 'PayPalReferenceID' => 'paypal_reference_id', 'PayPalReferenceIDType' => 'paypal_reference_id_type', 'TransactionEventCode' => 'transaction_event_code', 'TransactionInitiationDate' => 'transaction_initiation_date', 'TransactionCompletionDate' => 'transaction_completion_date', 'TransactionDebitOrCredit' => 'transaction_debit_or_credit', 'GrossTransactionAmount' => 'gross_transaction_amount', 'GrossTransactionCurrency' => 'gross_transaction_currency', 'FeeDebitOrCredit' => 'fee_debit_or_credit', 'FeeAmount' => 'fee_amount', 'FeeCurrency' => 'fee_currency', 'CustomField' => 'custom_field', 'ConsumerID' => 'consumer_id' ) ), 'new' => array( 'section_columns' => array( '' => 0, 'Transaction ID' => 1, 'Invoice ID' => 2, 'PayPal Reference ID' => 3, 'PayPal Reference ID Type' => 4, 'Transaction Event Code' => 5, 'Transaction Initiation Date' => 6, 'Transaction Completion Date' => 7, 'Transaction Debit or Credit' => 8, 'Gross Transaction Amount' => 9, 'Gross Transaction Currency' => 10, 'Fee Debit or Credit' => 11, 'Fee Amount' => 12, 'Fee Currency' => 13, 'Custom Field' => 14, 'Consumer ID' => 15, 'Payment Tracking ID' => 16 ), 'rowmap' => array( 'Transaction ID' => 'transaction_id', 'Invoice ID' => 'invoice_id', 'PayPal Reference ID' => 'paypal_reference_id', 'PayPal Reference ID Type' => 'paypal_reference_id_type', 'Transaction Event Code' => 'transaction_event_code', 'Transaction Initiation Date' => 'transaction_initiation_date', 'Transaction Completion Date' => 'transaction_completion_date', 'Transaction Debit or Credit' => 'transaction_debit_or_credit', 'Gross Transaction Amount' => 'gross_transaction_amount', 'Gross Transaction Currency' => 'gross_transaction_currency', 'Fee Debit or Credit' => 'fee_debit_or_credit', 'Fee Amount' => 'fee_amount', 'Fee Currency' => 'fee_currency', 'Custom Field' => 'custom_field', 'Consumer ID' => 'consumer_id', 'Payment Tracking ID' => 'payment_tracking_id' ) ) )
#
Properties inherited from Mage_Core_Model_Abstract
$_cacheTag, $_dataSaveAllowed, $_eventObject, $_eventPrefix, $_isObjectNew, $_resource, $_resourceCollectionName, $_resourceName
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0