Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataAddress

Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataAddress.



1904
1905
1906
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1904

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#address ⇒ Array<String>

Optional. 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

Returns:

  • (Array<String>)


1876
1877
1878
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1876

def address
  @address
end

#administrative_area ⇒ String

Optional. The state, province, or otherwise administrative area of the address. Corresponds to the JSON property administrativeArea

Returns:

  • (String)


1881
1882
1883
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1881

def administrative_area
  @administrative_area
end

#locality ⇒ String

Optional. The town/city of the address. Corresponds to the JSON property locality

Returns:

  • (String)


1886
1887
1888
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1886

def locality
  @locality
end

#postal_code ⇒ String

Optional. The postal or ZIP code of the address. Corresponds to the JSON property postalCode

Returns:

  • (String)


1891
1892
1893
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1891

def postal_code
  @postal_code
end

#recipient ⇒ String

Optional. The recipient name, potentially including information such as "care of". Corresponds to the JSON property recipient

Returns:

  • (String)


1897
1898
1899
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1897

def recipient
  @recipient
end

#region_code ⇒ String

Optional. The CLDR country/region of the address. Corresponds to the JSON property regionCode

Returns:

  • (String)


1902
1903
1904
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1902

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1909
1910
1911
1912
1913
1914
1915
1916
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1909

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