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.
Files changed (144) hide show
  1. wink_sdk_travel_agent/__init__.py +229 -0
  2. wink_sdk_travel_agent/api/__init__.py +6 -0
  3. wink_sdk_travel_agent/api/analytics_api.py +671 -0
  4. wink_sdk_travel_agent/api/travel_agent_api.py +1668 -0
  5. wink_sdk_travel_agent/api_client.py +805 -0
  6. wink_sdk_travel_agent/api_response.py +21 -0
  7. wink_sdk_travel_agent/configuration.py +582 -0
  8. wink_sdk_travel_agent/exceptions.py +217 -0
  9. wink_sdk_travel_agent/models/__init__.py +106 -0
  10. wink_sdk_travel_agent/models/address_agent.py +111 -0
  11. wink_sdk_travel_agent/models/affiliate_account_agent.py +181 -0
  12. wink_sdk_travel_agent/models/affiliate_account_user_agent.py +115 -0
  13. wink_sdk_travel_agent/models/agent_booking_request_agent.py +130 -0
  14. wink_sdk_travel_agent/models/aggregate_descriptor_agent.py +100 -0
  15. wink_sdk_travel_agent/models/ancillary_request_agent.py +111 -0
  16. wink_sdk_travel_agent/models/authenticated_user_agent.py +100 -0
  17. wink_sdk_travel_agent/models/bed_agent.py +91 -0
  18. wink_sdk_travel_agent/models/bedroom_agent.py +106 -0
  19. wink_sdk_travel_agent/models/bedroom_configuration_agent.py +102 -0
  20. wink_sdk_travel_agent/models/beneficiary_agent.py +156 -0
  21. wink_sdk_travel_agent/models/beneficiary_charge_agent.py +97 -0
  22. wink_sdk_travel_agent/models/booking_agent.py +342 -0
  23. wink_sdk_travel_agent/models/booking_analytics_supplier.py +96 -0
  24. wink_sdk_travel_agent/models/booking_ancillary_agent.py +155 -0
  25. wink_sdk_travel_agent/models/booking_confirmations_agent.py +101 -0
  26. wink_sdk_travel_agent/models/booking_contract_agent.py +697 -0
  27. wink_sdk_travel_agent/models/booking_contract_item_agent.py +206 -0
  28. wink_sdk_travel_agent/models/booking_contract_payment_details_agent.py +124 -0
  29. wink_sdk_travel_agent/models/booking_itinerary_agent.py +113 -0
  30. wink_sdk_travel_agent/models/booking_itinerary_room_configuration_agent.py +98 -0
  31. wink_sdk_travel_agent/models/booking_itinerary_room_configuration_child_agent.py +90 -0
  32. wink_sdk_travel_agent/models/booking_overview_request_supplier.py +97 -0
  33. wink_sdk_travel_agent/models/booking_user_agent.py +102 -0
  34. wink_sdk_travel_agent/models/booking_user_request_agent.py +96 -0
  35. wink_sdk_travel_agent/models/booking_user_session_agent.py +112 -0
  36. wink_sdk_travel_agent/models/booking_view_agent.py +101 -0
  37. wink_sdk_travel_agent/models/boolean_response_agent.py +90 -0
  38. wink_sdk_travel_agent/models/cancellation_detail_agent.py +98 -0
  39. wink_sdk_travel_agent/models/cancellation_policy_agent.py +166 -0
  40. wink_sdk_travel_agent/models/cancellation_policy_exception_agent.py +100 -0
  41. wink_sdk_travel_agent/models/cancellation_policy_exceptions_agent.py +97 -0
  42. wink_sdk_travel_agent/models/cancellation_policy_lightweight_agent.py +167 -0
  43. wink_sdk_travel_agent/models/chart_category_axis_supplier.py +88 -0
  44. wink_sdk_travel_agent/models/chart_legend_supplier.py +88 -0
  45. wink_sdk_travel_agent/models/chart_series_supplier.py +90 -0
  46. wink_sdk_travel_agent/models/chart_title_supplier.py +88 -0
  47. wink_sdk_travel_agent/models/child_agent.py +91 -0
  48. wink_sdk_travel_agent/models/commissionable_entry_agent.py +102 -0
  49. wink_sdk_travel_agent/models/company_agent.py +176 -0
  50. wink_sdk_travel_agent/models/company_user_agent.py +114 -0
  51. wink_sdk_travel_agent/models/company_view_agent.py +101 -0
  52. wink_sdk_travel_agent/models/composite_filter_descriptor_agent.py +108 -0
  53. wink_sdk_travel_agent/models/contact_agent.py +104 -0
  54. wink_sdk_travel_agent/models/country_agent.py +100 -0
  55. wink_sdk_travel_agent/models/country_lightweight_agent.py +100 -0
  56. wink_sdk_travel_agent/models/create_agent_booking400_response.py +141 -0
  57. wink_sdk_travel_agent/models/create_agent_booking_request_agent.py +105 -0
  58. wink_sdk_travel_agent/models/custom_monetary_amount.py +91 -0
  59. wink_sdk_travel_agent/models/customization_lightweight_agent.py +232 -0
  60. wink_sdk_travel_agent/models/customization_theme_colors_agent.py +108 -0
  61. wink_sdk_travel_agent/models/daily_rate_agent.py +115 -0
  62. wink_sdk_travel_agent/models/dow_pattern_group_agent.py +102 -0
  63. wink_sdk_travel_agent/models/engine_configuration_booking_report_agent.py +230 -0
  64. wink_sdk_travel_agent/models/engine_configuration_theme_agent.py +108 -0
  65. wink_sdk_travel_agent/models/engine_configuration_theme_colors_agent.py +108 -0
  66. wink_sdk_travel_agent/models/extra_charge_agent.py +103 -0
  67. wink_sdk_travel_agent/models/extra_charges_agent.py +112 -0
  68. wink_sdk_travel_agent/models/fee_agent.py +105 -0
  69. wink_sdk_travel_agent/models/filter_descriptor_agent.py +107 -0
  70. wink_sdk_travel_agent/models/general_manager_agent.py +104 -0
  71. wink_sdk_travel_agent/models/generic_error_message.py +94 -0
  72. wink_sdk_travel_agent/models/geo_json_point_agent.py +94 -0
  73. wink_sdk_travel_agent/models/geo_name_agent.py +136 -0
  74. wink_sdk_travel_agent/models/geo_name_lightweight_agent.py +136 -0
  75. wink_sdk_travel_agent/models/group_descriptor_agent.py +110 -0
  76. wink_sdk_travel_agent/models/grouped_booking_sales_metrics_supplier_details.py +110 -0
  77. wink_sdk_travel_agent/models/guest_room_agent.py +258 -0
  78. wink_sdk_travel_agent/models/guest_room_lightweight_agent.py +259 -0
  79. wink_sdk_travel_agent/models/guest_user_agent.py +108 -0
  80. wink_sdk_travel_agent/models/hotel_on_map_agent.py +270 -0
  81. wink_sdk_travel_agent/models/image_attribution_agent.py +91 -0
  82. wink_sdk_travel_agent/models/line_chart_supplier.py +122 -0
  83. wink_sdk_travel_agent/models/localized_description_agent.py +109 -0
  84. wink_sdk_travel_agent/models/localized_price_agent.py +162 -0
  85. wink_sdk_travel_agent/models/managed_by_entity_agent.py +103 -0
  86. wink_sdk_travel_agent/models/managed_by_entity_rules_agent.py +95 -0
  87. wink_sdk_travel_agent/models/media_author_attribution_agent.py +91 -0
  88. wink_sdk_travel_agent/models/online_presence_agent.py +112 -0
  89. wink_sdk_travel_agent/models/page_booking_agent.py +124 -0
  90. wink_sdk_travel_agent/models/page_booking_view_agent.py +124 -0
  91. wink_sdk_travel_agent/models/pageable_object_agent.py +102 -0
  92. wink_sdk_travel_agent/models/payout_agent.py +158 -0
  93. wink_sdk_travel_agent/models/payout_fee_agent.py +116 -0
  94. wink_sdk_travel_agent/models/pending_refund_agent.py +99 -0
  95. wink_sdk_travel_agent/models/perk_lightweight_agent.py +105 -0
  96. wink_sdk_travel_agent/models/personal_agent.py +139 -0
  97. wink_sdk_travel_agent/models/pet_info_dto_agent.py +90 -0
  98. wink_sdk_travel_agent/models/preferences_agent.py +128 -0
  99. wink_sdk_travel_agent/models/profile_agent.py +110 -0
  100. wink_sdk_travel_agent/models/profile_lightweight_agent.py +111 -0
  101. wink_sdk_travel_agent/models/profile_user_agent.py +100 -0
  102. wink_sdk_travel_agent/models/property_aggregate_lightweight_agent.py +245 -0
  103. wink_sdk_travel_agent/models/property_policy_agent.py +150 -0
  104. wink_sdk_travel_agent/models/quote_agent.py +94 -0
  105. wink_sdk_travel_agent/models/quote_lightweight_agent.py +95 -0
  106. wink_sdk_travel_agent/models/rate_plan_agent.py +172 -0
  107. wink_sdk_travel_agent/models/rate_plan_level_fee_agent.py +112 -0
  108. wink_sdk_travel_agent/models/refund_agent.py +167 -0
  109. wink_sdk_travel_agent/models/reporting_ancillary_agent.py +108 -0
  110. wink_sdk_travel_agent/models/reporting_daily_rate_agent.py +99 -0
  111. wink_sdk_travel_agent/models/reporting_extra_charge_agent.py +98 -0
  112. wink_sdk_travel_agent/models/review_agent.py +133 -0
  113. wink_sdk_travel_agent/models/review_answer_agent.py +102 -0
  114. wink_sdk_travel_agent/models/review_lightweight_agent.py +134 -0
  115. wink_sdk_travel_agent/models/review_user_agent.py +99 -0
  116. wink_sdk_travel_agent/models/room_configuration_agent.py +99 -0
  117. wink_sdk_travel_agent/models/room_configuration_price_rate_plan_agent.py +130 -0
  118. wink_sdk_travel_agent/models/room_stay_agent.py +183 -0
  119. wink_sdk_travel_agent/models/simple_address_agent.py +109 -0
  120. wink_sdk_travel_agent/models/simple_date_time_itinerary_agent.py +108 -0
  121. wink_sdk_travel_agent/models/simple_description_agent.py +111 -0
  122. wink_sdk_travel_agent/models/simple_multimedia_agent.py +156 -0
  123. wink_sdk_travel_agent/models/social_agent.py +100 -0
  124. wink_sdk_travel_agent/models/sort_descriptor_agent.py +100 -0
  125. wink_sdk_travel_agent/models/sort_object.py +96 -0
  126. wink_sdk_travel_agent/models/sort_object_agent.py +92 -0
  127. wink_sdk_travel_agent/models/state_agent.py +117 -0
  128. wink_sdk_travel_agent/models/stay_rate_agent.py +209 -0
  129. wink_sdk_travel_agent/models/sub_country_agent.py +92 -0
  130. wink_sdk_travel_agent/models/sub_country_lightweight_agent.py +92 -0
  131. wink_sdk_travel_agent/models/sub_sub_country_agent.py +92 -0
  132. wink_sdk_travel_agent/models/sub_sub_country_lightweight_agent.py +92 -0
  133. wink_sdk_travel_agent/models/supplier_contract_item_policy_agent.py +170 -0
  134. wink_sdk_travel_agent/models/travel_agent_agent.py +90 -0
  135. wink_sdk_travel_agent/models/travel_inventory_recognition_agent.py +121 -0
  136. wink_sdk_travel_agent/models/upsert_travel_agent_request_agent.py +90 -0
  137. wink_sdk_travel_agent/models/wink_booking_contract_agent.py +697 -0
  138. wink_sdk_travel_agent/py.typed +0 -0
  139. wink_sdk_travel_agent/rest.py +259 -0
  140. wink_sdk_travel_agent-0.0.55.dist-info/METADATA +539 -0
  141. wink_sdk_travel_agent-0.0.55.dist-info/RECORD +144 -0
  142. wink_sdk_travel_agent-0.0.55.dist-info/WHEEL +5 -0
  143. wink_sdk_travel_agent-0.0.55.dist-info/licenses/LICENSE +201 -0
  144. wink_sdk_travel_agent-0.0.55.dist-info/top_level.txt +1 -0
