Skip to content

Commit 71988dc

Browse files
authored
TNR-3180 added user_id param to res seed (#67)
* TNR-3180 added user_id param to res seed * TNR-3180 bump version * TNR-3180 changed version date.
1 parent 377b109 commit 71988dc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
# [2.2.3] - 2019-10-04
7+
### Added
8+
- param `created_by` to the `create_reservation_seed()` method, which uses [v1/reservations-seed](https://connect.vacasa.com/#operation/post-reservations-seed)
9+
610
# [2.2.2] - 2019-09-25
711
### Added
812
- param `discount_id` to the `create_reservation_seed()` method, which uses [v1/reservations-seed](https://connect.vacasa.com/#operation/post-reservations-seed)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='VacasaConnect',
5-
version='2.2.2',
5+
version='2.2.3',
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',

vacasa/connect/connect.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ def create_reservation_seed(self,
904904
departure: str,
905905
booked_currency_code: str,
906906
quote_id: str,
907+
created_by: int,
907908
discount_id: int = None,
908909
source: str = None,
909910
anonymous_id: str = None):
@@ -916,6 +917,7 @@ def create_reservation_seed(self,
916917
booked_currency_code: The currency of record for the unit being
917918
booked in ISO 4217 alpha code format (e.g. 'USD', 'CLP', etc.).
918919
quote_id: ID of a quote retrieved from the `GET /quotes` endpoint
920+
created_by: The user_id of the user creating the reservation
919921
discount_id: ID of the discount used or None
920922
source: A Vacasa-issued code identifying the source of this request
921923
anonymous_id (optional): UUID4 for tracking
@@ -930,7 +932,8 @@ def create_reservation_seed(self,
930932
booked_currency_code=booked_currency_code,
931933
departure=departure,
932934
unit_id=unit_id,
933-
quote_id=quote_id
935+
quote_id=quote_id,
936+
created_by=created_by
934937
)
935938

936939
if discount_id is not None:

0 commit comments

Comments
 (0)