Class: Google::Apis::WalletobjectsV1::LoyaltyPoints
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::LoyaltyPoints
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Instance Attribute Summary collapse
-
#balance ⇒ Google::Apis::WalletobjectsV1::LoyaltyPointsBalance
The account holder's loyalty point balance, such as "500" or "$10.00".
-
#label ⇒ String
The loyalty points label, such as "Points".
-
#localized_label ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LoyaltyPoints
constructor
A new instance of LoyaltyPoints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LoyaltyPoints
Returns a new instance of LoyaltyPoints.
5295 5296 5297 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5295 def initialize(**args) update!(**args) end |
Instance Attribute Details
#balance ⇒ Google::Apis::WalletobjectsV1::LoyaltyPointsBalance
The account holder's loyalty point balance, such as "500" or "$10.00".
Recommended maximum length is 7 characters. This is a required field of
loyaltyPoints
and secondaryLoyaltyPoints
.
Corresponds to the JSON property balance
5282 5283 5284 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5282 def balance @balance end |
#label ⇒ String
The loyalty points label, such as "Points". Recommended maximum length is 9
characters.
Corresponds to the JSON property label
5288 5289 5290 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5288 def label @label end |
#localized_label ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the label. Recommended maximum length is 9 characters.
Corresponds to the JSON property localizedLabel
5293 5294 5295 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5293 def localized_label @localized_label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5300 5301 5302 5303 5304 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5300 def update!(**args) @balance = args[:balance] if args.key?(:balance) @label = args[:label] if args.key?(:label) @localized_label = args[:localized_label] if args.key?(:localized_label) end |