The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Amazon::MWS::XML::Address

DESCRIPTION

Class to handle the addresses in the Amazon MWS's XML responses. It provides some aliases to get a consistent interface.

ACCESSORS

Name

Name of customer for this address.

AddressLine1
AddressFieldOne
address1

This is a field where Amazon stores the company name, or the c/o, or postal boxes, etc. It appears as the first line of the address, but you can't be sure what exactly it is (save you don't want to lose it).

Sometimes the street address is here, sometimes is empty.

AddressLine2
AddressFieldTwo
address2

This appears to be the regular street/number address line, sometimes. Sometimes is in the address1. You just can't know, so you have to use some euristics, like checking if they are both set, otherwise choosing the first available to use as street address.

PostalCode

Postal code for this address.

City

City for this address.

Phone
PhoneNumber

Phone number for this address.

CountryCode
StateOrRegion

ALIASES

name (Name)
address_line

Concatenation of address1 and address2.

city (City)
zip (PostalCode)
country (CountryCode)
phone (Phone or PhoneNumber)
region (StateOrRegion)
state (StateOrRegion)