wink-sdk-travel-agent 0.0.41__py3-none-any.whl → 0.0.43__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.
Potentially problematic release.
This version of wink-sdk-travel-agent might be problematic. Click here for more details.
- wink_sdk_travel_agent/__init__.py +328 -101
- wink_sdk_travel_agent/api/__init__.py +18 -1
- wink_sdk_travel_agent/api/analytics_api.py +671 -0
- wink_sdk_travel_agent/api/travel_agent_api.py +1 -324
- wink_sdk_travel_agent/api_client.py +9 -2
- wink_sdk_travel_agent/configuration.py +3 -3
- wink_sdk_travel_agent/exceptions.py +1 -1
- wink_sdk_travel_agent/models/__init__.py +114 -9
- wink_sdk_travel_agent/models/agent_booking_request_agent.py +4 -4
- wink_sdk_travel_agent/models/aggregate_descriptor_agent.py +1 -1
- wink_sdk_travel_agent/models/authenticated_user_agent.py +3 -2
- wink_sdk_travel_agent/models/bed_agent.py +1 -1
- wink_sdk_travel_agent/models/bedroom_agent.py +1 -1
- wink_sdk_travel_agent/models/bedroom_configuration_agent.py +3 -2
- wink_sdk_travel_agent/models/beneficiary_agent.py +1 -1
- wink_sdk_travel_agent/models/beneficiary_charge_agent.py +1 -1
- wink_sdk_travel_agent/models/booking_agent.py +29 -28
- wink_sdk_travel_agent/models/booking_analytics_supplier.py +96 -0
- wink_sdk_travel_agent/models/booking_ancillary_agent.py +7 -6
- wink_sdk_travel_agent/models/booking_confirmations_agent.py +1 -1
- wink_sdk_travel_agent/models/booking_contract_agent.py +13 -12
- wink_sdk_travel_agent/models/booking_contract_item_agent.py +4 -4
- wink_sdk_travel_agent/models/booking_contract_payment_details_agent.py +1 -1
- wink_sdk_travel_agent/models/booking_itinerary_agent.py +5 -5
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_agent.py +1 -1
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_child_agent.py +1 -1
- wink_sdk_travel_agent/models/booking_overview_request_supplier.py +97 -0
- wink_sdk_travel_agent/models/booking_user_agent.py +3 -2
- wink_sdk_travel_agent/models/booking_user_request_agent.py +1 -1
- wink_sdk_travel_agent/models/booking_user_session_agent.py +1 -1
- wink_sdk_travel_agent/models/boolean_response_agent.py +1 -1
- wink_sdk_travel_agent/models/cancellation_detail_agent.py +1 -1
- wink_sdk_travel_agent/models/cancellation_policy_exception_agent.py +3 -3
- wink_sdk_travel_agent/models/cancellation_policy_exceptions_agent.py +1 -1
- wink_sdk_travel_agent/models/cancellation_policy_lightweight_agent.py +4 -3
- 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 +1 -1
- wink_sdk_travel_agent/models/commissionable_entry_agent.py +1 -1
- wink_sdk_travel_agent/models/composite_filter_descriptor_agent.py +1 -1
- wink_sdk_travel_agent/models/contact_agent.py +1 -1
- wink_sdk_travel_agent/models/country_lightweight_agent.py +1 -1
- wink_sdk_travel_agent/models/create_agent_booking400_response.py +1 -1
- wink_sdk_travel_agent/models/create_agent_booking_request_agent.py +1 -1
- wink_sdk_travel_agent/models/custom_monetary_amount.py +1 -1
- wink_sdk_travel_agent/models/customization_lightweight_agent.py +5 -4
- wink_sdk_travel_agent/models/customization_theme_colors_agent.py +1 -1
- wink_sdk_travel_agent/models/extra_charge_agent.py +1 -1
- wink_sdk_travel_agent/models/extra_charges_agent.py +1 -1
- wink_sdk_travel_agent/models/filter_descriptor_agent.py +1 -1
- wink_sdk_travel_agent/models/general_manager_agent.py +1 -1
- wink_sdk_travel_agent/models/generic_error_message.py +4 -6
- wink_sdk_travel_agent/models/geo_json_point_agent.py +1 -1
- wink_sdk_travel_agent/models/geo_name_lightweight_agent.py +1 -1
- wink_sdk_travel_agent/models/group_descriptor_agent.py +1 -1
- wink_sdk_travel_agent/models/grouped_booking_sales_metrics_supplier_details.py +110 -0
- wink_sdk_travel_agent/models/guest_room_lightweight_agent.py +5 -4
- wink_sdk_travel_agent/models/guest_user_agent.py +3 -2
- wink_sdk_travel_agent/models/line_chart_supplier.py +122 -0
- wink_sdk_travel_agent/models/localized_description_agent.py +1 -1
- wink_sdk_travel_agent/models/localized_price_agent.py +4 -4
- wink_sdk_travel_agent/models/media_author_attribution_agent.py +1 -1
- wink_sdk_travel_agent/models/page_booking_agent.py +4 -4
- wink_sdk_travel_agent/models/pageable_object_agent.py +1 -1
- wink_sdk_travel_agent/models/payout_agent.py +4 -3
- wink_sdk_travel_agent/models/payout_fee_agent.py +3 -2
- wink_sdk_travel_agent/models/perk_lightweight_agent.py +1 -1
- wink_sdk_travel_agent/models/personal_agent.py +1 -1
- wink_sdk_travel_agent/models/preferences_agent.py +1 -1
- wink_sdk_travel_agent/models/profile_lightweight_agent.py +4 -4
- wink_sdk_travel_agent/models/profile_user_agent.py +1 -1
- wink_sdk_travel_agent/models/property_aggregate_lightweight_agent.py +6 -3
- wink_sdk_travel_agent/models/property_policy_agent.py +1 -1
- wink_sdk_travel_agent/models/quote_lightweight_agent.py +1 -1
- wink_sdk_travel_agent/models/rate_plan_level_fee_agent.py +1 -1
- wink_sdk_travel_agent/models/refund_agent.py +1 -1
- wink_sdk_travel_agent/models/review_answer_agent.py +3 -3
- wink_sdk_travel_agent/models/review_lightweight_agent.py +5 -4
- wink_sdk_travel_agent/models/review_user_agent.py +3 -2
- wink_sdk_travel_agent/models/room_configuration_agent.py +1 -1
- wink_sdk_travel_agent/models/room_configuration_price_rate_plan_agent.py +3 -2
- wink_sdk_travel_agent/models/room_stay_agent.py +6 -5
- wink_sdk_travel_agent/models/simple_address_agent.py +1 -1
- wink_sdk_travel_agent/models/simple_date_time_itinerary_agent.py +5 -5
- wink_sdk_travel_agent/models/simple_description_agent.py +1 -1
- wink_sdk_travel_agent/models/simple_multimedia_agent.py +3 -2
- wink_sdk_travel_agent/models/social_agent.py +1 -1
- wink_sdk_travel_agent/models/sort_descriptor_agent.py +1 -1
- wink_sdk_travel_agent/models/sort_object_agent.py +1 -1
- wink_sdk_travel_agent/models/state_agent.py +1 -1
- wink_sdk_travel_agent/models/stay_rate_agent.py +5 -5
- wink_sdk_travel_agent/models/sub_country_lightweight_agent.py +1 -1
- wink_sdk_travel_agent/models/sub_sub_country_lightweight_agent.py +1 -1
- wink_sdk_travel_agent/models/supplier_contract_item_policy_agent.py +1 -1
- wink_sdk_travel_agent/models/travel_inventory_recognition_agent.py +3 -2
- wink_sdk_travel_agent/rest.py +1 -1
- {wink_sdk_travel_agent-0.0.41.dist-info → wink_sdk_travel_agent-0.0.43.dist-info}/METADATA +24 -24
- wink_sdk_travel_agent-0.0.43.dist-info/RECORD +143 -0
- wink_sdk_travel_agent-0.0.41.dist-info/RECORD +0 -134
- {wink_sdk_travel_agent-0.0.41.dist-info → wink_sdk_travel_agent-0.0.43.dist-info}/WHEEL +0 -0
- {wink_sdk_travel_agent-0.0.41.dist-info → wink_sdk_travel_agent-0.0.43.dist-info}/licenses/LICENSE +0 -0
- {wink_sdk_travel_agent-0.0.41.dist-info → wink_sdk_travel_agent-0.0.43.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
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
7
|
|
|
8
|
-
The version of the OpenAPI document: 30.
|
|
8
|
+
The version of the OpenAPI document: 30.21.0
|
|
9
9
|
Contact: bjorn@wink.travel
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -20,7 +20,6 @@ from typing_extensions import Annotated
|
|
|
20
20
|
from pydantic import Field, StrictStr, field_validator
|
|
21
21
|
from typing import Any, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
|
-
from wink_sdk_travel_agent.models.affiliate_account_agent import AffiliateAccountAgent
|
|
24
23
|
from wink_sdk_travel_agent.models.booking_agent import BookingAgent
|
|
25
24
|
from wink_sdk_travel_agent.models.booking_confirmations_agent import BookingConfirmationsAgent
|
|
26
25
|
from wink_sdk_travel_agent.models.boolean_response_agent import BooleanResponseAgent
|
|
@@ -28,7 +27,6 @@ from wink_sdk_travel_agent.models.cancellation_detail_agent import CancellationD
|
|
|
28
27
|
from wink_sdk_travel_agent.models.create_agent_booking_request_agent import CreateAgentBookingRequestAgent
|
|
29
28
|
from wink_sdk_travel_agent.models.page_booking_agent import PageBookingAgent
|
|
30
29
|
from wink_sdk_travel_agent.models.state_agent import StateAgent
|
|
31
|
-
from wink_sdk_travel_agent.models.upsert_travel_agent_request_agent import UpsertTravelAgentRequestAgent
|
|
32
30
|
|
|
33
31
|
from wink_sdk_travel_agent.api_client import ApiClient, RequestSerialized
|
|
34
32
|
from wink_sdk_travel_agent.api_response import ApiResponse
|
|
@@ -1668,324 +1666,3 @@ class TravelAgentApi:
|
|
|
1668
1666
|
)
|
|
1669
1667
|
|
|
1670
1668
|
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
@validate_call
|
|
1674
|
-
def update_agent(
|
|
1675
|
-
self,
|
|
1676
|
-
company_identifier: Annotated[StrictStr, Field(description="Update agent by company id")],
|
|
1677
|
-
upsert_travel_agent_request_agent: UpsertTravelAgentRequestAgent,
|
|
1678
|
-
wink_version: Optional[StrictStr] = None,
|
|
1679
|
-
_request_timeout: Union[
|
|
1680
|
-
None,
|
|
1681
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1682
|
-
Tuple[
|
|
1683
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1684
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1685
|
-
]
|
|
1686
|
-
] = None,
|
|
1687
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1688
|
-
_content_type: Optional[StrictStr] = None,
|
|
1689
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1690
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1691
|
-
) -> AffiliateAccountAgent:
|
|
1692
|
-
"""Update Agent
|
|
1693
|
-
|
|
1694
|
-
Update an existing agent
|
|
1695
|
-
|
|
1696
|
-
:param company_identifier: Update agent by company id (required)
|
|
1697
|
-
:type company_identifier: str
|
|
1698
|
-
:param upsert_travel_agent_request_agent: (required)
|
|
1699
|
-
:type upsert_travel_agent_request_agent: UpsertTravelAgentRequestAgent
|
|
1700
|
-
:param wink_version:
|
|
1701
|
-
:type wink_version: str
|
|
1702
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1703
|
-
number provided, it will be total request
|
|
1704
|
-
timeout. It can also be a pair (tuple) of
|
|
1705
|
-
(connection, read) timeouts.
|
|
1706
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1707
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1708
|
-
request; this effectively ignores the
|
|
1709
|
-
authentication in the spec for a single request.
|
|
1710
|
-
:type _request_auth: dict, optional
|
|
1711
|
-
:param _content_type: force content-type for the request.
|
|
1712
|
-
:type _content_type: str, Optional
|
|
1713
|
-
:param _headers: set to override the headers for a single
|
|
1714
|
-
request; this effectively ignores the headers
|
|
1715
|
-
in the spec for a single request.
|
|
1716
|
-
:type _headers: dict, optional
|
|
1717
|
-
:param _host_index: set to override the host_index for a single
|
|
1718
|
-
request; this effectively ignores the host_index
|
|
1719
|
-
in the spec for a single request.
|
|
1720
|
-
:type _host_index: int, optional
|
|
1721
|
-
:return: Returns the result object.
|
|
1722
|
-
""" # noqa: E501
|
|
1723
|
-
|
|
1724
|
-
_param = self._update_agent_serialize(
|
|
1725
|
-
company_identifier=company_identifier,
|
|
1726
|
-
upsert_travel_agent_request_agent=upsert_travel_agent_request_agent,
|
|
1727
|
-
wink_version=wink_version,
|
|
1728
|
-
_request_auth=_request_auth,
|
|
1729
|
-
_content_type=_content_type,
|
|
1730
|
-
_headers=_headers,
|
|
1731
|
-
_host_index=_host_index
|
|
1732
|
-
)
|
|
1733
|
-
|
|
1734
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1735
|
-
'500': "object",
|
|
1736
|
-
'403': "GenericErrorMessage",
|
|
1737
|
-
'401': "GenericErrorMessage",
|
|
1738
|
-
'400': "CreateAgentBooking400Response",
|
|
1739
|
-
'200': "AffiliateAccountAgent",
|
|
1740
|
-
}
|
|
1741
|
-
response_data = self.api_client.call_api(
|
|
1742
|
-
*_param,
|
|
1743
|
-
_request_timeout=_request_timeout
|
|
1744
|
-
)
|
|
1745
|
-
response_data.read()
|
|
1746
|
-
return self.api_client.response_deserialize(
|
|
1747
|
-
response_data=response_data,
|
|
1748
|
-
response_types_map=_response_types_map,
|
|
1749
|
-
).data
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
@validate_call
|
|
1753
|
-
def update_agent_with_http_info(
|
|
1754
|
-
self,
|
|
1755
|
-
company_identifier: Annotated[StrictStr, Field(description="Update agent by company id")],
|
|
1756
|
-
upsert_travel_agent_request_agent: UpsertTravelAgentRequestAgent,
|
|
1757
|
-
wink_version: Optional[StrictStr] = None,
|
|
1758
|
-
_request_timeout: Union[
|
|
1759
|
-
None,
|
|
1760
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1761
|
-
Tuple[
|
|
1762
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1763
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1764
|
-
]
|
|
1765
|
-
] = None,
|
|
1766
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1767
|
-
_content_type: Optional[StrictStr] = None,
|
|
1768
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1769
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1770
|
-
) -> ApiResponse[AffiliateAccountAgent]:
|
|
1771
|
-
"""Update Agent
|
|
1772
|
-
|
|
1773
|
-
Update an existing agent
|
|
1774
|
-
|
|
1775
|
-
:param company_identifier: Update agent by company id (required)
|
|
1776
|
-
:type company_identifier: str
|
|
1777
|
-
:param upsert_travel_agent_request_agent: (required)
|
|
1778
|
-
:type upsert_travel_agent_request_agent: UpsertTravelAgentRequestAgent
|
|
1779
|
-
:param wink_version:
|
|
1780
|
-
:type wink_version: str
|
|
1781
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1782
|
-
number provided, it will be total request
|
|
1783
|
-
timeout. It can also be a pair (tuple) of
|
|
1784
|
-
(connection, read) timeouts.
|
|
1785
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1786
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1787
|
-
request; this effectively ignores the
|
|
1788
|
-
authentication in the spec for a single request.
|
|
1789
|
-
:type _request_auth: dict, optional
|
|
1790
|
-
:param _content_type: force content-type for the request.
|
|
1791
|
-
:type _content_type: str, Optional
|
|
1792
|
-
:param _headers: set to override the headers for a single
|
|
1793
|
-
request; this effectively ignores the headers
|
|
1794
|
-
in the spec for a single request.
|
|
1795
|
-
:type _headers: dict, optional
|
|
1796
|
-
:param _host_index: set to override the host_index for a single
|
|
1797
|
-
request; this effectively ignores the host_index
|
|
1798
|
-
in the spec for a single request.
|
|
1799
|
-
:type _host_index: int, optional
|
|
1800
|
-
:return: Returns the result object.
|
|
1801
|
-
""" # noqa: E501
|
|
1802
|
-
|
|
1803
|
-
_param = self._update_agent_serialize(
|
|
1804
|
-
company_identifier=company_identifier,
|
|
1805
|
-
upsert_travel_agent_request_agent=upsert_travel_agent_request_agent,
|
|
1806
|
-
wink_version=wink_version,
|
|
1807
|
-
_request_auth=_request_auth,
|
|
1808
|
-
_content_type=_content_type,
|
|
1809
|
-
_headers=_headers,
|
|
1810
|
-
_host_index=_host_index
|
|
1811
|
-
)
|
|
1812
|
-
|
|
1813
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1814
|
-
'500': "object",
|
|
1815
|
-
'403': "GenericErrorMessage",
|
|
1816
|
-
'401': "GenericErrorMessage",
|
|
1817
|
-
'400': "CreateAgentBooking400Response",
|
|
1818
|
-
'200': "AffiliateAccountAgent",
|
|
1819
|
-
}
|
|
1820
|
-
response_data = self.api_client.call_api(
|
|
1821
|
-
*_param,
|
|
1822
|
-
_request_timeout=_request_timeout
|
|
1823
|
-
)
|
|
1824
|
-
response_data.read()
|
|
1825
|
-
return self.api_client.response_deserialize(
|
|
1826
|
-
response_data=response_data,
|
|
1827
|
-
response_types_map=_response_types_map,
|
|
1828
|
-
)
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
@validate_call
|
|
1832
|
-
def update_agent_without_preload_content(
|
|
1833
|
-
self,
|
|
1834
|
-
company_identifier: Annotated[StrictStr, Field(description="Update agent by company id")],
|
|
1835
|
-
upsert_travel_agent_request_agent: UpsertTravelAgentRequestAgent,
|
|
1836
|
-
wink_version: Optional[StrictStr] = None,
|
|
1837
|
-
_request_timeout: Union[
|
|
1838
|
-
None,
|
|
1839
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1840
|
-
Tuple[
|
|
1841
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1842
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1843
|
-
]
|
|
1844
|
-
] = None,
|
|
1845
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1846
|
-
_content_type: Optional[StrictStr] = None,
|
|
1847
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1848
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1849
|
-
) -> RESTResponseType:
|
|
1850
|
-
"""Update Agent
|
|
1851
|
-
|
|
1852
|
-
Update an existing agent
|
|
1853
|
-
|
|
1854
|
-
:param company_identifier: Update agent by company id (required)
|
|
1855
|
-
:type company_identifier: str
|
|
1856
|
-
:param upsert_travel_agent_request_agent: (required)
|
|
1857
|
-
:type upsert_travel_agent_request_agent: UpsertTravelAgentRequestAgent
|
|
1858
|
-
:param wink_version:
|
|
1859
|
-
:type wink_version: str
|
|
1860
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1861
|
-
number provided, it will be total request
|
|
1862
|
-
timeout. It can also be a pair (tuple) of
|
|
1863
|
-
(connection, read) timeouts.
|
|
1864
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1865
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1866
|
-
request; this effectively ignores the
|
|
1867
|
-
authentication in the spec for a single request.
|
|
1868
|
-
:type _request_auth: dict, optional
|
|
1869
|
-
:param _content_type: force content-type for the request.
|
|
1870
|
-
:type _content_type: str, Optional
|
|
1871
|
-
:param _headers: set to override the headers for a single
|
|
1872
|
-
request; this effectively ignores the headers
|
|
1873
|
-
in the spec for a single request.
|
|
1874
|
-
:type _headers: dict, optional
|
|
1875
|
-
:param _host_index: set to override the host_index for a single
|
|
1876
|
-
request; this effectively ignores the host_index
|
|
1877
|
-
in the spec for a single request.
|
|
1878
|
-
:type _host_index: int, optional
|
|
1879
|
-
:return: Returns the result object.
|
|
1880
|
-
""" # noqa: E501
|
|
1881
|
-
|
|
1882
|
-
_param = self._update_agent_serialize(
|
|
1883
|
-
company_identifier=company_identifier,
|
|
1884
|
-
upsert_travel_agent_request_agent=upsert_travel_agent_request_agent,
|
|
1885
|
-
wink_version=wink_version,
|
|
1886
|
-
_request_auth=_request_auth,
|
|
1887
|
-
_content_type=_content_type,
|
|
1888
|
-
_headers=_headers,
|
|
1889
|
-
_host_index=_host_index
|
|
1890
|
-
)
|
|
1891
|
-
|
|
1892
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1893
|
-
'500': "object",
|
|
1894
|
-
'403': "GenericErrorMessage",
|
|
1895
|
-
'401': "GenericErrorMessage",
|
|
1896
|
-
'400': "CreateAgentBooking400Response",
|
|
1897
|
-
'200': "AffiliateAccountAgent",
|
|
1898
|
-
}
|
|
1899
|
-
response_data = self.api_client.call_api(
|
|
1900
|
-
*_param,
|
|
1901
|
-
_request_timeout=_request_timeout
|
|
1902
|
-
)
|
|
1903
|
-
return response_data.response
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
def _update_agent_serialize(
|
|
1907
|
-
self,
|
|
1908
|
-
company_identifier,
|
|
1909
|
-
upsert_travel_agent_request_agent,
|
|
1910
|
-
wink_version,
|
|
1911
|
-
_request_auth,
|
|
1912
|
-
_content_type,
|
|
1913
|
-
_headers,
|
|
1914
|
-
_host_index,
|
|
1915
|
-
) -> RequestSerialized:
|
|
1916
|
-
|
|
1917
|
-
_host = None
|
|
1918
|
-
|
|
1919
|
-
_collection_formats: Dict[str, str] = {
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
_path_params: Dict[str, str] = {}
|
|
1923
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1924
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1925
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1926
|
-
_files: Dict[
|
|
1927
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1928
|
-
] = {}
|
|
1929
|
-
_body_params: Optional[bytes] = None
|
|
1930
|
-
|
|
1931
|
-
# process the path parameters
|
|
1932
|
-
if company_identifier is not None:
|
|
1933
|
-
_path_params['companyIdentifier'] = company_identifier
|
|
1934
|
-
# process the query parameters
|
|
1935
|
-
# process the header parameters
|
|
1936
|
-
if wink_version is not None:
|
|
1937
|
-
_header_params['Wink-Version'] = wink_version
|
|
1938
|
-
# process the form parameters
|
|
1939
|
-
# process the body parameter
|
|
1940
|
-
if upsert_travel_agent_request_agent is not None:
|
|
1941
|
-
_body_params = upsert_travel_agent_request_agent
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
# set the HTTP header `Accept`
|
|
1945
|
-
if 'Accept' not in _header_params:
|
|
1946
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1947
|
-
[
|
|
1948
|
-
'application/json',
|
|
1949
|
-
'application/xml',
|
|
1950
|
-
'text/xml',
|
|
1951
|
-
'text/html',
|
|
1952
|
-
'text/plain',
|
|
1953
|
-
'*/*'
|
|
1954
|
-
]
|
|
1955
|
-
)
|
|
1956
|
-
|
|
1957
|
-
# set the HTTP header `Content-Type`
|
|
1958
|
-
if _content_type:
|
|
1959
|
-
_header_params['Content-Type'] = _content_type
|
|
1960
|
-
else:
|
|
1961
|
-
_default_content_type = (
|
|
1962
|
-
self.api_client.select_header_content_type(
|
|
1963
|
-
[
|
|
1964
|
-
'application/json'
|
|
1965
|
-
]
|
|
1966
|
-
)
|
|
1967
|
-
)
|
|
1968
|
-
if _default_content_type is not None:
|
|
1969
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1970
|
-
|
|
1971
|
-
# authentication setting
|
|
1972
|
-
_auth_settings: List[str] = [
|
|
1973
|
-
'oauth2ClientCredentials'
|
|
1974
|
-
]
|
|
1975
|
-
|
|
1976
|
-
return self.api_client.param_serialize(
|
|
1977
|
-
method='PATCH',
|
|
1978
|
-
resource_path='/api/affiliate/{companyIdentifier}/agent',
|
|
1979
|
-
path_params=_path_params,
|
|
1980
|
-
query_params=_query_params,
|
|
1981
|
-
header_params=_header_params,
|
|
1982
|
-
body=_body_params,
|
|
1983
|
-
post_params=_form_params,
|
|
1984
|
-
files=_files,
|
|
1985
|
-
auth_settings=_auth_settings,
|
|
1986
|
-
collection_formats=_collection_formats,
|
|
1987
|
-
_host=_host,
|
|
1988
|
-
_request_auth=_request_auth
|
|
1989
|
-
)
|
|
1990
|
-
|
|
1991
|
-
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
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
7
|
|
|
8
|
-
The version of the OpenAPI document: 30.
|
|
8
|
+
The version of the OpenAPI document: 30.21.0
|
|
9
9
|
Contact: bjorn@wink.travel
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -22,6 +22,7 @@ import mimetypes
|
|
|
22
22
|
import os
|
|
23
23
|
import re
|
|
24
24
|
import tempfile
|
|
25
|
+
import uuid
|
|
25
26
|
|
|
26
27
|
from urllib.parse import quote
|
|
27
28
|
from typing import Tuple, Optional, List, Dict, Union
|
|
@@ -357,6 +358,8 @@ class ApiClient:
|
|
|
357
358
|
return obj.get_secret_value()
|
|
358
359
|
elif isinstance(obj, self.PRIMITIVE_TYPES):
|
|
359
360
|
return obj
|
|
361
|
+
elif isinstance(obj, uuid.UUID):
|
|
362
|
+
return str(obj)
|
|
360
363
|
elif isinstance(obj, list):
|
|
361
364
|
return [
|
|
362
365
|
self.sanitize_for_serialization(sub_obj) for sub_obj in obj
|
|
@@ -383,6 +386,10 @@ class ApiClient:
|
|
|
383
386
|
else:
|
|
384
387
|
obj_dict = obj.__dict__
|
|
385
388
|
|
|
389
|
+
if isinstance(obj_dict, list):
|
|
390
|
+
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
|
|
391
|
+
return self.sanitize_for_serialization(obj_dict)
|
|
392
|
+
|
|
386
393
|
return {
|
|
387
394
|
key: self.sanitize_for_serialization(val)
|
|
388
395
|
for key, val in obj_dict.items()
|
|
@@ -405,7 +412,7 @@ class ApiClient:
|
|
|
405
412
|
data = json.loads(response_text)
|
|
406
413
|
except ValueError:
|
|
407
414
|
data = response_text
|
|
408
|
-
elif re.match(r'^application/(json|[\w
|
|
415
|
+
elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
|
|
409
416
|
if response_text == "":
|
|
410
417
|
data = ""
|
|
411
418
|
else:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
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
7
|
|
|
8
|
-
The version of the OpenAPI document: 30.
|
|
8
|
+
The version of the OpenAPI document: 30.21.0
|
|
9
9
|
Contact: bjorn@wink.travel
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -510,8 +510,8 @@ class Configuration:
|
|
|
510
510
|
return "Python SDK Debug Report:\n"\
|
|
511
511
|
"OS: {env}\n"\
|
|
512
512
|
"Python Version: {pyversion}\n"\
|
|
513
|
-
"Version of the API: 30.
|
|
514
|
-
"SDK Package Version: 0.0.
|
|
513
|
+
"Version of the API: 30.21.0\n"\
|
|
514
|
+
"SDK Package Version: 0.0.43".\
|
|
515
515
|
format(env=sys.platform, pyversion=sys.version)
|
|
516
516
|
|
|
517
517
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
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
7
|
|
|
8
|
-
The version of the OpenAPI document: 30.
|
|
8
|
+
The version of the OpenAPI document: 30.21.0
|
|
9
9
|
Contact: bjorn@wink.travel
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|