Google Cloud Recaptcha Enterprise V1 Client - Class Address (1.3.2)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class Address.

Structured address format for billing and shipping addresses.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.TransactionData.Address

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ recipient string

The recipient name, potentially including information such as "care of".

↳ address array

The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.

↳ locality string

The town/city of the address.

↳ administrative_area string

The state, province, or otherwise administrative area of the address.

↳ region_code string

The CLDR country/region of the address.

↳ postal_code string

The postal or ZIP code of the address.

getRecipient

The recipient name, potentially including information such as "care of".

Returns
TypeDescription
string

setRecipient

The recipient name, potentially including information such as "care of".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAddress

The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAddress

The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getLocality

The town/city of the address.

Returns
TypeDescription
string

setLocality

The town/city of the address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAdministrativeArea

The state, province, or otherwise administrative area of the address.

Returns
TypeDescription
string

setAdministrativeArea

The state, province, or otherwise administrative area of the address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRegionCode

The CLDR country/region of the address.

Returns
TypeDescription
string

setRegionCode

The CLDR country/region of the address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPostalCode

The postal or ZIP code of the address.

Returns
TypeDescription
string

setPostalCode

The postal or ZIP code of the address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this