wink-sdk-travel-agent 0.0.25__py3-none-any.whl → 0.0.26__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 +17 -28
- wink_sdk_travel_agent/api/travel_agent_api.py +29 -29
- wink_sdk_travel_agent/api_client.py +2 -2
- wink_sdk_travel_agent/configuration.py +4 -4
- wink_sdk_travel_agent/exceptions.py +2 -2
- wink_sdk_travel_agent/models/__init__.py +16 -27
- wink_sdk_travel_agent/models/address_agent.py +7 -6
- wink_sdk_travel_agent/models/affiliate_account_agent.py +179 -0
- wink_sdk_travel_agent/models/affiliate_account_user_agent.py +115 -0
- wink_sdk_travel_agent/models/agent_booking_request_agent.py +13 -28
- wink_sdk_travel_agent/models/aggregate_descriptor_agent.py +3 -3
- wink_sdk_travel_agent/models/authenticated_user_agent.py +7 -6
- wink_sdk_travel_agent/models/bed_agent.py +4 -4
- wink_sdk_travel_agent/models/bedroom_agent.py +4 -3
- wink_sdk_travel_agent/models/bedroom_configuration_agent.py +8 -7
- wink_sdk_travel_agent/models/beneficiary_agent.py +13 -21
- wink_sdk_travel_agent/models/beneficiary_charge_agent.py +2 -2
- wink_sdk_travel_agent/models/booking_agent.py +37 -74
- wink_sdk_travel_agent/models/booking_ancillary_agent.py +16 -15
- wink_sdk_travel_agent/models/booking_confirmations_agent.py +6 -14
- wink_sdk_travel_agent/models/booking_contract_agent.py +104 -104
- wink_sdk_travel_agent/models/booking_contract_item_agent.py +13 -21
- wink_sdk_travel_agent/models/booking_contract_payment_details_agent.py +10 -17
- wink_sdk_travel_agent/models/booking_itinerary_agent.py +3 -3
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_agent.py +4 -4
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_child_agent.py +2 -2
- wink_sdk_travel_agent/models/booking_user_agent.py +7 -6
- wink_sdk_travel_agent/models/booking_user_request_agent.py +3 -3
- wink_sdk_travel_agent/models/booking_user_session_agent.py +4 -4
- wink_sdk_travel_agent/models/boolean_response_agent.py +2 -2
- wink_sdk_travel_agent/models/cancellation_detail_agent.py +4 -3
- wink_sdk_travel_agent/models/cancellation_policy_exception_agent.py +8 -7
- wink_sdk_travel_agent/models/cancellation_policy_exceptions_agent.py +5 -4
- wink_sdk_travel_agent/models/cancellation_policy_lightweight_agent.py +166 -0
- wink_sdk_travel_agent/models/child_agent.py +2 -2
- wink_sdk_travel_agent/models/commissionable_entry_agent.py +6 -5
- wink_sdk_travel_agent/models/composite_filter_descriptor_agent.py +3 -3
- wink_sdk_travel_agent/models/contact_agent.py +3 -3
- wink_sdk_travel_agent/models/country_lightweight_agent.py +100 -0
- wink_sdk_travel_agent/models/create_agent_booking400_response.py +3 -3
- wink_sdk_travel_agent/models/create_agent_booking_request_agent.py +7 -6
- wink_sdk_travel_agent/models/custom_monetary_amount.py +5 -4
- wink_sdk_travel_agent/models/customization_lightweight_agent.py +231 -0
- wink_sdk_travel_agent/models/customization_theme_colors_agent.py +108 -0
- wink_sdk_travel_agent/models/extra_charge_agent.py +6 -6
- wink_sdk_travel_agent/models/extra_charges_agent.py +3 -3
- wink_sdk_travel_agent/models/filter_descriptor_agent.py +11 -5
- wink_sdk_travel_agent/models/general_manager_agent.py +4 -4
- wink_sdk_travel_agent/models/generic_error_message.py +2 -2
- wink_sdk_travel_agent/models/geo_json_point_agent.py +3 -3
- wink_sdk_travel_agent/models/geo_name_lightweight_agent.py +136 -0
- wink_sdk_travel_agent/models/group_descriptor_agent.py +3 -3
- wink_sdk_travel_agent/models/guest_room_lightweight_agent.py +22 -22
- wink_sdk_travel_agent/models/guest_user_agent.py +9 -8
- wink_sdk_travel_agent/models/image_attribution_agent.py +5 -4
- wink_sdk_travel_agent/models/localized_description_agent.py +25 -7
- wink_sdk_travel_agent/models/localized_price_agent.py +11 -11
- wink_sdk_travel_agent/models/managed_by_entity_agent.py +8 -7
- wink_sdk_travel_agent/models/managed_by_entity_rules_agent.py +3 -3
- wink_sdk_travel_agent/models/page_booking_agent.py +124 -0
- wink_sdk_travel_agent/models/pageable_object_agent.py +6 -6
- wink_sdk_travel_agent/models/payout_agent.py +10 -9
- wink_sdk_travel_agent/models/payout_fee_agent.py +7 -6
- wink_sdk_travel_agent/models/perk_lightweight_agent.py +7 -6
- wink_sdk_travel_agent/models/personal_agent.py +8 -24
- wink_sdk_travel_agent/models/preferences_agent.py +13 -13
- wink_sdk_travel_agent/models/profile_lightweight_agent.py +111 -0
- wink_sdk_travel_agent/models/profile_user_agent.py +3 -3
- wink_sdk_travel_agent/models/property_aggregate_lightweight_agent.py +242 -0
- wink_sdk_travel_agent/models/property_policy_agent.py +6 -5
- wink_sdk_travel_agent/models/quote_lightweight_agent.py +95 -0
- wink_sdk_travel_agent/models/rate_plan_level_fee_agent.py +6 -5
- wink_sdk_travel_agent/models/refund_agent.py +6 -5
- wink_sdk_travel_agent/models/review_answer_agent.py +4 -3
- wink_sdk_travel_agent/models/review_lightweight_agent.py +133 -0
- wink_sdk_travel_agent/models/review_user_agent.py +3 -3
- wink_sdk_travel_agent/models/room_configuration_agent.py +3 -3
- wink_sdk_travel_agent/models/room_configuration_price_rate_plan_agent.py +23 -12
- wink_sdk_travel_agent/models/room_stay_agent.py +23 -22
- wink_sdk_travel_agent/models/simple_address_agent.py +12 -7
- wink_sdk_travel_agent/models/simple_date_time_itinerary_agent.py +7 -7
- wink_sdk_travel_agent/models/simple_description_agent.py +25 -7
- wink_sdk_travel_agent/models/simple_multimedia_agent.py +5 -5
- wink_sdk_travel_agent/models/social_agent.py +2 -2
- wink_sdk_travel_agent/models/sort_descriptor_agent.py +3 -3
- wink_sdk_travel_agent/models/sort_object_agent.py +2 -2
- wink_sdk_travel_agent/models/state_agent.py +3 -3
- wink_sdk_travel_agent/models/stay_rate_agent.py +16 -16
- wink_sdk_travel_agent/models/sub_country_lightweight_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 +2 -2
- wink_sdk_travel_agent/models/travel_agent_agent.py +3 -3
- wink_sdk_travel_agent/models/travel_inventory_recognition_agent.py +4 -4
- wink_sdk_travel_agent/models/upsert_travel_agent_request_agent.py +2 -2
- wink_sdk_travel_agent/rest.py +2 -2
- {wink_sdk_travel_agent-0.0.25.dist-info → wink_sdk_travel_agent-0.0.26.dist-info}/METADATA +20 -31
- wink_sdk_travel_agent-0.0.26.dist-info/RECORD +133 -0
- {wink_sdk_travel_agent-0.0.25.dist-info → wink_sdk_travel_agent-0.0.26.dist-info}/WHEEL +1 -1
- wink_sdk_travel_agent-0.0.25.dist-info/RECORD +0 -119
- {wink_sdk_travel_agent-0.0.25.dist-info → wink_sdk_travel_agent-0.0.26.dist-info}/licenses/LICENSE +0 -0
- {wink_sdk_travel_agent-0.0.25.dist-info → wink_sdk_travel_agent-0.0.26.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"""
|
|
5
5
|
Wink API
|
|
6
6
|
|
|
7
|
-
# 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](/
|
|
7
|
+
# 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](/reactive): 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 reactive widget for all other entities. - [TripPay](/reactive): 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.
|
|
8
8
|
|
|
9
|
-
The version of the OpenAPI document: 30.
|
|
9
|
+
The version of the OpenAPI document: 30.17.1
|
|
10
10
|
Contact: bjorn@wink.travel
|
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
# import models into model package
|
|
18
18
|
from wink_sdk_travel_agent.models.address_agent import AddressAgent
|
|
19
|
+
from wink_sdk_travel_agent.models.affiliate_account_agent import AffiliateAccountAgent
|
|
20
|
+
from wink_sdk_travel_agent.models.affiliate_account_user_agent import AffiliateAccountUserAgent
|
|
19
21
|
from wink_sdk_travel_agent.models.agent_booking_request_agent import AgentBookingRequestAgent
|
|
20
22
|
from wink_sdk_travel_agent.models.aggregate_descriptor_agent import AggregateDescriptorAgent
|
|
21
|
-
from wink_sdk_travel_agent.models.ancillary_request_agent import AncillaryRequestAgent
|
|
22
23
|
from wink_sdk_travel_agent.models.authenticated_user_agent import AuthenticatedUserAgent
|
|
23
24
|
from wink_sdk_travel_agent.models.bed_agent import BedAgent
|
|
24
25
|
from wink_sdk_travel_agent.models.bedroom_agent import BedroomAgent
|
|
@@ -37,64 +38,52 @@ from wink_sdk_travel_agent.models.booking_itinerary_room_configuration_child_age
|
|
|
37
38
|
from wink_sdk_travel_agent.models.booking_user_agent import BookingUserAgent
|
|
38
39
|
from wink_sdk_travel_agent.models.booking_user_request_agent import BookingUserRequestAgent
|
|
39
40
|
from wink_sdk_travel_agent.models.booking_user_session_agent import BookingUserSessionAgent
|
|
40
|
-
from wink_sdk_travel_agent.models.booking_view_agent import BookingViewAgent
|
|
41
41
|
from wink_sdk_travel_agent.models.boolean_response_agent import BooleanResponseAgent
|
|
42
42
|
from wink_sdk_travel_agent.models.cancellation_detail_agent import CancellationDetailAgent
|
|
43
|
-
from wink_sdk_travel_agent.models.cancellation_policy_agent import CancellationPolicyAgent
|
|
44
43
|
from wink_sdk_travel_agent.models.cancellation_policy_exception_agent import CancellationPolicyExceptionAgent
|
|
45
44
|
from wink_sdk_travel_agent.models.cancellation_policy_exceptions_agent import CancellationPolicyExceptionsAgent
|
|
45
|
+
from wink_sdk_travel_agent.models.cancellation_policy_lightweight_agent import CancellationPolicyLightweightAgent
|
|
46
46
|
from wink_sdk_travel_agent.models.child_agent import ChildAgent
|
|
47
47
|
from wink_sdk_travel_agent.models.commissionable_entry_agent import CommissionableEntryAgent
|
|
48
|
-
from wink_sdk_travel_agent.models.company_agent import CompanyAgent
|
|
49
|
-
from wink_sdk_travel_agent.models.company_user_agent import CompanyUserAgent
|
|
50
|
-
from wink_sdk_travel_agent.models.company_view_agent import CompanyViewAgent
|
|
51
48
|
from wink_sdk_travel_agent.models.composite_filter_descriptor_agent import CompositeFilterDescriptorAgent
|
|
52
49
|
from wink_sdk_travel_agent.models.contact_agent import ContactAgent
|
|
53
|
-
from wink_sdk_travel_agent.models.
|
|
50
|
+
from wink_sdk_travel_agent.models.country_lightweight_agent import CountryLightweightAgent
|
|
54
51
|
from wink_sdk_travel_agent.models.create_agent_booking400_response import CreateAgentBooking400Response
|
|
55
52
|
from wink_sdk_travel_agent.models.create_agent_booking_request_agent import CreateAgentBookingRequestAgent
|
|
56
53
|
from wink_sdk_travel_agent.models.custom_monetary_amount import CustomMonetaryAmount
|
|
57
|
-
from wink_sdk_travel_agent.models.
|
|
58
|
-
from wink_sdk_travel_agent.models.
|
|
59
|
-
from wink_sdk_travel_agent.models.engine_configuration_theme_colors_agent import EngineConfigurationThemeColorsAgent
|
|
54
|
+
from wink_sdk_travel_agent.models.customization_lightweight_agent import CustomizationLightweightAgent
|
|
55
|
+
from wink_sdk_travel_agent.models.customization_theme_colors_agent import CustomizationThemeColorsAgent
|
|
60
56
|
from wink_sdk_travel_agent.models.extra_charge_agent import ExtraChargeAgent
|
|
61
57
|
from wink_sdk_travel_agent.models.extra_charges_agent import ExtraChargesAgent
|
|
62
|
-
from wink_sdk_travel_agent.models.fee_agent import FeeAgent
|
|
63
58
|
from wink_sdk_travel_agent.models.filter_descriptor_agent import FilterDescriptorAgent
|
|
64
59
|
from wink_sdk_travel_agent.models.general_manager_agent import GeneralManagerAgent
|
|
65
60
|
from wink_sdk_travel_agent.models.generic_error_message import GenericErrorMessage
|
|
66
61
|
from wink_sdk_travel_agent.models.geo_json_point_agent import GeoJsonPointAgent
|
|
67
|
-
from wink_sdk_travel_agent.models.
|
|
62
|
+
from wink_sdk_travel_agent.models.geo_name_lightweight_agent import GeoNameLightweightAgent
|
|
68
63
|
from wink_sdk_travel_agent.models.group_descriptor_agent import GroupDescriptorAgent
|
|
69
64
|
from wink_sdk_travel_agent.models.guest_room_lightweight_agent import GuestRoomLightweightAgent
|
|
70
65
|
from wink_sdk_travel_agent.models.guest_user_agent import GuestUserAgent
|
|
71
|
-
from wink_sdk_travel_agent.models.hotel_on_map_agent import HotelOnMapAgent
|
|
72
66
|
from wink_sdk_travel_agent.models.image_attribution_agent import ImageAttributionAgent
|
|
73
67
|
from wink_sdk_travel_agent.models.localized_description_agent import LocalizedDescriptionAgent
|
|
74
68
|
from wink_sdk_travel_agent.models.localized_price_agent import LocalizedPriceAgent
|
|
75
69
|
from wink_sdk_travel_agent.models.managed_by_entity_agent import ManagedByEntityAgent
|
|
76
70
|
from wink_sdk_travel_agent.models.managed_by_entity_rules_agent import ManagedByEntityRulesAgent
|
|
77
|
-
from wink_sdk_travel_agent.models.
|
|
78
|
-
from wink_sdk_travel_agent.models.page_booking_view_agent import PageBookingViewAgent
|
|
71
|
+
from wink_sdk_travel_agent.models.page_booking_agent import PageBookingAgent
|
|
79
72
|
from wink_sdk_travel_agent.models.pageable_object_agent import PageableObjectAgent
|
|
80
73
|
from wink_sdk_travel_agent.models.payout_agent import PayoutAgent
|
|
81
74
|
from wink_sdk_travel_agent.models.payout_fee_agent import PayoutFeeAgent
|
|
82
|
-
from wink_sdk_travel_agent.models.pending_refund_agent import PendingRefundAgent
|
|
83
75
|
from wink_sdk_travel_agent.models.perk_lightweight_agent import PerkLightweightAgent
|
|
84
76
|
from wink_sdk_travel_agent.models.personal_agent import PersonalAgent
|
|
85
|
-
from wink_sdk_travel_agent.models.pet_info_dto_agent import PetInfoDtoAgent
|
|
86
77
|
from wink_sdk_travel_agent.models.preferences_agent import PreferencesAgent
|
|
87
|
-
from wink_sdk_travel_agent.models.
|
|
78
|
+
from wink_sdk_travel_agent.models.profile_lightweight_agent import ProfileLightweightAgent
|
|
88
79
|
from wink_sdk_travel_agent.models.profile_user_agent import ProfileUserAgent
|
|
80
|
+
from wink_sdk_travel_agent.models.property_aggregate_lightweight_agent import PropertyAggregateLightweightAgent
|
|
89
81
|
from wink_sdk_travel_agent.models.property_policy_agent import PropertyPolicyAgent
|
|
90
|
-
from wink_sdk_travel_agent.models.
|
|
82
|
+
from wink_sdk_travel_agent.models.quote_lightweight_agent import QuoteLightweightAgent
|
|
91
83
|
from wink_sdk_travel_agent.models.rate_plan_level_fee_agent import RatePlanLevelFeeAgent
|
|
92
84
|
from wink_sdk_travel_agent.models.refund_agent import RefundAgent
|
|
93
|
-
from wink_sdk_travel_agent.models.reporting_ancillary_agent import ReportingAncillaryAgent
|
|
94
|
-
from wink_sdk_travel_agent.models.reporting_daily_rate_agent import ReportingDailyRateAgent
|
|
95
|
-
from wink_sdk_travel_agent.models.reporting_extra_charge_agent import ReportingExtraChargeAgent
|
|
96
|
-
from wink_sdk_travel_agent.models.review_agent import ReviewAgent
|
|
97
85
|
from wink_sdk_travel_agent.models.review_answer_agent import ReviewAnswerAgent
|
|
86
|
+
from wink_sdk_travel_agent.models.review_lightweight_agent import ReviewLightweightAgent
|
|
98
87
|
from wink_sdk_travel_agent.models.review_user_agent import ReviewUserAgent
|
|
99
88
|
from wink_sdk_travel_agent.models.room_configuration_agent import RoomConfigurationAgent
|
|
100
89
|
from wink_sdk_travel_agent.models.room_configuration_price_rate_plan_agent import RoomConfigurationPriceRatePlanAgent
|
|
@@ -108,8 +97,8 @@ from wink_sdk_travel_agent.models.sort_descriptor_agent import SortDescriptorAge
|
|
|
108
97
|
from wink_sdk_travel_agent.models.sort_object_agent import SortObjectAgent
|
|
109
98
|
from wink_sdk_travel_agent.models.state_agent import StateAgent
|
|
110
99
|
from wink_sdk_travel_agent.models.stay_rate_agent import StayRateAgent
|
|
111
|
-
from wink_sdk_travel_agent.models.
|
|
112
|
-
from wink_sdk_travel_agent.models.
|
|
100
|
+
from wink_sdk_travel_agent.models.sub_country_lightweight_agent import SubCountryLightweightAgent
|
|
101
|
+
from wink_sdk_travel_agent.models.sub_sub_country_lightweight_agent import SubSubCountryLightweightAgent
|
|
113
102
|
from wink_sdk_travel_agent.models.supplier_contract_item_policy_agent import SupplierContractItemPolicyAgent
|
|
114
103
|
from wink_sdk_travel_agent.models.travel_agent_agent import TravelAgentAgent
|
|
115
104
|
from wink_sdk_travel_agent.models.travel_inventory_recognition_agent import TravelInventoryRecognitionAgent
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Wink API
|
|
5
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](/
|
|
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](/reactive): 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 reactive widget for all other entities. - [TripPay](/reactive): 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.17.1
|
|
9
9
|
Contact: bjorn@wink.travel
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -20,7 +20,8 @@ import json
|
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from wink_sdk_travel_agent.models.geo_name_lightweight_agent import GeoNameLightweightAgent
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
26
27
|
|
|
@@ -28,12 +29,12 @@ class AddressAgent(BaseModel):
|
|
|
28
29
|
"""
|
|
29
30
|
Address information
|
|
30
31
|
""" # noqa: E501
|
|
31
|
-
address1:
|
|
32
|
+
address1: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address line 1")
|
|
32
33
|
address2: Optional[StrictStr] = Field(default=None, description="Address line 2")
|
|
33
34
|
state: Optional[StrictStr] = Field(default=None, description="State")
|
|
34
35
|
postal_code: Optional[StrictStr] = Field(default=None, description="Postal / zip code", alias="postalCode")
|
|
35
36
|
county: Optional[StrictStr] = Field(default=None, description="County")
|
|
36
|
-
city:
|
|
37
|
+
city: GeoNameLightweightAgent = Field(description="City geo name object")
|
|
37
38
|
valid: Optional[StrictBool] = Field(default=None, description="Whether this address is considered valid by the system or not")
|
|
38
39
|
full_address: Optional[StrictStr] = Field(default=None, description="Address 1, Address 2, City, State, Postal / Zip code, Country", alias="fullAddress")
|
|
39
40
|
__properties: ClassVar[List[str]] = ["address1", "address2", "state", "postalCode", "county", "city", "valid", "fullAddress"]
|
|
@@ -101,7 +102,7 @@ class AddressAgent(BaseModel):
|
|
|
101
102
|
"state": obj.get("state"),
|
|
102
103
|
"postalCode": obj.get("postalCode"),
|
|
103
104
|
"county": obj.get("county"),
|
|
104
|
-
"city":
|
|
105
|
+
"city": GeoNameLightweightAgent.from_dict(obj["city"]) if obj.get("city") is not None else None,
|
|
105
106
|
"valid": obj.get("valid"),
|
|
106
107
|
"fullAddress": obj.get("fullAddress")
|
|
107
108
|
})
|
|
@@ -0,0 +1,179 @@
|
|
|
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](/reactive): 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 reactive widget for all other entities. - [TripPay](/reactive): 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.17.1
|
|
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, StrictInt, StrictStr, field_validator
|
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
|
+
from typing_extensions import Annotated
|
|
25
|
+
from wink_sdk_travel_agent.models.address_agent import AddressAgent
|
|
26
|
+
from wink_sdk_travel_agent.models.affiliate_account_user_agent import AffiliateAccountUserAgent
|
|
27
|
+
from wink_sdk_travel_agent.models.custom_monetary_amount import CustomMonetaryAmount
|
|
28
|
+
from wink_sdk_travel_agent.models.managed_by_entity_agent import ManagedByEntityAgent
|
|
29
|
+
from wink_sdk_travel_agent.models.simple_multimedia_agent import SimpleMultimediaAgent
|
|
30
|
+
from wink_sdk_travel_agent.models.travel_agent_agent import TravelAgentAgent
|
|
31
|
+
from typing import Optional, Set
|
|
32
|
+
from typing_extensions import Self
|
|
33
|
+
|
|
34
|
+
class AffiliateAccountAgent(BaseModel):
|
|
35
|
+
"""
|
|
36
|
+
AffiliateAccountAgent
|
|
37
|
+
""" # noqa: E501
|
|
38
|
+
id: Optional[StrictStr] = Field(default=None, description="Document UUID")
|
|
39
|
+
created_date: Optional[datetime] = Field(default=None, description="Datetime this record was first created", alias="createdDate")
|
|
40
|
+
last_update: Optional[datetime] = Field(default=None, description="Datetime this record was last updated", alias="lastUpdate")
|
|
41
|
+
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.")
|
|
42
|
+
user_identifier: Annotated[str, Field(min_length=1, strict=True)] = Field(description="User or Registered client owner identifier that created this record", alias="userIdentifier")
|
|
43
|
+
owner: AffiliateAccountUserAgent = Field(description="Owner")
|
|
44
|
+
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of company")
|
|
45
|
+
url_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Url slug of company name", alias="urlName")
|
|
46
|
+
legal_name: Optional[StrictStr] = Field(default=None, description="Legal name of entity if other than name", alias="legalName")
|
|
47
|
+
enabled: StrictBool = Field(description="Whether this company is enabled by reactive.")
|
|
48
|
+
approved: StrictBool = Field(description="Whether this company has been approved by KYC.")
|
|
49
|
+
company_type: StrictStr = Field(description="Type of company", alias="companyType")
|
|
50
|
+
type: StrictStr = Field(description="Type of sales channel")
|
|
51
|
+
description: Optional[StrictStr] = Field(default=None, description="A personal message from the company.")
|
|
52
|
+
address: AddressAgent
|
|
53
|
+
managers: Optional[Annotated[List[AffiliateAccountUserAgent], Field(min_length=0, max_length=30)]] = None
|
|
54
|
+
logo: Optional[SimpleMultimediaAgent] = Field(default=None, description="Customize account with a custom logo / profile picture.")
|
|
55
|
+
travel_agent: Optional[TravelAgentAgent] = Field(default=None, description="Customize account with a custom logo / profile picture.", alias="travelAgent")
|
|
56
|
+
managed_by: Optional[ManagedByEntityAgent] = Field(default=None, description="If another company entity is managing this property, on behalf of the property, it can be specified here and the managing entity would be applicable a management fee on every booking.", alias="managedBy")
|
|
57
|
+
online_presence: Optional[List[Any]] = Field(default=None, alias="onlinePresence")
|
|
58
|
+
annual_travel_spend_in_dollars: Optional[CustomMonetaryAmount] = Field(default=None, description="How much user or company spends on travel per year.", alias="annualTravelSpendInDollars")
|
|
59
|
+
plans: Optional[List[Any]] = None
|
|
60
|
+
previous_url_name_list: Optional[List[Any]] = Field(default=None, alias="previousUrlNameList")
|
|
61
|
+
__properties: ClassVar[List[str]] = ["id", "createdDate", "lastUpdate", "version", "userIdentifier", "owner", "name", "urlName", "legalName", "enabled", "approved", "companyType", "type", "description", "address", "managers", "logo", "travelAgent", "managedBy", "onlinePresence", "annualTravelSpendInDollars", "plans", "previousUrlNameList"]
|
|
62
|
+
|
|
63
|
+
@field_validator('company_type')
|
|
64
|
+
def company_type_validate_enum(cls, value):
|
|
65
|
+
"""Validates the enum"""
|
|
66
|
+
if value not in set(['COMPANY', 'INDIVIDUAL']):
|
|
67
|
+
raise ValueError("must be one of enum values ('COMPANY', 'INDIVIDUAL')")
|
|
68
|
+
return value
|
|
69
|
+
|
|
70
|
+
@field_validator('type')
|
|
71
|
+
def type_validate_enum(cls, value):
|
|
72
|
+
"""Validates the enum"""
|
|
73
|
+
if value not in set(['DIRECT', 'APPLICATION', 'HOTEL', 'TRAVELIKO', 'CORPORATE', 'TRAVEL_AGENT', 'INFLUENCER', 'BLOGGER', 'DESTINATION', 'CHANNEL_MANAGER', 'PROPERTY_MANAGEMENT_SYSTEM', 'CENTRAL_RESERVATION_SYSTEM', 'GOOGLE_HOTEL_API', 'MANAGEMENT_COMPANY', 'CHAIN', 'BRAND', 'EVENT_ORGANIZER']):
|
|
74
|
+
raise ValueError("must be one of enum values ('DIRECT', 'APPLICATION', 'HOTEL', 'TRAVELIKO', 'CORPORATE', 'TRAVEL_AGENT', 'INFLUENCER', 'BLOGGER', 'DESTINATION', 'CHANNEL_MANAGER', 'PROPERTY_MANAGEMENT_SYSTEM', 'CENTRAL_RESERVATION_SYSTEM', 'GOOGLE_HOTEL_API', 'MANAGEMENT_COMPANY', 'CHAIN', 'BRAND', 'EVENT_ORGANIZER')")
|
|
75
|
+
return value
|
|
76
|
+
|
|
77
|
+
model_config = ConfigDict(
|
|
78
|
+
populate_by_name=True,
|
|
79
|
+
validate_assignment=True,
|
|
80
|
+
protected_namespaces=(),
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def to_str(self) -> str:
|
|
85
|
+
"""Returns the string representation of the model using alias"""
|
|
86
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
87
|
+
|
|
88
|
+
def to_json(self) -> str:
|
|
89
|
+
"""Returns the JSON representation of the model using alias"""
|
|
90
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
91
|
+
return json.dumps(self.to_dict())
|
|
92
|
+
|
|
93
|
+
@classmethod
|
|
94
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
95
|
+
"""Create an instance of AffiliateAccountAgent from a JSON string"""
|
|
96
|
+
return cls.from_dict(json.loads(json_str))
|
|
97
|
+
|
|
98
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
99
|
+
"""Return the dictionary representation of the model using alias.
|
|
100
|
+
|
|
101
|
+
This has the following differences from calling pydantic's
|
|
102
|
+
`self.model_dump(by_alias=True)`:
|
|
103
|
+
|
|
104
|
+
* `None` is only added to the output dict for nullable fields that
|
|
105
|
+
were set at model initialization. Other fields with value `None`
|
|
106
|
+
are ignored.
|
|
107
|
+
"""
|
|
108
|
+
excluded_fields: Set[str] = set([
|
|
109
|
+
])
|
|
110
|
+
|
|
111
|
+
_dict = self.model_dump(
|
|
112
|
+
by_alias=True,
|
|
113
|
+
exclude=excluded_fields,
|
|
114
|
+
exclude_none=True,
|
|
115
|
+
)
|
|
116
|
+
# override the default output from pydantic by calling `to_dict()` of owner
|
|
117
|
+
if self.owner:
|
|
118
|
+
_dict['owner'] = self.owner.to_dict()
|
|
119
|
+
# override the default output from pydantic by calling `to_dict()` of address
|
|
120
|
+
if self.address:
|
|
121
|
+
_dict['address'] = self.address.to_dict()
|
|
122
|
+
# override the default output from pydantic by calling `to_dict()` of each item in managers (list)
|
|
123
|
+
_items = []
|
|
124
|
+
if self.managers:
|
|
125
|
+
for _item_managers in self.managers:
|
|
126
|
+
if _item_managers:
|
|
127
|
+
_items.append(_item_managers.to_dict())
|
|
128
|
+
_dict['managers'] = _items
|
|
129
|
+
# override the default output from pydantic by calling `to_dict()` of logo
|
|
130
|
+
if self.logo:
|
|
131
|
+
_dict['logo'] = self.logo.to_dict()
|
|
132
|
+
# override the default output from pydantic by calling `to_dict()` of travel_agent
|
|
133
|
+
if self.travel_agent:
|
|
134
|
+
_dict['travelAgent'] = self.travel_agent.to_dict()
|
|
135
|
+
# override the default output from pydantic by calling `to_dict()` of managed_by
|
|
136
|
+
if self.managed_by:
|
|
137
|
+
_dict['managedBy'] = self.managed_by.to_dict()
|
|
138
|
+
# override the default output from pydantic by calling `to_dict()` of annual_travel_spend_in_dollars
|
|
139
|
+
if self.annual_travel_spend_in_dollars:
|
|
140
|
+
_dict['annualTravelSpendInDollars'] = self.annual_travel_spend_in_dollars.to_dict()
|
|
141
|
+
return _dict
|
|
142
|
+
|
|
143
|
+
@classmethod
|
|
144
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
145
|
+
"""Create an instance of AffiliateAccountAgent from a dict"""
|
|
146
|
+
if obj is None:
|
|
147
|
+
return None
|
|
148
|
+
|
|
149
|
+
if not isinstance(obj, dict):
|
|
150
|
+
return cls.model_validate(obj)
|
|
151
|
+
|
|
152
|
+
_obj = cls.model_validate({
|
|
153
|
+
"id": obj.get("id"),
|
|
154
|
+
"createdDate": obj.get("createdDate"),
|
|
155
|
+
"lastUpdate": obj.get("lastUpdate"),
|
|
156
|
+
"version": obj.get("version"),
|
|
157
|
+
"userIdentifier": obj.get("userIdentifier"),
|
|
158
|
+
"owner": AffiliateAccountUserAgent.from_dict(obj["owner"]) if obj.get("owner") is not None else None,
|
|
159
|
+
"name": obj.get("name"),
|
|
160
|
+
"urlName": obj.get("urlName"),
|
|
161
|
+
"legalName": obj.get("legalName"),
|
|
162
|
+
"enabled": obj.get("enabled"),
|
|
163
|
+
"approved": obj.get("approved") if obj.get("approved") is not None else False,
|
|
164
|
+
"companyType": obj.get("companyType"),
|
|
165
|
+
"type": obj.get("type"),
|
|
166
|
+
"description": obj.get("description"),
|
|
167
|
+
"address": AddressAgent.from_dict(obj["address"]) if obj.get("address") is not None else None,
|
|
168
|
+
"managers": [AffiliateAccountUserAgent.from_dict(_item) for _item in obj["managers"]] if obj.get("managers") is not None else None,
|
|
169
|
+
"logo": SimpleMultimediaAgent.from_dict(obj["logo"]) if obj.get("logo") is not None else None,
|
|
170
|
+
"travelAgent": TravelAgentAgent.from_dict(obj["travelAgent"]) if obj.get("travelAgent") is not None else None,
|
|
171
|
+
"managedBy": ManagedByEntityAgent.from_dict(obj["managedBy"]) if obj.get("managedBy") is not None else None,
|
|
172
|
+
"onlinePresence": obj.get("onlinePresence"),
|
|
173
|
+
"annualTravelSpendInDollars": CustomMonetaryAmount.from_dict(obj["annualTravelSpendInDollars"]) if obj.get("annualTravelSpendInDollars") is not None else None,
|
|
174
|
+
"plans": obj.get("plans"),
|
|
175
|
+
"previousUrlNameList": obj.get("previousUrlNameList")
|
|
176
|
+
})
|
|
177
|
+
return _obj
|
|
178
|
+
|
|
179
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
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](/reactive): 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 reactive widget for all other entities. - [TripPay](/reactive): 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.17.1
|
|
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, StrictStr, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class AffiliateAccountUserAgent(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
AffiliateAccountUserAgent
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
email: Annotated[str, Field(min_length=1, strict=True)] = Field(description="User email")
|
|
32
|
+
status: Optional[StrictStr] = Field(default=None, description="Contact phone number")
|
|
33
|
+
user_identifier: Optional[StrictStr] = Field(default=None, description="User identifier", alias="userIdentifier")
|
|
34
|
+
first_name: Optional[StrictStr] = Field(default=None, description="Contact first name", alias="firstName")
|
|
35
|
+
last_name: Optional[StrictStr] = Field(default=None, description="Contact last name", alias="lastName")
|
|
36
|
+
secondary_email: Optional[StrictStr] = Field(default=None, description="Contact secondary Email", alias="secondaryEmail")
|
|
37
|
+
phone_number: Optional[StrictStr] = Field(default=None, description="Contact phone number", alias="phoneNumber")
|
|
38
|
+
profile_picture_url: Optional[StrictStr] = Field(default=None, description="Profile picture is available", alias="profilePictureUrl")
|
|
39
|
+
name: Optional[StrictStr] = None
|
|
40
|
+
__properties: ClassVar[List[str]] = ["email", "status", "userIdentifier", "firstName", "lastName", "secondaryEmail", "phoneNumber", "profilePictureUrl", "name"]
|
|
41
|
+
|
|
42
|
+
@field_validator('status')
|
|
43
|
+
def status_validate_enum(cls, value):
|
|
44
|
+
"""Validates the enum"""
|
|
45
|
+
if value is None:
|
|
46
|
+
return value
|
|
47
|
+
|
|
48
|
+
if value not in set(['PENDING', 'ACCEPTED', 'DEACTIVATED']):
|
|
49
|
+
raise ValueError("must be one of enum values ('PENDING', 'ACCEPTED', 'DEACTIVATED')")
|
|
50
|
+
return value
|
|
51
|
+
|
|
52
|
+
model_config = ConfigDict(
|
|
53
|
+
populate_by_name=True,
|
|
54
|
+
validate_assignment=True,
|
|
55
|
+
protected_namespaces=(),
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def to_str(self) -> str:
|
|
60
|
+
"""Returns the string representation of the model using alias"""
|
|
61
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
62
|
+
|
|
63
|
+
def to_json(self) -> str:
|
|
64
|
+
"""Returns the JSON representation of the model using alias"""
|
|
65
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
66
|
+
return json.dumps(self.to_dict())
|
|
67
|
+
|
|
68
|
+
@classmethod
|
|
69
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
70
|
+
"""Create an instance of AffiliateAccountUserAgent from a JSON string"""
|
|
71
|
+
return cls.from_dict(json.loads(json_str))
|
|
72
|
+
|
|
73
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
74
|
+
"""Return the dictionary representation of the model using alias.
|
|
75
|
+
|
|
76
|
+
This has the following differences from calling pydantic's
|
|
77
|
+
`self.model_dump(by_alias=True)`:
|
|
78
|
+
|
|
79
|
+
* `None` is only added to the output dict for nullable fields that
|
|
80
|
+
were set at model initialization. Other fields with value `None`
|
|
81
|
+
are ignored.
|
|
82
|
+
"""
|
|
83
|
+
excluded_fields: Set[str] = set([
|
|
84
|
+
])
|
|
85
|
+
|
|
86
|
+
_dict = self.model_dump(
|
|
87
|
+
by_alias=True,
|
|
88
|
+
exclude=excluded_fields,
|
|
89
|
+
exclude_none=True,
|
|
90
|
+
)
|
|
91
|
+
return _dict
|
|
92
|
+
|
|
93
|
+
@classmethod
|
|
94
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
95
|
+
"""Create an instance of AffiliateAccountUserAgent from a dict"""
|
|
96
|
+
if obj is None:
|
|
97
|
+
return None
|
|
98
|
+
|
|
99
|
+
if not isinstance(obj, dict):
|
|
100
|
+
return cls.model_validate(obj)
|
|
101
|
+
|
|
102
|
+
_obj = cls.model_validate({
|
|
103
|
+
"email": obj.get("email"),
|
|
104
|
+
"status": obj.get("status"),
|
|
105
|
+
"userIdentifier": obj.get("userIdentifier"),
|
|
106
|
+
"firstName": obj.get("firstName"),
|
|
107
|
+
"lastName": obj.get("lastName"),
|
|
108
|
+
"secondaryEmail": obj.get("secondaryEmail"),
|
|
109
|
+
"phoneNumber": obj.get("phoneNumber"),
|
|
110
|
+
"profilePictureUrl": obj.get("profilePictureUrl"),
|
|
111
|
+
"name": obj.get("name")
|
|
112
|
+
})
|
|
113
|
+
return _obj
|
|
114
|
+
|
|
115
|
+
|