Class: Google::Apis::ContentV2_1::OrderCustomerLoyaltyInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderCustomerLoyaltyInfo

Returns a new instance of OrderCustomerLoyaltyInfo.



4393
4394
4395
# File 'generated/google/apis/content_v2_1/classes.rb', line 4393

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#loyalty_numberString

The loyalty card/membership number. Corresponds to the JSON property loyaltyNumber

Returns:

  • (String)


4386
4387
4388
# File 'generated/google/apis/content_v2_1/classes.rb', line 4386

def loyalty_number
  @loyalty_number
end

#nameString

Name of card/membership holder, this field will be populated when Corresponds to the JSON property name

Returns:

  • (String)


4391
4392
4393
# File 'generated/google/apis/content_v2_1/classes.rb', line 4391

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4398
4399
4400
4401
# File 'generated/google/apis/content_v2_1/classes.rb', line 4398

def update!(**args)
  @loyalty_number = args[:loyalty_number] if args.key?(:loyalty_number)
  @name = args[:name] if args.key?(:name)
end