Class: Google::Apis::MerchantapiAccountsV1beta::Account

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

An account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Account

Returns a new instance of Account.



137
138
139
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 137

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

Instance Attribute Details

#account_idFixnum

Output only. The ID of the account. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


99
100
101
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 99

def 
  @account_id
end

#account_nameString

Required. A human-readable name of the account. See store name and business name for more information. Corresponds to the JSON property accountName

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 106

def 
  @account_name
end

#adult_contentBoolean Also known as: adult_content?

Whether this account contains adult content. Corresponds to the JSON property adultContent

Returns:

  • (Boolean)


111
112
113
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 111

def adult_content
  @adult_content
end

#language_codeString

Required. The account's BCP-47 language code, such as en-US or sr-Latn. Corresponds to the JSON property languageCode

Returns:

  • (String)


118
119
120
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 118

def language_code
  @language_code
end

#nameString

Identifier. The resource name of the account. Format: accounts/account` Corresponds to the JSON propertyname`

Returns:

  • (String)


123
124
125
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 123

def name
  @name
end

#test_accountBoolean Also known as: test_account?

Output only. Whether this is a test account. Corresponds to the JSON property testAccount

Returns:

  • (Boolean)


128
129
130
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 128

def 
  @test_account
end

#time_zoneGoogle::Apis::MerchantapiAccountsV1beta::TimeZone

Represents a time zone from the IANA Time Zone Database. Corresponds to the JSON property timeZone



135
136
137
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 135

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



142
143
144
145
146
147
148
149
150
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 142

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @account_name = args[:account_name] if args.key?(:account_name)
  @adult_content = args[:adult_content] if args.key?(:adult_content)
  @language_code = args[:language_code] if args.key?(:language_code)
  @name = args[:name] if args.key?(:name)
  @test_account = args[:test_account] if args.key?(:test_account)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end