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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderCustomerLoyaltyInfo

Returns a new instance of OrderCustomerLoyaltyInfo.



5582
5583
5584
# File 'lib/google/apis/content_v2_1/classes.rb', line 5582

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

Instance Attribute Details

#loyalty_numberString

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

Returns:

  • (String)


5575
5576
5577
# File 'lib/google/apis/content_v2_1/classes.rb', line 5575

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)


5580
5581
5582
# File 'lib/google/apis/content_v2_1/classes.rb', line 5580

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5587
5588
5589
5590
# File 'lib/google/apis/content_v2_1/classes.rb', line 5587

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