Net::Easypost::Address
version 0.23
Net::Easypost::Address->new
string: Set based on which api-key you used, either "test" or "production"
string: First line of the address
string: Second line of the address
string: City the address is located in
string: State or province the address is located in
string: ZIP or postal code the address is located in
string: ISO 3166 country code for the country the address is located in
boolean: Whether or not this address would be considered residential
string: The specific designation for the address (only relevant if the address is a carrier facility)
string: Name of the person. Both name and company can be included
string: Name of the organization. Both name and company can be included
string: Phone number to reach the person or organization
string: Email to reach the person or organization
string: Federal tax identifier of the person or organization
string: State tax identifier of the person or organization
*CURRENTLY NOT IMPLEMENTED* Verifications: The result of any verifications requested
Attributes that make up an Address, from Net::Easypost::Resource
Prefix to data when POSTing to the Easypost API about Address objects
Base API endpoint for operations on Address objects
Make a new copy of this object and return it
Format this address as it might be seen on a mailing label. This class overloads stringification using this method, so something like say $addr should just work.
say $addr
This method takes a Net::Easypost::Address object and an arrayref of fields to copy into this object. This method only merges fields that are defined on the other object.
This method takes a Net::Easypost::Address object and verifies its underlying address.
If a non-US address is asked for verification, a warning will be emitted and the object itself will be returned.
Mark Allen <mrallen1@yahoo.com>, Hunter McMillen <mcmillhj@gmail.com>
This software is copyright (c) 2012 by Mark Allen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Easypost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Easypost
CPAN shell
perl -MCPAN -e shell install Net::Easypost
For more information on module installation, please visit the detailed CPAN module installation guide.