Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
Overview
Structured address format for billing and shipping addresses.
Instance Attribute Summary collapse
-
#address ⇒ Array<String>
The first lines of the address.
-
#administrative_area ⇒ String
The state, province, or otherwise administrative area of the address.
-
#locality ⇒ String
The town/city of the address.
-
#postal_code ⇒ String
The postal or ZIP code of the address.
-
#recipient ⇒ String
The recipient name, potentially including information such as "care of".
-
#region_code ⇒ String
The CLDR country/region of the address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataAddress.
1512 1513 1514 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1512 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Array<String>
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.
Corresponds to the JSON property address
1485 1486 1487 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1485 def address @address end |
#administrative_area ⇒ String
The state, province, or otherwise administrative area of the address.
Corresponds to the JSON property administrativeArea
1490 1491 1492 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1490 def administrative_area @administrative_area end |
#locality ⇒ String
The town/city of the address.
Corresponds to the JSON property locality
1495 1496 1497 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1495 def locality @locality end |
#postal_code ⇒ String
The postal or ZIP code of the address.
Corresponds to the JSON property postalCode
1500 1501 1502 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1500 def postal_code @postal_code end |
#recipient ⇒ String
The recipient name, potentially including information such as "care of".
Corresponds to the JSON property recipient
1505 1506 1507 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1505 def recipient @recipient end |
#region_code ⇒ String
The CLDR country/region of the address.
Corresponds to the JSON property regionCode
1510 1511 1512 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1510 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1517 1518 1519 1520 1521 1522 1523 1524 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1517 def update!(**args) @address = args[:address] if args.key?(:address) @administrative_area = args[:administrative_area] if args.key?(:administrative_area) @locality = args[:locality] if args.key?(:locality) @postal_code = args[:postal_code] if args.key?(:postal_code) @recipient = args[:recipient] if args.key?(:recipient) @region_code = args[:region_code] if args.key?(:region_code) end |