@@ -0,0 +1,697 @@
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.27.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 date, datetime
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
23
+ from typing import Any, ClassVar, Dict, List, Optional, Union
24
+ from typing_extensions import Annotated
25
+ from uuid import UUID
26
+ from wink_sdk_travel_agent.models.authenticated_user_agent import AuthenticatedUserAgent
27
+ from wink_sdk_travel_agent.models.beneficiary_agent import BeneficiaryAgent
28
+ from wink_sdk_travel_agent.models.booking_contract_item_agent import BookingContractItemAgent
29
+ from wink_sdk_travel_agent.models.booking_contract_payment_details_agent import BookingContractPaymentDetailsAgent
30
+ from wink_sdk_travel_agent.models.custom_monetary_amount import CustomMonetaryAmount
31
+ from wink_sdk_travel_agent.models.payout_agent import PayoutAgent
32
+ from wink_sdk_travel_agent.models.quote_lightweight_agent import QuoteLightweightAgent
33
+ from wink_sdk_travel_agent.models.refund_agent import RefundAgent
34
+ from typing import Optional, Set
35
+ from typing_extensions import Self
36
+
37
+ class BookingContractAgent(BaseModel):
38
+ """
39
+ BookingContractAgent
40
+ """ # noqa: E501
41
+ booking_contract_identifier: Optional[UUID] = Field(default=None, description="Document UUID", alias="bookingContractIdentifier")
42
+ created_date: Optional[datetime] = Field(default=None, description="Datetime this record was first created", alias="createdDate")
43
+ last_update: Optional[datetime] = Field(default=None, description="Datetime this record was last updated", alias="lastUpdate")
44
+ federated_organization_identifier: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The auth realm owner ID", alias="federatedOrganizationIdentifier")
45
+ federated_organization_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The auth realm owner name", alias="federatedOrganizationName")
46
+ user: AuthenticatedUserAgent = Field(description="The authenticated user ID that made the request")
47
+ ip_address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Caller's IP address", alias="ipAddress")
48
+ trace_id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Way to track which booking contracts were made together", alias="traceId")
49
+ source_url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Where did the booking occur", alias="sourceUrl")
50
+ identifier: UUID = Field(description="Unique identifier used to track the contract. Create a UUID for this purpose.")
51
+ supplier_identifier: UUID = Field(description="Supplier identifier", alias="supplierIdentifier")
52
+ supplier_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Supplier name", alias="supplierName")
53
+ display_price_quote: QuoteLightweightAgent = Field(description="The quote used to create totalDisplayPrice.", alias="displayPriceQuote")
54
+ supplier_price_quote: QuoteLightweightAgent = Field(description="The quote used to create totalSupplierPrice.", alias="supplierPriceQuote")
55
+ internal_price_quote: QuoteLightweightAgent = Field(description="The quote used to create totalInternalPrice.", alias="internalPriceQuote")
56
+ capture_price_quote: QuoteLightweightAgent = Field(description="The quote used to create totalCapturePrice.", alias="capturePriceQuote")
57
+ item_list: Annotated[List[BookingContractItemAgent], Field(min_length=1, max_length=2147483647)] = Field(description="Holds one booking line item for a specific supplier.", alias="itemList")
58
+ external_supplier_identifier: Optional[StrictStr] = Field(default=None, description="Contract creator can choose to geoname this record with her own identifier", alias="externalSupplierIdentifier")
59
+ external_supplier_booking_code: Optional[StrictStr] = Field(default=None, description="External booking code generated by the affiliate", alias="externalSupplierBookingCode")
60
+ payment: BookingContractPaymentDetailsAgent = Field(description="Payment details the merchant provided us at the time of payment.")
61
+ cancelled: StrictBool = Field(description="Optional geoname externalIdentifier to remote inventory.")
62
+ cancelled_on: Optional[datetime] = Field(default=None, description="When the booking was cancelled.", alias="cancelledOn")
63
+ canceller: Optional[StrictStr] = Field(default=None, description="Type of entity that cancelled the booking.")
64
+ cancellation_type: Optional[StrictStr] = Field(default=None, description="Reason type.", alias="cancellationType")
65
+ canceller_user_identifier: Optional[StrictStr] = Field(default=None, description="User identifier that cancelled the entity.", alias="cancellerUserIdentifier")
66
+ cancel_reason: Optional[StrictStr] = Field(default=None, description="Reason for cancellation.", alias="cancelReason")
67
+ funds_processed: Optional[StrictBool] = Field(default=None, description="Whether a funds transfer request has been created for this booking.", alias="fundsProcessed")
68
+ refunds: Optional[List[RefundAgent]] = Field(default=None, description="An optional list of refunds that occurred with this booking. If the refund amount(s) is the same as the total price, the booking also gets cancelled.")
69
+ payouts: Optional[List[PayoutAgent]] = Field(default=None, description="An optional list of refunds that occurred with this booking. If the refund amount(s) is the same as the total price, the booking also gets cancelled.")
70
+ source_currency: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The source currency", alias="sourceCurrency")
71
+ display_currency: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The display currency", alias="displayCurrency")
72
+ supplier_currency: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The supplier currency", alias="supplierCurrency")
73
+ internal_currency: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The internal currency", alias="internalCurrency")
74
+ capture_currency: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The capture currency", alias="captureCurrency")
75
+ source_amount: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="The total initial price as quoted in the original TripPay contract.", alias="sourceAmount")
76
+ display_amount: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="The total display price.", alias="displayAmount")
77
+ supplier_amount: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="The total supplier price.", alias="supplierAmount")
78
+ internal_amount: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(alias="internalAmount")
79
+ capture_amount: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="The total capture price.", alias="captureAmount")
80
+ source_amount_refund_modifier: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The source amount still due after a partial refund occurs.", alias="sourceAmountRefundModifier")
81
+ display_amount_refund_modifier: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The display amount still due after a partial refund occurs.", alias="displayAmountRefundModifier")
82
+ supplier_amount_refund_modifier: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The supplier amount still due after a partial refund occurs.", alias="supplierAmountRefundModifier")
83
+ internal_amount_refund_modifier: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The internal amount still due after a partial refund occurs.", alias="internalAmountRefundModifier")
84
+ capture_amount_refund_modifier: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The capture amount still due after a partial refund occurs.", alias="captureAmountRefundModifier")
85
+ net_source_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The total initial price as quoted in the original TripPay contract.", alias="netSourceAmount")
86
+ net_display_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The total display price.", alias="netDisplayAmount")
87
+ net_supplier_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The total supplier price.", alias="netSupplierAmount")
88
+ net_internal_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="netInternalAmount")
89
+ net_capture_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The total capture price.", alias="netCaptureAmount")
90
+ metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="Place to add more data related to the booking contract.")
91
+ net_commissionable_total_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency the affiliate is owed.", alias="netCommissionableTotalSourceAmount")
92
+ net_commissionable_total_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="netCommissionableTotalCaptureAmount")
93
+ net_commissionable_total_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="netCommissionableTotalDisplayAmount")
94
+ net_commissionable_total_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="netCommissionableTotalSupplierAmount")
95
+ net_commissionable_total_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="netCommissionableTotalInternalAmount")
96
+ net_total_fees_and_commissions_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="netTotalFeesAndCommissionsSourceAmount")
97
+ net_total_fees_and_commissions_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="netTotalFeesAndCommissionsCaptureAmount")
98
+ net_total_fees_and_commissions_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="netTotalFeesAndCommissionsDisplayAmount")
99
+ net_total_fees_and_commissions_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="netTotalFeesAndCommissionsSupplierAmount")
100
+ net_total_fees_and_commissions_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="netTotalFeesAndCommissionsInternalAmount")
101
+ net_total_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="netTotalFeesSourceAmount")
102
+ net_total_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="netTotalFeesCaptureAmount")
103
+ net_total_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="netTotalFeesDisplayAmount")
104
+ net_total_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="netTotalFeesSupplierAmount")
105
+ net_total_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="netTotalFeesInternalAmount")
106
+ net_total_trip_pay_fee_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="netTotalTripPayFeeSourceAmount")
107
+ net_total_trip_pay_fee_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="netTotalTripPayFeeCaptureAmount")
108
+ net_total_trip_pay_fee_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="netTotalTripPayFeeDisplayAmount")
109
+ net_total_trip_pay_fee_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="netTotalTripPayFeeSupplierAmount")
110
+ net_total_trip_pay_fee_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="netTotalTripPayFeeInternalAmount")
111
+ net_total_sales_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="netTotalSalesSourceAmount")
112
+ net_total_sales_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="netTotalSalesCaptureAmount")
113
+ net_total_sales_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="netTotalSalesDisplayAmount")
114
+ net_total_sales_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="netTotalSalesSupplierAmount")
115
+ net_total_sales_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="netTotalSalesInternalAmount")
116
+ commissionable_total_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency the affiliate is owed.", alias="commissionableTotalSourceAmount")
117
+ commissionable_total_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="commissionableTotalCaptureAmount")
118
+ commissionable_total_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="commissionableTotalDisplayAmount")
119
+ commissionable_total_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="commissionableTotalSupplierAmount")
120
+ commissionable_total_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="commissionableTotalInternalAmount")
121
+ total_fees_and_commissions_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="totalFeesAndCommissionsSourceAmount")
122
+ total_fees_and_commissions_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="totalFeesAndCommissionsCaptureAmount")
123
+ total_fees_and_commissions_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="totalFeesAndCommissionsDisplayAmount")
124
+ total_fees_and_commissions_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="totalFeesAndCommissionsSupplierAmount")
125
+ total_fees_and_commissions_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="totalFeesAndCommissionsInternalAmount")
126
+ total_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="totalFeesSourceAmount")
127
+ total_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="totalFeesCaptureAmount")
128
+ total_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="totalFeesDisplayAmount")
129
+ total_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="totalFeesSupplierAmount")
130
+ total_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="totalFeesInternalAmount")
131
+ total_trip_pay_fee_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="totalTripPayFeeSourceAmount")
132
+ total_trip_pay_fee_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="totalTripPayFeeCaptureAmount")
133
+ total_trip_pay_fee_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="totalTripPayFeeDisplayAmount")
134
+ total_trip_pay_fee_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="totalTripPayFeeSupplierAmount")
135
+ total_trip_pay_fee_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="totalTripPayFeeInternalAmount")
136
+ total_sales_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="totalSalesSourceAmount")
137
+ total_sales_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="totalSalesCaptureAmount")
138
+ total_sales_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="totalSalesDisplayAmount")
139
+ total_sales_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="totalSalesSupplierAmount")
140
+ total_sales_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="totalSalesInternalAmount")
141
+ funds_available_date: Optional[date] = Field(default=None, description="Returns the date the funds will be released to the customer.", alias="fundsAvailableDate")
142
+ total_fees_in_percent_with_refund: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE", alias="totalFeesInPercentWithRefund")
143
+ total_fees_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE before a refund was applied", alias="totalFeesInPercent")
144
+ total_trip_pay_fee_in_percent_with_refund: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE", alias="totalTripPayFeeInPercentWithRefund")
145
+ total_trip_pay_fee_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE before a refund was applied", alias="totalTripPayFeeInPercent")
146
+ total_commissions_in_percent_with_refund: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE", alias="totalCommissionsInPercentWithRefund")
147
+ total_commissions_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE before a refund was applied", alias="totalCommissionsInPercent")
148
+ total_fees_and_commissions_in_percent_with_refund: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE", alias="totalFeesAndCommissionsInPercentWithRefund")
149
+ total_fees_and_commissions_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE before a refund was applied", alias="totalFeesAndCommissionsInPercent")
150
+ original_fees_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE before a refund was applied", alias="originalFeesInPercent")
151
+ original_affiliate_agency_fees_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Affiliate agent fee in percent", alias="originalAffiliateAgencyFeesInPercent")
152
+ original_supplier_agency_fees_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Supplier agent fee in percent", alias="originalSupplierAgencyFeesInPercent")
153
+ original_commissions_in_percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All amounts that are not of type SALE before a refund was applied", alias="originalCommissionsInPercent")
154
+ net_total_customers_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency that is fees and commission.", alias="netTotalCustomersSourceAmount")
155
+ net_total_customers_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency the affiliate is owed.", alias="netTotalCustomersCaptureAmount")
156
+ net_total_customers_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency the affiliate is owed.", alias="netTotalCustomersDisplayAmount")
157
+ net_total_customers_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency the affiliate is owed.", alias="netTotalCustomersSupplierAmount")
158
+ net_total_customers_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency the affiliate is owed.", alias="netTotalCustomersInternalAmount")
159
+ total_affiliate_agency_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency owed affiliate agency.", alias="totalAffiliateAgencyFeesSourceAmount")
160
+ total_affiliate_agency_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency owed affiliate agency.", alias="totalAffiliateAgencyFeesCaptureAmount")
161
+ total_affiliate_agency_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency owed affiliate agency.", alias="totalAffiliateAgencyFeesDisplayAmount")
162
+ total_affiliate_agency_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency owed affiliate agency.", alias="totalAffiliateAgencyFeesSupplierAmount")
163
+ total_affiliate_agency_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency owed affiliate agency.", alias="totalAffiliateAgencyFeesInternalAmount")
164
+ total_supplier_agency_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency owed supplier agency.", alias="totalSupplierAgencyFeesSourceAmount")
165
+ total_supplier_agency_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency owed supplier agency.", alias="totalSupplierAgencyFeesCaptureAmount")
166
+ total_supplier_agency_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency owed supplier agency.", alias="totalSupplierAgencyFeesDisplayAmount")
167
+ total_supplier_agency_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency owed supplier agency.", alias="totalSupplierAgencyFeesSupplierAmount")
168
+ total_supplier_agency_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency owed supplier agency.", alias="totalSupplierAgencyFeesInternalAmount")
169
+ net_total_affiliate_agency_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency owed affiliate agency.", alias="netTotalAffiliateAgencyFeesSourceAmount")
170
+ net_total_affiliate_agency_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency owed affiliate agency.", alias="netTotalAffiliateAgencyFeesCaptureAmount")
171
+ net_total_affiliate_agency_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency owed affiliate agency.", alias="netTotalAffiliateAgencyFeesDisplayAmount")
172
+ net_total_affiliate_agency_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency owed affiliate agency.", alias="netTotalAffiliateAgencyFeesSupplierAmount")
173
+ net_total_affiliate_agency_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency owed affiliate agency.", alias="netTotalAffiliateAgencyFeesInternalAmount")
174
+ net_total_supplier_agency_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in source currency owed supplier agency.", alias="netTotalSupplierAgencyFeesSourceAmount")
175
+ net_total_supplier_agency_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in capture currency owed supplier agency.", alias="netTotalSupplierAgencyFeesCaptureAmount")
176
+ net_total_supplier_agency_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in display currency owed supplier agency.", alias="netTotalSupplierAgencyFeesDisplayAmount")
177
+ net_total_supplier_agency_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in supplier currency owed supplier agency.", alias="netTotalSupplierAgencyFeesSupplierAmount")
178
+ net_total_supplier_agency_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, description="Returns the total amount in internal currency owed supplier agency.", alias="netTotalSupplierAgencyFeesInternalAmount")
179
+ has_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether any refund in any state is present.", alias="hasRefunds")
180
+ has_successful_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether a successful refund is present.", alias="hasSuccessfulRefunds")
181
+ has_pending_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether a pending refund is present.", alias="hasPendingRefunds")
182
+ has_failed_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether a failed refund is present.", alias="hasFailedRefunds")
183
+ platform_identifier: Optional[StrictStr] = Field(default=None, description="Returns the account identifier for the beneficiary taking a platform fee", alias="platformIdentifier")
184
+ total_funds_grouped_by_beneficiary: Optional[List[BeneficiaryAgent]] = Field(default=None, description="Returns all the beneficiaries in this contract with their total amounts", alias="totalFundsGroupedByBeneficiary")
185
+ total_tokens_earned: Optional[StrictInt] = Field(default=None, description="Total amount of tokens minted on this contract.", alias="totalTokensEarned")
186
+ fully_refunded: Optional[StrictBool] = Field(default=None, alias="fullyRefunded")
187
+ self_acquiring: Optional[StrictBool] = Field(default=None, alias="selfAcquiring")
188
+ lodging: Optional[BookingContractItemAgent] = Field(default=None, description="Returns the lodging item only.")
189
+ cancellable_by_agent: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by an agent.", alias="cancellableByAgent")
190
+ cancellable_by_supplier: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by the supplier.", alias="cancellableBySupplier")
191
+ cancellable_by_traveler: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by the traveller.", alias="cancellableByTraveler")
192
+ cancellable_with_no_charges: Optional[StrictBool] = Field(default=None, description="Whether the cancellation comes at no cost to the traveler.", alias="cancellableWithNoCharges")
193
+ is_cancellable_with_potential_charges: Optional[StrictBool] = Field(default=None, description="Whether a cancellation comes with partial charges. I.e. Only some of the items in contract are not fully refundable.", alias="isCancellableWithPotentialCharges")
194
+ __properties: ClassVar[List[str]] = ["bookingContractIdentifier", "createdDate", "lastUpdate", "federatedOrganizationIdentifier", "federatedOrganizationName", "user", "ipAddress", "traceId", "sourceUrl", "identifier", "supplierIdentifier", "supplierName", "displayPriceQuote", "supplierPriceQuote", "internalPriceQuote", "capturePriceQuote", "itemList", "externalSupplierIdentifier", "externalSupplierBookingCode", "payment", "cancelled", "cancelledOn", "canceller", "cancellationType", "cancellerUserIdentifier", "cancelReason", "fundsProcessed", "refunds", "payouts", "sourceCurrency", "displayCurrency", "supplierCurrency", "internalCurrency", "captureCurrency", "sourceAmount", "displayAmount", "supplierAmount", "internalAmount", "captureAmount", "sourceAmountRefundModifier", "displayAmountRefundModifier", "supplierAmountRefundModifier", "internalAmountRefundModifier", "captureAmountRefundModifier", "netSourceAmount", "netDisplayAmount", "netSupplierAmount", "netInternalAmount", "netCaptureAmount", "metadata", "netCommissionableTotalSourceAmount", "netCommissionableTotalCaptureAmount", "netCommissionableTotalDisplayAmount", "netCommissionableTotalSupplierAmount", "netCommissionableTotalInternalAmount", "netTotalFeesAndCommissionsSourceAmount", "netTotalFeesAndCommissionsCaptureAmount", "netTotalFeesAndCommissionsDisplayAmount", "netTotalFeesAndCommissionsSupplierAmount", "netTotalFeesAndCommissionsInternalAmount", "netTotalFeesSourceAmount", "netTotalFeesCaptureAmount", "netTotalFeesDisplayAmount", "netTotalFeesSupplierAmount", "netTotalFeesInternalAmount", "netTotalTripPayFeeSourceAmount", "netTotalTripPayFeeCaptureAmount", "netTotalTripPayFeeDisplayAmount", "netTotalTripPayFeeSupplierAmount", "netTotalTripPayFeeInternalAmount", "netTotalSalesSourceAmount", "netTotalSalesCaptureAmount", "netTotalSalesDisplayAmount", "netTotalSalesSupplierAmount", "netTotalSalesInternalAmount", "commissionableTotalSourceAmount", "commissionableTotalCaptureAmount", "commissionableTotalDisplayAmount", "commissionableTotalSupplierAmount", "commissionableTotalInternalAmount", "totalFeesAndCommissionsSourceAmount", "totalFeesAndCommissionsCaptureAmount", "totalFeesAndCommissionsDisplayAmount", "totalFeesAndCommissionsSupplierAmount", "totalFeesAndCommissionsInternalAmount", "totalFeesSourceAmount", "totalFeesCaptureAmount", "totalFeesDisplayAmount", "totalFeesSupplierAmount", "totalFeesInternalAmount", "totalTripPayFeeSourceAmount", "totalTripPayFeeCaptureAmount", "totalTripPayFeeDisplayAmount", "totalTripPayFeeSupplierAmount", "totalTripPayFeeInternalAmount", "totalSalesSourceAmount", "totalSalesCaptureAmount", "totalSalesDisplayAmount", "totalSalesSupplierAmount", "totalSalesInternalAmount", "fundsAvailableDate", "totalFeesInPercentWithRefund", "totalFeesInPercent", "totalTripPayFeeInPercentWithRefund", "totalTripPayFeeInPercent", "totalCommissionsInPercentWithRefund", "totalCommissionsInPercent", "totalFeesAndCommissionsInPercentWithRefund", "totalFeesAndCommissionsInPercent", "originalFeesInPercent", "originalAffiliateAgencyFeesInPercent", "originalSupplierAgencyFeesInPercent", "originalCommissionsInPercent", "netTotalCustomersSourceAmount", "netTotalCustomersCaptureAmount", "netTotalCustomersDisplayAmount", "netTotalCustomersSupplierAmount", "netTotalCustomersInternalAmount", "totalAffiliateAgencyFeesSourceAmount", "totalAffiliateAgencyFeesCaptureAmount", "totalAffiliateAgencyFeesDisplayAmount", "totalAffiliateAgencyFeesSupplierAmount", "totalAffiliateAgencyFeesInternalAmount", "totalSupplierAgencyFeesSourceAmount", "totalSupplierAgencyFeesCaptureAmount", "totalSupplierAgencyFeesDisplayAmount", "totalSupplierAgencyFeesSupplierAmount", "totalSupplierAgencyFeesInternalAmount", "netTotalAffiliateAgencyFeesSourceAmount", "netTotalAffiliateAgencyFeesCaptureAmount", "netTotalAffiliateAgencyFeesDisplayAmount", "netTotalAffiliateAgencyFeesSupplierAmount", "netTotalAffiliateAgencyFeesInternalAmount", "netTotalSupplierAgencyFeesSourceAmount", "netTotalSupplierAgencyFeesCaptureAmount", "netTotalSupplierAgencyFeesDisplayAmount", "netTotalSupplierAgencyFeesSupplierAmount", "netTotalSupplierAgencyFeesInternalAmount", "hasRefunds", "hasSuccessfulRefunds", "hasPendingRefunds", "hasFailedRefunds", "platformIdentifier", "totalFundsGroupedByBeneficiary", "totalTokensEarned", "fullyRefunded", "selfAcquiring", "lodging", "cancellableByAgent", "cancellableBySupplier", "cancellableByTraveler", "cancellableWithNoCharges", "isCancellableWithPotentialCharges"]
195
+
196
+ @field_validator('canceller')
197
+ def canceller_validate_enum(cls, value):
198
+ """Validates the enum"""
199
+ if value is None:
200
+ return value
201
+
202
+ if value not in set(['SALES_CHANNEL', 'SUPPLIER', 'TRAVELER', 'ACQUIRER', 'ADMINISTRATOR']):
203
+ raise ValueError("must be one of enum values ('SALES_CHANNEL', 'SUPPLIER', 'TRAVELER', 'ACQUIRER', 'ADMINISTRATOR')")
204
+ return value
205
+
206
+ @field_validator('cancellation_type')
207
+ def cancellation_type_validate_enum(cls, value):
208
+ """Validates the enum"""
209
+ if value is None:
210
+ return value
211
+
212
+ if value not in set(['DUPLICATE', 'CANCELLATION', 'NO_SHOW', 'CC_INVALID', 'CC_INSUFFICIENT', 'DISCRETIONARY']):
213
+ raise ValueError("must be one of enum values ('DUPLICATE', 'CANCELLATION', 'NO_SHOW', 'CC_INVALID', 'CC_INSUFFICIENT', 'DISCRETIONARY')")
214
+ return value
215
+
216
+ model_config = ConfigDict(
217
+ populate_by_name=True,
218
+ validate_assignment=True,
219
+ protected_namespaces=(),
220
+ )
221
+
222
+
223
+ def to_str(self) -> str:
224
+ """Returns the string representation of the model using alias"""
225
+ return pprint.pformat(self.model_dump(by_alias=True))
226
+
227
+ def to_json(self) -> str:
228
+ """Returns the JSON representation of the model using alias"""
229
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
230
+ return json.dumps(self.to_dict())
231
+
232
+ @classmethod
233
+ def from_json(cls, json_str: str) -> Optional[Self]:
234
+ """Create an instance of BookingContractAgent from a JSON string"""
235
+ return cls.from_dict(json.loads(json_str))
236
+
237
+ def to_dict(self) -> Dict[str, Any]:
238
+ """Return the dictionary representation of the model using alias.
239
+
240
+ This has the following differences from calling pydantic's
241
+ `self.model_dump(by_alias=True)`:
242
+
243
+ * `None` is only added to the output dict for nullable fields that
244
+ were set at model initialization. Other fields with value `None`
245
+ are ignored.
246
+ """
247
+ excluded_fields: Set[str] = set([
248
+ ])
249
+
250
+ _dict = self.model_dump(
251
+ by_alias=True,
252
+ exclude=excluded_fields,
253
+ exclude_none=True,
254
+ )
255
+ # override the default output from pydantic by calling `to_dict()` of user
256
+ if self.user:
257
+ _dict['user'] = self.user.to_dict()
258
+ # override the default output from pydantic by calling `to_dict()` of display_price_quote
259
+ if self.display_price_quote:
260
+ _dict['displayPriceQuote'] = self.display_price_quote.to_dict()
261
+ # override the default output from pydantic by calling `to_dict()` of supplier_price_quote
262
+ if self.supplier_price_quote:
263
+ _dict['supplierPriceQuote'] = self.supplier_price_quote.to_dict()
264
+ # override the default output from pydantic by calling `to_dict()` of internal_price_quote
265
+ if self.internal_price_quote:
266
+ _dict['internalPriceQuote'] = self.internal_price_quote.to_dict()
267
+ # override the default output from pydantic by calling `to_dict()` of capture_price_quote
268
+ if self.capture_price_quote:
269
+ _dict['capturePriceQuote'] = self.capture_price_quote.to_dict()
270
+ # override the default output from pydantic by calling `to_dict()` of each item in item_list (list)
271
+ _items = []
272
+ if self.item_list:
273
+ for _item_item_list in self.item_list:
274
+ if _item_item_list:
275
+ _items.append(_item_item_list.to_dict())
276
+ _dict['itemList'] = _items
277
+ # override the default output from pydantic by calling `to_dict()` of payment
278
+ if self.payment:
279
+ _dict['payment'] = self.payment.to_dict()
280
+ # override the default output from pydantic by calling `to_dict()` of each item in refunds (list)
281
+ _items = []
282
+ if self.refunds:
283
+ for _item_refunds in self.refunds:
284
+ if _item_refunds:
285
+ _items.append(_item_refunds.to_dict())
286
+ _dict['refunds'] = _items
287
+ # override the default output from pydantic by calling `to_dict()` of each item in payouts (list)
288
+ _items = []
289
+ if self.payouts:
290
+ for _item_payouts in self.payouts:
291
+ if _item_payouts:
292
+ _items.append(_item_payouts.to_dict())
293
+ _dict['payouts'] = _items
294
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_source_amount
295
+ if self.net_commissionable_total_source_amount:
296
+ _dict['netCommissionableTotalSourceAmount'] = self.net_commissionable_total_source_amount.to_dict()
297
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_capture_amount
298
+ if self.net_commissionable_total_capture_amount:
299
+ _dict['netCommissionableTotalCaptureAmount'] = self.net_commissionable_total_capture_amount.to_dict()
300
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_display_amount
301
+ if self.net_commissionable_total_display_amount:
302
+ _dict['netCommissionableTotalDisplayAmount'] = self.net_commissionable_total_display_amount.to_dict()
303
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_supplier_amount
304
+ if self.net_commissionable_total_supplier_amount:
305
+ _dict['netCommissionableTotalSupplierAmount'] = self.net_commissionable_total_supplier_amount.to_dict()
306
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_internal_amount
307
+ if self.net_commissionable_total_internal_amount:
308
+ _dict['netCommissionableTotalInternalAmount'] = self.net_commissionable_total_internal_amount.to_dict()
309
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_source_amount
310
+ if self.net_total_fees_and_commissions_source_amount:
311
+ _dict['netTotalFeesAndCommissionsSourceAmount'] = self.net_total_fees_and_commissions_source_amount.to_dict()
312
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_capture_amount
313
+ if self.net_total_fees_and_commissions_capture_amount:
314
+ _dict['netTotalFeesAndCommissionsCaptureAmount'] = self.net_total_fees_and_commissions_capture_amount.to_dict()
315
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_display_amount
316
+ if self.net_total_fees_and_commissions_display_amount:
317
+ _dict['netTotalFeesAndCommissionsDisplayAmount'] = self.net_total_fees_and_commissions_display_amount.to_dict()
318
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_supplier_amount
319
+ if self.net_total_fees_and_commissions_supplier_amount:
320
+ _dict['netTotalFeesAndCommissionsSupplierAmount'] = self.net_total_fees_and_commissions_supplier_amount.to_dict()
321
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_internal_amount
322
+ if self.net_total_fees_and_commissions_internal_amount:
323
+ _dict['netTotalFeesAndCommissionsInternalAmount'] = self.net_total_fees_and_commissions_internal_amount.to_dict()
324
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_source_amount
325
+ if self.net_total_fees_source_amount:
326
+ _dict['netTotalFeesSourceAmount'] = self.net_total_fees_source_amount.to_dict()
327
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_capture_amount
328
+ if self.net_total_fees_capture_amount:
329
+ _dict['netTotalFeesCaptureAmount'] = self.net_total_fees_capture_amount.to_dict()
330
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_display_amount
331
+ if self.net_total_fees_display_amount:
332
+ _dict['netTotalFeesDisplayAmount'] = self.net_total_fees_display_amount.to_dict()
333
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_supplier_amount
334
+ if self.net_total_fees_supplier_amount:
335
+ _dict['netTotalFeesSupplierAmount'] = self.net_total_fees_supplier_amount.to_dict()
336
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_internal_amount
337
+ if self.net_total_fees_internal_amount:
338
+ _dict['netTotalFeesInternalAmount'] = self.net_total_fees_internal_amount.to_dict()
339
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_source_amount
340
+ if self.net_total_trip_pay_fee_source_amount:
341
+ _dict['netTotalTripPayFeeSourceAmount'] = self.net_total_trip_pay_fee_source_amount.to_dict()
342
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_capture_amount
343
+ if self.net_total_trip_pay_fee_capture_amount:
344
+ _dict['netTotalTripPayFeeCaptureAmount'] = self.net_total_trip_pay_fee_capture_amount.to_dict()
345
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_display_amount
346
+ if self.net_total_trip_pay_fee_display_amount:
347
+ _dict['netTotalTripPayFeeDisplayAmount'] = self.net_total_trip_pay_fee_display_amount.to_dict()
348
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_supplier_amount
349
+ if self.net_total_trip_pay_fee_supplier_amount:
350
+ _dict['netTotalTripPayFeeSupplierAmount'] = self.net_total_trip_pay_fee_supplier_amount.to_dict()
351
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_internal_amount
352
+ if self.net_total_trip_pay_fee_internal_amount:
353
+ _dict['netTotalTripPayFeeInternalAmount'] = self.net_total_trip_pay_fee_internal_amount.to_dict()
354
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_source_amount
355
+ if self.net_total_sales_source_amount:
356
+ _dict['netTotalSalesSourceAmount'] = self.net_total_sales_source_amount.to_dict()
357
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_capture_amount
358
+ if self.net_total_sales_capture_amount:
359
+ _dict['netTotalSalesCaptureAmount'] = self.net_total_sales_capture_amount.to_dict()
360
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_display_amount
361
+ if self.net_total_sales_display_amount:
362
+ _dict['netTotalSalesDisplayAmount'] = self.net_total_sales_display_amount.to_dict()
363
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_supplier_amount
364
+ if self.net_total_sales_supplier_amount:
365
+ _dict['netTotalSalesSupplierAmount'] = self.net_total_sales_supplier_amount.to_dict()
366
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_internal_amount
367
+ if self.net_total_sales_internal_amount:
368
+ _dict['netTotalSalesInternalAmount'] = self.net_total_sales_internal_amount.to_dict()
369
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_source_amount
370
+ if self.commissionable_total_source_amount:
371
+ _dict['commissionableTotalSourceAmount'] = self.commissionable_total_source_amount.to_dict()
372
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_capture_amount
373
+ if self.commissionable_total_capture_amount:
374
+ _dict['commissionableTotalCaptureAmount'] = self.commissionable_total_capture_amount.to_dict()
375
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_display_amount
376
+ if self.commissionable_total_display_amount:
377
+ _dict['commissionableTotalDisplayAmount'] = self.commissionable_total_display_amount.to_dict()
378
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_supplier_amount
379
+ if self.commissionable_total_supplier_amount:
380
+ _dict['commissionableTotalSupplierAmount'] = self.commissionable_total_supplier_amount.to_dict()
381
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_internal_amount
382
+ if self.commissionable_total_internal_amount:
383
+ _dict['commissionableTotalInternalAmount'] = self.commissionable_total_internal_amount.to_dict()
384
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_source_amount
385
+ if self.total_fees_and_commissions_source_amount:
386
+ _dict['totalFeesAndCommissionsSourceAmount'] = self.total_fees_and_commissions_source_amount.to_dict()
387
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_capture_amount
388
+ if self.total_fees_and_commissions_capture_amount:
389
+ _dict['totalFeesAndCommissionsCaptureAmount'] = self.total_fees_and_commissions_capture_amount.to_dict()
390
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_display_amount
391
+ if self.total_fees_and_commissions_display_amount:
392
+ _dict['totalFeesAndCommissionsDisplayAmount'] = self.total_fees_and_commissions_display_amount.to_dict()
393
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_supplier_amount
394
+ if self.total_fees_and_commissions_supplier_amount:
395
+ _dict['totalFeesAndCommissionsSupplierAmount'] = self.total_fees_and_commissions_supplier_amount.to_dict()
396
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_internal_amount
397
+ if self.total_fees_and_commissions_internal_amount:
398
+ _dict['totalFeesAndCommissionsInternalAmount'] = self.total_fees_and_commissions_internal_amount.to_dict()
399
+ # override the default output from pydantic by calling `to_dict()` of total_fees_source_amount
400
+ if self.total_fees_source_amount:
401
+ _dict['totalFeesSourceAmount'] = self.total_fees_source_amount.to_dict()
402
+ # override the default output from pydantic by calling `to_dict()` of total_fees_capture_amount
403
+ if self.total_fees_capture_amount:
404
+ _dict['totalFeesCaptureAmount'] = self.total_fees_capture_amount.to_dict()
405
+ # override the default output from pydantic by calling `to_dict()` of total_fees_display_amount
406
+ if self.total_fees_display_amount:
407
+ _dict['totalFeesDisplayAmount'] = self.total_fees_display_amount.to_dict()
408
+ # override the default output from pydantic by calling `to_dict()` of total_fees_supplier_amount
409
+ if self.total_fees_supplier_amount:
410
+ _dict['totalFeesSupplierAmount'] = self.total_fees_supplier_amount.to_dict()
411
+ # override the default output from pydantic by calling `to_dict()` of total_fees_internal_amount
412
+ if self.total_fees_internal_amount:
413
+ _dict['totalFeesInternalAmount'] = self.total_fees_internal_amount.to_dict()
414
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_source_amount
415
+ if self.total_trip_pay_fee_source_amount:
416
+ _dict['totalTripPayFeeSourceAmount'] = self.total_trip_pay_fee_source_amount.to_dict()
417
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_capture_amount
418
+ if self.total_trip_pay_fee_capture_amount:
419
+ _dict['totalTripPayFeeCaptureAmount'] = self.total_trip_pay_fee_capture_amount.to_dict()
420
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_display_amount
421
+ if self.total_trip_pay_fee_display_amount:
422
+ _dict['totalTripPayFeeDisplayAmount'] = self.total_trip_pay_fee_display_amount.to_dict()
423
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_supplier_amount
424
+ if self.total_trip_pay_fee_supplier_amount:
425
+ _dict['totalTripPayFeeSupplierAmount'] = self.total_trip_pay_fee_supplier_amount.to_dict()
426
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_internal_amount
427
+ if self.total_trip_pay_fee_internal_amount:
428
+ _dict['totalTripPayFeeInternalAmount'] = self.total_trip_pay_fee_internal_amount.to_dict()
429
+ # override the default output from pydantic by calling `to_dict()` of total_sales_source_amount
430
+ if self.total_sales_source_amount:
431
+ _dict['totalSalesSourceAmount'] = self.total_sales_source_amount.to_dict()
432
+ # override the default output from pydantic by calling `to_dict()` of total_sales_capture_amount
433
+ if self.total_sales_capture_amount:
434
+ _dict['totalSalesCaptureAmount'] = self.total_sales_capture_amount.to_dict()
435
+ # override the default output from pydantic by calling `to_dict()` of total_sales_display_amount
436
+ if self.total_sales_display_amount:
437
+ _dict['totalSalesDisplayAmount'] = self.total_sales_display_amount.to_dict()
438
+ # override the default output from pydantic by calling `to_dict()` of total_sales_supplier_amount
439
+ if self.total_sales_supplier_amount:
440
+ _dict['totalSalesSupplierAmount'] = self.total_sales_supplier_amount.to_dict()
441
+ # override the default output from pydantic by calling `to_dict()` of total_sales_internal_amount
442
+ if self.total_sales_internal_amount:
443
+ _dict['totalSalesInternalAmount'] = self.total_sales_internal_amount.to_dict()
444
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_source_amount
445
+ if self.net_total_customers_source_amount:
446
+ _dict['netTotalCustomersSourceAmount'] = self.net_total_customers_source_amount.to_dict()
447
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_capture_amount
448
+ if self.net_total_customers_capture_amount:
449
+ _dict['netTotalCustomersCaptureAmount'] = self.net_total_customers_capture_amount.to_dict()
450
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_display_amount
451
+ if self.net_total_customers_display_amount:
452
+ _dict['netTotalCustomersDisplayAmount'] = self.net_total_customers_display_amount.to_dict()
453
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_supplier_amount
454
+ if self.net_total_customers_supplier_amount:
455
+ _dict['netTotalCustomersSupplierAmount'] = self.net_total_customers_supplier_amount.to_dict()
456
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_internal_amount
457
+ if self.net_total_customers_internal_amount:
458
+ _dict['netTotalCustomersInternalAmount'] = self.net_total_customers_internal_amount.to_dict()
459
+ # override the default output from pydantic by calling `to_dict()` of total_affiliate_agency_fees_source_amount
460
+ if self.total_affiliate_agency_fees_source_amount:
461
+ _dict['totalAffiliateAgencyFeesSourceAmount'] = self.total_affiliate_agency_fees_source_amount.to_dict()
462
+ # override the default output from pydantic by calling `to_dict()` of total_affiliate_agency_fees_capture_amount
463
+ if self.total_affiliate_agency_fees_capture_amount:
464
+ _dict['totalAffiliateAgencyFeesCaptureAmount'] = self.total_affiliate_agency_fees_capture_amount.to_dict()
465
+ # override the default output from pydantic by calling `to_dict()` of total_affiliate_agency_fees_display_amount
466
+ if self.total_affiliate_agency_fees_display_amount:
467
+ _dict['totalAffiliateAgencyFeesDisplayAmount'] = self.total_affiliate_agency_fees_display_amount.to_dict()
468
+ # override the default output from pydantic by calling `to_dict()` of total_affiliate_agency_fees_supplier_amount
469
+ if self.total_affiliate_agency_fees_supplier_amount:
470
+ _dict['totalAffiliateAgencyFeesSupplierAmount'] = self.total_affiliate_agency_fees_supplier_amount.to_dict()
471
+ # override the default output from pydantic by calling `to_dict()` of total_affiliate_agency_fees_internal_amount
472
+ if self.total_affiliate_agency_fees_internal_amount:
473
+ _dict['totalAffiliateAgencyFeesInternalAmount'] = self.total_affiliate_agency_fees_internal_amount.to_dict()
474
+ # override the default output from pydantic by calling `to_dict()` of total_supplier_agency_fees_source_amount
475
+ if self.total_supplier_agency_fees_source_amount:
476
+ _dict['totalSupplierAgencyFeesSourceAmount'] = self.total_supplier_agency_fees_source_amount.to_dict()
477
+ # override the default output from pydantic by calling `to_dict()` of total_supplier_agency_fees_capture_amount
478
+ if self.total_supplier_agency_fees_capture_amount:
479
+ _dict['totalSupplierAgencyFeesCaptureAmount'] = self.total_supplier_agency_fees_capture_amount.to_dict()
480
+ # override the default output from pydantic by calling `to_dict()` of total_supplier_agency_fees_display_amount
481
+ if self.total_supplier_agency_fees_display_amount:
482
+ _dict['totalSupplierAgencyFeesDisplayAmount'] = self.total_supplier_agency_fees_display_amount.to_dict()
483
+ # override the default output from pydantic by calling `to_dict()` of total_supplier_agency_fees_supplier_amount
484
+ if self.total_supplier_agency_fees_supplier_amount:
485
+ _dict['totalSupplierAgencyFeesSupplierAmount'] = self.total_supplier_agency_fees_supplier_amount.to_dict()
486
+ # override the default output from pydantic by calling `to_dict()` of total_supplier_agency_fees_internal_amount
487
+ if self.total_supplier_agency_fees_internal_amount:
488
+ _dict['totalSupplierAgencyFeesInternalAmount'] = self.total_supplier_agency_fees_internal_amount.to_dict()
489
+ # override the default output from pydantic by calling `to_dict()` of net_total_affiliate_agency_fees_source_amount
490
+ if self.net_total_affiliate_agency_fees_source_amount:
491
+ _dict['netTotalAffiliateAgencyFeesSourceAmount'] = self.net_total_affiliate_agency_fees_source_amount.to_dict()
492
+ # override the default output from pydantic by calling `to_dict()` of net_total_affiliate_agency_fees_capture_amount
493
+ if self.net_total_affiliate_agency_fees_capture_amount:
494
+ _dict['netTotalAffiliateAgencyFeesCaptureAmount'] = self.net_total_affiliate_agency_fees_capture_amount.to_dict()
495
+ # override the default output from pydantic by calling `to_dict()` of net_total_affiliate_agency_fees_display_amount
496
+ if self.net_total_affiliate_agency_fees_display_amount:
497
+ _dict['netTotalAffiliateAgencyFeesDisplayAmount'] = self.net_total_affiliate_agency_fees_display_amount.to_dict()
498
+ # override the default output from pydantic by calling `to_dict()` of net_total_affiliate_agency_fees_supplier_amount
499
+ if self.net_total_affiliate_agency_fees_supplier_amount:
500
+ _dict['netTotalAffiliateAgencyFeesSupplierAmount'] = self.net_total_affiliate_agency_fees_supplier_amount.to_dict()
501
+ # override the default output from pydantic by calling `to_dict()` of net_total_affiliate_agency_fees_internal_amount
502
+ if self.net_total_affiliate_agency_fees_internal_amount:
503
+ _dict['netTotalAffiliateAgencyFeesInternalAmount'] = self.net_total_affiliate_agency_fees_internal_amount.to_dict()
504
+ # override the default output from pydantic by calling `to_dict()` of net_total_supplier_agency_fees_source_amount
505
+ if self.net_total_supplier_agency_fees_source_amount:
506
+ _dict['netTotalSupplierAgencyFeesSourceAmount'] = self.net_total_supplier_agency_fees_source_amount.to_dict()
507
+ # override the default output from pydantic by calling `to_dict()` of net_total_supplier_agency_fees_capture_amount
508
+ if self.net_total_supplier_agency_fees_capture_amount:
509
+ _dict['netTotalSupplierAgencyFeesCaptureAmount'] = self.net_total_supplier_agency_fees_capture_amount.to_dict()
510
+ # override the default output from pydantic by calling `to_dict()` of net_total_supplier_agency_fees_display_amount
511
+ if self.net_total_supplier_agency_fees_display_amount:
512
+ _dict['netTotalSupplierAgencyFeesDisplayAmount'] = self.net_total_supplier_agency_fees_display_amount.to_dict()
513
+ # override the default output from pydantic by calling `to_dict()` of net_total_supplier_agency_fees_supplier_amount
514
+ if self.net_total_supplier_agency_fees_supplier_amount:
515
+ _dict['netTotalSupplierAgencyFeesSupplierAmount'] = self.net_total_supplier_agency_fees_supplier_amount.to_dict()
516
+ # override the default output from pydantic by calling `to_dict()` of net_total_supplier_agency_fees_internal_amount
517
+ if self.net_total_supplier_agency_fees_internal_amount:
518
+ _dict['netTotalSupplierAgencyFeesInternalAmount'] = self.net_total_supplier_agency_fees_internal_amount.to_dict()
519
+ # override the default output from pydantic by calling `to_dict()` of each item in total_funds_grouped_by_beneficiary (list)
520
+ _items = []
521
+ if self.total_funds_grouped_by_beneficiary:
522
+ for _item_total_funds_grouped_by_beneficiary in self.total_funds_grouped_by_beneficiary:
523
+ if _item_total_funds_grouped_by_beneficiary:
524
+ _items.append(_item_total_funds_grouped_by_beneficiary.to_dict())
525
+ _dict['totalFundsGroupedByBeneficiary'] = _items
526
+ # override the default output from pydantic by calling `to_dict()` of lodging
527
+ if self.lodging:
528
+ _dict['lodging'] = self.lodging.to_dict()
529
+ return _dict
530
+
531
+ @classmethod
532
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
533
+ """Create an instance of BookingContractAgent from a dict"""
534
+ if obj is None:
535
+ return None
536
+
537
+ if not isinstance(obj, dict):
538
+ return cls.model_validate(obj)
539
+
540
+ _obj = cls.model_validate({
541
+ "bookingContractIdentifier": obj.get("bookingContractIdentifier"),
542
+ "createdDate": obj.get("createdDate"),
543
+ "lastUpdate": obj.get("lastUpdate"),
544
+ "federatedOrganizationIdentifier": obj.get("federatedOrganizationIdentifier"),
545
+ "federatedOrganizationName": obj.get("federatedOrganizationName"),
546
+ "user": AuthenticatedUserAgent.from_dict(obj["user"]) if obj.get("user") is not None else None,
547
+ "ipAddress": obj.get("ipAddress"),
548
+ "traceId": obj.get("traceId"),
549
+ "sourceUrl": obj.get("sourceUrl"),
550
+ "identifier": obj.get("identifier"),
551
+ "supplierIdentifier": obj.get("supplierIdentifier"),
552
+ "supplierName": obj.get("supplierName"),
553
+ "displayPriceQuote": QuoteLightweightAgent.from_dict(obj["displayPriceQuote"]) if obj.get("displayPriceQuote") is not None else None,
554
+ "supplierPriceQuote": QuoteLightweightAgent.from_dict(obj["supplierPriceQuote"]) if obj.get("supplierPriceQuote") is not None else None,
555
+ "internalPriceQuote": QuoteLightweightAgent.from_dict(obj["internalPriceQuote"]) if obj.get("internalPriceQuote") is not None else None,
556
+ "capturePriceQuote": QuoteLightweightAgent.from_dict(obj["capturePriceQuote"]) if obj.get("capturePriceQuote") is not None else None,
557
+ "itemList": [BookingContractItemAgent.from_dict(_item) for _item in obj["itemList"]] if obj.get("itemList") is not None else None,
558
+ "externalSupplierIdentifier": obj.get("externalSupplierIdentifier"),
559
+ "externalSupplierBookingCode": obj.get("externalSupplierBookingCode"),
560
+ "payment": BookingContractPaymentDetailsAgent.from_dict(obj["payment"]) if obj.get("payment") is not None else None,
561
+ "cancelled": obj.get("cancelled") if obj.get("cancelled") is not None else False,
562
+ "cancelledOn": obj.get("cancelledOn"),
563
+ "canceller": obj.get("canceller"),
564
+ "cancellationType": obj.get("cancellationType"),
565
+ "cancellerUserIdentifier": obj.get("cancellerUserIdentifier"),
566
+ "cancelReason": obj.get("cancelReason"),
567
+ "fundsProcessed": obj.get("fundsProcessed"),
568
+ "refunds": [RefundAgent.from_dict(_item) for _item in obj["refunds"]] if obj.get("refunds") is not None else None,
569
+ "payouts": [PayoutAgent.from_dict(_item) for _item in obj["payouts"]] if obj.get("payouts") is not None else None,
570
+ "sourceCurrency": obj.get("sourceCurrency"),
571
+ "displayCurrency": obj.get("displayCurrency"),
572
+ "supplierCurrency": obj.get("supplierCurrency"),
573
+ "internalCurrency": obj.get("internalCurrency"),
574
+ "captureCurrency": obj.get("captureCurrency"),
575
+ "sourceAmount": obj.get("sourceAmount"),
576
+ "displayAmount": obj.get("displayAmount"),
577
+ "supplierAmount": obj.get("supplierAmount"),
578
+ "internalAmount": obj.get("internalAmount"),
579
+ "captureAmount": obj.get("captureAmount"),
580
+ "sourceAmountRefundModifier": obj.get("sourceAmountRefundModifier"),
581
+ "displayAmountRefundModifier": obj.get("displayAmountRefundModifier"),
582
+ "supplierAmountRefundModifier": obj.get("supplierAmountRefundModifier"),
583
+ "internalAmountRefundModifier": obj.get("internalAmountRefundModifier"),
584
+ "captureAmountRefundModifier": obj.get("captureAmountRefundModifier"),
585
+ "netSourceAmount": obj.get("netSourceAmount"),
586
+ "netDisplayAmount": obj.get("netDisplayAmount"),
587
+ "netSupplierAmount": obj.get("netSupplierAmount"),
588
+ "netInternalAmount": obj.get("netInternalAmount"),
589
+ "netCaptureAmount": obj.get("netCaptureAmount"),
590
+ "metadata": obj.get("metadata"),
591
+ "netCommissionableTotalSourceAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalSourceAmount"]) if obj.get("netCommissionableTotalSourceAmount") is not None else None,
592
+ "netCommissionableTotalCaptureAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalCaptureAmount"]) if obj.get("netCommissionableTotalCaptureAmount") is not None else None,
593
+ "netCommissionableTotalDisplayAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalDisplayAmount"]) if obj.get("netCommissionableTotalDisplayAmount") is not None else None,
594
+ "netCommissionableTotalSupplierAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalSupplierAmount"]) if obj.get("netCommissionableTotalSupplierAmount") is not None else None,
595
+ "netCommissionableTotalInternalAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalInternalAmount"]) if obj.get("netCommissionableTotalInternalAmount") is not None else None,
596
+ "netTotalFeesAndCommissionsSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsSourceAmount"]) if obj.get("netTotalFeesAndCommissionsSourceAmount") is not None else None,
597
+ "netTotalFeesAndCommissionsCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsCaptureAmount"]) if obj.get("netTotalFeesAndCommissionsCaptureAmount") is not None else None,
598
+ "netTotalFeesAndCommissionsDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsDisplayAmount"]) if obj.get("netTotalFeesAndCommissionsDisplayAmount") is not None else None,
599
+ "netTotalFeesAndCommissionsSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsSupplierAmount"]) if obj.get("netTotalFeesAndCommissionsSupplierAmount") is not None else None,
600
+ "netTotalFeesAndCommissionsInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsInternalAmount"]) if obj.get("netTotalFeesAndCommissionsInternalAmount") is not None else None,
601
+ "netTotalFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesSourceAmount"]) if obj.get("netTotalFeesSourceAmount") is not None else None,
602
+ "netTotalFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesCaptureAmount"]) if obj.get("netTotalFeesCaptureAmount") is not None else None,
603
+ "netTotalFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesDisplayAmount"]) if obj.get("netTotalFeesDisplayAmount") is not None else None,
604
+ "netTotalFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesSupplierAmount"]) if obj.get("netTotalFeesSupplierAmount") is not None else None,
605
+ "netTotalFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesInternalAmount"]) if obj.get("netTotalFeesInternalAmount") is not None else None,
606
+ "netTotalTripPayFeeSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeSourceAmount"]) if obj.get("netTotalTripPayFeeSourceAmount") is not None else None,
607
+ "netTotalTripPayFeeCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeCaptureAmount"]) if obj.get("netTotalTripPayFeeCaptureAmount") is not None else None,
608
+ "netTotalTripPayFeeDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeDisplayAmount"]) if obj.get("netTotalTripPayFeeDisplayAmount") is not None else None,
609
+ "netTotalTripPayFeeSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeSupplierAmount"]) if obj.get("netTotalTripPayFeeSupplierAmount") is not None else None,
610
+ "netTotalTripPayFeeInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeInternalAmount"]) if obj.get("netTotalTripPayFeeInternalAmount") is not None else None,
611
+ "netTotalSalesSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesSourceAmount"]) if obj.get("netTotalSalesSourceAmount") is not None else None,
612
+ "netTotalSalesCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesCaptureAmount"]) if obj.get("netTotalSalesCaptureAmount") is not None else None,
613
+ "netTotalSalesDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesDisplayAmount"]) if obj.get("netTotalSalesDisplayAmount") is not None else None,
614
+ "netTotalSalesSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesSupplierAmount"]) if obj.get("netTotalSalesSupplierAmount") is not None else None,
615
+ "netTotalSalesInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesInternalAmount"]) if obj.get("netTotalSalesInternalAmount") is not None else None,
616
+ "commissionableTotalSourceAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalSourceAmount"]) if obj.get("commissionableTotalSourceAmount") is not None else None,
617
+ "commissionableTotalCaptureAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalCaptureAmount"]) if obj.get("commissionableTotalCaptureAmount") is not None else None,
618
+ "commissionableTotalDisplayAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalDisplayAmount"]) if obj.get("commissionableTotalDisplayAmount") is not None else None,
619
+ "commissionableTotalSupplierAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalSupplierAmount"]) if obj.get("commissionableTotalSupplierAmount") is not None else None,
620
+ "commissionableTotalInternalAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalInternalAmount"]) if obj.get("commissionableTotalInternalAmount") is not None else None,
621
+ "totalFeesAndCommissionsSourceAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsSourceAmount"]) if obj.get("totalFeesAndCommissionsSourceAmount") is not None else None,
622
+ "totalFeesAndCommissionsCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsCaptureAmount"]) if obj.get("totalFeesAndCommissionsCaptureAmount") is not None else None,
623
+ "totalFeesAndCommissionsDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsDisplayAmount"]) if obj.get("totalFeesAndCommissionsDisplayAmount") is not None else None,
624
+ "totalFeesAndCommissionsSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsSupplierAmount"]) if obj.get("totalFeesAndCommissionsSupplierAmount") is not None else None,
625
+ "totalFeesAndCommissionsInternalAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsInternalAmount"]) if obj.get("totalFeesAndCommissionsInternalAmount") is not None else None,
626
+ "totalFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["totalFeesSourceAmount"]) if obj.get("totalFeesSourceAmount") is not None else None,
627
+ "totalFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalFeesCaptureAmount"]) if obj.get("totalFeesCaptureAmount") is not None else None,
628
+ "totalFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalFeesDisplayAmount"]) if obj.get("totalFeesDisplayAmount") is not None else None,
629
+ "totalFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalFeesSupplierAmount"]) if obj.get("totalFeesSupplierAmount") is not None else None,
630
+ "totalFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["totalFeesInternalAmount"]) if obj.get("totalFeesInternalAmount") is not None else None,
631
+ "totalTripPayFeeSourceAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeSourceAmount"]) if obj.get("totalTripPayFeeSourceAmount") is not None else None,
632
+ "totalTripPayFeeCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeCaptureAmount"]) if obj.get("totalTripPayFeeCaptureAmount") is not None else None,
633
+ "totalTripPayFeeDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeDisplayAmount"]) if obj.get("totalTripPayFeeDisplayAmount") is not None else None,
634
+ "totalTripPayFeeSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeSupplierAmount"]) if obj.get("totalTripPayFeeSupplierAmount") is not None else None,
635
+ "totalTripPayFeeInternalAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeInternalAmount"]) if obj.get("totalTripPayFeeInternalAmount") is not None else None,
636
+ "totalSalesSourceAmount": CustomMonetaryAmount.from_dict(obj["totalSalesSourceAmount"]) if obj.get("totalSalesSourceAmount") is not None else None,
637
+ "totalSalesCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalSalesCaptureAmount"]) if obj.get("totalSalesCaptureAmount") is not None else None,
638
+ "totalSalesDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalSalesDisplayAmount"]) if obj.get("totalSalesDisplayAmount") is not None else None,
639
+ "totalSalesSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalSalesSupplierAmount"]) if obj.get("totalSalesSupplierAmount") is not None else None,
640
+ "totalSalesInternalAmount": CustomMonetaryAmount.from_dict(obj["totalSalesInternalAmount"]) if obj.get("totalSalesInternalAmount") is not None else None,
641
+ "fundsAvailableDate": obj.get("fundsAvailableDate"),
642
+ "totalFeesInPercentWithRefund": obj.get("totalFeesInPercentWithRefund"),
643
+ "totalFeesInPercent": obj.get("totalFeesInPercent"),
644
+ "totalTripPayFeeInPercentWithRefund": obj.get("totalTripPayFeeInPercentWithRefund"),
645
+ "totalTripPayFeeInPercent": obj.get("totalTripPayFeeInPercent"),
646
+ "totalCommissionsInPercentWithRefund": obj.get("totalCommissionsInPercentWithRefund"),
647
+ "totalCommissionsInPercent": obj.get("totalCommissionsInPercent"),
648
+ "totalFeesAndCommissionsInPercentWithRefund": obj.get("totalFeesAndCommissionsInPercentWithRefund"),
649
+ "totalFeesAndCommissionsInPercent": obj.get("totalFeesAndCommissionsInPercent"),
650
+ "originalFeesInPercent": obj.get("originalFeesInPercent"),
651
+ "originalAffiliateAgencyFeesInPercent": obj.get("originalAffiliateAgencyFeesInPercent"),
652
+ "originalSupplierAgencyFeesInPercent": obj.get("originalSupplierAgencyFeesInPercent"),
653
+ "originalCommissionsInPercent": obj.get("originalCommissionsInPercent"),
654
+ "netTotalCustomersSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersSourceAmount"]) if obj.get("netTotalCustomersSourceAmount") is not None else None,
655
+ "netTotalCustomersCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersCaptureAmount"]) if obj.get("netTotalCustomersCaptureAmount") is not None else None,
656
+ "netTotalCustomersDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersDisplayAmount"]) if obj.get("netTotalCustomersDisplayAmount") is not None else None,
657
+ "netTotalCustomersSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersSupplierAmount"]) if obj.get("netTotalCustomersSupplierAmount") is not None else None,
658
+ "netTotalCustomersInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersInternalAmount"]) if obj.get("netTotalCustomersInternalAmount") is not None else None,
659
+ "totalAffiliateAgencyFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["totalAffiliateAgencyFeesSourceAmount"]) if obj.get("totalAffiliateAgencyFeesSourceAmount") is not None else None,
660
+ "totalAffiliateAgencyFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalAffiliateAgencyFeesCaptureAmount"]) if obj.get("totalAffiliateAgencyFeesCaptureAmount") is not None else None,
661
+ "totalAffiliateAgencyFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalAffiliateAgencyFeesDisplayAmount"]) if obj.get("totalAffiliateAgencyFeesDisplayAmount") is not None else None,
662
+ "totalAffiliateAgencyFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalAffiliateAgencyFeesSupplierAmount"]) if obj.get("totalAffiliateAgencyFeesSupplierAmount") is not None else None,
663
+ "totalAffiliateAgencyFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["totalAffiliateAgencyFeesInternalAmount"]) if obj.get("totalAffiliateAgencyFeesInternalAmount") is not None else None,
664
+ "totalSupplierAgencyFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["totalSupplierAgencyFeesSourceAmount"]) if obj.get("totalSupplierAgencyFeesSourceAmount") is not None else None,
665
+ "totalSupplierAgencyFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalSupplierAgencyFeesCaptureAmount"]) if obj.get("totalSupplierAgencyFeesCaptureAmount") is not None else None,
666
+ "totalSupplierAgencyFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalSupplierAgencyFeesDisplayAmount"]) if obj.get("totalSupplierAgencyFeesDisplayAmount") is not None else None,
667
+ "totalSupplierAgencyFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalSupplierAgencyFeesSupplierAmount"]) if obj.get("totalSupplierAgencyFeesSupplierAmount") is not None else None,
668
+ "totalSupplierAgencyFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["totalSupplierAgencyFeesInternalAmount"]) if obj.get("totalSupplierAgencyFeesInternalAmount") is not None else None,
669
+ "netTotalAffiliateAgencyFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalAffiliateAgencyFeesSourceAmount"]) if obj.get("netTotalAffiliateAgencyFeesSourceAmount") is not None else None,
670
+ "netTotalAffiliateAgencyFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalAffiliateAgencyFeesCaptureAmount"]) if obj.get("netTotalAffiliateAgencyFeesCaptureAmount") is not None else None,
671
+ "netTotalAffiliateAgencyFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalAffiliateAgencyFeesDisplayAmount"]) if obj.get("netTotalAffiliateAgencyFeesDisplayAmount") is not None else None,
672
+ "netTotalAffiliateAgencyFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalAffiliateAgencyFeesSupplierAmount"]) if obj.get("netTotalAffiliateAgencyFeesSupplierAmount") is not None else None,
673
+ "netTotalAffiliateAgencyFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalAffiliateAgencyFeesInternalAmount"]) if obj.get("netTotalAffiliateAgencyFeesInternalAmount") is not None else None,
674
+ "netTotalSupplierAgencyFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalSupplierAgencyFeesSourceAmount"]) if obj.get("netTotalSupplierAgencyFeesSourceAmount") is not None else None,
675
+ "netTotalSupplierAgencyFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalSupplierAgencyFeesCaptureAmount"]) if obj.get("netTotalSupplierAgencyFeesCaptureAmount") is not None else None,
676
+ "netTotalSupplierAgencyFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalSupplierAgencyFeesDisplayAmount"]) if obj.get("netTotalSupplierAgencyFeesDisplayAmount") is not None else None,
677
+ "netTotalSupplierAgencyFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalSupplierAgencyFeesSupplierAmount"]) if obj.get("netTotalSupplierAgencyFeesSupplierAmount") is not None else None,
678
+ "netTotalSupplierAgencyFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalSupplierAgencyFeesInternalAmount"]) if obj.get("netTotalSupplierAgencyFeesInternalAmount") is not None else None,
679
+ "hasRefunds": obj.get("hasRefunds"),
680
+ "hasSuccessfulRefunds": obj.get("hasSuccessfulRefunds"),
681
+ "hasPendingRefunds": obj.get("hasPendingRefunds"),
682
+ "hasFailedRefunds": obj.get("hasFailedRefunds"),
683
+ "platformIdentifier": obj.get("platformIdentifier"),
684
+ "totalFundsGroupedByBeneficiary": [BeneficiaryAgent.from_dict(_item) for _item in obj["totalFundsGroupedByBeneficiary"]] if obj.get("totalFundsGroupedByBeneficiary") is not None else None,
685
+ "totalTokensEarned": obj.get("totalTokensEarned"),
686
+ "fullyRefunded": obj.get("fullyRefunded"),
687
+ "selfAcquiring": obj.get("selfAcquiring"),
688
+ "lodging": BookingContractItemAgent.from_dict(obj["lodging"]) if obj.get("lodging") is not None else None,
689
+ "cancellableByAgent": obj.get("cancellableByAgent"),
690
+ "cancellableBySupplier": obj.get("cancellableBySupplier"),
691
+ "cancellableByTraveler": obj.get("cancellableByTraveler"),
692
+ "cancellableWithNoCharges": obj.get("cancellableWithNoCharges"),
693
+ "isCancellableWithPotentialCharges": obj.get("isCancellableWithPotentialCharges")
694
+ })
695
+ return _obj
696
+
697
+