Class: Google::Apis::ContentV2_1::OrderCustomerLoyaltyInfo
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderCustomerLoyaltyInfo
- 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
-
#loyalty_number ⇒ String
The loyalty card/membership number.
-
#name ⇒ String
Name of card/membership holder, this field will be populated when Corresponds to the JSON property
name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderCustomerLoyaltyInfo
constructor
A new instance of OrderCustomerLoyaltyInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderCustomerLoyaltyInfo
Returns a new instance of OrderCustomerLoyaltyInfo.
5547 5548 5549 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#loyalty_number ⇒ String
The loyalty card/membership number.
Corresponds to the JSON property loyaltyNumber
5540 5541 5542 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5540 def loyalty_number @loyalty_number end |
#name ⇒ String
Name of card/membership holder, this field will be populated when
Corresponds to the JSON property name
5545 5546 5547 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5545 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5552 5553 5554 5555 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5552 def update!(**args) @loyalty_number = args[:loyalty_number] if args.key?(:loyalty_number) @name = args[:name] if args.key?(:name) end |