class Google::Apis::ContentV2::TestOrderCustomer

Attributes

email[RW]

Email address of the customer. Corresponds to the JSON property `email` @return [String]

explicit_marketing_preference[RW]

If set, this indicates the user had a choice to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the Purchases on Google checkout flow. Optional. Corresponds to the JSON property `explicitMarketingPreference` @return [Boolean]

explicit_marketing_preference?[RW]

If set, this indicates the user had a choice to opt in or out of providing marketing rights to the merchant. If unset, this indicates the user has already made this choice in a previous purchase, and was thus not shown the marketing right opt in/out checkbox during the Purchases on Google checkout flow. Optional. Corresponds to the JSON property `explicitMarketingPreference` @return [Boolean]

full_name[RW]

Full name of the customer. Corresponds to the JSON property `fullName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 5904
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 5909
def update!(**args)
  @email = args[:email] if args.key?(:email)
  @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
  @full_name = args[:full_name] if args.key?(:full_name)
end