Class: Google::Apis::WalletobjectsV1::PurchaseDetails
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::PurchaseDetails
- 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
-
#account_id ⇒ String
ID of the account used to purchase the ticket.
-
#confirmation_code ⇒ String
The confirmation code for the purchase.
-
#purchase_date_time ⇒ String
The purchase date/time of the ticket.
-
#purchase_receipt_number ⇒ String
Receipt number/identifier for tracking the ticket purchase via the body that sold the ticket.
-
#ticket_cost ⇒ Google::Apis::WalletobjectsV1::TicketCost
The cost of the ticket.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PurchaseDetails
constructor
A new instance of PurchaseDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PurchaseDetails
Returns a new instance of PurchaseDetails.
6626 6627 6628 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6626 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
ID of the account used to purchase the ticket.
Corresponds to the JSON property accountId
6590 6591 6592 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6590 def account_id @account_id end |
#confirmation_code ⇒ String
The confirmation code for the purchase. This may be the same for multiple
different tickets and is used to group tickets together.
Corresponds to the JSON property confirmationCode
6596 6597 6598 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6596 def confirmation_code @confirmation_code end |
#purchase_date_time ⇒ String
The purchase date/time of the ticket. This is an ISO 8601 extended format date/
time, with or without an offset. Time may be specified up to nanosecond
precision. Offsets may be specified with seconds precision (even though offset
seconds is not part of ISO 8601). For example: 1985-04-12T23:20:50.52Z
would
be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC.
1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.52 seconds after
the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as
the above example). If the event were in New York, this would be the
equivalent of Eastern Daylight Time (EDT). Remember that offset varies in
regions that observe Daylight Saving Time (or Summer Time), depending on the
time of the year. 1985-04-12T19:20:50.52
would be 20 minutes and 50.52
seconds after the 19th hour of April 12th, 1985 with no offset information.
Without offset information, some rich features may not be available.
Corresponds to the JSON property purchaseDateTime
6613 6614 6615 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6613 def purchase_date_time @purchase_date_time end |
#purchase_receipt_number ⇒ String
Receipt number/identifier for tracking the ticket purchase via the body that
sold the ticket.
Corresponds to the JSON property purchaseReceiptNumber
6619 6620 6621 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6619 def purchase_receipt_number @purchase_receipt_number end |
#ticket_cost ⇒ Google::Apis::WalletobjectsV1::TicketCost
The cost of the ticket.
Corresponds to the JSON property ticketCost
6624 6625 6626 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6624 def ticket_cost @ticket_cost end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6631 6632 6633 6634 6635 6636 6637 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6631 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @confirmation_code = args[:confirmation_code] if args.key?(:confirmation_code) @purchase_date_time = args[:purchase_date_time] if args.key?(:purchase_date_time) @purchase_receipt_number = args[:purchase_receipt_number] if args.key?(:purchase_receipt_number) @ticket_cost = args[:ticket_cost] if args.key?(:ticket_cost) end |