File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 33The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ )
44and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
55
6+ ## [ 4.24.0] - 2022-07-07
7+
8+ ## Changed
9+
10+ - Added ` required ` filter to ` get_amenities() ` .
11+
612## [ 4.23.0] - 2021-01-03
713
814## Changed
Original file line number Diff line number Diff line change 22
33setup (
44 name = 'VacasaConnect' ,
5- version = '4.23 .0' ,
5+ version = '4.24 .0' ,
66 description = 'A Python 3.6+ SDK for the connect.vacasa.com API.' ,
77 packages = ['vacasa.connect' ],
88 url = 'https://github.com/Vacasa/python-vacasa-connect-sdk' ,
Original file line number Diff line number Diff line change @@ -443,7 +443,8 @@ def get_amenities(self,
443443 params : dict = None ,
444444 include_categories : bool = False ,
445445 include_content : bool = False ,
446- include_options : bool = False
446+ include_options : bool = False ,
447+ filter_required = False
447448 ):
448449 """Retrieve a master list of all amenities
449450
@@ -465,6 +466,9 @@ def get_amenities(self,
465466 if include_options :
466467 params = self ._add_include_param (params , 'options' )
467468
469+ if filter_required :
470+ params ['filter[required]' ] = True
471+
468472 return self ._iterate_pages (url , headers , params )
469473
470474 def get_amenities_groups (self , params : dict = None ):
You can’t perform that action at this time.
0 commit comments