wink-sdk-travel-agent 0.0.55__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wink_sdk_travel_agent/__init__.py +229 -0
- wink_sdk_travel_agent/api/__init__.py +6 -0
- wink_sdk_travel_agent/api/analytics_api.py +671 -0
- wink_sdk_travel_agent/api/travel_agent_api.py +1668 -0
- wink_sdk_travel_agent/api_client.py +805 -0
- wink_sdk_travel_agent/api_response.py +21 -0
- wink_sdk_travel_agent/configuration.py +582 -0
- wink_sdk_travel_agent/exceptions.py +217 -0
- wink_sdk_travel_agent/models/__init__.py +106 -0
- wink_sdk_travel_agent/models/address_agent.py +111 -0
- wink_sdk_travel_agent/models/affiliate_account_agent.py +181 -0
- wink_sdk_travel_agent/models/affiliate_account_user_agent.py +115 -0
- wink_sdk_travel_agent/models/agent_booking_request_agent.py +130 -0
- wink_sdk_travel_agent/models/aggregate_descriptor_agent.py +100 -0
- wink_sdk_travel_agent/models/ancillary_request_agent.py +111 -0
- wink_sdk_travel_agent/models/authenticated_user_agent.py +100 -0
- wink_sdk_travel_agent/models/bed_agent.py +91 -0
- wink_sdk_travel_agent/models/bedroom_agent.py +106 -0
- wink_sdk_travel_agent/models/bedroom_configuration_agent.py +102 -0
- wink_sdk_travel_agent/models/beneficiary_agent.py +156 -0
- wink_sdk_travel_agent/models/beneficiary_charge_agent.py +97 -0
- wink_sdk_travel_agent/models/booking_agent.py +342 -0
- wink_sdk_travel_agent/models/booking_analytics_supplier.py +96 -0
- wink_sdk_travel_agent/models/booking_ancillary_agent.py +155 -0
- wink_sdk_travel_agent/models/booking_confirmations_agent.py +101 -0
- wink_sdk_travel_agent/models/booking_contract_agent.py +697 -0
- wink_sdk_travel_agent/models/booking_contract_item_agent.py +206 -0
- wink_sdk_travel_agent/models/booking_contract_payment_details_agent.py +124 -0
- wink_sdk_travel_agent/models/booking_itinerary_agent.py +113 -0
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_agent.py +98 -0
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_child_agent.py +90 -0
- wink_sdk_travel_agent/models/booking_overview_request_supplier.py +97 -0
- wink_sdk_travel_agent/models/booking_user_agent.py +102 -0
- wink_sdk_travel_agent/models/booking_user_request_agent.py +96 -0
- wink_sdk_travel_agent/models/booking_user_session_agent.py +112 -0
- wink_sdk_travel_agent/models/booking_view_agent.py +101 -0
- wink_sdk_travel_agent/models/boolean_response_agent.py +90 -0
- wink_sdk_travel_agent/models/cancellation_detail_agent.py +98 -0
- wink_sdk_travel_agent/models/cancellation_policy_agent.py +166 -0
- wink_sdk_travel_agent/models/cancellation_policy_exception_agent.py +100 -0
- wink_sdk_travel_agent/models/cancellation_policy_exceptions_agent.py +97 -0
- wink_sdk_travel_agent/models/cancellation_policy_lightweight_agent.py +167 -0
- wink_sdk_travel_agent/models/chart_category_axis_supplier.py +88 -0
- wink_sdk_travel_agent/models/chart_legend_supplier.py +88 -0
- wink_sdk_travel_agent/models/chart_series_supplier.py +90 -0
- wink_sdk_travel_agent/models/chart_title_supplier.py +88 -0
- wink_sdk_travel_agent/models/child_agent.py +91 -0
- wink_sdk_travel_agent/models/commissionable_entry_agent.py +102 -0
- wink_sdk_travel_agent/models/company_agent.py +176 -0
- wink_sdk_travel_agent/models/company_user_agent.py +114 -0
- wink_sdk_travel_agent/models/company_view_agent.py +101 -0
- wink_sdk_travel_agent/models/composite_filter_descriptor_agent.py +108 -0
- wink_sdk_travel_agent/models/contact_agent.py +104 -0
- wink_sdk_travel_agent/models/country_agent.py +100 -0
- wink_sdk_travel_agent/models/country_lightweight_agent.py +100 -0
- wink_sdk_travel_agent/models/create_agent_booking400_response.py +141 -0
- wink_sdk_travel_agent/models/create_agent_booking_request_agent.py +105 -0
- wink_sdk_travel_agent/models/custom_monetary_amount.py +91 -0
- wink_sdk_travel_agent/models/customization_lightweight_agent.py +232 -0
- wink_sdk_travel_agent/models/customization_theme_colors_agent.py +108 -0
- wink_sdk_travel_agent/models/daily_rate_agent.py +115 -0
- wink_sdk_travel_agent/models/dow_pattern_group_agent.py +102 -0
- wink_sdk_travel_agent/models/engine_configuration_booking_report_agent.py +230 -0
- wink_sdk_travel_agent/models/engine_configuration_theme_agent.py +108 -0
- wink_sdk_travel_agent/models/engine_configuration_theme_colors_agent.py +108 -0
- wink_sdk_travel_agent/models/extra_charge_agent.py +103 -0
- wink_sdk_travel_agent/models/extra_charges_agent.py +112 -0
- wink_sdk_travel_agent/models/fee_agent.py +105 -0
- wink_sdk_travel_agent/models/filter_descriptor_agent.py +107 -0
- wink_sdk_travel_agent/models/general_manager_agent.py +104 -0
- wink_sdk_travel_agent/models/generic_error_message.py +94 -0
- wink_sdk_travel_agent/models/geo_json_point_agent.py +94 -0
- wink_sdk_travel_agent/models/geo_name_agent.py +136 -0
- wink_sdk_travel_agent/models/geo_name_lightweight_agent.py +136 -0
- wink_sdk_travel_agent/models/group_descriptor_agent.py +110 -0
- wink_sdk_travel_agent/models/grouped_booking_sales_metrics_supplier_details.py +110 -0
- wink_sdk_travel_agent/models/guest_room_agent.py +258 -0
- wink_sdk_travel_agent/models/guest_room_lightweight_agent.py +259 -0
- wink_sdk_travel_agent/models/guest_user_agent.py +108 -0
- wink_sdk_travel_agent/models/hotel_on_map_agent.py +270 -0
- wink_sdk_travel_agent/models/image_attribution_agent.py +91 -0
- wink_sdk_travel_agent/models/line_chart_supplier.py +122 -0
- wink_sdk_travel_agent/models/localized_description_agent.py +109 -0
- wink_sdk_travel_agent/models/localized_price_agent.py +162 -0
- wink_sdk_travel_agent/models/managed_by_entity_agent.py +103 -0
- wink_sdk_travel_agent/models/managed_by_entity_rules_agent.py +95 -0
- wink_sdk_travel_agent/models/media_author_attribution_agent.py +91 -0
- wink_sdk_travel_agent/models/online_presence_agent.py +112 -0
- wink_sdk_travel_agent/models/page_booking_agent.py +124 -0
- wink_sdk_travel_agent/models/page_booking_view_agent.py +124 -0
- wink_sdk_travel_agent/models/pageable_object_agent.py +102 -0
- wink_sdk_travel_agent/models/payout_agent.py +158 -0
- wink_sdk_travel_agent/models/payout_fee_agent.py +116 -0
- wink_sdk_travel_agent/models/pending_refund_agent.py +99 -0
- wink_sdk_travel_agent/models/perk_lightweight_agent.py +105 -0
- wink_sdk_travel_agent/models/personal_agent.py +139 -0
- wink_sdk_travel_agent/models/pet_info_dto_agent.py +90 -0
- wink_sdk_travel_agent/models/preferences_agent.py +128 -0
- wink_sdk_travel_agent/models/profile_agent.py +110 -0
- wink_sdk_travel_agent/models/profile_lightweight_agent.py +111 -0
- wink_sdk_travel_agent/models/profile_user_agent.py +100 -0
- wink_sdk_travel_agent/models/property_aggregate_lightweight_agent.py +245 -0
- wink_sdk_travel_agent/models/property_policy_agent.py +150 -0
- wink_sdk_travel_agent/models/quote_agent.py +94 -0
- wink_sdk_travel_agent/models/quote_lightweight_agent.py +95 -0
- wink_sdk_travel_agent/models/rate_plan_agent.py +172 -0
- wink_sdk_travel_agent/models/rate_plan_level_fee_agent.py +112 -0
- wink_sdk_travel_agent/models/refund_agent.py +167 -0
- wink_sdk_travel_agent/models/reporting_ancillary_agent.py +108 -0
- wink_sdk_travel_agent/models/reporting_daily_rate_agent.py +99 -0
- wink_sdk_travel_agent/models/reporting_extra_charge_agent.py +98 -0
- wink_sdk_travel_agent/models/review_agent.py +133 -0
- wink_sdk_travel_agent/models/review_answer_agent.py +102 -0
- wink_sdk_travel_agent/models/review_lightweight_agent.py +134 -0
- wink_sdk_travel_agent/models/review_user_agent.py +99 -0
- wink_sdk_travel_agent/models/room_configuration_agent.py +99 -0
- wink_sdk_travel_agent/models/room_configuration_price_rate_plan_agent.py +130 -0
- wink_sdk_travel_agent/models/room_stay_agent.py +183 -0
- wink_sdk_travel_agent/models/simple_address_agent.py +109 -0
- wink_sdk_travel_agent/models/simple_date_time_itinerary_agent.py +108 -0
- wink_sdk_travel_agent/models/simple_description_agent.py +111 -0
- wink_sdk_travel_agent/models/simple_multimedia_agent.py +156 -0
- wink_sdk_travel_agent/models/social_agent.py +100 -0
- wink_sdk_travel_agent/models/sort_descriptor_agent.py +100 -0
- wink_sdk_travel_agent/models/sort_object.py +96 -0
- wink_sdk_travel_agent/models/sort_object_agent.py +92 -0
- wink_sdk_travel_agent/models/state_agent.py +117 -0
- wink_sdk_travel_agent/models/stay_rate_agent.py +209 -0
- wink_sdk_travel_agent/models/sub_country_agent.py +92 -0
- wink_sdk_travel_agent/models/sub_country_lightweight_agent.py +92 -0
- wink_sdk_travel_agent/models/sub_sub_country_agent.py +92 -0
- wink_sdk_travel_agent/models/sub_sub_country_lightweight_agent.py +92 -0
- wink_sdk_travel_agent/models/supplier_contract_item_policy_agent.py +170 -0
- wink_sdk_travel_agent/models/travel_agent_agent.py +90 -0
- wink_sdk_travel_agent/models/travel_inventory_recognition_agent.py +121 -0
- wink_sdk_travel_agent/models/upsert_travel_agent_request_agent.py +90 -0
- wink_sdk_travel_agent/models/wink_booking_contract_agent.py +697 -0
- wink_sdk_travel_agent/py.typed +0 -0
- wink_sdk_travel_agent/rest.py +259 -0
- wink_sdk_travel_agent-0.0.55.dist-info/METADATA +539 -0
- wink_sdk_travel_agent-0.0.55.dist-info/RECORD +144 -0
- wink_sdk_travel_agent-0.0.55.dist-info/WHEEL +5 -0
- wink_sdk_travel_agent-0.0.55.dist-info/licenses/LICENSE +201 -0
- wink_sdk_travel_agent-0.0.55.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wink API
|
|
5
|
+
|
|
6
|
+
# Introduction Welcome to the Wink API - A programmer-friendly way to manage, sell and book travel inventory on the Wink platform. The API gives you all the tools you need to ready your properties and inventory for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel inventory and promote / sell it in a wide variety of ways. # Integrations We have already integrated with the most well-known channel managers so you don't have to. To see our current integrations, please go to https://extranet.wink.travel and scroll to Connectivity section. Once your properties are set up, you can finish the setup by mapping your property to Wink using your channel manager partner portal. If your properties don't have a channel manager, you can easily manage rates and availability with this API. # Intended Audience Programmers are [most likely] a requirement to start integrating with Wink. Companies and organizations that would most benefit from integrating with us are new and existing travel companies that have relationships with suppliers and that need an advanced system from which to manage their travel inventory and get that same inventory out to as many eyeballs as possible at the lowest price possible. - Hotel chains - Hotel brands - Travel tech companies - Destination sites - Integrators - Aggregators - Destination management companies - Travel agencies - OTAs ## APIs Not every integrator needs every API. For that reason, we have separated APIs into context. ### Test API - [Ping](/ping): The Ping API is a quick test endpoint to verify that your credentials work Wink. ### Common APIs - [Notifications](/notifications): The Notifications API is a way for us to stay in touch with your user, property or affiliate account. - [User Settings](/user-settings): The User Settings API exposes endpoints to allow 3rd party integrators to communicate with Wink. ### Consume APIs Consume endpoints are for developers who want to find existing travel inventory and either book it or use it to advertise through one of their Wink affiliate accounts. - [Configuration](/customization-client): A single endpoint to retrieve whitelabel + customization information for the booking customization. - [Lookup](/lookup): All APIs related to locating inventory by region, locale and property flags. - [Inventory](/inventory): All APIs related to retrieve known travel inventory as it was found using the Lookup API.. - [Booking](/booking): All APIs related to creating bookings on the platform. - [Travel Agent](/travel-agent): The Travel Agent API exposes endpoints to manage agent-facilitated bookings. ### Produce APIs Produce endpoints are for developers who want to create and manage travel inventory. #### Property - [Property registration](/extranet/property/register): As a producer, this is, oftentimes, where you start your journey. These endpoints let you create properties on Wink. - [Property](/extranet/property): This collection of property endpoints are mostly management endpoints that let you display, change status and similar for your existing properties. - [Facilities](/extranet/facilities): This collection of endpoints let you manage facilities; such as room types. - [Experiences](/extranet/experiences): This collection of endpoints let you manage experiences, such as activities. - [Monetize](/extranet/monetize): The Monetize API exposes endpoints for managing cancellation polies, rate plans, promotions and more on Wink. - [Distribution](/extranet/distribution): The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink. - [Property Booking](/extranet/booking): The Property Booking API exposes endpoints for managing bookings and reviews at the property-level. #### Affiliate - [Affiliate](/affiliate): This collection of affiliate endpoints are mostly management endpoints that let you display, change status and similar for your existing accounts. - [Browse](/affiliate/browse): The Browse API exposes endpoints for affiliates to find suppliers and inventory to sell. - [Inventory](/affiliate/inventory): The Inventory API exposes endpoints for affiliates to manage the inventory they want to sell and how they want to sell it. - [Sales Channel](/affiliate/sales-channel): The Sales Channel API exposes endpoints for affiliates to manage existing sales channels as well as find new ones. - [WinkLinks](/affiliate/winklinks): The WinkLinks API exposes endpoints for affiliates to manage their WinkLinks page. #### Rate provider - [Channel manager](/channel-manager): The Channel Manager API enables external channel manager partners to map, exchange rate / availability information with us as well as be informed of bookings that occur on the Wink platform for one of their properties. ### Taxonomy APIs Taxonomy endpoints are for developers who want to consume and produce travel inventory and need taxonomies of standard and non-standard codes for inventory types, classes, statuses etc. - [Reference](/reference): All APIs related to retrieving platform-supported taxonomies. ### Insight APIs Insight endpoints do exactly what the name implies - They offer platform-level insight into the activities of producers and consumers. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. ### Payment APIs Payment endpoints are for developers who want to purchase travel inventory. This can be done via the API as a registered Travel Agent or using our API in conjunction with our PCI compliant payment widget for all other entities. - [TripPay](/payment): All APIs related to TripPay account management, booking, mapping and integration features. ## SDKs We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: [https://openapi-generator.tech/docs/generators](https://openapi-generator.tech/docs/generators). - Java SDK [https://github.com/wink-travel/wink-sdk-java](https://github.com/wink-travel/wink-sdk-java) ## Usage These features are made available to you via a [REST API](https://en.wikipedia.org/wiki/Representational_state_transfer). This API is language agnostic. ## Versioning We chose to version our endpoints in a way that we hope affects your integration minimally. You request the version of our API you wish to work with via the `Wink-Version` header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints. ## Release history - Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md # Travel Agent API The Travel Agent API exposes endpoints to manage agent-facilitated bookings. This API lets you: 1. Travel Agent: Manage agent entity. 2. Booking: Create / Manage bookings Browse the endpoints in the left navigation bar to get started.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 30.29.0
|
|
9
|
+
Contact: bjorn@wink.travel
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from datetime import datetime
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
|
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
24
|
+
from uuid import UUID
|
|
25
|
+
from wink_sdk_travel_agent.models.booking_ancillary_agent import BookingAncillaryAgent
|
|
26
|
+
from wink_sdk_travel_agent.models.booking_user_agent import BookingUserAgent
|
|
27
|
+
from wink_sdk_travel_agent.models.booking_user_session_agent import BookingUserSessionAgent
|
|
28
|
+
from wink_sdk_travel_agent.models.commissionable_entry_agent import CommissionableEntryAgent
|
|
29
|
+
from wink_sdk_travel_agent.models.custom_monetary_amount import CustomMonetaryAmount
|
|
30
|
+
from wink_sdk_travel_agent.models.customization_lightweight_agent import CustomizationLightweightAgent
|
|
31
|
+
from wink_sdk_travel_agent.models.property_aggregate_lightweight_agent import PropertyAggregateLightweightAgent
|
|
32
|
+
from wink_sdk_travel_agent.models.review_lightweight_agent import ReviewLightweightAgent
|
|
33
|
+
from wink_sdk_travel_agent.models.room_stay_agent import RoomStayAgent
|
|
34
|
+
from wink_sdk_travel_agent.models.social_agent import SocialAgent
|
|
35
|
+
from wink_sdk_travel_agent.models.wink_booking_contract_agent import WinkBookingContractAgent
|
|
36
|
+
from typing import Optional, Set
|
|
37
|
+
from typing_extensions import Self
|
|
38
|
+
|
|
39
|
+
class BookingAgent(BaseModel):
|
|
40
|
+
"""
|
|
41
|
+
BookingAgent
|
|
42
|
+
""" # noqa: E501
|
|
43
|
+
id: Optional[StrictStr] = Field(default=None, description="Document UUID")
|
|
44
|
+
created_date: Optional[datetime] = Field(default=None, description="Datetime this record was first created", alias="createdDate")
|
|
45
|
+
last_update: Optional[datetime] = Field(default=None, description="Datetime this record was last updated", alias="lastUpdate")
|
|
46
|
+
version: Optional[StrictInt] = Field(default=None, description="Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.")
|
|
47
|
+
creation: StrictStr = Field(description="Communicates whether the booking was created normally or if it failed or was just for testing.")
|
|
48
|
+
group_identifier: UUID = Field(description="Unique record identifier for the collection of bookings that were made at the same time.", alias="groupIdentifier")
|
|
49
|
+
customization: CustomizationLightweightAgent = Field(description="Which customization configuration record did the entity application used to facilitate in making this booking happen.")
|
|
50
|
+
booking_code: StrictStr = Field(description="Unique user-friendly booking geoname. This code should be used when corresponding with travelers.", alias="bookingCode")
|
|
51
|
+
user: BookingUserAgent = Field(description="User details for the authenticated person that made the booking.")
|
|
52
|
+
user_session: BookingUserSessionAgent = Field(description="User session state as it was when the user made the booking.", alias="userSession")
|
|
53
|
+
server_url: StrictStr = Field(description="The URL the booking occurred", alias="serverUrl")
|
|
54
|
+
socials: Optional[List[SocialAgent]] = Field(default=None, description="List of all social network account property has for the traveler to get in touch.")
|
|
55
|
+
review: Optional[ReviewLightweightAgent] = Field(default=None, description="User review created by the traveler after the booking completed.")
|
|
56
|
+
email_header_logo_url: StrictStr = Field(description="Full url of the image logo optimized for emails", alias="emailHeaderLogoUrl")
|
|
57
|
+
logo_identifier: Optional[StrictStr] = Field(default=None, description="Logo cloudinary identifier for potential reuse", alias="logoIdentifier")
|
|
58
|
+
hotel: PropertyAggregateLightweightAgent = Field(description="Combined property data.")
|
|
59
|
+
room_stay: Optional[RoomStayAgent] = Field(default=None, description="All information about the room that was booked.", alias="roomStay")
|
|
60
|
+
special_requests: Optional[StrictStr] = Field(default=None, description="Free text where the traveler can add a message to the property.", alias="specialRequests")
|
|
61
|
+
comment: Optional[StrictStr] = Field(default=None, description="Internal comment field the platform can add and make available to channel manager partners.")
|
|
62
|
+
early_check_in_charge: Optional[CustomMonetaryAmount] = Field(default=None, description="Early check-in charge fixed amount that is due if guest checks out early.", alias="earlyCheckInCharge")
|
|
63
|
+
late_check_out_charge: Optional[CustomMonetaryAmount] = Field(default=None, description="Late check-out charge fixed amount that is due if guest checks out late.", alias="lateCheckOutCharge")
|
|
64
|
+
early_check_in_charge_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Early check-in charge calculated in percent of first room night price.", alias="earlyCheckInChargePercent")
|
|
65
|
+
late_check_out_charge_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Early check-in charge calculated in percent of first room night price.", alias="lateCheckOutChargePercent")
|
|
66
|
+
hotel_image_url: StrictStr = Field(description="Absolute URL of hotel image that can be used as-is", alias="hotelImageUrl")
|
|
67
|
+
room_image_url: StrictStr = Field(description="Absolute URL of room image that can be used as-is", alias="roomImageUrl")
|
|
68
|
+
commission_list: Optional[List[CommissionableEntryAgent]] = Field(default=None, description="List of all travel inventory entries that are due a commission to the affiliate.", alias="commissionList")
|
|
69
|
+
ancillary_list: Optional[List[BookingAncillaryAgent]] = Field(default=None, alias="ancillaryList")
|
|
70
|
+
booking_contract: Optional[WinkBookingContractAgent] = Field(default=None, description="Booking contract created by TripPay", alias="bookingContract")
|
|
71
|
+
static_map_image_url: Optional[StrictStr] = Field(default=None, description="Url of map image that can be sent via email", alias="staticMapImageUrl")
|
|
72
|
+
static_map_url: Optional[StrictStr] = Field(default=None, description="Url of map image location on Google Maps", alias="staticMapUrl")
|
|
73
|
+
status: Optional[StrictStr] = Field(default=None, description="Convenience data point to show which status the booking currently has.")
|
|
74
|
+
rate_source: Optional[StrictStr] = Field(default=None, description="Rate origin. This is usually the property channel manager.", alias="rateSource")
|
|
75
|
+
has_add_ons: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any add-on offers are in this booking.", alias="hasAddOns")
|
|
76
|
+
meeting_rooms: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Meeting room reservation records.", alias="meetingRooms")
|
|
77
|
+
restaurants: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Restaurant reservation records.")
|
|
78
|
+
has_breakfast: Optional[StrictBool] = Field(default=None, description="Convenience data point to get to breakfast quickly.", alias="hasBreakfast")
|
|
79
|
+
has_brunch: Optional[StrictBool] = Field(default=None, description="Convenience data point to get to brunch quickly.", alias="hasBrunch")
|
|
80
|
+
has_lunch: Optional[StrictBool] = Field(default=None, description="Convenience data point to get to lunch quickly.", alias="hasLunch")
|
|
81
|
+
has_dinner: Optional[StrictBool] = Field(default=None, description="Convenience data point to get to dinner quickly.", alias="hasDinner")
|
|
82
|
+
has_all_inclusive: Optional[StrictBool] = Field(default=None, description="Convenience data point to get to all-inclusive quickly.", alias="hasAllInclusive")
|
|
83
|
+
has_all_inclusive_plus_alcohol: Optional[StrictBool] = Field(default=None, description="Convenience data point to get to all-inclusive with alcohol quickly.", alias="hasAllInclusivePlusAlcohol")
|
|
84
|
+
has_room_type_ancillaries: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any room type ancillaries are in this booking.", alias="hasRoomTypeAncillaries")
|
|
85
|
+
has_food: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any food is included in this booking.", alias="hasFood")
|
|
86
|
+
has_restaurants: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any restaurant reservations are included in this booking.", alias="hasRestaurants")
|
|
87
|
+
has_meeting_rooms: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any meeting room reservations are included in this booking.", alias="hasMeetingRooms")
|
|
88
|
+
has_spas: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any spa reservations are included in this booking.", alias="hasSpas")
|
|
89
|
+
has_activities: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any activity reservations are included in this booking.", alias="hasActivities")
|
|
90
|
+
has_attractions: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any attractions reservations are included in this booking.", alias="hasAttractions")
|
|
91
|
+
has_places: Optional[StrictBool] = Field(default=None, description="Convenience data point to check if any place reservations are included in this booking.", alias="hasPlaces")
|
|
92
|
+
reporting_daily_rate_list: Optional[List[Any]] = Field(default=None, alias="reportingDailyRateList")
|
|
93
|
+
reporting_ancillary_list: Optional[List[Any]] = Field(default=None, alias="reportingAncillaryList")
|
|
94
|
+
reporting_extra_charge_list: Optional[List[Any]] = Field(default=None, alias="reportingExtraChargeList")
|
|
95
|
+
activities: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Activity reservation records.")
|
|
96
|
+
attractions: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Attraction reservation records.")
|
|
97
|
+
places: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Place reservation records.")
|
|
98
|
+
room_type_ancillaries: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Room type ancillary records.", alias="roomTypeAncillaries")
|
|
99
|
+
add_ons: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Add-on records.", alias="addOns")
|
|
100
|
+
spas: Optional[List[BookingAncillaryAgent]] = Field(default=None, description="Spa reservation records.")
|
|
101
|
+
cancellable_by_agent: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by the agent.", alias="cancellableByAgent")
|
|
102
|
+
cancellable_by_supplier: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by the supplier.", alias="cancellableBySupplier")
|
|
103
|
+
cancellable_by_traveler: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by the traveller.", alias="cancellableByTraveler")
|
|
104
|
+
__properties: ClassVar[List[str]] = ["id", "createdDate", "lastUpdate", "version", "creation", "groupIdentifier", "customization", "bookingCode", "user", "userSession", "serverUrl", "socials", "review", "emailHeaderLogoUrl", "logoIdentifier", "hotel", "roomStay", "specialRequests", "comment", "earlyCheckInCharge", "lateCheckOutCharge", "earlyCheckInChargePercent", "lateCheckOutChargePercent", "hotelImageUrl", "roomImageUrl", "commissionList", "ancillaryList", "bookingContract", "staticMapImageUrl", "staticMapUrl", "status", "rateSource", "hasAddOns", "meetingRooms", "restaurants", "hasBreakfast", "hasBrunch", "hasLunch", "hasDinner", "hasAllInclusive", "hasAllInclusivePlusAlcohol", "hasRoomTypeAncillaries", "hasFood", "hasRestaurants", "hasMeetingRooms", "hasSpas", "hasActivities", "hasAttractions", "hasPlaces", "reportingDailyRateList", "reportingAncillaryList", "reportingExtraChargeList", "activities", "attractions", "places", "roomTypeAncillaries", "addOns", "spas", "cancellableByAgent", "cancellableBySupplier", "cancellableByTraveler"]
|
|
105
|
+
|
|
106
|
+
@field_validator('creation')
|
|
107
|
+
def creation_validate_enum(cls, value):
|
|
108
|
+
"""Validates the enum"""
|
|
109
|
+
if value not in set(['NORMAL', 'TEST', 'FAILED']):
|
|
110
|
+
raise ValueError("must be one of enum values ('NORMAL', 'TEST', 'FAILED')")
|
|
111
|
+
return value
|
|
112
|
+
|
|
113
|
+
@field_validator('status')
|
|
114
|
+
def status_validate_enum(cls, value):
|
|
115
|
+
"""Validates the enum"""
|
|
116
|
+
if value is None:
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
if value not in set(['CANCELLED_BY_HOTEL', 'CANCELLED_BY_GUEST', 'CANCELLED_BY_ADMIN', 'CANCELLED_BY_SALES_CHANNEL', 'PAST', 'FUTURE', 'CANCELLED_BY_ACQUIRER', 'ACTIVE', 'FAILED', 'FULLY_REFUNDED']):
|
|
120
|
+
raise ValueError("must be one of enum values ('CANCELLED_BY_HOTEL', 'CANCELLED_BY_GUEST', 'CANCELLED_BY_ADMIN', 'CANCELLED_BY_SALES_CHANNEL', 'PAST', 'FUTURE', 'CANCELLED_BY_ACQUIRER', 'ACTIVE', 'FAILED', 'FULLY_REFUNDED')")
|
|
121
|
+
return value
|
|
122
|
+
|
|
123
|
+
model_config = ConfigDict(
|
|
124
|
+
populate_by_name=True,
|
|
125
|
+
validate_assignment=True,
|
|
126
|
+
protected_namespaces=(),
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def to_str(self) -> str:
|
|
131
|
+
"""Returns the string representation of the model using alias"""
|
|
132
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
133
|
+
|
|
134
|
+
def to_json(self) -> str:
|
|
135
|
+
"""Returns the JSON representation of the model using alias"""
|
|
136
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
137
|
+
return json.dumps(self.to_dict())
|
|
138
|
+
|
|
139
|
+
@classmethod
|
|
140
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
141
|
+
"""Create an instance of BookingAgent from a JSON string"""
|
|
142
|
+
return cls.from_dict(json.loads(json_str))
|
|
143
|
+
|
|
144
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
145
|
+
"""Return the dictionary representation of the model using alias.
|
|
146
|
+
|
|
147
|
+
This has the following differences from calling pydantic's
|
|
148
|
+
`self.model_dump(by_alias=True)`:
|
|
149
|
+
|
|
150
|
+
* `None` is only added to the output dict for nullable fields that
|
|
151
|
+
were set at model initialization. Other fields with value `None`
|
|
152
|
+
are ignored.
|
|
153
|
+
"""
|
|
154
|
+
excluded_fields: Set[str] = set([
|
|
155
|
+
])
|
|
156
|
+
|
|
157
|
+
_dict = self.model_dump(
|
|
158
|
+
by_alias=True,
|
|
159
|
+
exclude=excluded_fields,
|
|
160
|
+
exclude_none=True,
|
|
161
|
+
)
|
|
162
|
+
# override the default output from pydantic by calling `to_dict()` of customization
|
|
163
|
+
if self.customization:
|
|
164
|
+
_dict['customization'] = self.customization.to_dict()
|
|
165
|
+
# override the default output from pydantic by calling `to_dict()` of user
|
|
166
|
+
if self.user:
|
|
167
|
+
_dict['user'] = self.user.to_dict()
|
|
168
|
+
# override the default output from pydantic by calling `to_dict()` of user_session
|
|
169
|
+
if self.user_session:
|
|
170
|
+
_dict['userSession'] = self.user_session.to_dict()
|
|
171
|
+
# override the default output from pydantic by calling `to_dict()` of each item in socials (list)
|
|
172
|
+
_items = []
|
|
173
|
+
if self.socials:
|
|
174
|
+
for _item_socials in self.socials:
|
|
175
|
+
if _item_socials:
|
|
176
|
+
_items.append(_item_socials.to_dict())
|
|
177
|
+
_dict['socials'] = _items
|
|
178
|
+
# override the default output from pydantic by calling `to_dict()` of review
|
|
179
|
+
if self.review:
|
|
180
|
+
_dict['review'] = self.review.to_dict()
|
|
181
|
+
# override the default output from pydantic by calling `to_dict()` of hotel
|
|
182
|
+
if self.hotel:
|
|
183
|
+
_dict['hotel'] = self.hotel.to_dict()
|
|
184
|
+
# override the default output from pydantic by calling `to_dict()` of room_stay
|
|
185
|
+
if self.room_stay:
|
|
186
|
+
_dict['roomStay'] = self.room_stay.to_dict()
|
|
187
|
+
# override the default output from pydantic by calling `to_dict()` of early_check_in_charge
|
|
188
|
+
if self.early_check_in_charge:
|
|
189
|
+
_dict['earlyCheckInCharge'] = self.early_check_in_charge.to_dict()
|
|
190
|
+
# override the default output from pydantic by calling `to_dict()` of late_check_out_charge
|
|
191
|
+
if self.late_check_out_charge:
|
|
192
|
+
_dict['lateCheckOutCharge'] = self.late_check_out_charge.to_dict()
|
|
193
|
+
# override the default output from pydantic by calling `to_dict()` of each item in commission_list (list)
|
|
194
|
+
_items = []
|
|
195
|
+
if self.commission_list:
|
|
196
|
+
for _item_commission_list in self.commission_list:
|
|
197
|
+
if _item_commission_list:
|
|
198
|
+
_items.append(_item_commission_list.to_dict())
|
|
199
|
+
_dict['commissionList'] = _items
|
|
200
|
+
# override the default output from pydantic by calling `to_dict()` of each item in ancillary_list (list)
|
|
201
|
+
_items = []
|
|
202
|
+
if self.ancillary_list:
|
|
203
|
+
for _item_ancillary_list in self.ancillary_list:
|
|
204
|
+
if _item_ancillary_list:
|
|
205
|
+
_items.append(_item_ancillary_list.to_dict())
|
|
206
|
+
_dict['ancillaryList'] = _items
|
|
207
|
+
# override the default output from pydantic by calling `to_dict()` of booking_contract
|
|
208
|
+
if self.booking_contract:
|
|
209
|
+
_dict['bookingContract'] = self.booking_contract.to_dict()
|
|
210
|
+
# override the default output from pydantic by calling `to_dict()` of each item in meeting_rooms (list)
|
|
211
|
+
_items = []
|
|
212
|
+
if self.meeting_rooms:
|
|
213
|
+
for _item_meeting_rooms in self.meeting_rooms:
|
|
214
|
+
if _item_meeting_rooms:
|
|
215
|
+
_items.append(_item_meeting_rooms.to_dict())
|
|
216
|
+
_dict['meetingRooms'] = _items
|
|
217
|
+
# override the default output from pydantic by calling `to_dict()` of each item in restaurants (list)
|
|
218
|
+
_items = []
|
|
219
|
+
if self.restaurants:
|
|
220
|
+
for _item_restaurants in self.restaurants:
|
|
221
|
+
if _item_restaurants:
|
|
222
|
+
_items.append(_item_restaurants.to_dict())
|
|
223
|
+
_dict['restaurants'] = _items
|
|
224
|
+
# override the default output from pydantic by calling `to_dict()` of each item in activities (list)
|
|
225
|
+
_items = []
|
|
226
|
+
if self.activities:
|
|
227
|
+
for _item_activities in self.activities:
|
|
228
|
+
if _item_activities:
|
|
229
|
+
_items.append(_item_activities.to_dict())
|
|
230
|
+
_dict['activities'] = _items
|
|
231
|
+
# override the default output from pydantic by calling `to_dict()` of each item in attractions (list)
|
|
232
|
+
_items = []
|
|
233
|
+
if self.attractions:
|
|
234
|
+
for _item_attractions in self.attractions:
|
|
235
|
+
if _item_attractions:
|
|
236
|
+
_items.append(_item_attractions.to_dict())
|
|
237
|
+
_dict['attractions'] = _items
|
|
238
|
+
# override the default output from pydantic by calling `to_dict()` of each item in places (list)
|
|
239
|
+
_items = []
|
|
240
|
+
if self.places:
|
|
241
|
+
for _item_places in self.places:
|
|
242
|
+
if _item_places:
|
|
243
|
+
_items.append(_item_places.to_dict())
|
|
244
|
+
_dict['places'] = _items
|
|
245
|
+
# override the default output from pydantic by calling `to_dict()` of each item in room_type_ancillaries (list)
|
|
246
|
+
_items = []
|
|
247
|
+
if self.room_type_ancillaries:
|
|
248
|
+
for _item_room_type_ancillaries in self.room_type_ancillaries:
|
|
249
|
+
if _item_room_type_ancillaries:
|
|
250
|
+
_items.append(_item_room_type_ancillaries.to_dict())
|
|
251
|
+
_dict['roomTypeAncillaries'] = _items
|
|
252
|
+
# override the default output from pydantic by calling `to_dict()` of each item in add_ons (list)
|
|
253
|
+
_items = []
|
|
254
|
+
if self.add_ons:
|
|
255
|
+
for _item_add_ons in self.add_ons:
|
|
256
|
+
if _item_add_ons:
|
|
257
|
+
_items.append(_item_add_ons.to_dict())
|
|
258
|
+
_dict['addOns'] = _items
|
|
259
|
+
# override the default output from pydantic by calling `to_dict()` of each item in spas (list)
|
|
260
|
+
_items = []
|
|
261
|
+
if self.spas:
|
|
262
|
+
for _item_spas in self.spas:
|
|
263
|
+
if _item_spas:
|
|
264
|
+
_items.append(_item_spas.to_dict())
|
|
265
|
+
_dict['spas'] = _items
|
|
266
|
+
return _dict
|
|
267
|
+
|
|
268
|
+
@classmethod
|
|
269
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
270
|
+
"""Create an instance of BookingAgent from a dict"""
|
|
271
|
+
if obj is None:
|
|
272
|
+
return None
|
|
273
|
+
|
|
274
|
+
if not isinstance(obj, dict):
|
|
275
|
+
return cls.model_validate(obj)
|
|
276
|
+
|
|
277
|
+
_obj = cls.model_validate({
|
|
278
|
+
"id": obj.get("id"),
|
|
279
|
+
"createdDate": obj.get("createdDate"),
|
|
280
|
+
"lastUpdate": obj.get("lastUpdate"),
|
|
281
|
+
"version": obj.get("version"),
|
|
282
|
+
"creation": obj.get("creation") if obj.get("creation") is not None else 'NORMAL',
|
|
283
|
+
"groupIdentifier": obj.get("groupIdentifier"),
|
|
284
|
+
"customization": CustomizationLightweightAgent.from_dict(obj["customization"]) if obj.get("customization") is not None else None,
|
|
285
|
+
"bookingCode": obj.get("bookingCode"),
|
|
286
|
+
"user": BookingUserAgent.from_dict(obj["user"]) if obj.get("user") is not None else None,
|
|
287
|
+
"userSession": BookingUserSessionAgent.from_dict(obj["userSession"]) if obj.get("userSession") is not None else None,
|
|
288
|
+
"serverUrl": obj.get("serverUrl"),
|
|
289
|
+
"socials": [SocialAgent.from_dict(_item) for _item in obj["socials"]] if obj.get("socials") is not None else None,
|
|
290
|
+
"review": ReviewLightweightAgent.from_dict(obj["review"]) if obj.get("review") is not None else None,
|
|
291
|
+
"emailHeaderLogoUrl": obj.get("emailHeaderLogoUrl"),
|
|
292
|
+
"logoIdentifier": obj.get("logoIdentifier"),
|
|
293
|
+
"hotel": PropertyAggregateLightweightAgent.from_dict(obj["hotel"]) if obj.get("hotel") is not None else None,
|
|
294
|
+
"roomStay": RoomStayAgent.from_dict(obj["roomStay"]) if obj.get("roomStay") is not None else None,
|
|
295
|
+
"specialRequests": obj.get("specialRequests"),
|
|
296
|
+
"comment": obj.get("comment"),
|
|
297
|
+
"earlyCheckInCharge": CustomMonetaryAmount.from_dict(obj["earlyCheckInCharge"]) if obj.get("earlyCheckInCharge") is not None else None,
|
|
298
|
+
"lateCheckOutCharge": CustomMonetaryAmount.from_dict(obj["lateCheckOutCharge"]) if obj.get("lateCheckOutCharge") is not None else None,
|
|
299
|
+
"earlyCheckInChargePercent": obj.get("earlyCheckInChargePercent"),
|
|
300
|
+
"lateCheckOutChargePercent": obj.get("lateCheckOutChargePercent"),
|
|
301
|
+
"hotelImageUrl": obj.get("hotelImageUrl"),
|
|
302
|
+
"roomImageUrl": obj.get("roomImageUrl"),
|
|
303
|
+
"commissionList": [CommissionableEntryAgent.from_dict(_item) for _item in obj["commissionList"]] if obj.get("commissionList") is not None else None,
|
|
304
|
+
"ancillaryList": [BookingAncillaryAgent.from_dict(_item) for _item in obj["ancillaryList"]] if obj.get("ancillaryList") is not None else None,
|
|
305
|
+
"bookingContract": WinkBookingContractAgent.from_dict(obj["bookingContract"]) if obj.get("bookingContract") is not None else None,
|
|
306
|
+
"staticMapImageUrl": obj.get("staticMapImageUrl"),
|
|
307
|
+
"staticMapUrl": obj.get("staticMapUrl"),
|
|
308
|
+
"status": obj.get("status"),
|
|
309
|
+
"rateSource": obj.get("rateSource"),
|
|
310
|
+
"hasAddOns": obj.get("hasAddOns"),
|
|
311
|
+
"meetingRooms": [BookingAncillaryAgent.from_dict(_item) for _item in obj["meetingRooms"]] if obj.get("meetingRooms") is not None else None,
|
|
312
|
+
"restaurants": [BookingAncillaryAgent.from_dict(_item) for _item in obj["restaurants"]] if obj.get("restaurants") is not None else None,
|
|
313
|
+
"hasBreakfast": obj.get("hasBreakfast"),
|
|
314
|
+
"hasBrunch": obj.get("hasBrunch"),
|
|
315
|
+
"hasLunch": obj.get("hasLunch"),
|
|
316
|
+
"hasDinner": obj.get("hasDinner"),
|
|
317
|
+
"hasAllInclusive": obj.get("hasAllInclusive"),
|
|
318
|
+
"hasAllInclusivePlusAlcohol": obj.get("hasAllInclusivePlusAlcohol"),
|
|
319
|
+
"hasRoomTypeAncillaries": obj.get("hasRoomTypeAncillaries"),
|
|
320
|
+
"hasFood": obj.get("hasFood"),
|
|
321
|
+
"hasRestaurants": obj.get("hasRestaurants"),
|
|
322
|
+
"hasMeetingRooms": obj.get("hasMeetingRooms"),
|
|
323
|
+
"hasSpas": obj.get("hasSpas"),
|
|
324
|
+
"hasActivities": obj.get("hasActivities"),
|
|
325
|
+
"hasAttractions": obj.get("hasAttractions"),
|
|
326
|
+
"hasPlaces": obj.get("hasPlaces"),
|
|
327
|
+
"reportingDailyRateList": obj.get("reportingDailyRateList"),
|
|
328
|
+
"reportingAncillaryList": obj.get("reportingAncillaryList"),
|
|
329
|
+
"reportingExtraChargeList": obj.get("reportingExtraChargeList"),
|
|
330
|
+
"activities": [BookingAncillaryAgent.from_dict(_item) for _item in obj["activities"]] if obj.get("activities") is not None else None,
|
|
331
|
+
"attractions": [BookingAncillaryAgent.from_dict(_item) for _item in obj["attractions"]] if obj.get("attractions") is not None else None,
|
|
332
|
+
"places": [BookingAncillaryAgent.from_dict(_item) for _item in obj["places"]] if obj.get("places") is not None else None,
|
|
333
|
+
"roomTypeAncillaries": [BookingAncillaryAgent.from_dict(_item) for _item in obj["roomTypeAncillaries"]] if obj.get("roomTypeAncillaries") is not None else None,
|
|
334
|
+
"addOns": [BookingAncillaryAgent.from_dict(_item) for _item in obj["addOns"]] if obj.get("addOns") is not None else None,
|
|
335
|
+
"spas": [BookingAncillaryAgent.from_dict(_item) for _item in obj["spas"]] if obj.get("spas") is not None else None,
|
|
336
|
+
"cancellableByAgent": obj.get("cancellableByAgent"),
|
|
337
|
+
"cancellableBySupplier": obj.get("cancellableBySupplier"),
|
|
338
|
+
"cancellableByTraveler": obj.get("cancellableByTraveler")
|
|
339
|
+
})
|
|
340
|
+
return _obj
|
|
341
|
+
|
|
342
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wink API
|
|
5
|
+
|
|
6
|
+
# Introduction Welcome to the Wink API - A programmer-friendly way to manage, sell and book travel inventory on the Wink platform. The API gives you all the tools you need to ready your properties and inventory for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel inventory and promote / sell it in a wide variety of ways. # Integrations We have already integrated with the most well-known channel managers so you don't have to. To see our current integrations, please go to https://extranet.wink.travel and scroll to Connectivity section. Once your properties are set up, you can finish the setup by mapping your property to Wink using your channel manager partner portal. If your properties don't have a channel manager, you can easily manage rates and availability with this API. # Intended Audience Programmers are [most likely] a requirement to start integrating with Wink. Companies and organizations that would most benefit from integrating with us are new and existing travel companies that have relationships with suppliers and that need an advanced system from which to manage their travel inventory and get that same inventory out to as many eyeballs as possible at the lowest price possible. - Hotel chains - Hotel brands - Travel tech companies - Destination sites - Integrators - Aggregators - Destination management companies - Travel agencies - OTAs ## APIs Not every integrator needs every API. For that reason, we have separated APIs into context. ### Test API - [Ping](/ping): The Ping API is a quick test endpoint to verify that your credentials work Wink. ### Common APIs - [Notifications](/notifications): The Notifications API is a way for us to stay in touch with your user, property or affiliate account. - [User Settings](/user-settings): The User Settings API exposes endpoints to allow 3rd party integrators to communicate with Wink. ### Consume APIs Consume endpoints are for developers who want to find existing travel inventory and either book it or use it to advertise through one of their Wink affiliate accounts. - [Configuration](/customization-client): A single endpoint to retrieve whitelabel + customization information for the booking customization. - [Lookup](/lookup): All APIs related to locating inventory by region, locale and property flags. - [Inventory](/inventory): All APIs related to retrieve known travel inventory as it was found using the Lookup API.. - [Booking](/booking): All APIs related to creating bookings on the platform. - [Travel Agent](/travel-agent): The Travel Agent API exposes endpoints to manage agent-facilitated bookings. ### Produce APIs Produce endpoints are for developers who want to create and manage travel inventory. #### Property - [Property registration](/extranet/property/register): As a producer, this is, oftentimes, where you start your journey. These endpoints let you create properties on Wink. - [Property](/extranet/property): This collection of property endpoints are mostly management endpoints that let you display, change status and similar for your existing properties. - [Facilities](/extranet/facilities): This collection of endpoints let you manage facilities; such as room types. - [Experiences](/extranet/experiences): This collection of endpoints let you manage experiences, such as activities. - [Monetize](/extranet/monetize): The Monetize API exposes endpoints for managing cancellation polies, rate plans, promotions and more on Wink. - [Distribution](/extranet/distribution): The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink. - [Property Booking](/extranet/booking): The Property Booking API exposes endpoints for managing bookings and reviews at the property-level. #### Affiliate - [Affiliate](/affiliate): This collection of affiliate endpoints are mostly management endpoints that let you display, change status and similar for your existing accounts. - [Browse](/affiliate/browse): The Browse API exposes endpoints for affiliates to find suppliers and inventory to sell. - [Inventory](/affiliate/inventory): The Inventory API exposes endpoints for affiliates to manage the inventory they want to sell and how they want to sell it. - [Sales Channel](/affiliate/sales-channel): The Sales Channel API exposes endpoints for affiliates to manage existing sales channels as well as find new ones. - [WinkLinks](/affiliate/winklinks): The WinkLinks API exposes endpoints for affiliates to manage their WinkLinks page. #### Rate provider - [Channel manager](/channel-manager): The Channel Manager API enables external channel manager partners to map, exchange rate / availability information with us as well as be informed of bookings that occur on the Wink platform for one of their properties. ### Taxonomy APIs Taxonomy endpoints are for developers who want to consume and produce travel inventory and need taxonomies of standard and non-standard codes for inventory types, classes, statuses etc. - [Reference](/reference): All APIs related to retrieving platform-supported taxonomies. ### Insight APIs Insight endpoints do exactly what the name implies - They offer platform-level insight into the activities of producers and consumers. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. ### Payment APIs Payment endpoints are for developers who want to purchase travel inventory. This can be done via the API as a registered Travel Agent or using our API in conjunction with our PCI compliant payment widget for all other entities. - [TripPay](/payment): All APIs related to TripPay account management, booking, mapping and integration features. ## SDKs We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: [https://openapi-generator.tech/docs/generators](https://openapi-generator.tech/docs/generators). - Java SDK [https://github.com/wink-travel/wink-sdk-java](https://github.com/wink-travel/wink-sdk-java) ## Usage These features are made available to you via a [REST API](https://en.wikipedia.org/wiki/Representational_state_transfer). This API is language agnostic. ## Versioning We chose to version our endpoints in a way that we hope affects your integration minimally. You request the version of our API you wish to work with via the `Wink-Version` header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints. ## Release history - Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md # Travel Agent API The Travel Agent API exposes endpoints to manage agent-facilitated bookings. This API lets you: 1. Travel Agent: Manage agent entity. 2. Booking: Create / Manage bookings Browse the endpoints in the left navigation bar to get started.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 30.29.0
|
|
9
|
+
Contact: bjorn@wink.travel
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from wink_sdk_travel_agent.models.line_chart_supplier import LineChartSupplier
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class BookingAnalyticsSupplier(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
BookingAnalyticsSupplier
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
charts: List[LineChartSupplier] = Field(description="Interesting property-level chart data overview")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["charts"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of BookingAnalyticsSupplier from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of each item in charts (list)
|
|
74
|
+
_items = []
|
|
75
|
+
if self.charts:
|
|
76
|
+
for _item_charts in self.charts:
|
|
77
|
+
if _item_charts:
|
|
78
|
+
_items.append(_item_charts.to_dict())
|
|
79
|
+
_dict['charts'] = _items
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of BookingAnalyticsSupplier from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"charts": [LineChartSupplier.from_dict(_item) for _item in obj["charts"]] if obj.get("charts") is not None else None
|
|
93
|
+
})
|
|
94
|
+
return _obj
|
|
95
|
+
|
|
96
|
+
|