NAME

WebService::NetSuite::SuiteTalk - NetSuite SOAP interface that caches compiled calls in memory

VERSION

version 0.001

SYNOPSIS

use WebService::NetSuite::SuiteTalk;
my $suitetalk = WebService::NetSuite::SuiteTalk->new(
    account_id    => '12345678',
    email_address => 'netsuite_customer@example.com',
    password      => 'sekrit',
    xsi_auto      => 1,
);
my $answer_ref = $suitetalk->changePassword(
    changePassword => {
        currentPassword => 'sekrit',
        newPassword     => 'tirkes',
        newPassword2    => 'tirkes',
        justThisAccount => 'true',
    },
);

DESCRIPTION

This class provides an in-memory lazy cache for compiled SOAP calls using NetSuite SuiteTalk web services. The first call to any SOAP method uses XML::Compile::WSDL11 to compile and execute that method against the specified NetSuite SuiteTalk service; subsequent calls can vary the parameters but will use the same compiled code.

Available method names are dynamically loaded from the SuiteTalk WSDL file's operations, and can be passed either a hash or reference to a hash with the necessary parameters. In scalar context they return a reference to a hash containing the results of the SOAP call; in list context they return the results hashref and an XML::Compile::SOAP::Trace object suitable for debugging and exception handling.

If there is no result then an exception will be thrown.

As of this writing the following operations are published in the NetSuite SuiteTalk API 2014.2 schema. Consult NetSuite's Help Center for full documentation on input and output parameters for each operation.

METHODS

add

addList

asyncAddList

asyncDeleteList

asyncGetList

asyncInitializeList

asyncSearch

asyncUpdateList

asyncUpsertList

attach

changeEmail

changePassword

checkAsyncStatus

delete

deleteList

detach

get

getAll

getAsyncResult

getBudgetExchangeRate

getConsolidatedExchangeRate

getCurrencyRate

getCustomizationId

getDataCenterUrls

getDeleted

getItemAvailability

getList

getPostingTransactionSummary

getSavedSearch

getSelectValue

getServerTime

initialize

initializeList

login

logout

mapSso

searchMore

searchMoreWithId

searchNext

ssoLogin

update

updateInviteeStatus

updateInviteeStatusList

updateList

upsert

upsertList

OTHER METHODS AND ATTRIBUTES

Because this class consumes the WebService::NetSuite::SuiteTalk::Role::Connection role, it also has that role's attributes and methods. For example, you can use the user_agent attribute to access the LWP::UserAgent used to retrieve and call the SuiteTalk service, or the wsdl method to access the underlying XML::Compile::WSDL11 object.

SUPPORT

Perldoc

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

perldoc WebService::NetSuite::SuiteTalk

Websites

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.

Bugs / Feature Requests

Please report any bugs or feature requests through the web interface at https://github.com/mjgardner/webservice-netsuite-suitetalk/issues. You will be automatically notified of any progress on the request by the system.

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

https://github.com/mjgardner/webservice-netsuite-suitetalk

https://github.com/mjgardner/webservice-netsuite-suitetalk.git

AUTHOR

Mark Gardner <mjgardner@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by ZipRecruiter.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.