Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/google_wallet/resources/event_ticket/class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Resources
module EventTicket
class Class < Base
attr_reader :class_identifier, :issuer_name, :logo_url, :event_id, :event_name,
:venue_name, :venue_address, :start_date_time, :end_date_time, :country_code,
:hex_background_color, :hero_image_url, :homepage_url, :callback_url, :id
:venue_name, :venue_address, :start_date_time, :end_date_time, :doors_open_date_time,
:country_code, :hex_background_color, :hero_image_url, :homepage_url, :callback_url, :id


# attributes = {
Expand All @@ -22,6 +22,7 @@ class Class < Base
# venue_address: "Shevchenka street 41/5, Ukraine, Lviv",
# start_date_time: '2023-08-27T22:30',
# end_date_time: '2023-08-28T01:30',
# doors_open_date_time: '2023-08-27T20:00',
# hex_background_color: '#ff0077',
# callback_url: 'https://example.com/gpass_callback'
# }
Expand Down Expand Up @@ -76,6 +77,7 @@ def template
template[:dateTime] = {}
template[:dateTime][:start] = start_date_time if present?(start_date_time)
template[:dateTime][:end] = end_date_time if present?(end_date_time)
template[:dateTime][:doorsOpen] = doors_open_date_time if present?(doors_open_date_time)

template
end
Expand Down