NAME
WebService::Avalara::AvaTax::Role::Connection - Common attributes and methods for AvaTax
VERSION
version 0.013
SYNOPSIS
use Moo;
with 'WebService::Avalara::AvaTax::Role::Connection';
DESCRIPTION
This role factors out the common attributes and methods used by the Avalara AvaTax web service interface.
ATTRIBUTES
username
The Avalara email address used for authentication. Required.
password
The password used for Avalara authentication. Required.
is_production
A boolean value that indicates whether to connect to the production AvaTax services (true) or development (false). Defaults to false.
uri
The URI of the WSDL file used to define the web service. Consumer classes are expected to set this attribute. As a convenience this can also be set with anything that Types::URI can coerce into a Uri
.
port
The SOAP port identifier (not to be confused with the TCP/IP port) used in the WSDL file at "uri". Consumer classes are expected to set this attribute.
service
The SOAP service name used in the WSDL file at "uri". Consumer classes are expected to set this attribute.
debug
When set to true, the Log::Report dispatcher used by XML::Compile and friends is set to DEBUG mode.
user_agent
An instance of an LWP::UserAgent (sub-)class. You can use your own subclass to add features such as caching or enhanced logging.
If you do not specify a user_agent
then we default to an instance of LWPx::UserAgent::Cached. Note that we also set the HTTPS_CA_FILE
environment variable to the result from Mozilla::CA::SSL_ca_file in order to correctly resolve certificate names.
wsdl
After construction, you can retrieve the created XML::Compile::WSDL11 instance.
Example:
my $wsdl = $avatax->wsdl;
my @soap_operations = map { $_->name } $wsdl->operations;
SUPPORT
Perldoc
You can find documentation for this module with the perldoc command.
perldoc WebService::Avalara::AvaTax
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.
MetaCPAN
A modern, open-source CPAN search engine, useful to view POD in HTML format.
Search CPAN
The default CPAN search engine, useful to view POD in HTML format.
AnnoCPAN
The AnnoCPAN is a website that allows community annotations of Perl module documentation.
CPAN Ratings
The CPAN Ratings is a website that allows community ratings and reviews of Perl modules.
CPAN Forum
The CPAN Forum is a web forum for discussing Perl modules.
CPANTS
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
http://cpants.cpanauthors.org/dist/WebService-Avalara-AvaTax
CPAN Testers
The CPAN Testers is a network of smokers who run automated tests on uploaded CPAN distributions.
http://www.cpantesters.org/distro/W/WebService-Avalara-AvaTax
CPAN Testers Matrix
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
http://matrix.cpantesters.org/?dist=WebService-Avalara-AvaTax
CPAN Testers Dependencies
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
http://deps.cpantesters.org/?module=WebService::Avalara::AvaTax
Bugs / Feature Requests
Please report any bugs or feature requests through the web interface at https://github.com/mjgardner/WebService-Avalara-AvaTax/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-Avalara-AvaTax
git clone git://github.com/mjgardner/WebService-Avalara-AvaTax.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.