class Google::Apis::ContentV2_1::OrderCustomer

Attributes

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]

loyalty_info[RW]

Loyalty program information. Corresponds to the JSON property `loyaltyInfo` @return [Google::Apis::ContentV2_1::OrderCustomerLoyaltyInfo]

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_1::OrderCustomerMarketingRightsInfo]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 5555
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_1/classes.rb, line 5560
def update!(**args)
  @full_name = args[:full_name] if args.key?(:full_name)
  @invoice_receiving_email = args[:invoice_receiving_email] if args.key?(:invoice_receiving_email)
  @loyalty_info = args[:loyalty_info] if args.key?(:loyalty_info)
  @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info)
end