Gapipy

Latest version: v2.36.0

Safety actively analyzes 642295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 27

2.16.0

-------------------

* Completely remove the deprecated ``add_ons`` field from the Departure resource
* Add missing fields to various Dossier resources

* AccommodationDossier: ``flags``, ``is_prepaid``, ``service_time``, ``show_on_reservation_sheet``
* ActivityDossier: ``is_prepaid``, ``service_time``, ``show_on_reservation_sheet``
* CountryDossier: ``flags``
* PlaceDossier: ``flags``
* TransportDossier: ``flags``

* Add ``valid_during_ranges`` list field to the Itinerary resource. This field is
a list field of the newly added ``ValidDuringRange`` model (described below)
* Add ``ValidDuringRange`` model. It consists of two date fields, ``start_date``,
and ``end_date``. It also provides a number of convenience methods to determine
if the date range provided is valid, or relative to some date.

* ``is_expired``: Is it expired relative to ``datetime.date.today``
* ``is_valid_today``: Is it valid relative to ``datetime.date.today``
* ``is_valid_during_range``: Is it valid for some give start/end date range
* ``is_valid_on_or_after_date``: Is it valid on or after some date
* ``is_valid_on_or_before_date``: Is it valid on or before some date
* ``is_valid_on_date``: Is it valid on some date
* ``is_valid_sometime``: Is it valid at all

2.15.0

-------------------

* Add ``country`` reference to ``Nationality`` resource.
* Moved ``resources/bookings/nationality.py`` to ``resources/geo/*``.

2.14.6

-------------------

* Check for presence of ``id`` field directly in the Resource ``__dict__`` in
order to prevent a chicken/egg situation when attempting to ``save``. This is
needed due to the change introduced in 2.14.4, where we explicitly raise an
AttributeError when trying to access the ``id`` attribute.
* Added ``service_code`` field for Activty & Accommodation Dossier resources.

2.14.5

-------------------

* deleted

2.14.4

-------------------

* Raise an ``AttributeError`` when trying to access ``id`` on
``Resource.__getattr__``.
* Don't send duplicate params when paginating through list results.
* Implement ``first()`` method for ``Query``.

2.14.3

-------------------

* Expose Linked Bookings via the API.

Page 7 of 27

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.