Class: Google::Apis::ContentV2_1::AccountBusinessIdentity
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountBusinessIdentity
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
The business identity attributes can be used to self-declare attributes that let customers know more about your business.
Instance Attribute Summary collapse
-
#black_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
-
#include_for_promotions ⇒ Boolean
(also: #include_for_promotions?)
Required.
-
#latino_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
-
#small_business ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
-
#veteran_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
-
#women_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountBusinessIdentity
constructor
A new instance of AccountBusinessIdentity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountBusinessIdentity
Returns a new instance of AccountBusinessIdentity.
334 335 336 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 334 def initialize(**args) update!(**args) end |
Instance Attribute Details
#black_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
Corresponds to the JSON property blackOwned
302 303 304 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 302 def black_owned @black_owned end |
#include_for_promotions ⇒ Boolean Also known as: include_for_promotions?
Required. By setting this field, your business may be included in promotions
for all the selected attributes. If you clear this option, it won't affect
your identification with any of the attributes. For this field to be set, the
merchant must self identify with at least one of the AccountIdentityType
. If
none are included, the request will be considered invalid.
Corresponds to the JSON property includeForPromotions
311 312 313 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 311 def include_for_promotions @include_for_promotions end |
#latino_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
Corresponds to the JSON property latinoOwned
317 318 319 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 317 def latino_owned @latino_owned end |
#small_business ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
Corresponds to the JSON property smallBusiness
322 323 324 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 322 def small_business @small_business end |
#veteran_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
Corresponds to the JSON property veteranOwned
327 328 329 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 327 def veteran_owned @veteran_owned end |
#women_owned ⇒ Google::Apis::ContentV2_1::AccountIdentityType
The account identity type used to specify attributes.
Corresponds to the JSON property womenOwned
332 333 334 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 332 def women_owned @women_owned end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
339 340 341 342 343 344 345 346 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 339 def update!(**args) @black_owned = args[:black_owned] if args.key?(:black_owned) @include_for_promotions = args[:include_for_promotions] if args.key?(:include_for_promotions) @latino_owned = args[:latino_owned] if args.key?(:latino_owned) @small_business = args[:small_business] if args.key?(:small_business) @veteran_owned = args[:veteran_owned] if args.key?(:veteran_owned) @women_owned = args[:women_owned] if args.key?(:women_owned) end |