View Source GoogleApi.Content.V21.Model.OrderCustomerMarketingRightsInfo (google_api_content v0.67.1)

Attributes

  • explicitMarketingPreference (type: String.t, default: nil) - Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected granted in their most recent order, they can be subscribed to marketing emails. Customers who have chosen denied must not be subscribed, or must be unsubscribed if already opted-in. Acceptable values are: - "denied" - "granted"
  • lastUpdatedTimestamp (type: String.t, default: nil) - Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a selection yet.
  • marketingEmailAddress (type: String.t, default: nil) - Email address that can be used for marketing purposes. The field may be empty even if explicitMarketingPreference is 'granted'. This happens when retrieving an old order from the customer who deleted their account.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.OrderCustomerMarketingRightsInfo{
  explicitMarketingPreference: String.t() | nil,
  lastUpdatedTimestamp: String.t() | nil,
  marketingEmailAddress: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.