wink-sdk-travel-agent 0.0.55__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wink_sdk_travel_agent/__init__.py +229 -0
- wink_sdk_travel_agent/api/__init__.py +6 -0
- wink_sdk_travel_agent/api/analytics_api.py +671 -0
- wink_sdk_travel_agent/api/travel_agent_api.py +1668 -0
- wink_sdk_travel_agent/api_client.py +805 -0
- wink_sdk_travel_agent/api_response.py +21 -0
- wink_sdk_travel_agent/configuration.py +582 -0
- wink_sdk_travel_agent/exceptions.py +217 -0
- wink_sdk_travel_agent/models/__init__.py +106 -0
- wink_sdk_travel_agent/models/address_agent.py +111 -0
- wink_sdk_travel_agent/models/affiliate_account_agent.py +181 -0
- wink_sdk_travel_agent/models/affiliate_account_user_agent.py +115 -0
- wink_sdk_travel_agent/models/agent_booking_request_agent.py +130 -0
- wink_sdk_travel_agent/models/aggregate_descriptor_agent.py +100 -0
- wink_sdk_travel_agent/models/ancillary_request_agent.py +111 -0
- wink_sdk_travel_agent/models/authenticated_user_agent.py +100 -0
- wink_sdk_travel_agent/models/bed_agent.py +91 -0
- wink_sdk_travel_agent/models/bedroom_agent.py +106 -0
- wink_sdk_travel_agent/models/bedroom_configuration_agent.py +102 -0
- wink_sdk_travel_agent/models/beneficiary_agent.py +156 -0
- wink_sdk_travel_agent/models/beneficiary_charge_agent.py +97 -0
- wink_sdk_travel_agent/models/booking_agent.py +342 -0
- wink_sdk_travel_agent/models/booking_analytics_supplier.py +96 -0
- wink_sdk_travel_agent/models/booking_ancillary_agent.py +155 -0
- wink_sdk_travel_agent/models/booking_confirmations_agent.py +101 -0
- wink_sdk_travel_agent/models/booking_contract_agent.py +697 -0
- wink_sdk_travel_agent/models/booking_contract_item_agent.py +206 -0
- wink_sdk_travel_agent/models/booking_contract_payment_details_agent.py +124 -0
- wink_sdk_travel_agent/models/booking_itinerary_agent.py +113 -0
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_agent.py +98 -0
- wink_sdk_travel_agent/models/booking_itinerary_room_configuration_child_agent.py +90 -0
- wink_sdk_travel_agent/models/booking_overview_request_supplier.py +97 -0
- wink_sdk_travel_agent/models/booking_user_agent.py +102 -0
- wink_sdk_travel_agent/models/booking_user_request_agent.py +96 -0
- wink_sdk_travel_agent/models/booking_user_session_agent.py +112 -0
- wink_sdk_travel_agent/models/booking_view_agent.py +101 -0
- wink_sdk_travel_agent/models/boolean_response_agent.py +90 -0
- wink_sdk_travel_agent/models/cancellation_detail_agent.py +98 -0
- wink_sdk_travel_agent/models/cancellation_policy_agent.py +166 -0
- wink_sdk_travel_agent/models/cancellation_policy_exception_agent.py +100 -0
- wink_sdk_travel_agent/models/cancellation_policy_exceptions_agent.py +97 -0
- wink_sdk_travel_agent/models/cancellation_policy_lightweight_agent.py +167 -0
- wink_sdk_travel_agent/models/chart_category_axis_supplier.py +88 -0
- wink_sdk_travel_agent/models/chart_legend_supplier.py +88 -0
- wink_sdk_travel_agent/models/chart_series_supplier.py +90 -0
- wink_sdk_travel_agent/models/chart_title_supplier.py +88 -0
- wink_sdk_travel_agent/models/child_agent.py +91 -0
- wink_sdk_travel_agent/models/commissionable_entry_agent.py +102 -0
- wink_sdk_travel_agent/models/company_agent.py +176 -0
- wink_sdk_travel_agent/models/company_user_agent.py +114 -0
- wink_sdk_travel_agent/models/company_view_agent.py +101 -0
- wink_sdk_travel_agent/models/composite_filter_descriptor_agent.py +108 -0
- wink_sdk_travel_agent/models/contact_agent.py +104 -0
- wink_sdk_travel_agent/models/country_agent.py +100 -0
- wink_sdk_travel_agent/models/country_lightweight_agent.py +100 -0
- wink_sdk_travel_agent/models/create_agent_booking400_response.py +141 -0
- wink_sdk_travel_agent/models/create_agent_booking_request_agent.py +105 -0
- wink_sdk_travel_agent/models/custom_monetary_amount.py +91 -0
- wink_sdk_travel_agent/models/customization_lightweight_agent.py +232 -0
- wink_sdk_travel_agent/models/customization_theme_colors_agent.py +108 -0
- wink_sdk_travel_agent/models/daily_rate_agent.py +115 -0
- wink_sdk_travel_agent/models/dow_pattern_group_agent.py +102 -0
- wink_sdk_travel_agent/models/engine_configuration_booking_report_agent.py +230 -0
- wink_sdk_travel_agent/models/engine_configuration_theme_agent.py +108 -0
- wink_sdk_travel_agent/models/engine_configuration_theme_colors_agent.py +108 -0
- wink_sdk_travel_agent/models/extra_charge_agent.py +103 -0
- wink_sdk_travel_agent/models/extra_charges_agent.py +112 -0
- wink_sdk_travel_agent/models/fee_agent.py +105 -0
- wink_sdk_travel_agent/models/filter_descriptor_agent.py +107 -0
- wink_sdk_travel_agent/models/general_manager_agent.py +104 -0
- wink_sdk_travel_agent/models/generic_error_message.py +94 -0
- wink_sdk_travel_agent/models/geo_json_point_agent.py +94 -0
- wink_sdk_travel_agent/models/geo_name_agent.py +136 -0
- wink_sdk_travel_agent/models/geo_name_lightweight_agent.py +136 -0
- wink_sdk_travel_agent/models/group_descriptor_agent.py +110 -0
- wink_sdk_travel_agent/models/grouped_booking_sales_metrics_supplier_details.py +110 -0
- wink_sdk_travel_agent/models/guest_room_agent.py +258 -0
- wink_sdk_travel_agent/models/guest_room_lightweight_agent.py +259 -0
- wink_sdk_travel_agent/models/guest_user_agent.py +108 -0
- wink_sdk_travel_agent/models/hotel_on_map_agent.py +270 -0
- wink_sdk_travel_agent/models/image_attribution_agent.py +91 -0
- wink_sdk_travel_agent/models/line_chart_supplier.py +122 -0
- wink_sdk_travel_agent/models/localized_description_agent.py +109 -0
- wink_sdk_travel_agent/models/localized_price_agent.py +162 -0
- wink_sdk_travel_agent/models/managed_by_entity_agent.py +103 -0
- wink_sdk_travel_agent/models/managed_by_entity_rules_agent.py +95 -0
- wink_sdk_travel_agent/models/media_author_attribution_agent.py +91 -0
- wink_sdk_travel_agent/models/online_presence_agent.py +112 -0
- wink_sdk_travel_agent/models/page_booking_agent.py +124 -0
- wink_sdk_travel_agent/models/page_booking_view_agent.py +124 -0
- wink_sdk_travel_agent/models/pageable_object_agent.py +102 -0
- wink_sdk_travel_agent/models/payout_agent.py +158 -0
- wink_sdk_travel_agent/models/payout_fee_agent.py +116 -0
- wink_sdk_travel_agent/models/pending_refund_agent.py +99 -0
- wink_sdk_travel_agent/models/perk_lightweight_agent.py +105 -0
- wink_sdk_travel_agent/models/personal_agent.py +139 -0
- wink_sdk_travel_agent/models/pet_info_dto_agent.py +90 -0
- wink_sdk_travel_agent/models/preferences_agent.py +128 -0
- wink_sdk_travel_agent/models/profile_agent.py +110 -0
- wink_sdk_travel_agent/models/profile_lightweight_agent.py +111 -0
- wink_sdk_travel_agent/models/profile_user_agent.py +100 -0
- wink_sdk_travel_agent/models/property_aggregate_lightweight_agent.py +245 -0
- wink_sdk_travel_agent/models/property_policy_agent.py +150 -0
- wink_sdk_travel_agent/models/quote_agent.py +94 -0
- wink_sdk_travel_agent/models/quote_lightweight_agent.py +95 -0
- wink_sdk_travel_agent/models/rate_plan_agent.py +172 -0
- wink_sdk_travel_agent/models/rate_plan_level_fee_agent.py +112 -0
- wink_sdk_travel_agent/models/refund_agent.py +167 -0
- wink_sdk_travel_agent/models/reporting_ancillary_agent.py +108 -0
- wink_sdk_travel_agent/models/reporting_daily_rate_agent.py +99 -0
- wink_sdk_travel_agent/models/reporting_extra_charge_agent.py +98 -0
- wink_sdk_travel_agent/models/review_agent.py +133 -0
- wink_sdk_travel_agent/models/review_answer_agent.py +102 -0
- wink_sdk_travel_agent/models/review_lightweight_agent.py +134 -0
- wink_sdk_travel_agent/models/review_user_agent.py +99 -0
- wink_sdk_travel_agent/models/room_configuration_agent.py +99 -0
- wink_sdk_travel_agent/models/room_configuration_price_rate_plan_agent.py +130 -0
- wink_sdk_travel_agent/models/room_stay_agent.py +183 -0
- wink_sdk_travel_agent/models/simple_address_agent.py +109 -0
- wink_sdk_travel_agent/models/simple_date_time_itinerary_agent.py +108 -0
- wink_sdk_travel_agent/models/simple_description_agent.py +111 -0
- wink_sdk_travel_agent/models/simple_multimedia_agent.py +156 -0
- wink_sdk_travel_agent/models/social_agent.py +100 -0
- wink_sdk_travel_agent/models/sort_descriptor_agent.py +100 -0
- wink_sdk_travel_agent/models/sort_object.py +96 -0
- wink_sdk_travel_agent/models/sort_object_agent.py +92 -0
- wink_sdk_travel_agent/models/state_agent.py +117 -0
- wink_sdk_travel_agent/models/stay_rate_agent.py +209 -0
- wink_sdk_travel_agent/models/sub_country_agent.py +92 -0
- wink_sdk_travel_agent/models/sub_country_lightweight_agent.py +92 -0
- wink_sdk_travel_agent/models/sub_sub_country_agent.py +92 -0
- wink_sdk_travel_agent/models/sub_sub_country_lightweight_agent.py +92 -0
- wink_sdk_travel_agent/models/supplier_contract_item_policy_agent.py +170 -0
- wink_sdk_travel_agent/models/travel_agent_agent.py +90 -0
- wink_sdk_travel_agent/models/travel_inventory_recognition_agent.py +121 -0
- wink_sdk_travel_agent/models/upsert_travel_agent_request_agent.py +90 -0
- wink_sdk_travel_agent/models/wink_booking_contract_agent.py +697 -0
- wink_sdk_travel_agent/py.typed +0 -0
- wink_sdk_travel_agent/rest.py +259 -0
- wink_sdk_travel_agent-0.0.55.dist-info/METADATA +539 -0
- wink_sdk_travel_agent-0.0.55.dist-info/RECORD +144 -0
- wink_sdk_travel_agent-0.0.55.dist-info/WHEEL +5 -0
- wink_sdk_travel_agent-0.0.55.dist-info/licenses/LICENSE +201 -0
- wink_sdk_travel_agent-0.0.55.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1668 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wink API
|
|
5
|
+
|
|
6
|
+
# Introduction Welcome to the Wink API - A programmer-friendly way to manage, sell and book travel inventory on the Wink platform. The API gives you all the tools you need to ready your properties and inventory for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel inventory and promote / sell it in a wide variety of ways. # Integrations We have already integrated with the most well-known channel managers so you don't have to. To see our current integrations, please go to https://extranet.wink.travel and scroll to Connectivity section. Once your properties are set up, you can finish the setup by mapping your property to Wink using your channel manager partner portal. If your properties don't have a channel manager, you can easily manage rates and availability with this API. # Intended Audience Programmers are [most likely] a requirement to start integrating with Wink. Companies and organizations that would most benefit from integrating with us are new and existing travel companies that have relationships with suppliers and that need an advanced system from which to manage their travel inventory and get that same inventory out to as many eyeballs as possible at the lowest price possible. - Hotel chains - Hotel brands - Travel tech companies - Destination sites - Integrators - Aggregators - Destination management companies - Travel agencies - OTAs ## APIs Not every integrator needs every API. For that reason, we have separated APIs into context. ### Test API - [Ping](/ping): The Ping API is a quick test endpoint to verify that your credentials work Wink. ### Common APIs - [Notifications](/notifications): The Notifications API is a way for us to stay in touch with your user, property or affiliate account. - [User Settings](/user-settings): The User Settings API exposes endpoints to allow 3rd party integrators to communicate with Wink. ### Consume APIs Consume endpoints are for developers who want to find existing travel inventory and either book it or use it to advertise through one of their Wink affiliate accounts. - [Configuration](/customization-client): A single endpoint to retrieve whitelabel + customization information for the booking customization. - [Lookup](/lookup): All APIs related to locating inventory by region, locale and property flags. - [Inventory](/inventory): All APIs related to retrieve known travel inventory as it was found using the Lookup API.. - [Booking](/booking): All APIs related to creating bookings on the platform. - [Travel Agent](/travel-agent): The Travel Agent API exposes endpoints to manage agent-facilitated bookings. ### Produce APIs Produce endpoints are for developers who want to create and manage travel inventory. #### Property - [Property registration](/extranet/property/register): As a producer, this is, oftentimes, where you start your journey. These endpoints let you create properties on Wink. - [Property](/extranet/property): This collection of property endpoints are mostly management endpoints that let you display, change status and similar for your existing properties. - [Facilities](/extranet/facilities): This collection of endpoints let you manage facilities; such as room types. - [Experiences](/extranet/experiences): This collection of endpoints let you manage experiences, such as activities. - [Monetize](/extranet/monetize): The Monetize API exposes endpoints for managing cancellation polies, rate plans, promotions and more on Wink. - [Distribution](/extranet/distribution): The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink. - [Property Booking](/extranet/booking): The Property Booking API exposes endpoints for managing bookings and reviews at the property-level. #### Affiliate - [Affiliate](/affiliate): This collection of affiliate endpoints are mostly management endpoints that let you display, change status and similar for your existing accounts. - [Browse](/affiliate/browse): The Browse API exposes endpoints for affiliates to find suppliers and inventory to sell. - [Inventory](/affiliate/inventory): The Inventory API exposes endpoints for affiliates to manage the inventory they want to sell and how they want to sell it. - [Sales Channel](/affiliate/sales-channel): The Sales Channel API exposes endpoints for affiliates to manage existing sales channels as well as find new ones. - [WinkLinks](/affiliate/winklinks): The WinkLinks API exposes endpoints for affiliates to manage their WinkLinks page. #### Rate provider - [Channel manager](/channel-manager): The Channel Manager API enables external channel manager partners to map, exchange rate / availability information with us as well as be informed of bookings that occur on the Wink platform for one of their properties. ### Taxonomy APIs Taxonomy endpoints are for developers who want to consume and produce travel inventory and need taxonomies of standard and non-standard codes for inventory types, classes, statuses etc. - [Reference](/reference): All APIs related to retrieving platform-supported taxonomies. ### Insight APIs Insight endpoints do exactly what the name implies - They offer platform-level insight into the activities of producers and consumers. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. ### Payment APIs Payment endpoints are for developers who want to purchase travel inventory. This can be done via the API as a registered Travel Agent or using our API in conjunction with our PCI compliant payment widget for all other entities. - [TripPay](/payment): All APIs related to TripPay account management, booking, mapping and integration features. ## SDKs We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: [https://openapi-generator.tech/docs/generators](https://openapi-generator.tech/docs/generators). - Java SDK [https://github.com/wink-travel/wink-sdk-java](https://github.com/wink-travel/wink-sdk-java) ## Usage These features are made available to you via a [REST API](https://en.wikipedia.org/wiki/Representational_state_transfer). This API is language agnostic. ## Versioning We chose to version our endpoints in a way that we hope affects your integration minimally. You request the version of our API you wish to work with via the `Wink-Version` header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints. ## Release history - Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md # Travel Agent API The Travel Agent API exposes endpoints to manage agent-facilitated bookings. This API lets you: 1. Travel Agent: Manage agent entity. 2. Booking: Create / Manage bookings Browse the endpoints in the left navigation bar to get started.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 30.29.0
|
|
9
|
+
Contact: bjorn@wink.travel
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr, field_validator
|
|
21
|
+
from typing import Any, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from wink_sdk_travel_agent.models.booking_agent import BookingAgent
|
|
24
|
+
from wink_sdk_travel_agent.models.booking_confirmations_agent import BookingConfirmationsAgent
|
|
25
|
+
from wink_sdk_travel_agent.models.boolean_response_agent import BooleanResponseAgent
|
|
26
|
+
from wink_sdk_travel_agent.models.cancellation_detail_agent import CancellationDetailAgent
|
|
27
|
+
from wink_sdk_travel_agent.models.create_agent_booking_request_agent import CreateAgentBookingRequestAgent
|
|
28
|
+
from wink_sdk_travel_agent.models.page_booking_agent import PageBookingAgent
|
|
29
|
+
from wink_sdk_travel_agent.models.state_agent import StateAgent
|
|
30
|
+
|
|
31
|
+
from wink_sdk_travel_agent.api_client import ApiClient, RequestSerialized
|
|
32
|
+
from wink_sdk_travel_agent.api_response import ApiResponse
|
|
33
|
+
from wink_sdk_travel_agent.rest import RESTResponseType
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class TravelAgentApi:
|
|
37
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
38
|
+
Ref: https://openapi-generator.tech
|
|
39
|
+
|
|
40
|
+
Do not edit the class manually.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self, api_client=None) -> None:
|
|
44
|
+
if api_client is None:
|
|
45
|
+
api_client = ApiClient.get_default()
|
|
46
|
+
self.api_client = api_client
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@validate_call
|
|
50
|
+
def cancel_booking_as_travel_agent(
|
|
51
|
+
self,
|
|
52
|
+
company_identifier: Annotated[StrictStr, Field(description="Cancel booking owned by company identifier")],
|
|
53
|
+
booking_identifier: Annotated[StrictStr, Field(description="Cancel booking by identifier")],
|
|
54
|
+
cancellation_detail_agent: CancellationDetailAgent,
|
|
55
|
+
wink_version: Optional[StrictStr] = None,
|
|
56
|
+
_request_timeout: Union[
|
|
57
|
+
None,
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Tuple[
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
62
|
+
]
|
|
63
|
+
] = None,
|
|
64
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_content_type: Optional[StrictStr] = None,
|
|
66
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
+
) -> BookingAgent:
|
|
69
|
+
"""Cancel Booking
|
|
70
|
+
|
|
71
|
+
Cancel a booking by its booking identifier
|
|
72
|
+
|
|
73
|
+
:param company_identifier: Cancel booking owned by company identifier (required)
|
|
74
|
+
:type company_identifier: str
|
|
75
|
+
:param booking_identifier: Cancel booking by identifier (required)
|
|
76
|
+
:type booking_identifier: str
|
|
77
|
+
:param cancellation_detail_agent: (required)
|
|
78
|
+
:type cancellation_detail_agent: CancellationDetailAgent
|
|
79
|
+
:param wink_version:
|
|
80
|
+
:type wink_version: str
|
|
81
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
82
|
+
number provided, it will be total request
|
|
83
|
+
timeout. It can also be a pair (tuple) of
|
|
84
|
+
(connection, read) timeouts.
|
|
85
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
86
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
87
|
+
request; this effectively ignores the
|
|
88
|
+
authentication in the spec for a single request.
|
|
89
|
+
:type _request_auth: dict, optional
|
|
90
|
+
:param _content_type: force content-type for the request.
|
|
91
|
+
:type _content_type: str, Optional
|
|
92
|
+
:param _headers: set to override the headers for a single
|
|
93
|
+
request; this effectively ignores the headers
|
|
94
|
+
in the spec for a single request.
|
|
95
|
+
:type _headers: dict, optional
|
|
96
|
+
:param _host_index: set to override the host_index for a single
|
|
97
|
+
request; this effectively ignores the host_index
|
|
98
|
+
in the spec for a single request.
|
|
99
|
+
:type _host_index: int, optional
|
|
100
|
+
:return: Returns the result object.
|
|
101
|
+
""" # noqa: E501
|
|
102
|
+
|
|
103
|
+
_param = self._cancel_booking_as_travel_agent_serialize(
|
|
104
|
+
company_identifier=company_identifier,
|
|
105
|
+
booking_identifier=booking_identifier,
|
|
106
|
+
cancellation_detail_agent=cancellation_detail_agent,
|
|
107
|
+
wink_version=wink_version,
|
|
108
|
+
_request_auth=_request_auth,
|
|
109
|
+
_content_type=_content_type,
|
|
110
|
+
_headers=_headers,
|
|
111
|
+
_host_index=_host_index
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
115
|
+
'403': "GenericErrorMessage",
|
|
116
|
+
'401': "GenericErrorMessage",
|
|
117
|
+
'400': "CreateAgentBooking400Response",
|
|
118
|
+
'500': "object",
|
|
119
|
+
'200': "BookingAgent",
|
|
120
|
+
}
|
|
121
|
+
response_data = self.api_client.call_api(
|
|
122
|
+
*_param,
|
|
123
|
+
_request_timeout=_request_timeout
|
|
124
|
+
)
|
|
125
|
+
response_data.read()
|
|
126
|
+
return self.api_client.response_deserialize(
|
|
127
|
+
response_data=response_data,
|
|
128
|
+
response_types_map=_response_types_map,
|
|
129
|
+
).data
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
@validate_call
|
|
133
|
+
def cancel_booking_as_travel_agent_with_http_info(
|
|
134
|
+
self,
|
|
135
|
+
company_identifier: Annotated[StrictStr, Field(description="Cancel booking owned by company identifier")],
|
|
136
|
+
booking_identifier: Annotated[StrictStr, Field(description="Cancel booking by identifier")],
|
|
137
|
+
cancellation_detail_agent: CancellationDetailAgent,
|
|
138
|
+
wink_version: Optional[StrictStr] = None,
|
|
139
|
+
_request_timeout: Union[
|
|
140
|
+
None,
|
|
141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
142
|
+
Tuple[
|
|
143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
144
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
145
|
+
]
|
|
146
|
+
] = None,
|
|
147
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
148
|
+
_content_type: Optional[StrictStr] = None,
|
|
149
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
150
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
151
|
+
) -> ApiResponse[BookingAgent]:
|
|
152
|
+
"""Cancel Booking
|
|
153
|
+
|
|
154
|
+
Cancel a booking by its booking identifier
|
|
155
|
+
|
|
156
|
+
:param company_identifier: Cancel booking owned by company identifier (required)
|
|
157
|
+
:type company_identifier: str
|
|
158
|
+
:param booking_identifier: Cancel booking by identifier (required)
|
|
159
|
+
:type booking_identifier: str
|
|
160
|
+
:param cancellation_detail_agent: (required)
|
|
161
|
+
:type cancellation_detail_agent: CancellationDetailAgent
|
|
162
|
+
:param wink_version:
|
|
163
|
+
:type wink_version: str
|
|
164
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
165
|
+
number provided, it will be total request
|
|
166
|
+
timeout. It can also be a pair (tuple) of
|
|
167
|
+
(connection, read) timeouts.
|
|
168
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
169
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
170
|
+
request; this effectively ignores the
|
|
171
|
+
authentication in the spec for a single request.
|
|
172
|
+
:type _request_auth: dict, optional
|
|
173
|
+
:param _content_type: force content-type for the request.
|
|
174
|
+
:type _content_type: str, Optional
|
|
175
|
+
:param _headers: set to override the headers for a single
|
|
176
|
+
request; this effectively ignores the headers
|
|
177
|
+
in the spec for a single request.
|
|
178
|
+
:type _headers: dict, optional
|
|
179
|
+
:param _host_index: set to override the host_index for a single
|
|
180
|
+
request; this effectively ignores the host_index
|
|
181
|
+
in the spec for a single request.
|
|
182
|
+
:type _host_index: int, optional
|
|
183
|
+
:return: Returns the result object.
|
|
184
|
+
""" # noqa: E501
|
|
185
|
+
|
|
186
|
+
_param = self._cancel_booking_as_travel_agent_serialize(
|
|
187
|
+
company_identifier=company_identifier,
|
|
188
|
+
booking_identifier=booking_identifier,
|
|
189
|
+
cancellation_detail_agent=cancellation_detail_agent,
|
|
190
|
+
wink_version=wink_version,
|
|
191
|
+
_request_auth=_request_auth,
|
|
192
|
+
_content_type=_content_type,
|
|
193
|
+
_headers=_headers,
|
|
194
|
+
_host_index=_host_index
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
198
|
+
'403': "GenericErrorMessage",
|
|
199
|
+
'401': "GenericErrorMessage",
|
|
200
|
+
'400': "CreateAgentBooking400Response",
|
|
201
|
+
'500': "object",
|
|
202
|
+
'200': "BookingAgent",
|
|
203
|
+
}
|
|
204
|
+
response_data = self.api_client.call_api(
|
|
205
|
+
*_param,
|
|
206
|
+
_request_timeout=_request_timeout
|
|
207
|
+
)
|
|
208
|
+
response_data.read()
|
|
209
|
+
return self.api_client.response_deserialize(
|
|
210
|
+
response_data=response_data,
|
|
211
|
+
response_types_map=_response_types_map,
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
@validate_call
|
|
216
|
+
def cancel_booking_as_travel_agent_without_preload_content(
|
|
217
|
+
self,
|
|
218
|
+
company_identifier: Annotated[StrictStr, Field(description="Cancel booking owned by company identifier")],
|
|
219
|
+
booking_identifier: Annotated[StrictStr, Field(description="Cancel booking by identifier")],
|
|
220
|
+
cancellation_detail_agent: CancellationDetailAgent,
|
|
221
|
+
wink_version: Optional[StrictStr] = None,
|
|
222
|
+
_request_timeout: Union[
|
|
223
|
+
None,
|
|
224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
225
|
+
Tuple[
|
|
226
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
227
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
228
|
+
]
|
|
229
|
+
] = None,
|
|
230
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
231
|
+
_content_type: Optional[StrictStr] = None,
|
|
232
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
233
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
234
|
+
) -> RESTResponseType:
|
|
235
|
+
"""Cancel Booking
|
|
236
|
+
|
|
237
|
+
Cancel a booking by its booking identifier
|
|
238
|
+
|
|
239
|
+
:param company_identifier: Cancel booking owned by company identifier (required)
|
|
240
|
+
:type company_identifier: str
|
|
241
|
+
:param booking_identifier: Cancel booking by identifier (required)
|
|
242
|
+
:type booking_identifier: str
|
|
243
|
+
:param cancellation_detail_agent: (required)
|
|
244
|
+
:type cancellation_detail_agent: CancellationDetailAgent
|
|
245
|
+
:param wink_version:
|
|
246
|
+
:type wink_version: str
|
|
247
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
248
|
+
number provided, it will be total request
|
|
249
|
+
timeout. It can also be a pair (tuple) of
|
|
250
|
+
(connection, read) timeouts.
|
|
251
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
252
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
253
|
+
request; this effectively ignores the
|
|
254
|
+
authentication in the spec for a single request.
|
|
255
|
+
:type _request_auth: dict, optional
|
|
256
|
+
:param _content_type: force content-type for the request.
|
|
257
|
+
:type _content_type: str, Optional
|
|
258
|
+
:param _headers: set to override the headers for a single
|
|
259
|
+
request; this effectively ignores the headers
|
|
260
|
+
in the spec for a single request.
|
|
261
|
+
:type _headers: dict, optional
|
|
262
|
+
:param _host_index: set to override the host_index for a single
|
|
263
|
+
request; this effectively ignores the host_index
|
|
264
|
+
in the spec for a single request.
|
|
265
|
+
:type _host_index: int, optional
|
|
266
|
+
:return: Returns the result object.
|
|
267
|
+
""" # noqa: E501
|
|
268
|
+
|
|
269
|
+
_param = self._cancel_booking_as_travel_agent_serialize(
|
|
270
|
+
company_identifier=company_identifier,
|
|
271
|
+
booking_identifier=booking_identifier,
|
|
272
|
+
cancellation_detail_agent=cancellation_detail_agent,
|
|
273
|
+
wink_version=wink_version,
|
|
274
|
+
_request_auth=_request_auth,
|
|
275
|
+
_content_type=_content_type,
|
|
276
|
+
_headers=_headers,
|
|
277
|
+
_host_index=_host_index
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
281
|
+
'403': "GenericErrorMessage",
|
|
282
|
+
'401': "GenericErrorMessage",
|
|
283
|
+
'400': "CreateAgentBooking400Response",
|
|
284
|
+
'500': "object",
|
|
285
|
+
'200': "BookingAgent",
|
|
286
|
+
}
|
|
287
|
+
response_data = self.api_client.call_api(
|
|
288
|
+
*_param,
|
|
289
|
+
_request_timeout=_request_timeout
|
|
290
|
+
)
|
|
291
|
+
return response_data.response
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def _cancel_booking_as_travel_agent_serialize(
|
|
295
|
+
self,
|
|
296
|
+
company_identifier,
|
|
297
|
+
booking_identifier,
|
|
298
|
+
cancellation_detail_agent,
|
|
299
|
+
wink_version,
|
|
300
|
+
_request_auth,
|
|
301
|
+
_content_type,
|
|
302
|
+
_headers,
|
|
303
|
+
_host_index,
|
|
304
|
+
) -> RequestSerialized:
|
|
305
|
+
|
|
306
|
+
_host = None
|
|
307
|
+
|
|
308
|
+
_collection_formats: Dict[str, str] = {
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
_path_params: Dict[str, str] = {}
|
|
312
|
+
_query_params: List[Tuple[str, str]] = []
|
|
313
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
314
|
+
_form_params: List[Tuple[str, str]] = []
|
|
315
|
+
_files: Dict[
|
|
316
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
317
|
+
] = {}
|
|
318
|
+
_body_params: Optional[bytes] = None
|
|
319
|
+
|
|
320
|
+
# process the path parameters
|
|
321
|
+
if company_identifier is not None:
|
|
322
|
+
_path_params['companyIdentifier'] = company_identifier
|
|
323
|
+
if booking_identifier is not None:
|
|
324
|
+
_path_params['bookingIdentifier'] = booking_identifier
|
|
325
|
+
# process the query parameters
|
|
326
|
+
# process the header parameters
|
|
327
|
+
if wink_version is not None:
|
|
328
|
+
_header_params['Wink-Version'] = wink_version
|
|
329
|
+
# process the form parameters
|
|
330
|
+
# process the body parameter
|
|
331
|
+
if cancellation_detail_agent is not None:
|
|
332
|
+
_body_params = cancellation_detail_agent
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
# set the HTTP header `Accept`
|
|
336
|
+
if 'Accept' not in _header_params:
|
|
337
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
338
|
+
[
|
|
339
|
+
'*/*',
|
|
340
|
+
'application/json',
|
|
341
|
+
'application/xml',
|
|
342
|
+
'text/xml',
|
|
343
|
+
'text/plain',
|
|
344
|
+
'text/html'
|
|
345
|
+
]
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
# set the HTTP header `Content-Type`
|
|
349
|
+
if _content_type:
|
|
350
|
+
_header_params['Content-Type'] = _content_type
|
|
351
|
+
else:
|
|
352
|
+
_default_content_type = (
|
|
353
|
+
self.api_client.select_header_content_type(
|
|
354
|
+
[
|
|
355
|
+
'application/json'
|
|
356
|
+
]
|
|
357
|
+
)
|
|
358
|
+
)
|
|
359
|
+
if _default_content_type is not None:
|
|
360
|
+
_header_params['Content-Type'] = _default_content_type
|
|
361
|
+
|
|
362
|
+
# authentication setting
|
|
363
|
+
_auth_settings: List[str] = [
|
|
364
|
+
'oauth2ClientCredentials'
|
|
365
|
+
]
|
|
366
|
+
|
|
367
|
+
return self.api_client.param_serialize(
|
|
368
|
+
method='PATCH',
|
|
369
|
+
resource_path='/api/affiliate/{companyIdentifier}/booking/{bookingIdentifier}',
|
|
370
|
+
path_params=_path_params,
|
|
371
|
+
query_params=_query_params,
|
|
372
|
+
header_params=_header_params,
|
|
373
|
+
body=_body_params,
|
|
374
|
+
post_params=_form_params,
|
|
375
|
+
files=_files,
|
|
376
|
+
auth_settings=_auth_settings,
|
|
377
|
+
collection_formats=_collection_formats,
|
|
378
|
+
_host=_host,
|
|
379
|
+
_request_auth=_request_auth
|
|
380
|
+
)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
@validate_call
|
|
386
|
+
def create_agent_booking(
|
|
387
|
+
self,
|
|
388
|
+
create_agent_booking_request_agent: CreateAgentBookingRequestAgent,
|
|
389
|
+
wink_version: Optional[StrictStr] = None,
|
|
390
|
+
_request_timeout: Union[
|
|
391
|
+
None,
|
|
392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
393
|
+
Tuple[
|
|
394
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
395
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
396
|
+
]
|
|
397
|
+
] = None,
|
|
398
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
399
|
+
_content_type: Optional[StrictStr] = None,
|
|
400
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
401
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
402
|
+
) -> BookingConfirmationsAgent:
|
|
403
|
+
"""Create Agent Booking
|
|
404
|
+
|
|
405
|
+
Create agent booking. Expects the agent to be a registered agent with TripPay and have available funds to cover the booking amount.
|
|
406
|
+
|
|
407
|
+
:param create_agent_booking_request_agent: (required)
|
|
408
|
+
:type create_agent_booking_request_agent: CreateAgentBookingRequestAgent
|
|
409
|
+
:param wink_version:
|
|
410
|
+
:type wink_version: str
|
|
411
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
412
|
+
number provided, it will be total request
|
|
413
|
+
timeout. It can also be a pair (tuple) of
|
|
414
|
+
(connection, read) timeouts.
|
|
415
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
416
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
417
|
+
request; this effectively ignores the
|
|
418
|
+
authentication in the spec for a single request.
|
|
419
|
+
:type _request_auth: dict, optional
|
|
420
|
+
:param _content_type: force content-type for the request.
|
|
421
|
+
:type _content_type: str, Optional
|
|
422
|
+
:param _headers: set to override the headers for a single
|
|
423
|
+
request; this effectively ignores the headers
|
|
424
|
+
in the spec for a single request.
|
|
425
|
+
:type _headers: dict, optional
|
|
426
|
+
:param _host_index: set to override the host_index for a single
|
|
427
|
+
request; this effectively ignores the host_index
|
|
428
|
+
in the spec for a single request.
|
|
429
|
+
:type _host_index: int, optional
|
|
430
|
+
:return: Returns the result object.
|
|
431
|
+
""" # noqa: E501
|
|
432
|
+
|
|
433
|
+
_param = self._create_agent_booking_serialize(
|
|
434
|
+
create_agent_booking_request_agent=create_agent_booking_request_agent,
|
|
435
|
+
wink_version=wink_version,
|
|
436
|
+
_request_auth=_request_auth,
|
|
437
|
+
_content_type=_content_type,
|
|
438
|
+
_headers=_headers,
|
|
439
|
+
_host_index=_host_index
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
443
|
+
'403': "GenericErrorMessage",
|
|
444
|
+
'401': "GenericErrorMessage",
|
|
445
|
+
'400': "CreateAgentBooking400Response",
|
|
446
|
+
'500': "object",
|
|
447
|
+
'201': "BookingConfirmationsAgent",
|
|
448
|
+
}
|
|
449
|
+
response_data = self.api_client.call_api(
|
|
450
|
+
*_param,
|
|
451
|
+
_request_timeout=_request_timeout
|
|
452
|
+
)
|
|
453
|
+
response_data.read()
|
|
454
|
+
return self.api_client.response_deserialize(
|
|
455
|
+
response_data=response_data,
|
|
456
|
+
response_types_map=_response_types_map,
|
|
457
|
+
).data
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
@validate_call
|
|
461
|
+
def create_agent_booking_with_http_info(
|
|
462
|
+
self,
|
|
463
|
+
create_agent_booking_request_agent: CreateAgentBookingRequestAgent,
|
|
464
|
+
wink_version: Optional[StrictStr] = None,
|
|
465
|
+
_request_timeout: Union[
|
|
466
|
+
None,
|
|
467
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
468
|
+
Tuple[
|
|
469
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
470
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
471
|
+
]
|
|
472
|
+
] = None,
|
|
473
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
474
|
+
_content_type: Optional[StrictStr] = None,
|
|
475
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
476
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
477
|
+
) -> ApiResponse[BookingConfirmationsAgent]:
|
|
478
|
+
"""Create Agent Booking
|
|
479
|
+
|
|
480
|
+
Create agent booking. Expects the agent to be a registered agent with TripPay and have available funds to cover the booking amount.
|
|
481
|
+
|
|
482
|
+
:param create_agent_booking_request_agent: (required)
|
|
483
|
+
:type create_agent_booking_request_agent: CreateAgentBookingRequestAgent
|
|
484
|
+
:param wink_version:
|
|
485
|
+
:type wink_version: str
|
|
486
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
487
|
+
number provided, it will be total request
|
|
488
|
+
timeout. It can also be a pair (tuple) of
|
|
489
|
+
(connection, read) timeouts.
|
|
490
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
491
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
492
|
+
request; this effectively ignores the
|
|
493
|
+
authentication in the spec for a single request.
|
|
494
|
+
:type _request_auth: dict, optional
|
|
495
|
+
:param _content_type: force content-type for the request.
|
|
496
|
+
:type _content_type: str, Optional
|
|
497
|
+
:param _headers: set to override the headers for a single
|
|
498
|
+
request; this effectively ignores the headers
|
|
499
|
+
in the spec for a single request.
|
|
500
|
+
:type _headers: dict, optional
|
|
501
|
+
:param _host_index: set to override the host_index for a single
|
|
502
|
+
request; this effectively ignores the host_index
|
|
503
|
+
in the spec for a single request.
|
|
504
|
+
:type _host_index: int, optional
|
|
505
|
+
:return: Returns the result object.
|
|
506
|
+
""" # noqa: E501
|
|
507
|
+
|
|
508
|
+
_param = self._create_agent_booking_serialize(
|
|
509
|
+
create_agent_booking_request_agent=create_agent_booking_request_agent,
|
|
510
|
+
wink_version=wink_version,
|
|
511
|
+
_request_auth=_request_auth,
|
|
512
|
+
_content_type=_content_type,
|
|
513
|
+
_headers=_headers,
|
|
514
|
+
_host_index=_host_index
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
518
|
+
'403': "GenericErrorMessage",
|
|
519
|
+
'401': "GenericErrorMessage",
|
|
520
|
+
'400': "CreateAgentBooking400Response",
|
|
521
|
+
'500': "object",
|
|
522
|
+
'201': "BookingConfirmationsAgent",
|
|
523
|
+
}
|
|
524
|
+
response_data = self.api_client.call_api(
|
|
525
|
+
*_param,
|
|
526
|
+
_request_timeout=_request_timeout
|
|
527
|
+
)
|
|
528
|
+
response_data.read()
|
|
529
|
+
return self.api_client.response_deserialize(
|
|
530
|
+
response_data=response_data,
|
|
531
|
+
response_types_map=_response_types_map,
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
@validate_call
|
|
536
|
+
def create_agent_booking_without_preload_content(
|
|
537
|
+
self,
|
|
538
|
+
create_agent_booking_request_agent: CreateAgentBookingRequestAgent,
|
|
539
|
+
wink_version: Optional[StrictStr] = None,
|
|
540
|
+
_request_timeout: Union[
|
|
541
|
+
None,
|
|
542
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
543
|
+
Tuple[
|
|
544
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
545
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
546
|
+
]
|
|
547
|
+
] = None,
|
|
548
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
549
|
+
_content_type: Optional[StrictStr] = None,
|
|
550
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
551
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
552
|
+
) -> RESTResponseType:
|
|
553
|
+
"""Create Agent Booking
|
|
554
|
+
|
|
555
|
+
Create agent booking. Expects the agent to be a registered agent with TripPay and have available funds to cover the booking amount.
|
|
556
|
+
|
|
557
|
+
:param create_agent_booking_request_agent: (required)
|
|
558
|
+
:type create_agent_booking_request_agent: CreateAgentBookingRequestAgent
|
|
559
|
+
:param wink_version:
|
|
560
|
+
:type wink_version: str
|
|
561
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
562
|
+
number provided, it will be total request
|
|
563
|
+
timeout. It can also be a pair (tuple) of
|
|
564
|
+
(connection, read) timeouts.
|
|
565
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
566
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
567
|
+
request; this effectively ignores the
|
|
568
|
+
authentication in the spec for a single request.
|
|
569
|
+
:type _request_auth: dict, optional
|
|
570
|
+
:param _content_type: force content-type for the request.
|
|
571
|
+
:type _content_type: str, Optional
|
|
572
|
+
:param _headers: set to override the headers for a single
|
|
573
|
+
request; this effectively ignores the headers
|
|
574
|
+
in the spec for a single request.
|
|
575
|
+
:type _headers: dict, optional
|
|
576
|
+
:param _host_index: set to override the host_index for a single
|
|
577
|
+
request; this effectively ignores the host_index
|
|
578
|
+
in the spec for a single request.
|
|
579
|
+
:type _host_index: int, optional
|
|
580
|
+
:return: Returns the result object.
|
|
581
|
+
""" # noqa: E501
|
|
582
|
+
|
|
583
|
+
_param = self._create_agent_booking_serialize(
|
|
584
|
+
create_agent_booking_request_agent=create_agent_booking_request_agent,
|
|
585
|
+
wink_version=wink_version,
|
|
586
|
+
_request_auth=_request_auth,
|
|
587
|
+
_content_type=_content_type,
|
|
588
|
+
_headers=_headers,
|
|
589
|
+
_host_index=_host_index
|
|
590
|
+
)
|
|
591
|
+
|
|
592
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
593
|
+
'403': "GenericErrorMessage",
|
|
594
|
+
'401': "GenericErrorMessage",
|
|
595
|
+
'400': "CreateAgentBooking400Response",
|
|
596
|
+
'500': "object",
|
|
597
|
+
'201': "BookingConfirmationsAgent",
|
|
598
|
+
}
|
|
599
|
+
response_data = self.api_client.call_api(
|
|
600
|
+
*_param,
|
|
601
|
+
_request_timeout=_request_timeout
|
|
602
|
+
)
|
|
603
|
+
return response_data.response
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
def _create_agent_booking_serialize(
|
|
607
|
+
self,
|
|
608
|
+
create_agent_booking_request_agent,
|
|
609
|
+
wink_version,
|
|
610
|
+
_request_auth,
|
|
611
|
+
_content_type,
|
|
612
|
+
_headers,
|
|
613
|
+
_host_index,
|
|
614
|
+
) -> RequestSerialized:
|
|
615
|
+
|
|
616
|
+
_host = None
|
|
617
|
+
|
|
618
|
+
_collection_formats: Dict[str, str] = {
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
_path_params: Dict[str, str] = {}
|
|
622
|
+
_query_params: List[Tuple[str, str]] = []
|
|
623
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
624
|
+
_form_params: List[Tuple[str, str]] = []
|
|
625
|
+
_files: Dict[
|
|
626
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
627
|
+
] = {}
|
|
628
|
+
_body_params: Optional[bytes] = None
|
|
629
|
+
|
|
630
|
+
# process the path parameters
|
|
631
|
+
# process the query parameters
|
|
632
|
+
# process the header parameters
|
|
633
|
+
if wink_version is not None:
|
|
634
|
+
_header_params['Wink-Version'] = wink_version
|
|
635
|
+
# process the form parameters
|
|
636
|
+
# process the body parameter
|
|
637
|
+
if create_agent_booking_request_agent is not None:
|
|
638
|
+
_body_params = create_agent_booking_request_agent
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
# set the HTTP header `Accept`
|
|
642
|
+
if 'Accept' not in _header_params:
|
|
643
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
644
|
+
[
|
|
645
|
+
'*/*',
|
|
646
|
+
'application/json',
|
|
647
|
+
'application/xml',
|
|
648
|
+
'text/xml',
|
|
649
|
+
'text/plain',
|
|
650
|
+
'text/html'
|
|
651
|
+
]
|
|
652
|
+
)
|
|
653
|
+
|
|
654
|
+
# set the HTTP header `Content-Type`
|
|
655
|
+
if _content_type:
|
|
656
|
+
_header_params['Content-Type'] = _content_type
|
|
657
|
+
else:
|
|
658
|
+
_default_content_type = (
|
|
659
|
+
self.api_client.select_header_content_type(
|
|
660
|
+
[
|
|
661
|
+
'application/json'
|
|
662
|
+
]
|
|
663
|
+
)
|
|
664
|
+
)
|
|
665
|
+
if _default_content_type is not None:
|
|
666
|
+
_header_params['Content-Type'] = _default_content_type
|
|
667
|
+
|
|
668
|
+
# authentication setting
|
|
669
|
+
_auth_settings: List[str] = [
|
|
670
|
+
'oauth2ClientCredentials'
|
|
671
|
+
]
|
|
672
|
+
|
|
673
|
+
return self.api_client.param_serialize(
|
|
674
|
+
method='POST',
|
|
675
|
+
resource_path='/api/booking/agent',
|
|
676
|
+
path_params=_path_params,
|
|
677
|
+
query_params=_query_params,
|
|
678
|
+
header_params=_header_params,
|
|
679
|
+
body=_body_params,
|
|
680
|
+
post_params=_form_params,
|
|
681
|
+
files=_files,
|
|
682
|
+
auth_settings=_auth_settings,
|
|
683
|
+
collection_formats=_collection_formats,
|
|
684
|
+
_host=_host,
|
|
685
|
+
_request_auth=_request_auth
|
|
686
|
+
)
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
@validate_call
|
|
692
|
+
def resend_booking_confirmation_email_as_travel_agent(
|
|
693
|
+
self,
|
|
694
|
+
company_identifier: Annotated[StrictStr, Field(description="Resend booking owned by company identifier")],
|
|
695
|
+
booking_identifier: Annotated[StrictStr, Field(description="Resend booking by identifier")],
|
|
696
|
+
body: Annotated[Optional[Any], Field(description="Empty request body")],
|
|
697
|
+
wink_version: Optional[StrictStr] = None,
|
|
698
|
+
_request_timeout: Union[
|
|
699
|
+
None,
|
|
700
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
701
|
+
Tuple[
|
|
702
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
703
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
704
|
+
]
|
|
705
|
+
] = None,
|
|
706
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
707
|
+
_content_type: Optional[StrictStr] = None,
|
|
708
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
709
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
710
|
+
) -> BooleanResponseAgent:
|
|
711
|
+
"""Resend Booking Confirmation
|
|
712
|
+
|
|
713
|
+
Resends booking confirmation email to traveler.
|
|
714
|
+
|
|
715
|
+
:param company_identifier: Resend booking owned by company identifier (required)
|
|
716
|
+
:type company_identifier: str
|
|
717
|
+
:param booking_identifier: Resend booking by identifier (required)
|
|
718
|
+
:type booking_identifier: str
|
|
719
|
+
:param body: Empty request body (required)
|
|
720
|
+
:type body: object
|
|
721
|
+
:param wink_version:
|
|
722
|
+
:type wink_version: str
|
|
723
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
724
|
+
number provided, it will be total request
|
|
725
|
+
timeout. It can also be a pair (tuple) of
|
|
726
|
+
(connection, read) timeouts.
|
|
727
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
728
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
729
|
+
request; this effectively ignores the
|
|
730
|
+
authentication in the spec for a single request.
|
|
731
|
+
:type _request_auth: dict, optional
|
|
732
|
+
:param _content_type: force content-type for the request.
|
|
733
|
+
:type _content_type: str, Optional
|
|
734
|
+
:param _headers: set to override the headers for a single
|
|
735
|
+
request; this effectively ignores the headers
|
|
736
|
+
in the spec for a single request.
|
|
737
|
+
:type _headers: dict, optional
|
|
738
|
+
:param _host_index: set to override the host_index for a single
|
|
739
|
+
request; this effectively ignores the host_index
|
|
740
|
+
in the spec for a single request.
|
|
741
|
+
:type _host_index: int, optional
|
|
742
|
+
:return: Returns the result object.
|
|
743
|
+
""" # noqa: E501
|
|
744
|
+
|
|
745
|
+
_param = self._resend_booking_confirmation_email_as_travel_agent_serialize(
|
|
746
|
+
company_identifier=company_identifier,
|
|
747
|
+
booking_identifier=booking_identifier,
|
|
748
|
+
body=body,
|
|
749
|
+
wink_version=wink_version,
|
|
750
|
+
_request_auth=_request_auth,
|
|
751
|
+
_content_type=_content_type,
|
|
752
|
+
_headers=_headers,
|
|
753
|
+
_host_index=_host_index
|
|
754
|
+
)
|
|
755
|
+
|
|
756
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
757
|
+
'403': "GenericErrorMessage",
|
|
758
|
+
'401': "GenericErrorMessage",
|
|
759
|
+
'400': "CreateAgentBooking400Response",
|
|
760
|
+
'500': "object",
|
|
761
|
+
'200': "BooleanResponseAgent",
|
|
762
|
+
}
|
|
763
|
+
response_data = self.api_client.call_api(
|
|
764
|
+
*_param,
|
|
765
|
+
_request_timeout=_request_timeout
|
|
766
|
+
)
|
|
767
|
+
response_data.read()
|
|
768
|
+
return self.api_client.response_deserialize(
|
|
769
|
+
response_data=response_data,
|
|
770
|
+
response_types_map=_response_types_map,
|
|
771
|
+
).data
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
@validate_call
|
|
775
|
+
def resend_booking_confirmation_email_as_travel_agent_with_http_info(
|
|
776
|
+
self,
|
|
777
|
+
company_identifier: Annotated[StrictStr, Field(description="Resend booking owned by company identifier")],
|
|
778
|
+
booking_identifier: Annotated[StrictStr, Field(description="Resend booking by identifier")],
|
|
779
|
+
body: Annotated[Optional[Any], Field(description="Empty request body")],
|
|
780
|
+
wink_version: Optional[StrictStr] = None,
|
|
781
|
+
_request_timeout: Union[
|
|
782
|
+
None,
|
|
783
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
784
|
+
Tuple[
|
|
785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
786
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
787
|
+
]
|
|
788
|
+
] = None,
|
|
789
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
790
|
+
_content_type: Optional[StrictStr] = None,
|
|
791
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
792
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
793
|
+
) -> ApiResponse[BooleanResponseAgent]:
|
|
794
|
+
"""Resend Booking Confirmation
|
|
795
|
+
|
|
796
|
+
Resends booking confirmation email to traveler.
|
|
797
|
+
|
|
798
|
+
:param company_identifier: Resend booking owned by company identifier (required)
|
|
799
|
+
:type company_identifier: str
|
|
800
|
+
:param booking_identifier: Resend booking by identifier (required)
|
|
801
|
+
:type booking_identifier: str
|
|
802
|
+
:param body: Empty request body (required)
|
|
803
|
+
:type body: object
|
|
804
|
+
:param wink_version:
|
|
805
|
+
:type wink_version: str
|
|
806
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
807
|
+
number provided, it will be total request
|
|
808
|
+
timeout. It can also be a pair (tuple) of
|
|
809
|
+
(connection, read) timeouts.
|
|
810
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
811
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
812
|
+
request; this effectively ignores the
|
|
813
|
+
authentication in the spec for a single request.
|
|
814
|
+
:type _request_auth: dict, optional
|
|
815
|
+
:param _content_type: force content-type for the request.
|
|
816
|
+
:type _content_type: str, Optional
|
|
817
|
+
:param _headers: set to override the headers for a single
|
|
818
|
+
request; this effectively ignores the headers
|
|
819
|
+
in the spec for a single request.
|
|
820
|
+
:type _headers: dict, optional
|
|
821
|
+
:param _host_index: set to override the host_index for a single
|
|
822
|
+
request; this effectively ignores the host_index
|
|
823
|
+
in the spec for a single request.
|
|
824
|
+
:type _host_index: int, optional
|
|
825
|
+
:return: Returns the result object.
|
|
826
|
+
""" # noqa: E501
|
|
827
|
+
|
|
828
|
+
_param = self._resend_booking_confirmation_email_as_travel_agent_serialize(
|
|
829
|
+
company_identifier=company_identifier,
|
|
830
|
+
booking_identifier=booking_identifier,
|
|
831
|
+
body=body,
|
|
832
|
+
wink_version=wink_version,
|
|
833
|
+
_request_auth=_request_auth,
|
|
834
|
+
_content_type=_content_type,
|
|
835
|
+
_headers=_headers,
|
|
836
|
+
_host_index=_host_index
|
|
837
|
+
)
|
|
838
|
+
|
|
839
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
840
|
+
'403': "GenericErrorMessage",
|
|
841
|
+
'401': "GenericErrorMessage",
|
|
842
|
+
'400': "CreateAgentBooking400Response",
|
|
843
|
+
'500': "object",
|
|
844
|
+
'200': "BooleanResponseAgent",
|
|
845
|
+
}
|
|
846
|
+
response_data = self.api_client.call_api(
|
|
847
|
+
*_param,
|
|
848
|
+
_request_timeout=_request_timeout
|
|
849
|
+
)
|
|
850
|
+
response_data.read()
|
|
851
|
+
return self.api_client.response_deserialize(
|
|
852
|
+
response_data=response_data,
|
|
853
|
+
response_types_map=_response_types_map,
|
|
854
|
+
)
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
@validate_call
|
|
858
|
+
def resend_booking_confirmation_email_as_travel_agent_without_preload_content(
|
|
859
|
+
self,
|
|
860
|
+
company_identifier: Annotated[StrictStr, Field(description="Resend booking owned by company identifier")],
|
|
861
|
+
booking_identifier: Annotated[StrictStr, Field(description="Resend booking by identifier")],
|
|
862
|
+
body: Annotated[Optional[Any], Field(description="Empty request body")],
|
|
863
|
+
wink_version: Optional[StrictStr] = None,
|
|
864
|
+
_request_timeout: Union[
|
|
865
|
+
None,
|
|
866
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
867
|
+
Tuple[
|
|
868
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
869
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
870
|
+
]
|
|
871
|
+
] = None,
|
|
872
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
873
|
+
_content_type: Optional[StrictStr] = None,
|
|
874
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
875
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
876
|
+
) -> RESTResponseType:
|
|
877
|
+
"""Resend Booking Confirmation
|
|
878
|
+
|
|
879
|
+
Resends booking confirmation email to traveler.
|
|
880
|
+
|
|
881
|
+
:param company_identifier: Resend booking owned by company identifier (required)
|
|
882
|
+
:type company_identifier: str
|
|
883
|
+
:param booking_identifier: Resend booking by identifier (required)
|
|
884
|
+
:type booking_identifier: str
|
|
885
|
+
:param body: Empty request body (required)
|
|
886
|
+
:type body: object
|
|
887
|
+
:param wink_version:
|
|
888
|
+
:type wink_version: str
|
|
889
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
890
|
+
number provided, it will be total request
|
|
891
|
+
timeout. It can also be a pair (tuple) of
|
|
892
|
+
(connection, read) timeouts.
|
|
893
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
894
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
895
|
+
request; this effectively ignores the
|
|
896
|
+
authentication in the spec for a single request.
|
|
897
|
+
:type _request_auth: dict, optional
|
|
898
|
+
:param _content_type: force content-type for the request.
|
|
899
|
+
:type _content_type: str, Optional
|
|
900
|
+
:param _headers: set to override the headers for a single
|
|
901
|
+
request; this effectively ignores the headers
|
|
902
|
+
in the spec for a single request.
|
|
903
|
+
:type _headers: dict, optional
|
|
904
|
+
:param _host_index: set to override the host_index for a single
|
|
905
|
+
request; this effectively ignores the host_index
|
|
906
|
+
in the spec for a single request.
|
|
907
|
+
:type _host_index: int, optional
|
|
908
|
+
:return: Returns the result object.
|
|
909
|
+
""" # noqa: E501
|
|
910
|
+
|
|
911
|
+
_param = self._resend_booking_confirmation_email_as_travel_agent_serialize(
|
|
912
|
+
company_identifier=company_identifier,
|
|
913
|
+
booking_identifier=booking_identifier,
|
|
914
|
+
body=body,
|
|
915
|
+
wink_version=wink_version,
|
|
916
|
+
_request_auth=_request_auth,
|
|
917
|
+
_content_type=_content_type,
|
|
918
|
+
_headers=_headers,
|
|
919
|
+
_host_index=_host_index
|
|
920
|
+
)
|
|
921
|
+
|
|
922
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
923
|
+
'403': "GenericErrorMessage",
|
|
924
|
+
'401': "GenericErrorMessage",
|
|
925
|
+
'400': "CreateAgentBooking400Response",
|
|
926
|
+
'500': "object",
|
|
927
|
+
'200': "BooleanResponseAgent",
|
|
928
|
+
}
|
|
929
|
+
response_data = self.api_client.call_api(
|
|
930
|
+
*_param,
|
|
931
|
+
_request_timeout=_request_timeout
|
|
932
|
+
)
|
|
933
|
+
return response_data.response
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
def _resend_booking_confirmation_email_as_travel_agent_serialize(
|
|
937
|
+
self,
|
|
938
|
+
company_identifier,
|
|
939
|
+
booking_identifier,
|
|
940
|
+
body,
|
|
941
|
+
wink_version,
|
|
942
|
+
_request_auth,
|
|
943
|
+
_content_type,
|
|
944
|
+
_headers,
|
|
945
|
+
_host_index,
|
|
946
|
+
) -> RequestSerialized:
|
|
947
|
+
|
|
948
|
+
_host = None
|
|
949
|
+
|
|
950
|
+
_collection_formats: Dict[str, str] = {
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
_path_params: Dict[str, str] = {}
|
|
954
|
+
_query_params: List[Tuple[str, str]] = []
|
|
955
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
956
|
+
_form_params: List[Tuple[str, str]] = []
|
|
957
|
+
_files: Dict[
|
|
958
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
959
|
+
] = {}
|
|
960
|
+
_body_params: Optional[bytes] = None
|
|
961
|
+
|
|
962
|
+
# process the path parameters
|
|
963
|
+
if company_identifier is not None:
|
|
964
|
+
_path_params['companyIdentifier'] = company_identifier
|
|
965
|
+
if booking_identifier is not None:
|
|
966
|
+
_path_params['bookingIdentifier'] = booking_identifier
|
|
967
|
+
# process the query parameters
|
|
968
|
+
# process the header parameters
|
|
969
|
+
if wink_version is not None:
|
|
970
|
+
_header_params['Wink-Version'] = wink_version
|
|
971
|
+
# process the form parameters
|
|
972
|
+
# process the body parameter
|
|
973
|
+
if body is not None:
|
|
974
|
+
_body_params = body
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
# set the HTTP header `Accept`
|
|
978
|
+
if 'Accept' not in _header_params:
|
|
979
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
980
|
+
[
|
|
981
|
+
'*/*',
|
|
982
|
+
'application/json',
|
|
983
|
+
'application/xml',
|
|
984
|
+
'text/xml',
|
|
985
|
+
'text/plain',
|
|
986
|
+
'text/html'
|
|
987
|
+
]
|
|
988
|
+
)
|
|
989
|
+
|
|
990
|
+
# set the HTTP header `Content-Type`
|
|
991
|
+
if _content_type:
|
|
992
|
+
_header_params['Content-Type'] = _content_type
|
|
993
|
+
else:
|
|
994
|
+
_default_content_type = (
|
|
995
|
+
self.api_client.select_header_content_type(
|
|
996
|
+
[
|
|
997
|
+
'application/json'
|
|
998
|
+
]
|
|
999
|
+
)
|
|
1000
|
+
)
|
|
1001
|
+
if _default_content_type is not None:
|
|
1002
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1003
|
+
|
|
1004
|
+
# authentication setting
|
|
1005
|
+
_auth_settings: List[str] = [
|
|
1006
|
+
'oauth2ClientCredentials'
|
|
1007
|
+
]
|
|
1008
|
+
|
|
1009
|
+
return self.api_client.param_serialize(
|
|
1010
|
+
method='PATCH',
|
|
1011
|
+
resource_path='/api/affiliate/{companyIdentifier}/booking/{bookingIdentifier}/resend',
|
|
1012
|
+
path_params=_path_params,
|
|
1013
|
+
query_params=_query_params,
|
|
1014
|
+
header_params=_header_params,
|
|
1015
|
+
body=_body_params,
|
|
1016
|
+
post_params=_form_params,
|
|
1017
|
+
files=_files,
|
|
1018
|
+
auth_settings=_auth_settings,
|
|
1019
|
+
collection_formats=_collection_formats,
|
|
1020
|
+
_host=_host,
|
|
1021
|
+
_request_auth=_request_auth
|
|
1022
|
+
)
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
@validate_call
|
|
1028
|
+
def show_booking_as_travel_agent(
|
|
1029
|
+
self,
|
|
1030
|
+
company_identifier: Annotated[StrictStr, Field(description="Show booking for company identifier")],
|
|
1031
|
+
booking_identifier: Annotated[StrictStr, Field(description="Show booking with booking identifier")],
|
|
1032
|
+
wink_version: Optional[StrictStr] = None,
|
|
1033
|
+
accept: Optional[StrictStr] = None,
|
|
1034
|
+
_request_timeout: Union[
|
|
1035
|
+
None,
|
|
1036
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1037
|
+
Tuple[
|
|
1038
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1039
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1040
|
+
]
|
|
1041
|
+
] = None,
|
|
1042
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1043
|
+
_content_type: Optional[StrictStr] = None,
|
|
1044
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1045
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1046
|
+
) -> BookingAgent:
|
|
1047
|
+
"""Show Booking
|
|
1048
|
+
|
|
1049
|
+
Show a booking record by its identifier.
|
|
1050
|
+
|
|
1051
|
+
:param company_identifier: Show booking for company identifier (required)
|
|
1052
|
+
:type company_identifier: str
|
|
1053
|
+
:param booking_identifier: Show booking with booking identifier (required)
|
|
1054
|
+
:type booking_identifier: str
|
|
1055
|
+
:param wink_version:
|
|
1056
|
+
:type wink_version: str
|
|
1057
|
+
:param accept:
|
|
1058
|
+
:type accept: str
|
|
1059
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1060
|
+
number provided, it will be total request
|
|
1061
|
+
timeout. It can also be a pair (tuple) of
|
|
1062
|
+
(connection, read) timeouts.
|
|
1063
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1064
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1065
|
+
request; this effectively ignores the
|
|
1066
|
+
authentication in the spec for a single request.
|
|
1067
|
+
:type _request_auth: dict, optional
|
|
1068
|
+
:param _content_type: force content-type for the request.
|
|
1069
|
+
:type _content_type: str, Optional
|
|
1070
|
+
:param _headers: set to override the headers for a single
|
|
1071
|
+
request; this effectively ignores the headers
|
|
1072
|
+
in the spec for a single request.
|
|
1073
|
+
:type _headers: dict, optional
|
|
1074
|
+
:param _host_index: set to override the host_index for a single
|
|
1075
|
+
request; this effectively ignores the host_index
|
|
1076
|
+
in the spec for a single request.
|
|
1077
|
+
:type _host_index: int, optional
|
|
1078
|
+
:return: Returns the result object.
|
|
1079
|
+
""" # noqa: E501
|
|
1080
|
+
|
|
1081
|
+
_param = self._show_booking_as_travel_agent_serialize(
|
|
1082
|
+
company_identifier=company_identifier,
|
|
1083
|
+
booking_identifier=booking_identifier,
|
|
1084
|
+
wink_version=wink_version,
|
|
1085
|
+
accept=accept,
|
|
1086
|
+
_request_auth=_request_auth,
|
|
1087
|
+
_content_type=_content_type,
|
|
1088
|
+
_headers=_headers,
|
|
1089
|
+
_host_index=_host_index
|
|
1090
|
+
)
|
|
1091
|
+
|
|
1092
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1093
|
+
'403': "GenericErrorMessage",
|
|
1094
|
+
'401': "GenericErrorMessage",
|
|
1095
|
+
'400': "CreateAgentBooking400Response",
|
|
1096
|
+
'500': "object",
|
|
1097
|
+
'200': "BookingAgent",
|
|
1098
|
+
}
|
|
1099
|
+
response_data = self.api_client.call_api(
|
|
1100
|
+
*_param,
|
|
1101
|
+
_request_timeout=_request_timeout
|
|
1102
|
+
)
|
|
1103
|
+
response_data.read()
|
|
1104
|
+
return self.api_client.response_deserialize(
|
|
1105
|
+
response_data=response_data,
|
|
1106
|
+
response_types_map=_response_types_map,
|
|
1107
|
+
).data
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
@validate_call
|
|
1111
|
+
def show_booking_as_travel_agent_with_http_info(
|
|
1112
|
+
self,
|
|
1113
|
+
company_identifier: Annotated[StrictStr, Field(description="Show booking for company identifier")],
|
|
1114
|
+
booking_identifier: Annotated[StrictStr, Field(description="Show booking with booking identifier")],
|
|
1115
|
+
wink_version: Optional[StrictStr] = None,
|
|
1116
|
+
accept: Optional[StrictStr] = None,
|
|
1117
|
+
_request_timeout: Union[
|
|
1118
|
+
None,
|
|
1119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1120
|
+
Tuple[
|
|
1121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1122
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1123
|
+
]
|
|
1124
|
+
] = None,
|
|
1125
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1126
|
+
_content_type: Optional[StrictStr] = None,
|
|
1127
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1128
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1129
|
+
) -> ApiResponse[BookingAgent]:
|
|
1130
|
+
"""Show Booking
|
|
1131
|
+
|
|
1132
|
+
Show a booking record by its identifier.
|
|
1133
|
+
|
|
1134
|
+
:param company_identifier: Show booking for company identifier (required)
|
|
1135
|
+
:type company_identifier: str
|
|
1136
|
+
:param booking_identifier: Show booking with booking identifier (required)
|
|
1137
|
+
:type booking_identifier: str
|
|
1138
|
+
:param wink_version:
|
|
1139
|
+
:type wink_version: str
|
|
1140
|
+
:param accept:
|
|
1141
|
+
:type accept: str
|
|
1142
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1143
|
+
number provided, it will be total request
|
|
1144
|
+
timeout. It can also be a pair (tuple) of
|
|
1145
|
+
(connection, read) timeouts.
|
|
1146
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1147
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1148
|
+
request; this effectively ignores the
|
|
1149
|
+
authentication in the spec for a single request.
|
|
1150
|
+
:type _request_auth: dict, optional
|
|
1151
|
+
:param _content_type: force content-type for the request.
|
|
1152
|
+
:type _content_type: str, Optional
|
|
1153
|
+
:param _headers: set to override the headers for a single
|
|
1154
|
+
request; this effectively ignores the headers
|
|
1155
|
+
in the spec for a single request.
|
|
1156
|
+
:type _headers: dict, optional
|
|
1157
|
+
:param _host_index: set to override the host_index for a single
|
|
1158
|
+
request; this effectively ignores the host_index
|
|
1159
|
+
in the spec for a single request.
|
|
1160
|
+
:type _host_index: int, optional
|
|
1161
|
+
:return: Returns the result object.
|
|
1162
|
+
""" # noqa: E501
|
|
1163
|
+
|
|
1164
|
+
_param = self._show_booking_as_travel_agent_serialize(
|
|
1165
|
+
company_identifier=company_identifier,
|
|
1166
|
+
booking_identifier=booking_identifier,
|
|
1167
|
+
wink_version=wink_version,
|
|
1168
|
+
accept=accept,
|
|
1169
|
+
_request_auth=_request_auth,
|
|
1170
|
+
_content_type=_content_type,
|
|
1171
|
+
_headers=_headers,
|
|
1172
|
+
_host_index=_host_index
|
|
1173
|
+
)
|
|
1174
|
+
|
|
1175
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1176
|
+
'403': "GenericErrorMessage",
|
|
1177
|
+
'401': "GenericErrorMessage",
|
|
1178
|
+
'400': "CreateAgentBooking400Response",
|
|
1179
|
+
'500': "object",
|
|
1180
|
+
'200': "BookingAgent",
|
|
1181
|
+
}
|
|
1182
|
+
response_data = self.api_client.call_api(
|
|
1183
|
+
*_param,
|
|
1184
|
+
_request_timeout=_request_timeout
|
|
1185
|
+
)
|
|
1186
|
+
response_data.read()
|
|
1187
|
+
return self.api_client.response_deserialize(
|
|
1188
|
+
response_data=response_data,
|
|
1189
|
+
response_types_map=_response_types_map,
|
|
1190
|
+
)
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
@validate_call
|
|
1194
|
+
def show_booking_as_travel_agent_without_preload_content(
|
|
1195
|
+
self,
|
|
1196
|
+
company_identifier: Annotated[StrictStr, Field(description="Show booking for company identifier")],
|
|
1197
|
+
booking_identifier: Annotated[StrictStr, Field(description="Show booking with booking identifier")],
|
|
1198
|
+
wink_version: Optional[StrictStr] = None,
|
|
1199
|
+
accept: Optional[StrictStr] = None,
|
|
1200
|
+
_request_timeout: Union[
|
|
1201
|
+
None,
|
|
1202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1203
|
+
Tuple[
|
|
1204
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1205
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1206
|
+
]
|
|
1207
|
+
] = None,
|
|
1208
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1209
|
+
_content_type: Optional[StrictStr] = None,
|
|
1210
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1211
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1212
|
+
) -> RESTResponseType:
|
|
1213
|
+
"""Show Booking
|
|
1214
|
+
|
|
1215
|
+
Show a booking record by its identifier.
|
|
1216
|
+
|
|
1217
|
+
:param company_identifier: Show booking for company identifier (required)
|
|
1218
|
+
:type company_identifier: str
|
|
1219
|
+
:param booking_identifier: Show booking with booking identifier (required)
|
|
1220
|
+
:type booking_identifier: str
|
|
1221
|
+
:param wink_version:
|
|
1222
|
+
:type wink_version: str
|
|
1223
|
+
:param accept:
|
|
1224
|
+
:type accept: str
|
|
1225
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1226
|
+
number provided, it will be total request
|
|
1227
|
+
timeout. It can also be a pair (tuple) of
|
|
1228
|
+
(connection, read) timeouts.
|
|
1229
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1230
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1231
|
+
request; this effectively ignores the
|
|
1232
|
+
authentication in the spec for a single request.
|
|
1233
|
+
:type _request_auth: dict, optional
|
|
1234
|
+
:param _content_type: force content-type for the request.
|
|
1235
|
+
:type _content_type: str, Optional
|
|
1236
|
+
:param _headers: set to override the headers for a single
|
|
1237
|
+
request; this effectively ignores the headers
|
|
1238
|
+
in the spec for a single request.
|
|
1239
|
+
:type _headers: dict, optional
|
|
1240
|
+
:param _host_index: set to override the host_index for a single
|
|
1241
|
+
request; this effectively ignores the host_index
|
|
1242
|
+
in the spec for a single request.
|
|
1243
|
+
:type _host_index: int, optional
|
|
1244
|
+
:return: Returns the result object.
|
|
1245
|
+
""" # noqa: E501
|
|
1246
|
+
|
|
1247
|
+
_param = self._show_booking_as_travel_agent_serialize(
|
|
1248
|
+
company_identifier=company_identifier,
|
|
1249
|
+
booking_identifier=booking_identifier,
|
|
1250
|
+
wink_version=wink_version,
|
|
1251
|
+
accept=accept,
|
|
1252
|
+
_request_auth=_request_auth,
|
|
1253
|
+
_content_type=_content_type,
|
|
1254
|
+
_headers=_headers,
|
|
1255
|
+
_host_index=_host_index
|
|
1256
|
+
)
|
|
1257
|
+
|
|
1258
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1259
|
+
'403': "GenericErrorMessage",
|
|
1260
|
+
'401': "GenericErrorMessage",
|
|
1261
|
+
'400': "CreateAgentBooking400Response",
|
|
1262
|
+
'500': "object",
|
|
1263
|
+
'200': "BookingAgent",
|
|
1264
|
+
}
|
|
1265
|
+
response_data = self.api_client.call_api(
|
|
1266
|
+
*_param,
|
|
1267
|
+
_request_timeout=_request_timeout
|
|
1268
|
+
)
|
|
1269
|
+
return response_data.response
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
def _show_booking_as_travel_agent_serialize(
|
|
1273
|
+
self,
|
|
1274
|
+
company_identifier,
|
|
1275
|
+
booking_identifier,
|
|
1276
|
+
wink_version,
|
|
1277
|
+
accept,
|
|
1278
|
+
_request_auth,
|
|
1279
|
+
_content_type,
|
|
1280
|
+
_headers,
|
|
1281
|
+
_host_index,
|
|
1282
|
+
) -> RequestSerialized:
|
|
1283
|
+
|
|
1284
|
+
_host = None
|
|
1285
|
+
|
|
1286
|
+
_collection_formats: Dict[str, str] = {
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
_path_params: Dict[str, str] = {}
|
|
1290
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1291
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1292
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1293
|
+
_files: Dict[
|
|
1294
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1295
|
+
] = {}
|
|
1296
|
+
_body_params: Optional[bytes] = None
|
|
1297
|
+
|
|
1298
|
+
# process the path parameters
|
|
1299
|
+
if company_identifier is not None:
|
|
1300
|
+
_path_params['companyIdentifier'] = company_identifier
|
|
1301
|
+
if booking_identifier is not None:
|
|
1302
|
+
_path_params['bookingIdentifier'] = booking_identifier
|
|
1303
|
+
# process the query parameters
|
|
1304
|
+
# process the header parameters
|
|
1305
|
+
if wink_version is not None:
|
|
1306
|
+
_header_params['Wink-Version'] = wink_version
|
|
1307
|
+
if accept is not None:
|
|
1308
|
+
_header_params['Accept'] = accept
|
|
1309
|
+
# process the form parameters
|
|
1310
|
+
# process the body parameter
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
# set the HTTP header `Accept`
|
|
1314
|
+
if 'Accept' not in _header_params:
|
|
1315
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1316
|
+
[
|
|
1317
|
+
'*/*',
|
|
1318
|
+
'application/json',
|
|
1319
|
+
'application/xml',
|
|
1320
|
+
'text/xml',
|
|
1321
|
+
'text/plain',
|
|
1322
|
+
'text/html'
|
|
1323
|
+
]
|
|
1324
|
+
)
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
# authentication setting
|
|
1328
|
+
_auth_settings: List[str] = [
|
|
1329
|
+
'oauth2ClientCredentials'
|
|
1330
|
+
]
|
|
1331
|
+
|
|
1332
|
+
return self.api_client.param_serialize(
|
|
1333
|
+
method='GET',
|
|
1334
|
+
resource_path='/api/affiliate/{companyIdentifier}/booking/{bookingIdentifier}',
|
|
1335
|
+
path_params=_path_params,
|
|
1336
|
+
query_params=_query_params,
|
|
1337
|
+
header_params=_header_params,
|
|
1338
|
+
body=_body_params,
|
|
1339
|
+
post_params=_form_params,
|
|
1340
|
+
files=_files,
|
|
1341
|
+
auth_settings=_auth_settings,
|
|
1342
|
+
collection_formats=_collection_formats,
|
|
1343
|
+
_host=_host,
|
|
1344
|
+
_request_auth=_request_auth
|
|
1345
|
+
)
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
@validate_call
|
|
1351
|
+
def show_booking_grid_as_travel_agent(
|
|
1352
|
+
self,
|
|
1353
|
+
company_identifier: Annotated[StrictStr, Field(description="Show bookings for company identifier")],
|
|
1354
|
+
state_agent: StateAgent,
|
|
1355
|
+
wink_version: Optional[StrictStr] = None,
|
|
1356
|
+
_request_timeout: Union[
|
|
1357
|
+
None,
|
|
1358
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1359
|
+
Tuple[
|
|
1360
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1361
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1362
|
+
]
|
|
1363
|
+
] = None,
|
|
1364
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1365
|
+
_content_type: Optional[StrictStr] = None,
|
|
1366
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1367
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1368
|
+
) -> PageBookingAgent:
|
|
1369
|
+
"""Show Bookings
|
|
1370
|
+
|
|
1371
|
+
Show bookings for the company that helped create those booking.
|
|
1372
|
+
|
|
1373
|
+
:param company_identifier: Show bookings for company identifier (required)
|
|
1374
|
+
:type company_identifier: str
|
|
1375
|
+
:param state_agent: (required)
|
|
1376
|
+
:type state_agent: StateAgent
|
|
1377
|
+
:param wink_version:
|
|
1378
|
+
:type wink_version: str
|
|
1379
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1380
|
+
number provided, it will be total request
|
|
1381
|
+
timeout. It can also be a pair (tuple) of
|
|
1382
|
+
(connection, read) timeouts.
|
|
1383
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1384
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1385
|
+
request; this effectively ignores the
|
|
1386
|
+
authentication in the spec for a single request.
|
|
1387
|
+
:type _request_auth: dict, optional
|
|
1388
|
+
:param _content_type: force content-type for the request.
|
|
1389
|
+
:type _content_type: str, Optional
|
|
1390
|
+
:param _headers: set to override the headers for a single
|
|
1391
|
+
request; this effectively ignores the headers
|
|
1392
|
+
in the spec for a single request.
|
|
1393
|
+
:type _headers: dict, optional
|
|
1394
|
+
:param _host_index: set to override the host_index for a single
|
|
1395
|
+
request; this effectively ignores the host_index
|
|
1396
|
+
in the spec for a single request.
|
|
1397
|
+
:type _host_index: int, optional
|
|
1398
|
+
:return: Returns the result object.
|
|
1399
|
+
""" # noqa: E501
|
|
1400
|
+
|
|
1401
|
+
_param = self._show_booking_grid_as_travel_agent_serialize(
|
|
1402
|
+
company_identifier=company_identifier,
|
|
1403
|
+
state_agent=state_agent,
|
|
1404
|
+
wink_version=wink_version,
|
|
1405
|
+
_request_auth=_request_auth,
|
|
1406
|
+
_content_type=_content_type,
|
|
1407
|
+
_headers=_headers,
|
|
1408
|
+
_host_index=_host_index
|
|
1409
|
+
)
|
|
1410
|
+
|
|
1411
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1412
|
+
'403': "GenericErrorMessage",
|
|
1413
|
+
'401': "GenericErrorMessage",
|
|
1414
|
+
'400': "CreateAgentBooking400Response",
|
|
1415
|
+
'500': "object",
|
|
1416
|
+
'200': "PageBookingAgent",
|
|
1417
|
+
}
|
|
1418
|
+
response_data = self.api_client.call_api(
|
|
1419
|
+
*_param,
|
|
1420
|
+
_request_timeout=_request_timeout
|
|
1421
|
+
)
|
|
1422
|
+
response_data.read()
|
|
1423
|
+
return self.api_client.response_deserialize(
|
|
1424
|
+
response_data=response_data,
|
|
1425
|
+
response_types_map=_response_types_map,
|
|
1426
|
+
).data
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
@validate_call
|
|
1430
|
+
def show_booking_grid_as_travel_agent_with_http_info(
|
|
1431
|
+
self,
|
|
1432
|
+
company_identifier: Annotated[StrictStr, Field(description="Show bookings for company identifier")],
|
|
1433
|
+
state_agent: StateAgent,
|
|
1434
|
+
wink_version: Optional[StrictStr] = None,
|
|
1435
|
+
_request_timeout: Union[
|
|
1436
|
+
None,
|
|
1437
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1438
|
+
Tuple[
|
|
1439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1440
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1441
|
+
]
|
|
1442
|
+
] = None,
|
|
1443
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1444
|
+
_content_type: Optional[StrictStr] = None,
|
|
1445
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1446
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1447
|
+
) -> ApiResponse[PageBookingAgent]:
|
|
1448
|
+
"""Show Bookings
|
|
1449
|
+
|
|
1450
|
+
Show bookings for the company that helped create those booking.
|
|
1451
|
+
|
|
1452
|
+
:param company_identifier: Show bookings for company identifier (required)
|
|
1453
|
+
:type company_identifier: str
|
|
1454
|
+
:param state_agent: (required)
|
|
1455
|
+
:type state_agent: StateAgent
|
|
1456
|
+
:param wink_version:
|
|
1457
|
+
:type wink_version: str
|
|
1458
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1459
|
+
number provided, it will be total request
|
|
1460
|
+
timeout. It can also be a pair (tuple) of
|
|
1461
|
+
(connection, read) timeouts.
|
|
1462
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1463
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1464
|
+
request; this effectively ignores the
|
|
1465
|
+
authentication in the spec for a single request.
|
|
1466
|
+
:type _request_auth: dict, optional
|
|
1467
|
+
:param _content_type: force content-type for the request.
|
|
1468
|
+
:type _content_type: str, Optional
|
|
1469
|
+
:param _headers: set to override the headers for a single
|
|
1470
|
+
request; this effectively ignores the headers
|
|
1471
|
+
in the spec for a single request.
|
|
1472
|
+
:type _headers: dict, optional
|
|
1473
|
+
:param _host_index: set to override the host_index for a single
|
|
1474
|
+
request; this effectively ignores the host_index
|
|
1475
|
+
in the spec for a single request.
|
|
1476
|
+
:type _host_index: int, optional
|
|
1477
|
+
:return: Returns the result object.
|
|
1478
|
+
""" # noqa: E501
|
|
1479
|
+
|
|
1480
|
+
_param = self._show_booking_grid_as_travel_agent_serialize(
|
|
1481
|
+
company_identifier=company_identifier,
|
|
1482
|
+
state_agent=state_agent,
|
|
1483
|
+
wink_version=wink_version,
|
|
1484
|
+
_request_auth=_request_auth,
|
|
1485
|
+
_content_type=_content_type,
|
|
1486
|
+
_headers=_headers,
|
|
1487
|
+
_host_index=_host_index
|
|
1488
|
+
)
|
|
1489
|
+
|
|
1490
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1491
|
+
'403': "GenericErrorMessage",
|
|
1492
|
+
'401': "GenericErrorMessage",
|
|
1493
|
+
'400': "CreateAgentBooking400Response",
|
|
1494
|
+
'500': "object",
|
|
1495
|
+
'200': "PageBookingAgent",
|
|
1496
|
+
}
|
|
1497
|
+
response_data = self.api_client.call_api(
|
|
1498
|
+
*_param,
|
|
1499
|
+
_request_timeout=_request_timeout
|
|
1500
|
+
)
|
|
1501
|
+
response_data.read()
|
|
1502
|
+
return self.api_client.response_deserialize(
|
|
1503
|
+
response_data=response_data,
|
|
1504
|
+
response_types_map=_response_types_map,
|
|
1505
|
+
)
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
@validate_call
|
|
1509
|
+
def show_booking_grid_as_travel_agent_without_preload_content(
|
|
1510
|
+
self,
|
|
1511
|
+
company_identifier: Annotated[StrictStr, Field(description="Show bookings for company identifier")],
|
|
1512
|
+
state_agent: StateAgent,
|
|
1513
|
+
wink_version: Optional[StrictStr] = None,
|
|
1514
|
+
_request_timeout: Union[
|
|
1515
|
+
None,
|
|
1516
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1517
|
+
Tuple[
|
|
1518
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1519
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1520
|
+
]
|
|
1521
|
+
] = None,
|
|
1522
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1523
|
+
_content_type: Optional[StrictStr] = None,
|
|
1524
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1525
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1526
|
+
) -> RESTResponseType:
|
|
1527
|
+
"""Show Bookings
|
|
1528
|
+
|
|
1529
|
+
Show bookings for the company that helped create those booking.
|
|
1530
|
+
|
|
1531
|
+
:param company_identifier: Show bookings for company identifier (required)
|
|
1532
|
+
:type company_identifier: str
|
|
1533
|
+
:param state_agent: (required)
|
|
1534
|
+
:type state_agent: StateAgent
|
|
1535
|
+
:param wink_version:
|
|
1536
|
+
:type wink_version: str
|
|
1537
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1538
|
+
number provided, it will be total request
|
|
1539
|
+
timeout. It can also be a pair (tuple) of
|
|
1540
|
+
(connection, read) timeouts.
|
|
1541
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1542
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1543
|
+
request; this effectively ignores the
|
|
1544
|
+
authentication in the spec for a single request.
|
|
1545
|
+
:type _request_auth: dict, optional
|
|
1546
|
+
:param _content_type: force content-type for the request.
|
|
1547
|
+
:type _content_type: str, Optional
|
|
1548
|
+
:param _headers: set to override the headers for a single
|
|
1549
|
+
request; this effectively ignores the headers
|
|
1550
|
+
in the spec for a single request.
|
|
1551
|
+
:type _headers: dict, optional
|
|
1552
|
+
:param _host_index: set to override the host_index for a single
|
|
1553
|
+
request; this effectively ignores the host_index
|
|
1554
|
+
in the spec for a single request.
|
|
1555
|
+
:type _host_index: int, optional
|
|
1556
|
+
:return: Returns the result object.
|
|
1557
|
+
""" # noqa: E501
|
|
1558
|
+
|
|
1559
|
+
_param = self._show_booking_grid_as_travel_agent_serialize(
|
|
1560
|
+
company_identifier=company_identifier,
|
|
1561
|
+
state_agent=state_agent,
|
|
1562
|
+
wink_version=wink_version,
|
|
1563
|
+
_request_auth=_request_auth,
|
|
1564
|
+
_content_type=_content_type,
|
|
1565
|
+
_headers=_headers,
|
|
1566
|
+
_host_index=_host_index
|
|
1567
|
+
)
|
|
1568
|
+
|
|
1569
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1570
|
+
'403': "GenericErrorMessage",
|
|
1571
|
+
'401': "GenericErrorMessage",
|
|
1572
|
+
'400': "CreateAgentBooking400Response",
|
|
1573
|
+
'500': "object",
|
|
1574
|
+
'200': "PageBookingAgent",
|
|
1575
|
+
}
|
|
1576
|
+
response_data = self.api_client.call_api(
|
|
1577
|
+
*_param,
|
|
1578
|
+
_request_timeout=_request_timeout
|
|
1579
|
+
)
|
|
1580
|
+
return response_data.response
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
def _show_booking_grid_as_travel_agent_serialize(
|
|
1584
|
+
self,
|
|
1585
|
+
company_identifier,
|
|
1586
|
+
state_agent,
|
|
1587
|
+
wink_version,
|
|
1588
|
+
_request_auth,
|
|
1589
|
+
_content_type,
|
|
1590
|
+
_headers,
|
|
1591
|
+
_host_index,
|
|
1592
|
+
) -> RequestSerialized:
|
|
1593
|
+
|
|
1594
|
+
_host = None
|
|
1595
|
+
|
|
1596
|
+
_collection_formats: Dict[str, str] = {
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
_path_params: Dict[str, str] = {}
|
|
1600
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1601
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1602
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1603
|
+
_files: Dict[
|
|
1604
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1605
|
+
] = {}
|
|
1606
|
+
_body_params: Optional[bytes] = None
|
|
1607
|
+
|
|
1608
|
+
# process the path parameters
|
|
1609
|
+
if company_identifier is not None:
|
|
1610
|
+
_path_params['companyIdentifier'] = company_identifier
|
|
1611
|
+
# process the query parameters
|
|
1612
|
+
# process the header parameters
|
|
1613
|
+
if wink_version is not None:
|
|
1614
|
+
_header_params['Wink-Version'] = wink_version
|
|
1615
|
+
# process the form parameters
|
|
1616
|
+
# process the body parameter
|
|
1617
|
+
if state_agent is not None:
|
|
1618
|
+
_body_params = state_agent
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
# set the HTTP header `Accept`
|
|
1622
|
+
if 'Accept' not in _header_params:
|
|
1623
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1624
|
+
[
|
|
1625
|
+
'*/*',
|
|
1626
|
+
'application/json',
|
|
1627
|
+
'application/xml',
|
|
1628
|
+
'text/xml',
|
|
1629
|
+
'text/plain',
|
|
1630
|
+
'text/html'
|
|
1631
|
+
]
|
|
1632
|
+
)
|
|
1633
|
+
|
|
1634
|
+
# set the HTTP header `Content-Type`
|
|
1635
|
+
if _content_type:
|
|
1636
|
+
_header_params['Content-Type'] = _content_type
|
|
1637
|
+
else:
|
|
1638
|
+
_default_content_type = (
|
|
1639
|
+
self.api_client.select_header_content_type(
|
|
1640
|
+
[
|
|
1641
|
+
'application/json'
|
|
1642
|
+
]
|
|
1643
|
+
)
|
|
1644
|
+
)
|
|
1645
|
+
if _default_content_type is not None:
|
|
1646
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1647
|
+
|
|
1648
|
+
# authentication setting
|
|
1649
|
+
_auth_settings: List[str] = [
|
|
1650
|
+
'oauth2ClientCredentials'
|
|
1651
|
+
]
|
|
1652
|
+
|
|
1653
|
+
return self.api_client.param_serialize(
|
|
1654
|
+
method='POST',
|
|
1655
|
+
resource_path='/api/affiliate/{companyIdentifier}/booking/grid',
|
|
1656
|
+
path_params=_path_params,
|
|
1657
|
+
query_params=_query_params,
|
|
1658
|
+
header_params=_header_params,
|
|
1659
|
+
body=_body_params,
|
|
1660
|
+
post_params=_form_params,
|
|
1661
|
+
files=_files,
|
|
1662
|
+
auth_settings=_auth_settings,
|
|
1663
|
+
collection_formats=_collection_formats,
|
|
1664
|
+
_host=_host,
|
|
1665
|
+
_request_auth=_request_auth
|
|
1666
|
+
)
|
|
1667
|
+
|
|
1668
|
+
|