Class: Google::Shopping::Merchant::Accounts::V1beta::EmailPreferences

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/shopping/merchant/accounts/v1beta/emailpreferences.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.

Defined Under Namespace

Modules: OptInState

Instance Attribute Summary collapse

Instance Attribute Details

#name::String

Returns Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.

Returns:

  • (::String)

    Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/emailpreferences.rb', line 35

class EmailPreferences
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Opt in state of the email preference.
  module OptInState
    # Opt-in status is not specified.
    OPT_IN_STATE_UNSPECIFIED = 0

    # User has opted out of receiving this type of email.
    OPTED_OUT = 1

    # User has opted in to receiving this type of email.
    OPTED_IN = 2

    # User has opted in to receiving this type of email and the confirmation
    # email has been sent, but user has not yet confirmed the opt in (applies
    # only to certain countries).
    UNCONFIRMED = 3
  end
end

#news_and_tips::Google::Shopping::Merchant::Accounts::V1beta::EmailPreferences::OptInState

Returns Optional. Updates on new features, tips and best practices.

Returns:



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/emailpreferences.rb', line 35

class EmailPreferences
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Opt in state of the email preference.
  module OptInState
    # Opt-in status is not specified.
    OPT_IN_STATE_UNSPECIFIED = 0

    # User has opted out of receiving this type of email.
    OPTED_OUT = 1

    # User has opted in to receiving this type of email.
    OPTED_IN = 2

    # User has opted in to receiving this type of email and the confirmation
    # email has been sent, but user has not yet confirmed the opt in (applies
    # only to certain countries).
    UNCONFIRMED = 3
  end
end