Class: Google::Apis::MerchantapiAccountsV1beta::Account
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::Account
- 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
-
#account_id ⇒ Fixnum
Output only.
-
#account_name ⇒ String
Required.
-
#adult_content ⇒ Boolean
(also: #adult_content?)
Whether this account contains adult content.
-
#language_code ⇒ String
Required.
-
#name ⇒ String
Identifier.
-
#test_account ⇒ Boolean
(also: #test_account?)
Output only.
-
#time_zone ⇒ Google::Apis::MerchantapiAccountsV1beta::TimeZone
Represents a time zone from the IANA Time Zone Database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ Fixnum
Output only. The ID of the account.
Corresponds to the JSON property accountId
99 100 101 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 99 def account_id @account_id end |
#account_name ⇒ String
Required. A human-readable name of the account. See store name and business name for more information.
Corresponds to the JSON property accountName
106 107 108 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 106 def account_name @account_name end |
#adult_content ⇒ Boolean Also known as: adult_content?
Whether this account contains adult content.
Corresponds to the JSON property adultContent
111 112 113 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 111 def adult_content @adult_content end |
#language_code ⇒ String
Required. The account's BCP-47 language code, such as en-US
or sr-Latn
.
Corresponds to the JSON property languageCode
118 119 120 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 118 def language_code @language_code end |
#name ⇒ String
Identifier. The resource name of the account. Format: accounts/
account`
Corresponds to the JSON property
name`
123 124 125 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 123 def name @name end |
#test_account ⇒ Boolean Also known as: test_account?
Output only. Whether this is a test account.
Corresponds to the JSON property testAccount
128 129 130 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 128 def test_account @test_account end |
#time_zone ⇒ Google::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 |