Class: Google::Apis::WalletobjectsV1::TicketCost
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::TicketCost
- 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
-
#discount_message ⇒ Google::Apis::WalletobjectsV1::LocalizedString
A message describing any kind of discount that was applied.
-
#face_value ⇒ Google::Apis::WalletobjectsV1::Money
The face value of the ticket.
-
#purchase_price ⇒ Google::Apis::WalletobjectsV1::Money
The actual purchase price of the ticket, after tax and/or discounts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TicketCost
constructor
A new instance of TicketCost.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TicketCost
Returns a new instance of TicketCost.
7666 7667 7668 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#discount_message ⇒ Google::Apis::WalletobjectsV1::LocalizedString
A message describing any kind of discount that was applied.
Corresponds to the JSON property discountMessage
7654 7655 7656 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7654 def @discount_message end |
#face_value ⇒ Google::Apis::WalletobjectsV1::Money
The face value of the ticket.
Corresponds to the JSON property faceValue
7659 7660 7661 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7659 def face_value @face_value end |
#purchase_price ⇒ Google::Apis::WalletobjectsV1::Money
The actual purchase price of the ticket, after tax and/or discounts.
Corresponds to the JSON property purchasePrice
7664 7665 7666 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7664 def purchase_price @purchase_price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7671 7672 7673 7674 7675 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7671 def update!(**args) @discount_message = args[:discount_message] if args.key?(:discount_message) @face_value = args[:face_value] if args.key?(:face_value) @purchase_price = args[:purchase_price] if args.key?(:purchase_price) end |