Class: Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity

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

Instance Method Summary collapse

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_ownedGoogle::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_ownedGoogle::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

#nameString

Identifier. The resource name of the business identity. Format: accounts/ account/businessIdentity Corresponds to the JSON property name

Returns:

  • (String)


350
351
352
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 350

def name
  @name
end

Optional. Whether the identity attributes may be used for promotions. Corresponds to the JSON property promotionsConsent

Returns:

  • (String)


355
356
357
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 355

def promotions_consent
  @promotions_consent
end

#small_businessGoogle::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_ownedGoogle::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_ownedGoogle::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