Class: Google::Apis::WalletobjectsV1::TicketCost

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TicketCost

Returns a new instance of TicketCost.



7113
7114
7115
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7113

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

Instance Attribute Details

#discount_messageGoogle::Apis::WalletobjectsV1::LocalizedString

A message describing any kind of discount that was applied. Corresponds to the JSON property discountMessage



7101
7102
7103
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7101

def discount_message
  @discount_message
end

#face_valueGoogle::Apis::WalletobjectsV1::Money

The face value of the ticket. Corresponds to the JSON property faceValue



7106
7107
7108
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7106

def face_value
  @face_value
end

#purchase_priceGoogle::Apis::WalletobjectsV1::Money

The actual purchase price of the ticket, after tax and/or discounts. Corresponds to the JSON property purchasePrice



7111
7112
7113
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7111

def purchase_price
  @purchase_price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7118
7119
7120
7121
7122
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7118

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