Class: Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
Collection of information related to the identity of a business.
Instance Attribute Summary collapse
-
#black_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
-
#latino_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
-
#name ⇒ String
Identifier.
-
#promotions_consent ⇒ String
Optional.
-
#small_business ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
-
#veteran_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
-
#women_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BusinessIdentity
constructor
A new instance of BusinessIdentity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BusinessIdentity
Returns a new instance of BusinessIdentity.
372 373 374 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#black_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
Corresponds to the JSON property blackOwned
339 340 341 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 339 def black_owned @black_owned end |
#latino_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
Corresponds to the JSON property latinoOwned
344 345 346 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 344 def latino_owned @latino_owned end |
#name ⇒ String
Identifier. The resource name of the business identity. Format: accounts/
account/businessIdentity
Corresponds to the JSON property name
350 351 352 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 350 def name @name end |
#promotions_consent ⇒ String
Optional. Whether the identity attributes may be used for promotions.
Corresponds to the JSON property promotionsConsent
355 356 357 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 355 def @promotions_consent end |
#small_business ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
Corresponds to the JSON property smallBusiness
360 361 362 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 360 def small_business @small_business end |
#veteran_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
Corresponds to the JSON property veteranOwned
365 366 367 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 365 def veteran_owned @veteran_owned end |
#women_owned ⇒ Google::Apis::MerchantapiAccountsV1beta::IdentityAttribute
All information related to an identity attribute.
Corresponds to the JSON property womenOwned
370 371 372 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 370 def women_owned @women_owned end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
377 378 379 380 381 382 383 384 385 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 377 def update!(**args) @black_owned = args[:black_owned] if args.key?(:black_owned) @latino_owned = args[:latino_owned] if args.key?(:latino_owned) @name = args[:name] if args.key?(:name) @promotions_consent = args[:promotions_consent] if args.key?(:promotions_consent) @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 |