Class: Google::Apis::MerchantapiAccountsV1beta::EmailPreferences

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

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

Instance Method Summary collapse

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

#nameString

Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. Corresponds to the JSON property name

Returns:

  • (String)


874
875
876
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 874

def name
  @name
end

#news_and_tipsString

Optional. Updates on new features, tips and best practices. Corresponds to the JSON property newsAndTips

Returns:

  • (String)


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