class Google::Apis::ContentV2::OrderCustomer

Attributes

email[RW]

Deprecated. Corresponds to the JSON property `email` @return [String]

explicit_marketing_preference[RW]

Deprecated. Please use marketingRightsInfo instead. Corresponds to the JSON property `explicitMarketingPreference` @return [Boolean]

explicit_marketing_preference?[RW]

Deprecated. Please use marketingRightsInfo instead. Corresponds to the JSON property `explicitMarketingPreference` @return [Boolean]

full_name[RW]

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

invoice_receiving_email[RW]

Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Buy on Google. Corresponds to the JSON property `invoiceReceivingEmail` @return [String]

marketing_rights_info[RW]

Customer's marketing preferences. Contains the marketing opt-in information that is current at the time that the merchant call. User preference selections can change from one order to the next so preferences must be checked with every order. Corresponds to the JSON property `marketingRightsInfo` @return [Google::Apis::ContentV2::OrderCustomerMarketingRightsInfo]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 4493
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)
  @invoice_receiving_email = args[:invoice_receiving_email] if args.key?(:invoice_receiving_email)
  @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info)
end