Guillaume Aubert > Business-CyberSource-Report-1.1.7 > Business::CyberSource::Report

Download:
Business-CyberSource-Report-1.1.7.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: v1.1.7   Source   Latest Release: Business-CyberSource-Report-v1.1.8

NAME ^

Business::CyberSource::Report - Factory class for modules that retrieve CyberSource's XML reports.

VERSION ^

Version 1.1.7

SYNOPSIS ^

        use Business::CyberSource::Report;
        use Business::CyberSource::Report::Test;
        
        # Generate a report factory.
        my $report_factory = Business::CyberSource::Report->new(
                merchant_id           => $merchant_id,
                username              => $username,
                password              => $password,
                use_production_system => $use_production_system,
        );
        
        # Use the factory to get a Business::CyberSource::Report::Test object with
        # the correct connection parameters.
        my $test_report = $report_factory->build( 'test' );
        
        # Retrieve a list of the report modules that have been loaded in memory,
        # either via "use" or a require by build()
        my $available_reports = $report_factory->list_loaded();

METHODS ^

new()

Create a new Business::CyberSource::Report factory object.

        my $report_factory = Business::CyberSource::Report->new(
                merchant_id           => $merchant_id,
                username              => $username,
                password              => $password,
                use_production_system => $use_production_system,
        );

Parameters:

list_loaded()

Return a list of report modules that have been loaded, either via a "use" or dynamically when calling build().

        my $loaded_report_modules = $report_factory->list_loaded();

build()

Create a Business::CyberSource::Report::* object with the correct connection parameters.

        # Use the factory to get a Business::CyberSource::Report::Test object with
        # the correct connection parameters.
        my $test_report = $report_factory->build( 'SingleTransaction' );

Parameters:

ACCESSORS ^

get_username()

Return the username to use to connect to the service.

        my $username = $report_factory->get_username();

get_password()

Return the password to use to connect to the service.

        my $password = $report_factory->get_password();

get_merchant_id()

Return the merchant ID to use to connect to the service.

        my $merchant_id = $report_factory->get_merchant_id();

use_production_system()

Return a boolean indicating whether the production system is used in queries. Otherwise, the Test Business Center is used.

        my $use_production_system = $report_factory->use_production_system();

AUTHOR ^

Guillaume Aubert, <aubertg at cpan.org>.

BUGS ^

Please report any bugs or feature requests through the web interface at https://github.com/guillaumeaubert/Business-CyberSource-Report/issues/new. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

        perldoc Business::CyberSource::Report

You can also look for information at:

ACKNOWLEDGEMENTS ^

Thanks to ThinkGeek (http://www.thinkgeek.com/) and its corporate overlords at Geeknet (http://www.geek.net/), for footing the bill while I eat pizza and write code for them!

COPYRIGHT & LICENSE ^

Copyright 2011-2013 Guillaume Aubert.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/

syntax highlighting: