wink-sdk-travel-agent 0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wink-sdk-travel-agent might be problematic. Click here for more details.

Files changed (110) hide show
  1. wink_sdk_travel_agent/__init__.py +129 -0
  2. wink_sdk_travel_agent/api/__init__.py +5 -0
  3. wink_sdk_travel_agent/api/travel_agent_api.py +1985 -0
  4. wink_sdk_travel_agent/api_client.py +798 -0
  5. wink_sdk_travel_agent/api_response.py +21 -0
  6. wink_sdk_travel_agent/configuration.py +459 -0
  7. wink_sdk_travel_agent/exceptions.py +200 -0
  8. wink_sdk_travel_agent/models/__init__.py +112 -0
  9. wink_sdk_travel_agent/models/address_agent.py +110 -0
  10. wink_sdk_travel_agent/models/agent_booking_request_agent.py +145 -0
  11. wink_sdk_travel_agent/models/aggregate_descriptor_agent.py +100 -0
  12. wink_sdk_travel_agent/models/ancillary_request_agent.py +111 -0
  13. wink_sdk_travel_agent/models/authenticated_user_agent.py +98 -0
  14. wink_sdk_travel_agent/models/bed_agent.py +91 -0
  15. wink_sdk_travel_agent/models/bedroom_agent.py +105 -0
  16. wink_sdk_travel_agent/models/bedroom_configuration_agent.py +100 -0
  17. wink_sdk_travel_agent/models/beneficiary_agent.py +162 -0
  18. wink_sdk_travel_agent/models/beneficiary_charge_agent.py +97 -0
  19. wink_sdk_travel_agent/models/booking_agent.py +378 -0
  20. wink_sdk_travel_agent/models/booking_ancillary_agent.py +153 -0
  21. wink_sdk_travel_agent/models/booking_confirmations_agent.py +109 -0
  22. wink_sdk_travel_agent/models/booking_contract_agent.py +592 -0
  23. wink_sdk_travel_agent/models/booking_contract_item_agent.py +214 -0
  24. wink_sdk_travel_agent/models/booking_contract_payment_details_agent.py +131 -0
  25. wink_sdk_travel_agent/models/booking_itinerary_agent.py +113 -0
  26. wink_sdk_travel_agent/models/booking_itinerary_room_configuration_agent.py +98 -0
  27. wink_sdk_travel_agent/models/booking_itinerary_room_configuration_child_agent.py +90 -0
  28. wink_sdk_travel_agent/models/booking_user_agent.py +100 -0
  29. wink_sdk_travel_agent/models/booking_user_request_agent.py +96 -0
  30. wink_sdk_travel_agent/models/booking_user_session_agent.py +112 -0
  31. wink_sdk_travel_agent/models/booking_view_agent.py +101 -0
  32. wink_sdk_travel_agent/models/boolean_response_agent.py +90 -0
  33. wink_sdk_travel_agent/models/cancellation_detail_agent.py +97 -0
  34. wink_sdk_travel_agent/models/cancellation_policy_agent.py +166 -0
  35. wink_sdk_travel_agent/models/cancellation_policy_exception_agent.py +99 -0
  36. wink_sdk_travel_agent/models/cancellation_policy_exceptions_agent.py +96 -0
  37. wink_sdk_travel_agent/models/child_agent.py +91 -0
  38. wink_sdk_travel_agent/models/commissionable_entry_agent.py +101 -0
  39. wink_sdk_travel_agent/models/company_agent.py +160 -0
  40. wink_sdk_travel_agent/models/company_user_agent.py +114 -0
  41. wink_sdk_travel_agent/models/company_view_agent.py +101 -0
  42. wink_sdk_travel_agent/models/composite_filter_descriptor_agent.py +108 -0
  43. wink_sdk_travel_agent/models/contact_agent.py +104 -0
  44. wink_sdk_travel_agent/models/country_agent.py +100 -0
  45. wink_sdk_travel_agent/models/create_agent_booking400_response.py +141 -0
  46. wink_sdk_travel_agent/models/create_agent_booking_request_agent.py +104 -0
  47. wink_sdk_travel_agent/models/custom_monetary_amount.py +90 -0
  48. wink_sdk_travel_agent/models/daily_rate_agent.py +115 -0
  49. wink_sdk_travel_agent/models/dow_pattern_group_agent.py +102 -0
  50. wink_sdk_travel_agent/models/engine_configuration_booking_report_agent.py +192 -0
  51. wink_sdk_travel_agent/models/engine_configuration_theme_agent.py +108 -0
  52. wink_sdk_travel_agent/models/extra_charge_agent.py +103 -0
  53. wink_sdk_travel_agent/models/extra_charges_agent.py +112 -0
  54. wink_sdk_travel_agent/models/fee_agent.py +105 -0
  55. wink_sdk_travel_agent/models/filter_descriptor_agent.py +101 -0
  56. wink_sdk_travel_agent/models/general_manager_agent.py +104 -0
  57. wink_sdk_travel_agent/models/generic_error_message.py +96 -0
  58. wink_sdk_travel_agent/models/geo_json_point_agent.py +94 -0
  59. wink_sdk_travel_agent/models/geo_name_agent.py +136 -0
  60. wink_sdk_travel_agent/models/group_descriptor_agent.py +110 -0
  61. wink_sdk_travel_agent/models/guest_room_agent.py +258 -0
  62. wink_sdk_travel_agent/models/guest_user_agent.py +106 -0
  63. wink_sdk_travel_agent/models/hotel_on_map_agent.py +272 -0
  64. wink_sdk_travel_agent/models/image_attribution_agent.py +90 -0
  65. wink_sdk_travel_agent/models/localized_description_agent.py +91 -0
  66. wink_sdk_travel_agent/models/localized_price_agent.py +162 -0
  67. wink_sdk_travel_agent/models/page_booking_view_agent.py +128 -0
  68. wink_sdk_travel_agent/models/pageable_object_agent.py +106 -0
  69. wink_sdk_travel_agent/models/payout_agent.py +152 -0
  70. wink_sdk_travel_agent/models/payout_fee_agent.py +114 -0
  71. wink_sdk_travel_agent/models/pending_refund_agent.py +99 -0
  72. wink_sdk_travel_agent/models/personal_agent.py +155 -0
  73. wink_sdk_travel_agent/models/pet_info_dto_agent.py +90 -0
  74. wink_sdk_travel_agent/models/preferences_agent.py +128 -0
  75. wink_sdk_travel_agent/models/profile_agent.py +110 -0
  76. wink_sdk_travel_agent/models/profile_user_agent.py +100 -0
  77. wink_sdk_travel_agent/models/property_policy_agent.py +149 -0
  78. wink_sdk_travel_agent/models/quote_agent.py +94 -0
  79. wink_sdk_travel_agent/models/rate_plan_agent.py +172 -0
  80. wink_sdk_travel_agent/models/rate_plan_level_fee_agent.py +111 -0
  81. wink_sdk_travel_agent/models/refund_agent.py +166 -0
  82. wink_sdk_travel_agent/models/reporting_ancillary_agent.py +108 -0
  83. wink_sdk_travel_agent/models/reporting_daily_rate_agent.py +99 -0
  84. wink_sdk_travel_agent/models/reporting_extra_charge_agent.py +98 -0
  85. wink_sdk_travel_agent/models/review_agent.py +133 -0
  86. wink_sdk_travel_agent/models/review_answer_agent.py +101 -0
  87. wink_sdk_travel_agent/models/review_user_agent.py +98 -0
  88. wink_sdk_travel_agent/models/room_configuration_agent.py +99 -0
  89. wink_sdk_travel_agent/models/room_stay_agent.py +184 -0
  90. wink_sdk_travel_agent/models/simple_date_time_itinerary_agent.py +108 -0
  91. wink_sdk_travel_agent/models/simple_description_agent.py +93 -0
  92. wink_sdk_travel_agent/models/simple_multimedia_agent.py +154 -0
  93. wink_sdk_travel_agent/models/social_agent.py +102 -0
  94. wink_sdk_travel_agent/models/sort_descriptor_agent.py +100 -0
  95. wink_sdk_travel_agent/models/sort_object.py +96 -0
  96. wink_sdk_travel_agent/models/state_agent.py +117 -0
  97. wink_sdk_travel_agent/models/stay_rate_agent.py +209 -0
  98. wink_sdk_travel_agent/models/sub_country_agent.py +92 -0
  99. wink_sdk_travel_agent/models/sub_sub_country_agent.py +92 -0
  100. wink_sdk_travel_agent/models/supplier_contract_item_policy_agent.py +170 -0
  101. wink_sdk_travel_agent/models/travel_agent_agent.py +90 -0
  102. wink_sdk_travel_agent/models/travel_inventory_recognition_agent.py +120 -0
  103. wink_sdk_travel_agent/models/upsert_travel_agent_request_agent.py +90 -0
  104. wink_sdk_travel_agent/py.typed +0 -0
  105. wink_sdk_travel_agent/rest.py +258 -0
  106. wink_sdk_travel_agent-0.0.3.dist-info/LICENSE +201 -0
  107. wink_sdk_travel_agent-0.0.3.dist-info/METADATA +17 -0
  108. wink_sdk_travel_agent-0.0.3.dist-info/RECORD +110 -0
  109. wink_sdk_travel_agent-0.0.3.dist-info/WHEEL +5 -0
  110. wink_sdk_travel_agent-0.0.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,592 @@
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 blocking on the Wink platform. The API gives you all the tools you need to ready your properties and blocking for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel blocking 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 blocking and get that same blocking 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 blocking and either book it or use it to advertise through one of their Wink affiliate accounts. - [Configuration](/engine-client): A single endpoint to retrieve whitelabel + customization information for the booking engine. - [Lookup](/lookup): All APIs related to locating blocking by region, locale and property flags. - [Inventory](/blocking): All APIs related to retrieve known travel blocking 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 blocking. #### 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 blocking 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 blocking to sell. - [Inventory](/affiliate/blocking): The Inventory API exposes endpoints for affiliates to manage the blocking 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 blocking and need taxonomies of standard and non-standard codes for blocking types, classes, statuses etc. - [Reference](/reactive): All APIs related to retrieving platform-supported taxonomies. ### Insight APIs Insight endpoints do exactly what the name implies - They offer platform-level insight into the activities of producers and consumers. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. ### Payment APIs Payment endpoints are for developers who want to purchase travel blocking. This can be done via the API as a registered Travel Agent or using our API in conjunction with our PCI compliant reactive widget for all other entities. - [TripPay](/reactive): All APIs related to TripPay account management, booking, mapping and integration features. ## SDKs We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: [https://openapi-generator.tech/docs/generators](https://openapi-generator.tech/docs/generators). - Java SDK [https://github.com/wink-travel/wink-sdk-java](https://github.com/wink-travel/wink-sdk-java) ## Usage These features are made available to you via a [REST API](https://en.wikipedia.org/wiki/Representational_state_transfer). This API is language agnostic. ## Versioning We chose to version our endpoints in a way that we hope affects your integration minimally. You request the version of our API you wish to work with via the `Wink-Version` header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints. ## Release history - Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md # Travel Agent API The Travel Agent API exposes endpoints to manage agent-facilitated bookings. This API lets you: 1. Travel Agent: Manage agent entity. 2. Booking: Create / Manage bookings Browse the endpoints in the left navigation bar to get started.
7
+
8
+ The version of the OpenAPI document: 30.7.10
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 wink_sdk_travel_agent.models.authenticated_user_agent import AuthenticatedUserAgent
26
+ from wink_sdk_travel_agent.models.beneficiary_agent import BeneficiaryAgent
27
+ from wink_sdk_travel_agent.models.booking_contract_item_agent import BookingContractItemAgent
28
+ from wink_sdk_travel_agent.models.booking_contract_payment_details_agent import BookingContractPaymentDetailsAgent
29
+ from wink_sdk_travel_agent.models.custom_monetary_amount import CustomMonetaryAmount
30
+ from wink_sdk_travel_agent.models.payout_agent import PayoutAgent
31
+ from wink_sdk_travel_agent.models.quote_agent import QuoteAgent
32
+ from wink_sdk_travel_agent.models.refund_agent import RefundAgent
33
+ from typing import Optional, Set
34
+ from typing_extensions import Self
35
+
36
+ class BookingContractAgent(BaseModel):
37
+ """
38
+ Booking contract created by TripPay
39
+ """ # noqa: E501
40
+ booking_contract_identifier: Optional[StrictStr] = Field(default=None, description="Document UUID", alias="bookingContractIdentifier")
41
+ created_date: Optional[datetime] = Field(default=None, description="Datetime this record was first created", alias="createdDate")
42
+ last_update: Optional[datetime] = Field(default=None, description="Datetime this record was last updated", alias="lastUpdate")
43
+ federated_organization_identifier: StrictStr = Field(description="The auth realm owner ID", alias="federatedOrganizationIdentifier")
44
+ federated_organization_name: StrictStr = Field(description="The auth realm owner name", alias="federatedOrganizationName")
45
+ user: AuthenticatedUserAgent
46
+ ip_address: StrictStr = Field(description="Caller's IP address", alias="ipAddress")
47
+ trace_id: StrictStr = Field(description="Way to track which booking contracts were made together", alias="traceId")
48
+ source_url: StrictStr = Field(description="Where did the booking occur", alias="sourceUrl")
49
+ identifier: StrictStr = Field(description="Unique identifier used to track the contract. Create a UUID for this purpose.")
50
+ supplier_identifier: StrictStr = Field(description="Supplier identifier", alias="supplierIdentifier")
51
+ supplier_name: StrictStr = Field(description="Supplier name", alias="supplierName")
52
+ display_price_quote: QuoteAgent = Field(alias="displayPriceQuote")
53
+ supplier_price_quote: QuoteAgent = Field(alias="supplierPriceQuote")
54
+ internal_price_quote: QuoteAgent = Field(alias="internalPriceQuote")
55
+ capture_price_quote: QuoteAgent = Field(alias="capturePriceQuote")
56
+ 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")
57
+ external_supplier_identifier: Optional[StrictStr] = Field(default=None, description="Contract creator can choose to geoname this record with her own identifier", alias="externalSupplierIdentifier")
58
+ external_supplier_booking_code: Optional[StrictStr] = Field(default=None, description="External booking code generated by the affiliate", alias="externalSupplierBookingCode")
59
+ payment: BookingContractPaymentDetailsAgent
60
+ cancelled: Optional[StrictBool] = Field(default=False, description="Optional geoname externalIdentifier to remote inventory.")
61
+ cancelled_on: Optional[datetime] = Field(default=None, description="When the booking was cancelled.", alias="cancelledOn")
62
+ canceller: Optional[StrictStr] = Field(default=None, description="Type of entity that cancelled the booking.")
63
+ cancellation_type: Optional[StrictStr] = Field(default=None, description="Reason type.", alias="cancellationType")
64
+ canceller_user_identifier: Optional[StrictStr] = Field(default=None, description="User identifier that cancelled the entity.", alias="cancellerUserIdentifier")
65
+ cancel_reason: Optional[StrictStr] = Field(default=None, description="Reason for cancellation.", alias="cancelReason")
66
+ funds_added_to_ledger: Optional[StrictBool] = Field(default=None, description="Whether the contract has been added to the ledger; ready for payout.", alias="fundsAddedToLedger")
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: StrictStr = Field(description="The source currency", alias="sourceCurrency")
71
+ display_currency: StrictStr = Field(description="The display currency", alias="displayCurrency")
72
+ supplier_currency: StrictStr = Field(description="The supplier currency", alias="supplierCurrency")
73
+ internal_currency: StrictStr = Field(description="The internal currency", alias="internalCurrency")
74
+ capture_currency: StrictStr = 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, alias="netCommissionableTotalSourceAmount")
92
+ net_commissionable_total_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netCommissionableTotalCaptureAmount")
93
+ net_commissionable_total_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netCommissionableTotalDisplayAmount")
94
+ net_commissionable_total_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netCommissionableTotalSupplierAmount")
95
+ net_commissionable_total_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netCommissionableTotalInternalAmount")
96
+ net_total_fees_and_commissions_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesAndCommissionsSourceAmount")
97
+ net_total_fees_and_commissions_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesAndCommissionsCaptureAmount")
98
+ net_total_fees_and_commissions_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesAndCommissionsDisplayAmount")
99
+ net_total_fees_and_commissions_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesAndCommissionsSupplierAmount")
100
+ net_total_fees_and_commissions_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesAndCommissionsInternalAmount")
101
+ net_total_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesSourceAmount")
102
+ net_total_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesCaptureAmount")
103
+ net_total_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesDisplayAmount")
104
+ net_total_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesSupplierAmount")
105
+ net_total_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalFeesInternalAmount")
106
+ net_total_trip_pay_fee_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalTripPayFeeSourceAmount")
107
+ net_total_trip_pay_fee_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalTripPayFeeCaptureAmount")
108
+ net_total_trip_pay_fee_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalTripPayFeeDisplayAmount")
109
+ net_total_trip_pay_fee_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalTripPayFeeSupplierAmount")
110
+ net_total_trip_pay_fee_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalTripPayFeeInternalAmount")
111
+ net_total_sales_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalSalesSourceAmount")
112
+ net_total_sales_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalSalesCaptureAmount")
113
+ net_total_sales_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalSalesDisplayAmount")
114
+ net_total_sales_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalSalesSupplierAmount")
115
+ net_total_sales_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalSalesInternalAmount")
116
+ commissionable_total_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="commissionableTotalSourceAmount")
117
+ commissionable_total_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="commissionableTotalCaptureAmount")
118
+ commissionable_total_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="commissionableTotalDisplayAmount")
119
+ commissionable_total_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="commissionableTotalSupplierAmount")
120
+ commissionable_total_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="commissionableTotalInternalAmount")
121
+ total_fees_and_commissions_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesAndCommissionsSourceAmount")
122
+ total_fees_and_commissions_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesAndCommissionsCaptureAmount")
123
+ total_fees_and_commissions_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesAndCommissionsDisplayAmount")
124
+ total_fees_and_commissions_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesAndCommissionsSupplierAmount")
125
+ total_fees_and_commissions_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesAndCommissionsInternalAmount")
126
+ total_fees_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesSourceAmount")
127
+ total_fees_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesCaptureAmount")
128
+ total_fees_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesDisplayAmount")
129
+ total_fees_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesSupplierAmount")
130
+ total_fees_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalFeesInternalAmount")
131
+ total_trip_pay_fee_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalTripPayFeeSourceAmount")
132
+ total_trip_pay_fee_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalTripPayFeeCaptureAmount")
133
+ total_trip_pay_fee_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalTripPayFeeDisplayAmount")
134
+ total_trip_pay_fee_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalTripPayFeeSupplierAmount")
135
+ total_trip_pay_fee_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalTripPayFeeInternalAmount")
136
+ total_sales_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalSalesSourceAmount")
137
+ total_sales_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalSalesCaptureAmount")
138
+ total_sales_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalSalesDisplayAmount")
139
+ total_sales_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="totalSalesSupplierAmount")
140
+ total_sales_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, 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_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")
152
+ net_total_customers_source_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalCustomersSourceAmount")
153
+ net_total_customers_capture_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalCustomersCaptureAmount")
154
+ net_total_customers_display_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalCustomersDisplayAmount")
155
+ net_total_customers_supplier_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalCustomersSupplierAmount")
156
+ net_total_customers_internal_amount: Optional[CustomMonetaryAmount] = Field(default=None, alias="netTotalCustomersInternalAmount")
157
+ has_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether any refund in any state is present.", alias="hasRefunds")
158
+ has_successful_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether a successful refund is present.", alias="hasSuccessfulRefunds")
159
+ has_pending_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether a pending refund is present.", alias="hasPendingRefunds")
160
+ has_failed_refunds: Optional[StrictBool] = Field(default=None, description="Indicates whether a failed refund is present.", alias="hasFailedRefunds")
161
+ platform_identifier: Optional[StrictStr] = Field(default=None, description="Returns the account identifier for the beneficiary taking a platform fee", alias="platformIdentifier")
162
+ 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")
163
+ total_tokens_earned: Optional[StrictInt] = Field(default=None, description="Total amount of tokens minted on this contract.", alias="totalTokensEarned")
164
+ cancellable_by_supplier: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by the supplier.", alias="cancellableBySupplier")
165
+ cancellable_by_traveler: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by the traveller.", alias="cancellableByTraveler")
166
+ cancellable_by_agent: Optional[StrictBool] = Field(default=None, description="Whether the booking can still be cancelled completely by an agent.", alias="cancellableByAgent")
167
+ self_acquiring: Optional[StrictBool] = Field(default=None, alias="selfAcquiring")
168
+ lodging: Optional[BookingContractItemAgent] = None
169
+ cancellable_with_no_charges: Optional[StrictBool] = Field(default=None, description="Whether the cancellation comes at no cost to the traveler.", alias="cancellableWithNoCharges")
170
+ 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")
171
+ __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", "fundsAddedToLedger", "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", "originalCommissionsInPercent", "netTotalCustomersSourceAmount", "netTotalCustomersCaptureAmount", "netTotalCustomersDisplayAmount", "netTotalCustomersSupplierAmount", "netTotalCustomersInternalAmount", "hasRefunds", "hasSuccessfulRefunds", "hasPendingRefunds", "hasFailedRefunds", "platformIdentifier", "totalFundsGroupedByBeneficiary", "totalTokensEarned", "cancellableBySupplier", "cancellableByTraveler", "cancellableByAgent", "selfAcquiring", "lodging", "cancellableWithNoCharges", "isCancellableWithPotentialCharges"]
172
+
173
+ @field_validator('canceller')
174
+ def canceller_validate_enum(cls, value):
175
+ """Validates the enum"""
176
+ if value is None:
177
+ return value
178
+
179
+ if value not in set(['SALES_CHANNEL', 'SUPPLIER', 'TRAVELER', 'ACQUIRER', 'ADMINISTRATOR']):
180
+ raise ValueError("must be one of enum values ('SALES_CHANNEL', 'SUPPLIER', 'TRAVELER', 'ACQUIRER', 'ADMINISTRATOR')")
181
+ return value
182
+
183
+ @field_validator('cancellation_type')
184
+ def cancellation_type_validate_enum(cls, value):
185
+ """Validates the enum"""
186
+ if value is None:
187
+ return value
188
+
189
+ if value not in set(['DUPLICATE', 'CANCELLATION', 'NO_SHOW', 'CC_INVALID', 'CC_INSUFFICIENT', 'DISCRETIONARY']):
190
+ raise ValueError("must be one of enum values ('DUPLICATE', 'CANCELLATION', 'NO_SHOW', 'CC_INVALID', 'CC_INSUFFICIENT', 'DISCRETIONARY')")
191
+ return value
192
+
193
+ model_config = ConfigDict(
194
+ populate_by_name=True,
195
+ validate_assignment=True,
196
+ protected_namespaces=(),
197
+ )
198
+
199
+
200
+ def to_str(self) -> str:
201
+ """Returns the string representation of the model using alias"""
202
+ return pprint.pformat(self.model_dump(by_alias=True))
203
+
204
+ def to_json(self) -> str:
205
+ """Returns the JSON representation of the model using alias"""
206
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
207
+ return json.dumps(self.to_dict())
208
+
209
+ @classmethod
210
+ def from_json(cls, json_str: str) -> Optional[Self]:
211
+ """Create an instance of BookingContractAgent from a JSON string"""
212
+ return cls.from_dict(json.loads(json_str))
213
+
214
+ def to_dict(self) -> Dict[str, Any]:
215
+ """Return the dictionary representation of the model using alias.
216
+
217
+ This has the following differences from calling pydantic's
218
+ `self.model_dump(by_alias=True)`:
219
+
220
+ * `None` is only added to the output dict for nullable fields that
221
+ were set at model initialization. Other fields with value `None`
222
+ are ignored.
223
+ """
224
+ excluded_fields: Set[str] = set([
225
+ ])
226
+
227
+ _dict = self.model_dump(
228
+ by_alias=True,
229
+ exclude=excluded_fields,
230
+ exclude_none=True,
231
+ )
232
+ # override the default output from pydantic by calling `to_dict()` of user
233
+ if self.user:
234
+ _dict['user'] = self.user.to_dict()
235
+ # override the default output from pydantic by calling `to_dict()` of display_price_quote
236
+ if self.display_price_quote:
237
+ _dict['displayPriceQuote'] = self.display_price_quote.to_dict()
238
+ # override the default output from pydantic by calling `to_dict()` of supplier_price_quote
239
+ if self.supplier_price_quote:
240
+ _dict['supplierPriceQuote'] = self.supplier_price_quote.to_dict()
241
+ # override the default output from pydantic by calling `to_dict()` of internal_price_quote
242
+ if self.internal_price_quote:
243
+ _dict['internalPriceQuote'] = self.internal_price_quote.to_dict()
244
+ # override the default output from pydantic by calling `to_dict()` of capture_price_quote
245
+ if self.capture_price_quote:
246
+ _dict['capturePriceQuote'] = self.capture_price_quote.to_dict()
247
+ # override the default output from pydantic by calling `to_dict()` of each item in item_list (list)
248
+ _items = []
249
+ if self.item_list:
250
+ for _item_item_list in self.item_list:
251
+ if _item_item_list:
252
+ _items.append(_item_item_list.to_dict())
253
+ _dict['itemList'] = _items
254
+ # override the default output from pydantic by calling `to_dict()` of payment
255
+ if self.payment:
256
+ _dict['payment'] = self.payment.to_dict()
257
+ # override the default output from pydantic by calling `to_dict()` of each item in refunds (list)
258
+ _items = []
259
+ if self.refunds:
260
+ for _item_refunds in self.refunds:
261
+ if _item_refunds:
262
+ _items.append(_item_refunds.to_dict())
263
+ _dict['refunds'] = _items
264
+ # override the default output from pydantic by calling `to_dict()` of each item in payouts (list)
265
+ _items = []
266
+ if self.payouts:
267
+ for _item_payouts in self.payouts:
268
+ if _item_payouts:
269
+ _items.append(_item_payouts.to_dict())
270
+ _dict['payouts'] = _items
271
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_source_amount
272
+ if self.net_commissionable_total_source_amount:
273
+ _dict['netCommissionableTotalSourceAmount'] = self.net_commissionable_total_source_amount.to_dict()
274
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_capture_amount
275
+ if self.net_commissionable_total_capture_amount:
276
+ _dict['netCommissionableTotalCaptureAmount'] = self.net_commissionable_total_capture_amount.to_dict()
277
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_display_amount
278
+ if self.net_commissionable_total_display_amount:
279
+ _dict['netCommissionableTotalDisplayAmount'] = self.net_commissionable_total_display_amount.to_dict()
280
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_supplier_amount
281
+ if self.net_commissionable_total_supplier_amount:
282
+ _dict['netCommissionableTotalSupplierAmount'] = self.net_commissionable_total_supplier_amount.to_dict()
283
+ # override the default output from pydantic by calling `to_dict()` of net_commissionable_total_internal_amount
284
+ if self.net_commissionable_total_internal_amount:
285
+ _dict['netCommissionableTotalInternalAmount'] = self.net_commissionable_total_internal_amount.to_dict()
286
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_source_amount
287
+ if self.net_total_fees_and_commissions_source_amount:
288
+ _dict['netTotalFeesAndCommissionsSourceAmount'] = self.net_total_fees_and_commissions_source_amount.to_dict()
289
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_capture_amount
290
+ if self.net_total_fees_and_commissions_capture_amount:
291
+ _dict['netTotalFeesAndCommissionsCaptureAmount'] = self.net_total_fees_and_commissions_capture_amount.to_dict()
292
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_display_amount
293
+ if self.net_total_fees_and_commissions_display_amount:
294
+ _dict['netTotalFeesAndCommissionsDisplayAmount'] = self.net_total_fees_and_commissions_display_amount.to_dict()
295
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_supplier_amount
296
+ if self.net_total_fees_and_commissions_supplier_amount:
297
+ _dict['netTotalFeesAndCommissionsSupplierAmount'] = self.net_total_fees_and_commissions_supplier_amount.to_dict()
298
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_and_commissions_internal_amount
299
+ if self.net_total_fees_and_commissions_internal_amount:
300
+ _dict['netTotalFeesAndCommissionsInternalAmount'] = self.net_total_fees_and_commissions_internal_amount.to_dict()
301
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_source_amount
302
+ if self.net_total_fees_source_amount:
303
+ _dict['netTotalFeesSourceAmount'] = self.net_total_fees_source_amount.to_dict()
304
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_capture_amount
305
+ if self.net_total_fees_capture_amount:
306
+ _dict['netTotalFeesCaptureAmount'] = self.net_total_fees_capture_amount.to_dict()
307
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_display_amount
308
+ if self.net_total_fees_display_amount:
309
+ _dict['netTotalFeesDisplayAmount'] = self.net_total_fees_display_amount.to_dict()
310
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_supplier_amount
311
+ if self.net_total_fees_supplier_amount:
312
+ _dict['netTotalFeesSupplierAmount'] = self.net_total_fees_supplier_amount.to_dict()
313
+ # override the default output from pydantic by calling `to_dict()` of net_total_fees_internal_amount
314
+ if self.net_total_fees_internal_amount:
315
+ _dict['netTotalFeesInternalAmount'] = self.net_total_fees_internal_amount.to_dict()
316
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_source_amount
317
+ if self.net_total_trip_pay_fee_source_amount:
318
+ _dict['netTotalTripPayFeeSourceAmount'] = self.net_total_trip_pay_fee_source_amount.to_dict()
319
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_capture_amount
320
+ if self.net_total_trip_pay_fee_capture_amount:
321
+ _dict['netTotalTripPayFeeCaptureAmount'] = self.net_total_trip_pay_fee_capture_amount.to_dict()
322
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_display_amount
323
+ if self.net_total_trip_pay_fee_display_amount:
324
+ _dict['netTotalTripPayFeeDisplayAmount'] = self.net_total_trip_pay_fee_display_amount.to_dict()
325
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_supplier_amount
326
+ if self.net_total_trip_pay_fee_supplier_amount:
327
+ _dict['netTotalTripPayFeeSupplierAmount'] = self.net_total_trip_pay_fee_supplier_amount.to_dict()
328
+ # override the default output from pydantic by calling `to_dict()` of net_total_trip_pay_fee_internal_amount
329
+ if self.net_total_trip_pay_fee_internal_amount:
330
+ _dict['netTotalTripPayFeeInternalAmount'] = self.net_total_trip_pay_fee_internal_amount.to_dict()
331
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_source_amount
332
+ if self.net_total_sales_source_amount:
333
+ _dict['netTotalSalesSourceAmount'] = self.net_total_sales_source_amount.to_dict()
334
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_capture_amount
335
+ if self.net_total_sales_capture_amount:
336
+ _dict['netTotalSalesCaptureAmount'] = self.net_total_sales_capture_amount.to_dict()
337
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_display_amount
338
+ if self.net_total_sales_display_amount:
339
+ _dict['netTotalSalesDisplayAmount'] = self.net_total_sales_display_amount.to_dict()
340
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_supplier_amount
341
+ if self.net_total_sales_supplier_amount:
342
+ _dict['netTotalSalesSupplierAmount'] = self.net_total_sales_supplier_amount.to_dict()
343
+ # override the default output from pydantic by calling `to_dict()` of net_total_sales_internal_amount
344
+ if self.net_total_sales_internal_amount:
345
+ _dict['netTotalSalesInternalAmount'] = self.net_total_sales_internal_amount.to_dict()
346
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_source_amount
347
+ if self.commissionable_total_source_amount:
348
+ _dict['commissionableTotalSourceAmount'] = self.commissionable_total_source_amount.to_dict()
349
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_capture_amount
350
+ if self.commissionable_total_capture_amount:
351
+ _dict['commissionableTotalCaptureAmount'] = self.commissionable_total_capture_amount.to_dict()
352
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_display_amount
353
+ if self.commissionable_total_display_amount:
354
+ _dict['commissionableTotalDisplayAmount'] = self.commissionable_total_display_amount.to_dict()
355
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_supplier_amount
356
+ if self.commissionable_total_supplier_amount:
357
+ _dict['commissionableTotalSupplierAmount'] = self.commissionable_total_supplier_amount.to_dict()
358
+ # override the default output from pydantic by calling `to_dict()` of commissionable_total_internal_amount
359
+ if self.commissionable_total_internal_amount:
360
+ _dict['commissionableTotalInternalAmount'] = self.commissionable_total_internal_amount.to_dict()
361
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_source_amount
362
+ if self.total_fees_and_commissions_source_amount:
363
+ _dict['totalFeesAndCommissionsSourceAmount'] = self.total_fees_and_commissions_source_amount.to_dict()
364
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_capture_amount
365
+ if self.total_fees_and_commissions_capture_amount:
366
+ _dict['totalFeesAndCommissionsCaptureAmount'] = self.total_fees_and_commissions_capture_amount.to_dict()
367
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_display_amount
368
+ if self.total_fees_and_commissions_display_amount:
369
+ _dict['totalFeesAndCommissionsDisplayAmount'] = self.total_fees_and_commissions_display_amount.to_dict()
370
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_supplier_amount
371
+ if self.total_fees_and_commissions_supplier_amount:
372
+ _dict['totalFeesAndCommissionsSupplierAmount'] = self.total_fees_and_commissions_supplier_amount.to_dict()
373
+ # override the default output from pydantic by calling `to_dict()` of total_fees_and_commissions_internal_amount
374
+ if self.total_fees_and_commissions_internal_amount:
375
+ _dict['totalFeesAndCommissionsInternalAmount'] = self.total_fees_and_commissions_internal_amount.to_dict()
376
+ # override the default output from pydantic by calling `to_dict()` of total_fees_source_amount
377
+ if self.total_fees_source_amount:
378
+ _dict['totalFeesSourceAmount'] = self.total_fees_source_amount.to_dict()
379
+ # override the default output from pydantic by calling `to_dict()` of total_fees_capture_amount
380
+ if self.total_fees_capture_amount:
381
+ _dict['totalFeesCaptureAmount'] = self.total_fees_capture_amount.to_dict()
382
+ # override the default output from pydantic by calling `to_dict()` of total_fees_display_amount
383
+ if self.total_fees_display_amount:
384
+ _dict['totalFeesDisplayAmount'] = self.total_fees_display_amount.to_dict()
385
+ # override the default output from pydantic by calling `to_dict()` of total_fees_supplier_amount
386
+ if self.total_fees_supplier_amount:
387
+ _dict['totalFeesSupplierAmount'] = self.total_fees_supplier_amount.to_dict()
388
+ # override the default output from pydantic by calling `to_dict()` of total_fees_internal_amount
389
+ if self.total_fees_internal_amount:
390
+ _dict['totalFeesInternalAmount'] = self.total_fees_internal_amount.to_dict()
391
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_source_amount
392
+ if self.total_trip_pay_fee_source_amount:
393
+ _dict['totalTripPayFeeSourceAmount'] = self.total_trip_pay_fee_source_amount.to_dict()
394
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_capture_amount
395
+ if self.total_trip_pay_fee_capture_amount:
396
+ _dict['totalTripPayFeeCaptureAmount'] = self.total_trip_pay_fee_capture_amount.to_dict()
397
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_display_amount
398
+ if self.total_trip_pay_fee_display_amount:
399
+ _dict['totalTripPayFeeDisplayAmount'] = self.total_trip_pay_fee_display_amount.to_dict()
400
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_supplier_amount
401
+ if self.total_trip_pay_fee_supplier_amount:
402
+ _dict['totalTripPayFeeSupplierAmount'] = self.total_trip_pay_fee_supplier_amount.to_dict()
403
+ # override the default output from pydantic by calling `to_dict()` of total_trip_pay_fee_internal_amount
404
+ if self.total_trip_pay_fee_internal_amount:
405
+ _dict['totalTripPayFeeInternalAmount'] = self.total_trip_pay_fee_internal_amount.to_dict()
406
+ # override the default output from pydantic by calling `to_dict()` of total_sales_source_amount
407
+ if self.total_sales_source_amount:
408
+ _dict['totalSalesSourceAmount'] = self.total_sales_source_amount.to_dict()
409
+ # override the default output from pydantic by calling `to_dict()` of total_sales_capture_amount
410
+ if self.total_sales_capture_amount:
411
+ _dict['totalSalesCaptureAmount'] = self.total_sales_capture_amount.to_dict()
412
+ # override the default output from pydantic by calling `to_dict()` of total_sales_display_amount
413
+ if self.total_sales_display_amount:
414
+ _dict['totalSalesDisplayAmount'] = self.total_sales_display_amount.to_dict()
415
+ # override the default output from pydantic by calling `to_dict()` of total_sales_supplier_amount
416
+ if self.total_sales_supplier_amount:
417
+ _dict['totalSalesSupplierAmount'] = self.total_sales_supplier_amount.to_dict()
418
+ # override the default output from pydantic by calling `to_dict()` of total_sales_internal_amount
419
+ if self.total_sales_internal_amount:
420
+ _dict['totalSalesInternalAmount'] = self.total_sales_internal_amount.to_dict()
421
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_source_amount
422
+ if self.net_total_customers_source_amount:
423
+ _dict['netTotalCustomersSourceAmount'] = self.net_total_customers_source_amount.to_dict()
424
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_capture_amount
425
+ if self.net_total_customers_capture_amount:
426
+ _dict['netTotalCustomersCaptureAmount'] = self.net_total_customers_capture_amount.to_dict()
427
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_display_amount
428
+ if self.net_total_customers_display_amount:
429
+ _dict['netTotalCustomersDisplayAmount'] = self.net_total_customers_display_amount.to_dict()
430
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_supplier_amount
431
+ if self.net_total_customers_supplier_amount:
432
+ _dict['netTotalCustomersSupplierAmount'] = self.net_total_customers_supplier_amount.to_dict()
433
+ # override the default output from pydantic by calling `to_dict()` of net_total_customers_internal_amount
434
+ if self.net_total_customers_internal_amount:
435
+ _dict['netTotalCustomersInternalAmount'] = self.net_total_customers_internal_amount.to_dict()
436
+ # override the default output from pydantic by calling `to_dict()` of each item in total_funds_grouped_by_beneficiary (list)
437
+ _items = []
438
+ if self.total_funds_grouped_by_beneficiary:
439
+ for _item_total_funds_grouped_by_beneficiary in self.total_funds_grouped_by_beneficiary:
440
+ if _item_total_funds_grouped_by_beneficiary:
441
+ _items.append(_item_total_funds_grouped_by_beneficiary.to_dict())
442
+ _dict['totalFundsGroupedByBeneficiary'] = _items
443
+ # override the default output from pydantic by calling `to_dict()` of lodging
444
+ if self.lodging:
445
+ _dict['lodging'] = self.lodging.to_dict()
446
+ return _dict
447
+
448
+ @classmethod
449
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
450
+ """Create an instance of BookingContractAgent from a dict"""
451
+ if obj is None:
452
+ return None
453
+
454
+ if not isinstance(obj, dict):
455
+ return cls.model_validate(obj)
456
+
457
+ _obj = cls.model_validate({
458
+ "bookingContractIdentifier": obj.get("bookingContractIdentifier"),
459
+ "createdDate": obj.get("createdDate"),
460
+ "lastUpdate": obj.get("lastUpdate"),
461
+ "federatedOrganizationIdentifier": obj.get("federatedOrganizationIdentifier"),
462
+ "federatedOrganizationName": obj.get("federatedOrganizationName"),
463
+ "user": AuthenticatedUserAgent.from_dict(obj["user"]) if obj.get("user") is not None else None,
464
+ "ipAddress": obj.get("ipAddress"),
465
+ "traceId": obj.get("traceId"),
466
+ "sourceUrl": obj.get("sourceUrl"),
467
+ "identifier": obj.get("identifier"),
468
+ "supplierIdentifier": obj.get("supplierIdentifier"),
469
+ "supplierName": obj.get("supplierName"),
470
+ "displayPriceQuote": QuoteAgent.from_dict(obj["displayPriceQuote"]) if obj.get("displayPriceQuote") is not None else None,
471
+ "supplierPriceQuote": QuoteAgent.from_dict(obj["supplierPriceQuote"]) if obj.get("supplierPriceQuote") is not None else None,
472
+ "internalPriceQuote": QuoteAgent.from_dict(obj["internalPriceQuote"]) if obj.get("internalPriceQuote") is not None else None,
473
+ "capturePriceQuote": QuoteAgent.from_dict(obj["capturePriceQuote"]) if obj.get("capturePriceQuote") is not None else None,
474
+ "itemList": [BookingContractItemAgent.from_dict(_item) for _item in obj["itemList"]] if obj.get("itemList") is not None else None,
475
+ "externalSupplierIdentifier": obj.get("externalSupplierIdentifier"),
476
+ "externalSupplierBookingCode": obj.get("externalSupplierBookingCode"),
477
+ "payment": BookingContractPaymentDetailsAgent.from_dict(obj["payment"]) if obj.get("payment") is not None else None,
478
+ "cancelled": obj.get("cancelled") if obj.get("cancelled") is not None else False,
479
+ "cancelledOn": obj.get("cancelledOn"),
480
+ "canceller": obj.get("canceller"),
481
+ "cancellationType": obj.get("cancellationType"),
482
+ "cancellerUserIdentifier": obj.get("cancellerUserIdentifier"),
483
+ "cancelReason": obj.get("cancelReason"),
484
+ "fundsAddedToLedger": obj.get("fundsAddedToLedger"),
485
+ "fundsProcessed": obj.get("fundsProcessed"),
486
+ "refunds": [RefundAgent.from_dict(_item) for _item in obj["refunds"]] if obj.get("refunds") is not None else None,
487
+ "payouts": [PayoutAgent.from_dict(_item) for _item in obj["payouts"]] if obj.get("payouts") is not None else None,
488
+ "sourceCurrency": obj.get("sourceCurrency"),
489
+ "displayCurrency": obj.get("displayCurrency"),
490
+ "supplierCurrency": obj.get("supplierCurrency"),
491
+ "internalCurrency": obj.get("internalCurrency"),
492
+ "captureCurrency": obj.get("captureCurrency"),
493
+ "sourceAmount": obj.get("sourceAmount"),
494
+ "displayAmount": obj.get("displayAmount"),
495
+ "supplierAmount": obj.get("supplierAmount"),
496
+ "internalAmount": obj.get("internalAmount"),
497
+ "captureAmount": obj.get("captureAmount"),
498
+ "sourceAmountRefundModifier": obj.get("sourceAmountRefundModifier"),
499
+ "displayAmountRefundModifier": obj.get("displayAmountRefundModifier"),
500
+ "supplierAmountRefundModifier": obj.get("supplierAmountRefundModifier"),
501
+ "internalAmountRefundModifier": obj.get("internalAmountRefundModifier"),
502
+ "captureAmountRefundModifier": obj.get("captureAmountRefundModifier"),
503
+ "netSourceAmount": obj.get("netSourceAmount"),
504
+ "netDisplayAmount": obj.get("netDisplayAmount"),
505
+ "netSupplierAmount": obj.get("netSupplierAmount"),
506
+ "netInternalAmount": obj.get("netInternalAmount"),
507
+ "netCaptureAmount": obj.get("netCaptureAmount"),
508
+ "metadata": obj.get("metadata"),
509
+ "netCommissionableTotalSourceAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalSourceAmount"]) if obj.get("netCommissionableTotalSourceAmount") is not None else None,
510
+ "netCommissionableTotalCaptureAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalCaptureAmount"]) if obj.get("netCommissionableTotalCaptureAmount") is not None else None,
511
+ "netCommissionableTotalDisplayAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalDisplayAmount"]) if obj.get("netCommissionableTotalDisplayAmount") is not None else None,
512
+ "netCommissionableTotalSupplierAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalSupplierAmount"]) if obj.get("netCommissionableTotalSupplierAmount") is not None else None,
513
+ "netCommissionableTotalInternalAmount": CustomMonetaryAmount.from_dict(obj["netCommissionableTotalInternalAmount"]) if obj.get("netCommissionableTotalInternalAmount") is not None else None,
514
+ "netTotalFeesAndCommissionsSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsSourceAmount"]) if obj.get("netTotalFeesAndCommissionsSourceAmount") is not None else None,
515
+ "netTotalFeesAndCommissionsCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsCaptureAmount"]) if obj.get("netTotalFeesAndCommissionsCaptureAmount") is not None else None,
516
+ "netTotalFeesAndCommissionsDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsDisplayAmount"]) if obj.get("netTotalFeesAndCommissionsDisplayAmount") is not None else None,
517
+ "netTotalFeesAndCommissionsSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsSupplierAmount"]) if obj.get("netTotalFeesAndCommissionsSupplierAmount") is not None else None,
518
+ "netTotalFeesAndCommissionsInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesAndCommissionsInternalAmount"]) if obj.get("netTotalFeesAndCommissionsInternalAmount") is not None else None,
519
+ "netTotalFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesSourceAmount"]) if obj.get("netTotalFeesSourceAmount") is not None else None,
520
+ "netTotalFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesCaptureAmount"]) if obj.get("netTotalFeesCaptureAmount") is not None else None,
521
+ "netTotalFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesDisplayAmount"]) if obj.get("netTotalFeesDisplayAmount") is not None else None,
522
+ "netTotalFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesSupplierAmount"]) if obj.get("netTotalFeesSupplierAmount") is not None else None,
523
+ "netTotalFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalFeesInternalAmount"]) if obj.get("netTotalFeesInternalAmount") is not None else None,
524
+ "netTotalTripPayFeeSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeSourceAmount"]) if obj.get("netTotalTripPayFeeSourceAmount") is not None else None,
525
+ "netTotalTripPayFeeCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeCaptureAmount"]) if obj.get("netTotalTripPayFeeCaptureAmount") is not None else None,
526
+ "netTotalTripPayFeeDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeDisplayAmount"]) if obj.get("netTotalTripPayFeeDisplayAmount") is not None else None,
527
+ "netTotalTripPayFeeSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeSupplierAmount"]) if obj.get("netTotalTripPayFeeSupplierAmount") is not None else None,
528
+ "netTotalTripPayFeeInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalTripPayFeeInternalAmount"]) if obj.get("netTotalTripPayFeeInternalAmount") is not None else None,
529
+ "netTotalSalesSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesSourceAmount"]) if obj.get("netTotalSalesSourceAmount") is not None else None,
530
+ "netTotalSalesCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesCaptureAmount"]) if obj.get("netTotalSalesCaptureAmount") is not None else None,
531
+ "netTotalSalesDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesDisplayAmount"]) if obj.get("netTotalSalesDisplayAmount") is not None else None,
532
+ "netTotalSalesSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesSupplierAmount"]) if obj.get("netTotalSalesSupplierAmount") is not None else None,
533
+ "netTotalSalesInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalSalesInternalAmount"]) if obj.get("netTotalSalesInternalAmount") is not None else None,
534
+ "commissionableTotalSourceAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalSourceAmount"]) if obj.get("commissionableTotalSourceAmount") is not None else None,
535
+ "commissionableTotalCaptureAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalCaptureAmount"]) if obj.get("commissionableTotalCaptureAmount") is not None else None,
536
+ "commissionableTotalDisplayAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalDisplayAmount"]) if obj.get("commissionableTotalDisplayAmount") is not None else None,
537
+ "commissionableTotalSupplierAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalSupplierAmount"]) if obj.get("commissionableTotalSupplierAmount") is not None else None,
538
+ "commissionableTotalInternalAmount": CustomMonetaryAmount.from_dict(obj["commissionableTotalInternalAmount"]) if obj.get("commissionableTotalInternalAmount") is not None else None,
539
+ "totalFeesAndCommissionsSourceAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsSourceAmount"]) if obj.get("totalFeesAndCommissionsSourceAmount") is not None else None,
540
+ "totalFeesAndCommissionsCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsCaptureAmount"]) if obj.get("totalFeesAndCommissionsCaptureAmount") is not None else None,
541
+ "totalFeesAndCommissionsDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsDisplayAmount"]) if obj.get("totalFeesAndCommissionsDisplayAmount") is not None else None,
542
+ "totalFeesAndCommissionsSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsSupplierAmount"]) if obj.get("totalFeesAndCommissionsSupplierAmount") is not None else None,
543
+ "totalFeesAndCommissionsInternalAmount": CustomMonetaryAmount.from_dict(obj["totalFeesAndCommissionsInternalAmount"]) if obj.get("totalFeesAndCommissionsInternalAmount") is not None else None,
544
+ "totalFeesSourceAmount": CustomMonetaryAmount.from_dict(obj["totalFeesSourceAmount"]) if obj.get("totalFeesSourceAmount") is not None else None,
545
+ "totalFeesCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalFeesCaptureAmount"]) if obj.get("totalFeesCaptureAmount") is not None else None,
546
+ "totalFeesDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalFeesDisplayAmount"]) if obj.get("totalFeesDisplayAmount") is not None else None,
547
+ "totalFeesSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalFeesSupplierAmount"]) if obj.get("totalFeesSupplierAmount") is not None else None,
548
+ "totalFeesInternalAmount": CustomMonetaryAmount.from_dict(obj["totalFeesInternalAmount"]) if obj.get("totalFeesInternalAmount") is not None else None,
549
+ "totalTripPayFeeSourceAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeSourceAmount"]) if obj.get("totalTripPayFeeSourceAmount") is not None else None,
550
+ "totalTripPayFeeCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeCaptureAmount"]) if obj.get("totalTripPayFeeCaptureAmount") is not None else None,
551
+ "totalTripPayFeeDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeDisplayAmount"]) if obj.get("totalTripPayFeeDisplayAmount") is not None else None,
552
+ "totalTripPayFeeSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeSupplierAmount"]) if obj.get("totalTripPayFeeSupplierAmount") is not None else None,
553
+ "totalTripPayFeeInternalAmount": CustomMonetaryAmount.from_dict(obj["totalTripPayFeeInternalAmount"]) if obj.get("totalTripPayFeeInternalAmount") is not None else None,
554
+ "totalSalesSourceAmount": CustomMonetaryAmount.from_dict(obj["totalSalesSourceAmount"]) if obj.get("totalSalesSourceAmount") is not None else None,
555
+ "totalSalesCaptureAmount": CustomMonetaryAmount.from_dict(obj["totalSalesCaptureAmount"]) if obj.get("totalSalesCaptureAmount") is not None else None,
556
+ "totalSalesDisplayAmount": CustomMonetaryAmount.from_dict(obj["totalSalesDisplayAmount"]) if obj.get("totalSalesDisplayAmount") is not None else None,
557
+ "totalSalesSupplierAmount": CustomMonetaryAmount.from_dict(obj["totalSalesSupplierAmount"]) if obj.get("totalSalesSupplierAmount") is not None else None,
558
+ "totalSalesInternalAmount": CustomMonetaryAmount.from_dict(obj["totalSalesInternalAmount"]) if obj.get("totalSalesInternalAmount") is not None else None,
559
+ "fundsAvailableDate": obj.get("fundsAvailableDate"),
560
+ "totalFeesInPercentWithRefund": obj.get("totalFeesInPercentWithRefund"),
561
+ "totalFeesInPercent": obj.get("totalFeesInPercent"),
562
+ "totalTripPayFeeInPercentWithRefund": obj.get("totalTripPayFeeInPercentWithRefund"),
563
+ "totalTripPayFeeInPercent": obj.get("totalTripPayFeeInPercent"),
564
+ "totalCommissionsInPercentWithRefund": obj.get("totalCommissionsInPercentWithRefund"),
565
+ "totalCommissionsInPercent": obj.get("totalCommissionsInPercent"),
566
+ "totalFeesAndCommissionsInPercentWithRefund": obj.get("totalFeesAndCommissionsInPercentWithRefund"),
567
+ "totalFeesAndCommissionsInPercent": obj.get("totalFeesAndCommissionsInPercent"),
568
+ "originalFeesInPercent": obj.get("originalFeesInPercent"),
569
+ "originalCommissionsInPercent": obj.get("originalCommissionsInPercent"),
570
+ "netTotalCustomersSourceAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersSourceAmount"]) if obj.get("netTotalCustomersSourceAmount") is not None else None,
571
+ "netTotalCustomersCaptureAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersCaptureAmount"]) if obj.get("netTotalCustomersCaptureAmount") is not None else None,
572
+ "netTotalCustomersDisplayAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersDisplayAmount"]) if obj.get("netTotalCustomersDisplayAmount") is not None else None,
573
+ "netTotalCustomersSupplierAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersSupplierAmount"]) if obj.get("netTotalCustomersSupplierAmount") is not None else None,
574
+ "netTotalCustomersInternalAmount": CustomMonetaryAmount.from_dict(obj["netTotalCustomersInternalAmount"]) if obj.get("netTotalCustomersInternalAmount") is not None else None,
575
+ "hasRefunds": obj.get("hasRefunds"),
576
+ "hasSuccessfulRefunds": obj.get("hasSuccessfulRefunds"),
577
+ "hasPendingRefunds": obj.get("hasPendingRefunds"),
578
+ "hasFailedRefunds": obj.get("hasFailedRefunds"),
579
+ "platformIdentifier": obj.get("platformIdentifier"),
580
+ "totalFundsGroupedByBeneficiary": [BeneficiaryAgent.from_dict(_item) for _item in obj["totalFundsGroupedByBeneficiary"]] if obj.get("totalFundsGroupedByBeneficiary") is not None else None,
581
+ "totalTokensEarned": obj.get("totalTokensEarned"),
582
+ "cancellableBySupplier": obj.get("cancellableBySupplier"),
583
+ "cancellableByTraveler": obj.get("cancellableByTraveler"),
584
+ "cancellableByAgent": obj.get("cancellableByAgent"),
585
+ "selfAcquiring": obj.get("selfAcquiring"),
586
+ "lodging": BookingContractItemAgent.from_dict(obj["lodging"]) if obj.get("lodging") is not None else None,
587
+ "cancellableWithNoCharges": obj.get("cancellableWithNoCharges"),
588
+ "isCancellableWithPotentialCharges": obj.get("isCancellableWithPotentialCharges")
589
+ })
590
+ return _obj
591
+
592
+