Skip to content

Commit

Permalink
Merge pull request #56 from gadventures/checkin_hash_change
Browse files Browse the repository at this point in the history
add additional fields to Checkin resource, and update hash in test
  • Loading branch information
bartek committed Oct 19, 2016
2 parents 05aa5d7 + f6ceb3d commit 7a26213
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions gapipy/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
'DepartureComponent',
'Image',
'Itinerary',
'Checkin',
'Promotion',
'SingleSupplement',
'Tour',
Expand Down
3 changes: 2 additions & 1 deletion gapipy/resources/checkin/checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ class Checkin(Resource):
_resource_name = 'checkins'
_is_listable = True

_as_is_fields = ['id']
_as_is_fields = ['id', 'status', 'requirements_complete',
'requirements_incomplete']
_date_fields = ['expires']
_resource_fields = [
('booking', 'Booking'),
Expand Down
2 changes: 2 additions & 0 deletions tests/test_live_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Activity,
ActivityDossier,
Airport,
Checkin,
Continent,
Country,
CountryDossier,
Expand Down Expand Up @@ -94,6 +95,7 @@ class LiveAPITestCase(TestCase):
(Activity, 4486),
(ActivityDossier, 9695),
(Airport, 25553),
(Checkin, 'q8YJAtaV9x'),
(Continent, 'NA'),
(Country, 'CA'),
(CountryDossier, 10382),
Expand Down

0 comments on commit 7a26213

Please sign in to comment.