Class: Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
- 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
The categories of notifications the user opted into / opted out of. The email preferences do not include mandatory announcements as users can't opt out of them.
Instance Attribute Summary collapse
-
#name ⇒ String
Identifier.
-
#news_and_tips ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmailPreferences
constructor
A new instance of EmailPreferences.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EmailPreferences
Returns a new instance of EmailPreferences.
881 882 883 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 881 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. The name of the EmailPreferences. The endpoint is only supported
for the authenticated user.
Corresponds to the JSON property name
874 875 876 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 874 def name @name end |
#news_and_tips ⇒ String
Optional. Updates on new features, tips and best practices.
Corresponds to the JSON property newsAndTips
879 880 881 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 879 def news_and_tips @news_and_tips end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
886 887 888 889 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 886 def update!(**args) @name = args[:name] if args.key?(:name) @news_and_tips = args[:news_and_tips] if args.key?(:news_and_tips) end |