NAME

WebService::Avalara::AvaTax::Role::Dumper - Dump and restore compiled SOAP clients for AvaTax

VERSION

version 0.019

SYNOPSIS

use Moo;
with 'WebService::Avalara::AvaTax::Role::Dumper';

DESCRIPTION

This role handles the dumping of compiled SOAP client code to storage, and then restoring it later to save time without having to recompile.

ATTRIBUTES

use_wss

This role overrides the value of the use_wss attribute from WebService::Avalara::AvaTax::Role::Connection to false, since XML::Compile::WSS does not seem to work cleanly with XML::Compile::Dumper.

recompile

A boolean value you can set at construction to signal that the generated class files for this service should be deleted and recompiled. Defaults to false.

dump_dir

The directory in which to save and look for the generated class files. Defaults to a temporary directory provided by Path::Tiny::tempdir.

dump_file_name

The path to the file in "dump_dir" used to save/read the generated classes. Defaults to lib/package-name-converted-to-path.pm.

clients

This role wraps around the builder for the clients attribute to either read in the generated class file (if it already exists) or generate it and then add it to the symbol table.

CAVEATS

The generated class files in the "dump_dir" directory will be read and executed, therefore it is critical that this directory is in a secure location on the file system that cannot be written to by untrusted users or processes!

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.

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) 2016 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.