Alex L. Demidov > WWW-BigDoor > WWW::BigDoor::NamedTransactionGroup

Download:
WWW-BigDoor-v0.1.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

WWW::BigDoor::NamedTransactionGroup - NamedTransactionGroup Resource Object for BigDoor API

VERSION ^

This document describes BigDoor version 0.1.1

SYNOPSIS use WWW::BigDoor; use WWW::BigDoor::NamedTransactionGroup; use WWW::BigDoor::NamedTransaction; ^

    my $transaction_group_payload = {
        pub_title             => 'Test Transaction Group',
        pub_description       => 'test description',
        end_user_title        => 'end user title',
        end_user_description  => 'end user description',
        end_user_cap          => '-1',
        end_user_cap_interval => '-1',
    };
    my $transaction_group_obj = new WWW::BigDoor::NamedTransactionGroup( $transaction_group_payload );
    $transaction_group_obj->save( $client );

    my $named_transaction_payload = {
        pub_title            => 'Test Transaction',
        pub_description      => 'test description',
        end_user_title       => 'end user title',
        end_user_description => 'end user description',
        currency_id          => $currency_obj->get_id,
        amount               => '50',
        default_amount       => '50',
    };

    my $named_transaction_obj = new WWW::BigDoor::NamedTransaction( $named_transaction_payload );
    $named_transaction_obj->save( $client );

    $response = $transaction_group_obj->execute_transaction( $username, {verbosity => '6'}, $client );

DESCRIPTION ^

This module provides object corresponding to BigDoor API /named_transaction_group end point. For description see online documentation http://publisher.bigdoor.com/docs/

INTERFACE ^

Most of methods are provided by base WWW::BigDoor::Resource object

execute_transaction( $end_user_login, $payload, $client)

$end_user_login

The string representing end user login.

$payload

See http://publisher.bigdoor.com/docs/params/specific for possible parameters

$client

WWW::BigDoor object.

DIAGNOSTICS ^

Error message here, perhaps with %s placeholders

[Description of error here]

Another error message here

[Description of error here]

[Et cetera, et cetera]

CONFIGURATION AND ENVIRONMENT ^

WWW:BigDoor::NamedTransactionGroup requires no configuration files or environment variables.

DEPENDENCIES ^

WWW::BigDoor::Resource, WWW::BigDoor

INCOMPATIBILITIES ^

None reported.

BUGS AND LIMITATIONS ^

No bugs have been reported.

Please report any bugs or feature requests to bug-bigdoor@rt.cpan.org, or through the web interface at http://rt.cpan.org.

SEE ALSO ^

WWW::BigDoor::Resource for base class description, WWW::BigDoor for procedural interface for BigDoor REST API

AUTHOR ^

Alex L. Demidov <alexeydemidov@gmail.com>

LICENCE AND COPYRIGHT ^

BigDoor Open License Copyright (c) 2010 BigDoor Media, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

- This copyright notice and all listed conditions and disclaimers shall be included in all copies and portions of the Software including any redistributions in binary form.

- The Software connects with the BigDoor API (api.bigdoor.com) and all uses, copies, modifications, derivative works, mergers, publications, distributions, sublicenses and sales shall also connect to the BigDoor API and shall not be used to connect with any API, software or service that competes with BigDoor's API, software and services.

- Except as contained in this notice, this license does not grant you rights to use BigDoor Media, Inc. or any contributors' name, logo, or trademarks.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

syntax highlighting: