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.



1197
1198
1199
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1197

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

Returns:

  • (Array<String>)


1170
1171
1172
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1170

def address
  @address
end

#administrative_area ⇒ String

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

Returns:

  • (String)


1175
1176
1177
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1175

def administrative_area
  @administrative_area
end

#locality ⇒ String

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

Returns:

  • (String)


1180
1181
1182
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1180

def locality
  @locality
end

#postal_code ⇒ String

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

Returns:

  • (String)


1185
1186
1187
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1185

def postal_code
  @postal_code
end

#recipient ⇒ String

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

Returns:

  • (String)


1190
1191
1192
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1190

def recipient
  @recipient
end

#region_code ⇒ String

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

Returns:

  • (String)


1195
1196
1197
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1195

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1202
1203
1204
1205
1206
1207
1208
1209
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1202

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