Skip to content

Commit

Permalink
Exposed object type on event report
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed May 28, 2018
1 parent e4b032b commit a03911c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions seatsio/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def __init__(self, item_data):
self.entrance = item_data.get("entrance")
self.num_booked = item_data.get("numBooked")
self.capacity = item_data.get("capacity")
self.object_type = item_data.get("objectType")


class Subaccount:
Expand Down
2 changes: 2 additions & 0 deletions tests/events/eventReportsTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_reportItemProperties(self):
assert_that(report_item.category_key).is_equal_to("9")
assert_that(report_item.ticket_type).is_equal_to("tt1")
assert_that(report_item.order_id).is_equal_to("order1")
assert_that(report_item.object_type).is_equal_to("seat")
assert_that(report_item.for_sale).is_true()
assert_that(report_item.section).is_none()
assert_that(report_item.entrance).is_none()
Expand All @@ -41,6 +42,7 @@ def test_reportItemPropertiesForGA(self):
assert_that(report_item).is_instance(EventReportItem)
assert_that(report_item.status).is_equal_to("free")
assert_that(report_item.label).is_equal_to("GA1")
assert_that(report_item.object_type).is_equal_to("generalAdmission")
assert_that(report_item.category_label).is_equal_to("Cat1")
assert_that(report_item.category_key).is_equal_to("9")
assert_that(report_item.ticket_type).is_none()
Expand Down

0 comments on commit a03911c

Please sign in to comment.