
Net::Easypost::Address - Class to represent an Easypost address

version 0.03

A field for street information, typically a house number, a street name and a direction
A field for any additional street information like an apartment or suite number
The city in the address
The U.S. state for this address
The U.S. zipcode for this address
Any phone number associated with this address. Some carrier services like Next-Day or Express require a sender phone number.
A name associated with this address.
The role of this address. For example, if this is a recipient, it is in the 'to' role. If it's the sender's address, it's in the 'from' role. Defaults to 'address'.
The order attributes should be processed during serialization or cloning. Defaults to name, street1, street2, city, state, zip, phone.

Format the defined attributes for a call to the Easypost service.
Takes an arrayref of attributes to serialize.
Defaults to the order attribute.
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.
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.

Mark Allen <mrallen1@yahoo.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.