google_api_content v0.25.0 GoogleApi.Content.V2.Model.OrderCustomerMarketingRightsInfo View Source

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.
  • 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Content.V2.Model.OrderCustomerMarketingRightsInfo{
  explicitMarketingPreference: String.t(),
  lastUpdatedTimestamp: String.t(),
  marketingEmailAddress: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.