Google Shopping Merchant Loyalty Customers V1 Client - Class AddressInfo (0.1.1)

Reference documentation and code samples for the Google Shopping Merchant Loyalty Customers V1 Client class AddressInfo.

Represents a customer’s physical address.

Generated from protobuf message google.shopping.merchant.loyaltycustomers.v1.AddressInfo

Namespace

Google \ Shopping \ Merchant \ LoyaltyCustomers \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ given_name string

Optional. The given name of the customer.

↳ family_name string

Optional. The family name of the customer.

↳ city string

Optional. The city of the customer.

↳ state string

Optional. The state or province of the customer.

↳ region_code string

Optional. The Unicode country/region code (CLDR) of the customer, such as "US" or "CH". This field is case-insensitive. For more information, see https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html.

↳ postal_code string

Optional. The postal code (zip code) of the customer. Format Rules: * * United States: 5-digit zip codes (e.g., "94108").

getGivenName

Optional. The given name of the customer.

Returns
Type Description
string

setGivenName

Optional. The given name of the customer.

Parameter
Name Description
var string
Returns
Type Description
$this

getFamilyName

Optional. The family name of the customer.

Returns
Type Description
string

setFamilyName

Optional. The family name of the customer.

Parameter
Name Description
var string
Returns
Type Description
$this

getCity

Optional. The city of the customer.

Returns
Type Description
string

setCity

Optional. The city of the customer.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Optional. The state or province of the customer.

Returns
Type Description
string

setState

Optional. The state or province of the customer.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegionCode

Optional. The Unicode country/region code (CLDR) of the customer, such as "US" or "CH". This field is case-insensitive. For more information, see https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html.

Returns
Type Description
string

setRegionCode

Optional. The Unicode country/region code (CLDR) of the customer, such as "US" or "CH". This field is case-insensitive. For more information, see https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html.

Parameter
Name Description
var string
Returns
Type Description
$this

getPostalCode

Optional. The postal code (zip code) of the customer.

Format Rules:

  • United States: 5-digit zip codes (e.g., "94108").
Returns
Type Description
string

setPostalCode

Optional. The postal code (zip code) of the customer.

Format Rules:

  • United States: 5-digit zip codes (e.g., "94108").
Parameter
Name Description
var string
Returns
Type Description
$this