The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

VendorAPI::2Checkout::Client::NoMoose - an non-Moose OO interface to the 2Checkout.com Vendor API

VERSION

Version 0.1502

SYNOPSIS

    use VendorAPI::2Checkout::Client;

    my $tco = VendorAPI::2Checkout::Client->new($username, $password, $format);
    $response = $tco->list_sales();

    $response = $tco->detail_sale(sale_id => 1234554323);

    $response = $tco->list_coupons();

    $response = $tco->detail_coupon(coupon_code => 'COUPON42');

    $response = $tco->list_payments();

    $response = $tco->list_products();

    $response = $tco->list_options();

    ...

DESCRIPTION

This module is an OO interface to the 2Checkout.com Vendor API.

This modules uses Params::Validate which likes to die() when the parameters do not pass validation, so wrap your code in evals, etc.

Presently implements list_sales(), detail_sale(), list_coupons(), and detail_coupon(), list_payments(), list_options(), list_products().

Return data is in XML or JSON.

Please refer to 2Checkout's Back Office Admin API Documentation for input parameters and expexted return values.

CONSTRUCTORS AND METHODS

$c = VendorAPI::2Checkout::Client->new($username, $password, $format)

Contructs a new VendorAPI::2Checkout::Client object to comminuncate with the 2Checkout Back Office Admin API. You must pass your Vendor API username and password or the constructor will return undef;

$response = $c->list_sales();

Retrieves the list of sales for the vendor

$response = $c->list_coupons();

Retrieves the list of coupons for the vendor

$response = $c->detail_sale(sale_id => $sale_id);

Retrieves the details for the named sale.

$response = $c->detail_coupon(coupon_code => $coupon_code);

Retrieves the details for the named coupon.

$response = $c->list_payments();

Retrieves the list of payments for the vendor

$response = $c->list_products();

Retrieves the list of products for the vendor

$response = $c->list_options();

Retrieves the list of options for the vendor

$response = $c->call_2co_api();

Talks to 2CO on behalf of the API methods

AUTHOR

Len Jaffe, <lenjaffe at jaffesystems.com>

GITHUB

The source code is available at Github

BUGS

Please report any bugs or feature requests to bug-vendorapi-2checkout-client at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=VendorAPI-2Checkout-Client. 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 VendorAPI::2Checkout::Client

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Len Jaffe.

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

See http://dev.perl.org/licenses/ for more information.